[2025-02-01 00:00:05] Production.INFO: next invoice date [2025-02-01 00:00:05] Production.INFO: 2025-03-01 [2025-02-01 00:00:05] Production.INFO: getdaysdiff [2025-02-01 00:00:05] Production.INFO: +28 [2025-02-01 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (105,11,1,28,28,'RMScheduler',2025-02-01 00:00:05,1,0,,,0) [2025-02-01 00:00:05] Production.INFO: next invoice date [2025-02-01 00:00:05] Production.INFO: 2025-03-01 [2025-02-01 00:00:05] Production.INFO: getdaysdiff [2025-02-01 00:00:05] Production.INFO: +28 [2025-02-01 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (3,9,2,28,28,'RMScheduler',2025-02-01 00:00:05,1,0,,,0) [2025-02-01 00:00:05] Production.INFO: next invoice date [2025-02-01 00:00:05] Production.INFO: 2025-03-01 [2025-02-01 00:00:05] Production.INFO: getdaysdiff [2025-02-01 00:00:05] Production.INFO: +28 [2025-02-01 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (113,11,1,28,28,'RMScheduler',2025-02-01 00:00:05,1,0,,,0) [2025-02-01 00:00:06] Production.INFO: next invoice date [2025-02-01 00:00:06] Production.INFO: 2025-03-01 [2025-02-01 00:00:06] Production.INFO: getdaysdiff [2025-02-01 00:00:06] Production.INFO: +28 [2025-02-01 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (114,11,1,28,28,'RMScheduler',2025-02-01 00:00:05,1,0,,,0) [2025-02-01 00:00:06] Production.INFO: next invoice date [2025-02-01 00:00:06] Production.INFO: 2025-03-01 [2025-02-01 00:00:06] Production.INFO: getdaysdiff [2025-02-01 00:00:06] Production.INFO: +28 [2025-02-01 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (3,16,1,28,28,'RMScheduler',2025-02-01 00:00:05,1,0,,,0) [2025-02-01 00:00:06] Production.INFO: next invoice date [2025-02-01 00:00:06] Production.INFO: 2025-03-01 [2025-02-01 00:00:06] Production.INFO: getdaysdiff [2025-02-01 00:00:06] Production.INFO: +28 [2025-02-01 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (147,11,1,28,28,'RMScheduler',2025-02-01 00:00:05,1,0,,,0) [2025-02-01 00:00:06] Production.INFO: next invoice date [2025-02-01 00:00:06] Production.INFO: 2025-03-01 [2025-02-01 00:00:06] Production.INFO: getdaysdiff [2025-02-01 00:00:06] Production.INFO: +28 [2025-02-01 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (148,11,1,28,28,'RMScheduler',2025-02-01 00:00:05,1,0,,,0) [2025-02-01 00:00:06] Production.INFO: next invoice date [2025-02-01 00:00:06] Production.INFO: 2025-03-01 [2025-02-01 00:00:06] Production.INFO: getdaysdiff [2025-02-01 00:00:06] Production.INFO: +28 [2025-02-01 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (66,11,1,28,28,'RMScheduler',2025-02-01 00:00:05,1,0,,,0) [2025-02-01 00:00:08] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:00:08 [end_date_ymd] => 2025-02-01 00:00:08 [RateCDR] => 1 ) [2025-02-01 00:00:08] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 21:00:08' and `end` < '2025-02-01 00:00:08' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 00:00:21] Production.INFO: count ==1022 [2025-02-01 00:00:21] Production.ERROR: pbx CDR StartTime 2025-01-31 21:00:08 - End Time 2025-02-01 00:00:08 [2025-02-01 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374525', 'tblTempUsageDetail_20' ) start [2025-02-01 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374525', 'tblTempUsageDetail_20' ) end [2025-02-01 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374525', 'tblTempVendorCDR_20' ) start [2025-02-01 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374525', 'tblTempVendorCDR_20' ) end [2025-02-01 00:00:21] Production.INFO: ProcessCDR(1,14374525,1,1,2) [2025-02-01 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374525', 'tblTempUsageDetail_20' ) start [2025-02-01 00:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374525', 'tblTempUsageDetail_20' ) end [2025-02-01 00:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:00:27] Production.INFO: ==12635== Releasing lock... [2025-02-01 00:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:00:27] Production.INFO: 37 MB #Memory Used# [2025-02-01 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:01:06 [end_date_ymd] => 2025-02-01 00:01:06 [RateCDR] => 1 ) [2025-02-01 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 21:01:06' and `end` < '2025-02-01 00:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 00:01:19] Production.INFO: count ==1028 [2025-02-01 00:01:19] Production.ERROR: pbx CDR StartTime 2025-01-31 21:01:06 - End Time 2025-02-01 00:01:06 [2025-02-01 00:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374530', 'tblTempUsageDetail_20' ) start [2025-02-01 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374530', 'tblTempUsageDetail_20' ) end [2025-02-01 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374530', 'tblTempVendorCDR_20' ) start [2025-02-01 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374530', 'tblTempVendorCDR_20' ) end [2025-02-01 00:01:20] Production.INFO: ProcessCDR(1,14374530,1,1,2) [2025-02-01 00:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374530', 'tblTempUsageDetail_20' ) start [2025-02-01 00:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374530', 'tblTempUsageDetail_20' ) end [2025-02-01 00:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:01:23] Production.INFO: ==12723== Releasing lock... [2025-02-01 00:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:01:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-01 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:02:05 [end_date_ymd] => 2025-02-01 00:02:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:02:05' and `end` < '2025-02-01 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-01 00:02:37] Production.INFO: count ==280 [2025-02-01 00:02:37] Production.ERROR: pbx CDR StartTime 2025-01-31 21:02:05 - End Time 2025-02-01 00:02:05 [2025-02-01 00:02:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374535', 'tblTempUsageDetail_20' ) start [2025-02-01 00:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374535', 'tblTempUsageDetail_20' ) end [2025-02-01 00:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374535', 'tblTempVendorCDR_20' ) start [2025-02-01 00:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374535', 'tblTempVendorCDR_20' ) end [2025-02-01 00:02:37] Production.INFO: ProcessCDR(1,14374535,1,1,2) [2025-02-01 00:02:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:02:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:02:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:02:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:02:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374535', 'tblTempUsageDetail_20' ) start [2025-02-01 00:02:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374535', 'tblTempUsageDetail_20' ) end [2025-02-01 00:02:41] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:02:41] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:02:42] Production.INFO: ==12794== Releasing lock... [2025-02-01 00:02:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:02:42] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:03:05 [end_date_ymd] => 2025-02-01 00:03:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:03:05' and `end` < '2025-02-01 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-01 00:03:37] Production.INFO: count ==275 [2025-02-01 00:03:37] Production.ERROR: pbx CDR StartTime 2025-01-31 21:03:05 - End Time 2025-02-01 00:03:05 [2025-02-01 00:03:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:03:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374540', 'tblTempUsageDetail_20' ) start [2025-02-01 00:03:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374540', 'tblTempUsageDetail_20' ) end [2025-02-01 00:03:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374540', 'tblTempVendorCDR_20' ) start [2025-02-01 00:03:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374540', 'tblTempVendorCDR_20' ) end [2025-02-01 00:03:37] Production.INFO: ProcessCDR(1,14374540,1,1,2) [2025-02-01 00:03:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:03:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:03:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:03:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:03:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374540', 'tblTempUsageDetail_20' ) start [2025-02-01 00:03:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374540', 'tblTempUsageDetail_20' ) end [2025-02-01 00:03:41] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:03:41] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:03:43] Production.INFO: ==12865== Releasing lock... [2025-02-01 00:03:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:03:43] Production.INFO: 32.75 MB #Memory Used# [2025-02-01 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:04:06 [end_date_ymd] => 2025-02-01 00:04:06 [RateCDR] => 1 ) [2025-02-01 00: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-01-31 21:04:06' and `end` < '2025-02-01 00: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-01 00:04:29] Production.INFO: count ==273 [2025-02-01 00:04:29] Production.ERROR: pbx CDR StartTime 2025-01-31 21:04:06 - End Time 2025-02-01 00:04:06 [2025-02-01 00:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374545', 'tblTempUsageDetail_20' ) start [2025-02-01 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374545', 'tblTempUsageDetail_20' ) end [2025-02-01 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374545', 'tblTempVendorCDR_20' ) start [2025-02-01 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374545', 'tblTempVendorCDR_20' ) end [2025-02-01 00:04:29] Production.INFO: ProcessCDR(1,14374545,1,1,2) [2025-02-01 00:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:04:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374545', 'tblTempUsageDetail_20' ) start [2025-02-01 00:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374545', 'tblTempUsageDetail_20' ) end [2025-02-01 00:04:33] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:04:33] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:04:33] Production.INFO: ==12936== Releasing lock... [2025-02-01 00:04:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:04:33] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:05:05 [end_date_ymd] => 2025-02-01 00:05:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:05:05' and `end` < '2025-02-01 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-01 00:05:31] Production.INFO: count ==269 [2025-02-01 00:05:32] Production.ERROR: pbx CDR StartTime 2025-01-31 21:05:05 - End Time 2025-02-01 00:05:05 [2025-02-01 00:05:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374550', 'tblTempUsageDetail_20' ) start [2025-02-01 00:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374550', 'tblTempUsageDetail_20' ) end [2025-02-01 00:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374550', 'tblTempVendorCDR_20' ) start [2025-02-01 00:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374550', 'tblTempVendorCDR_20' ) end [2025-02-01 00:05:32] Production.INFO: ProcessCDR(1,14374550,1,1,2) [2025-02-01 00:05:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:05:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374550', 'tblTempUsageDetail_20' ) start [2025-02-01 00:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374550', 'tblTempUsageDetail_20' ) end [2025-02-01 00:05:35] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:05:35] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:05:35] Production.INFO: ==13009== Releasing lock... [2025-02-01 00:05:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:05:35] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:06:05 [end_date_ymd] => 2025-02-01 00:06:05 [RateCDR] => 1 ) [2025-02-01 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 21:06:05' and `end` < '2025-02-01 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 00:06:25] Production.INFO: count ==268 [2025-02-01 00:06:25] Production.ERROR: pbx CDR StartTime 2025-01-31 21:06:05 - End Time 2025-02-01 00:06:05 [2025-02-01 00:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374555', 'tblTempUsageDetail_20' ) start [2025-02-01 00:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374555', 'tblTempUsageDetail_20' ) end [2025-02-01 00:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374555', 'tblTempVendorCDR_20' ) start [2025-02-01 00:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374555', 'tblTempVendorCDR_20' ) end [2025-02-01 00:06:25] Production.INFO: ProcessCDR(1,14374555,1,1,2) [2025-02-01 00:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374555', 'tblTempUsageDetail_20' ) start [2025-02-01 00:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374555', 'tblTempUsageDetail_20' ) end [2025-02-01 00:06:28] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:06:28] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:06:28] Production.INFO: ==13081== Releasing lock... [2025-02-01 00:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:06:28] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:07:05 [end_date_ymd] => 2025-02-01 00:07:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:07:05' and `end` < '2025-02-01 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-01 00:07:21] Production.INFO: count ==266 [2025-02-01 00:07:21] Production.ERROR: pbx CDR StartTime 2025-01-31 21:07:05 - End Time 2025-02-01 00:07:05 [2025-02-01 00:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374560', 'tblTempUsageDetail_20' ) start [2025-02-01 00:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374560', 'tblTempUsageDetail_20' ) end [2025-02-01 00:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374560', 'tblTempVendorCDR_20' ) start [2025-02-01 00:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374560', 'tblTempVendorCDR_20' ) end [2025-02-01 00:07:21] Production.INFO: ProcessCDR(1,14374560,1,1,2) [2025-02-01 00:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374560', 'tblTempUsageDetail_20' ) start [2025-02-01 00:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374560', 'tblTempUsageDetail_20' ) end [2025-02-01 00:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:07:24] Production.INFO: ==13192== Releasing lock... [2025-02-01 00:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:07:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 00:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:08:04 [end_date_ymd] => 2025-02-01 00:08:04 [RateCDR] => 1 ) [2025-02-01 00: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-01-31 21:08:04' and `end` < '2025-02-01 00: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-01 00:08:17] Production.INFO: count ==265 [2025-02-01 00:08:17] Production.ERROR: pbx CDR StartTime 2025-01-31 21:08:04 - End Time 2025-02-01 00:08:04 [2025-02-01 00:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374565', 'tblTempUsageDetail_20' ) start [2025-02-01 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374565', 'tblTempUsageDetail_20' ) end [2025-02-01 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374565', 'tblTempVendorCDR_20' ) start [2025-02-01 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374565', 'tblTempVendorCDR_20' ) end [2025-02-01 00:08:17] Production.INFO: ProcessCDR(1,14374565,1,1,2) [2025-02-01 00:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374565', 'tblTempUsageDetail_20' ) start [2025-02-01 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374565', 'tblTempUsageDetail_20' ) end [2025-02-01 00:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:08:20] Production.INFO: ==13266== Releasing lock... [2025-02-01 00:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:08:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:09:05 [end_date_ymd] => 2025-02-01 00:09:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:09:05' and `end` < '2025-02-01 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-01 00:09:27] Production.INFO: count ==265 [2025-02-01 00:09:28] Production.ERROR: pbx CDR StartTime 2025-01-31 21:09:05 - End Time 2025-02-01 00:09:05 [2025-02-01 00:09:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374570', 'tblTempUsageDetail_20' ) start [2025-02-01 00:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374570', 'tblTempUsageDetail_20' ) end [2025-02-01 00:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374570', 'tblTempVendorCDR_20' ) start [2025-02-01 00:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374570', 'tblTempVendorCDR_20' ) end [2025-02-01 00:09:28] Production.INFO: ProcessCDR(1,14374570,1,1,2) [2025-02-01 00:09:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:09:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:09:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:09:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374570', 'tblTempUsageDetail_20' ) start [2025-02-01 00:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374570', 'tblTempUsageDetail_20' ) end [2025-02-01 00:09:32] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:09:32] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:09:32] Production.INFO: ==13335== Releasing lock... [2025-02-01 00:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:09:32] Production.INFO: 31 MB #Memory Used# [2025-02-01 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:10:06 [end_date_ymd] => 2025-02-01 00:10:06 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:10:06' and `end` < '2025-02-01 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-01 00:10:20] Production.INFO: count ==274 [2025-02-01 00:10:20] Production.ERROR: pbx CDR StartTime 2025-01-31 21:10:06 - End Time 2025-02-01 00:10:06 [2025-02-01 00:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374576', 'tblTempUsageDetail_20' ) start [2025-02-01 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374576', 'tblTempUsageDetail_20' ) end [2025-02-01 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374576', 'tblTempVendorCDR_20' ) start [2025-02-01 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374576', 'tblTempVendorCDR_20' ) end [2025-02-01 00:10:20] Production.INFO: ProcessCDR(1,14374576,1,1,2) [2025-02-01 00:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374576', 'tblTempUsageDetail_20' ) start [2025-02-01 00:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374576', 'tblTempUsageDetail_20' ) end [2025-02-01 00:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:10:25] Production.INFO: ==13408== Releasing lock... [2025-02-01 00:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:10:25] Production.INFO: 31 MB #Memory Used# [2025-02-01 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:11:05 [end_date_ymd] => 2025-02-01 00:11:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:11:05' and `end` < '2025-02-01 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-01 00:11:42] Production.INFO: count ==308 [2025-02-01 00:11:42] Production.ERROR: pbx CDR StartTime 2025-01-31 21:11:05 - End Time 2025-02-01 00:11:05 [2025-02-01 00:11:42] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:11:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374581', 'tblTempUsageDetail_20' ) start [2025-02-01 00:11:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374581', 'tblTempUsageDetail_20' ) end [2025-02-01 00:11:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374581', 'tblTempVendorCDR_20' ) start [2025-02-01 00:11:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374581', 'tblTempVendorCDR_20' ) end [2025-02-01 00:11:42] Production.INFO: ProcessCDR(1,14374581,1,1,2) [2025-02-01 00:11:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:11:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:11:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:11:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:11:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374581', 'tblTempUsageDetail_20' ) start [2025-02-01 00:11:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374581', 'tblTempUsageDetail_20' ) end [2025-02-01 00:11:45] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:11:45] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:11:45] Production.INFO: ==13481== Releasing lock... [2025-02-01 00:11:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:11:45] Production.INFO: 31 MB #Memory Used# [2025-02-01 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:12:06 [end_date_ymd] => 2025-02-01 00:12:06 [RateCDR] => 1 ) [2025-02-01 00:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 21:12:06' and `end` < '2025-02-01 00:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 00:12:26] Production.INFO: count ==308 [2025-02-01 00:12:26] Production.ERROR: pbx CDR StartTime 2025-01-31 21:12:06 - End Time 2025-02-01 00:12:06 [2025-02-01 00:12:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374586', 'tblTempUsageDetail_20' ) start [2025-02-01 00:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374586', 'tblTempUsageDetail_20' ) end [2025-02-01 00:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374586', 'tblTempVendorCDR_20' ) start [2025-02-01 00:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374586', 'tblTempVendorCDR_20' ) end [2025-02-01 00:12:26] Production.INFO: ProcessCDR(1,14374586,1,1,2) [2025-02-01 00:12:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374586', 'tblTempUsageDetail_20' ) start [2025-02-01 00:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374586', 'tblTempUsageDetail_20' ) end [2025-02-01 00:12:29] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:12:29] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:12:29] Production.INFO: ==13553== Releasing lock... [2025-02-01 00:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:12:29] Production.INFO: 31 MB #Memory Used# [2025-02-01 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:13:05 [end_date_ymd] => 2025-02-01 00:13:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:13:05' and `end` < '2025-02-01 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-01 00:13:22] Production.INFO: count ==305 [2025-02-01 00:13:22] Production.ERROR: pbx CDR StartTime 2025-01-31 21:13:05 - End Time 2025-02-01 00:13:05 [2025-02-01 00:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374591', 'tblTempUsageDetail_20' ) start [2025-02-01 00:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374591', 'tblTempUsageDetail_20' ) end [2025-02-01 00:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374591', 'tblTempVendorCDR_20' ) start [2025-02-01 00:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374591', 'tblTempVendorCDR_20' ) end [2025-02-01 00:13:22] Production.INFO: ProcessCDR(1,14374591,1,1,2) [2025-02-01 00:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374591', 'tblTempUsageDetail_20' ) start [2025-02-01 00:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374591', 'tblTempUsageDetail_20' ) end [2025-02-01 00:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:13:25] Production.INFO: ==13624== Releasing lock... [2025-02-01 00:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:13:25] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:14:05 [end_date_ymd] => 2025-02-01 00:14:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:14:05' and `end` < '2025-02-01 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-01 00:14:19] Production.INFO: count ==305 [2025-02-01 00:14:19] Production.ERROR: pbx CDR StartTime 2025-01-31 21:14:05 - End Time 2025-02-01 00:14:05 [2025-02-01 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374596', 'tblTempUsageDetail_20' ) start [2025-02-01 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374596', 'tblTempUsageDetail_20' ) end [2025-02-01 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374596', 'tblTempVendorCDR_20' ) start [2025-02-01 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374596', 'tblTempVendorCDR_20' ) end [2025-02-01 00:14:19] Production.INFO: ProcessCDR(1,14374596,1,1,2) [2025-02-01 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374596', 'tblTempUsageDetail_20' ) start [2025-02-01 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374596', 'tblTempUsageDetail_20' ) end [2025-02-01 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:14:22] Production.INFO: ==13693== Releasing lock... [2025-02-01 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:14:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:15:05 [end_date_ymd] => 2025-02-01 00:15:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:15:05' and `end` < '2025-02-01 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-01 00:15:18] Production.INFO: count ==305 [2025-02-01 00:15:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:15:05 - End Time 2025-02-01 00:15:05 [2025-02-01 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374601', 'tblTempUsageDetail_20' ) start [2025-02-01 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374601', 'tblTempUsageDetail_20' ) end [2025-02-01 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374601', 'tblTempVendorCDR_20' ) start [2025-02-01 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374601', 'tblTempVendorCDR_20' ) end [2025-02-01 00:15:18] Production.INFO: ProcessCDR(1,14374601,1,1,2) [2025-02-01 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374601', 'tblTempUsageDetail_20' ) start [2025-02-01 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374601', 'tblTempUsageDetail_20' ) end [2025-02-01 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:15:21] Production.INFO: ==13766== Releasing lock... [2025-02-01 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:15:21] Production.INFO: 31 MB #Memory Used# [2025-02-01 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:16:05 [end_date_ymd] => 2025-02-01 00:16:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:16:05' and `end` < '2025-02-01 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-01 00:16:18] Production.INFO: count ==309 [2025-02-01 00:16:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:16:05 - End Time 2025-02-01 00:16:05 [2025-02-01 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374606', 'tblTempUsageDetail_20' ) start [2025-02-01 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374606', 'tblTempUsageDetail_20' ) end [2025-02-01 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374606', 'tblTempVendorCDR_20' ) start [2025-02-01 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374606', 'tblTempVendorCDR_20' ) end [2025-02-01 00:16:18] Production.INFO: ProcessCDR(1,14374606,1,1,2) [2025-02-01 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374606', 'tblTempUsageDetail_20' ) start [2025-02-01 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374606', 'tblTempUsageDetail_20' ) end [2025-02-01 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:16:21] Production.INFO: ==13836== Releasing lock... [2025-02-01 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:16:21] Production.INFO: 31 MB #Memory Used# [2025-02-01 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:17:05 [end_date_ymd] => 2025-02-01 00:17:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:17:05' and `end` < '2025-02-01 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-01 00:17:18] Production.INFO: count ==303 [2025-02-01 00:17:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:17:05 - End Time 2025-02-01 00:17:05 [2025-02-01 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374611', 'tblTempUsageDetail_20' ) start [2025-02-01 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374611', 'tblTempUsageDetail_20' ) end [2025-02-01 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374611', 'tblTempVendorCDR_20' ) start [2025-02-01 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374611', 'tblTempVendorCDR_20' ) end [2025-02-01 00:17:18] Production.INFO: ProcessCDR(1,14374611,1,1,2) [2025-02-01 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374611', 'tblTempUsageDetail_20' ) start [2025-02-01 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374611', 'tblTempUsageDetail_20' ) end [2025-02-01 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:17:22] Production.INFO: ==13912== Releasing lock... [2025-02-01 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:17:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:18:05 [end_date_ymd] => 2025-02-01 00:18:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:18:05' and `end` < '2025-02-01 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-01 00:18:18] Production.INFO: count ==302 [2025-02-01 00:18:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:18:05 - End Time 2025-02-01 00:18:05 [2025-02-01 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374616', 'tblTempUsageDetail_20' ) start [2025-02-01 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374616', 'tblTempUsageDetail_20' ) end [2025-02-01 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374616', 'tblTempVendorCDR_20' ) start [2025-02-01 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374616', 'tblTempVendorCDR_20' ) end [2025-02-01 00:18:18] Production.INFO: ProcessCDR(1,14374616,1,1,2) [2025-02-01 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374616', 'tblTempUsageDetail_20' ) start [2025-02-01 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374616', 'tblTempUsageDetail_20' ) end [2025-02-01 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:18:21] Production.INFO: ==13995== Releasing lock... [2025-02-01 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:18:21] Production.INFO: 31 MB #Memory Used# [2025-02-01 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:19:05 [end_date_ymd] => 2025-02-01 00:19:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:19:05' and `end` < '2025-02-01 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-01 00:19:19] Production.INFO: count ==300 [2025-02-01 00:19:19] Production.ERROR: pbx CDR StartTime 2025-01-31 21:19:05 - End Time 2025-02-01 00:19:05 [2025-02-01 00:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374621', 'tblTempUsageDetail_20' ) start [2025-02-01 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374621', 'tblTempUsageDetail_20' ) end [2025-02-01 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374621', 'tblTempVendorCDR_20' ) start [2025-02-01 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374621', 'tblTempVendorCDR_20' ) end [2025-02-01 00:19:19] Production.INFO: ProcessCDR(1,14374621,1,1,2) [2025-02-01 00:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374621', 'tblTempUsageDetail_20' ) start [2025-02-01 00:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374621', 'tblTempUsageDetail_20' ) end [2025-02-01 00:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:19:24] Production.INFO: ==14066== Releasing lock... [2025-02-01 00:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:19:24] Production.INFO: 31 MB #Memory Used# [2025-02-01 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:20:06 [end_date_ymd] => 2025-02-01 00:20:06 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:20:06' and `end` < '2025-02-01 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-01 00:20:19] Production.INFO: count ==311 [2025-02-01 00:20:19] Production.ERROR: pbx CDR StartTime 2025-01-31 21:20:06 - End Time 2025-02-01 00:20:06 [2025-02-01 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374627', 'tblTempUsageDetail_20' ) start [2025-02-01 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374627', 'tblTempUsageDetail_20' ) end [2025-02-01 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374627', 'tblTempVendorCDR_20' ) start [2025-02-01 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374627', 'tblTempVendorCDR_20' ) end [2025-02-01 00:20:19] Production.INFO: ProcessCDR(1,14374627,1,1,2) [2025-02-01 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374627', 'tblTempUsageDetail_20' ) start [2025-02-01 00:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374627', 'tblTempUsageDetail_20' ) end [2025-02-01 00:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:20:24] Production.INFO: ==14141== Releasing lock... [2025-02-01 00:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:20:24] Production.INFO: 31 MB #Memory Used# [2025-02-01 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:21:05 [end_date_ymd] => 2025-02-01 00:21:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:21:05' and `end` < '2025-02-01 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-01 00:21:18] Production.INFO: count ==333 [2025-02-01 00:21:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:21:05 - End Time 2025-02-01 00:21:05 [2025-02-01 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374632', 'tblTempUsageDetail_20' ) start [2025-02-01 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374632', 'tblTempUsageDetail_20' ) end [2025-02-01 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374632', 'tblTempVendorCDR_20' ) start [2025-02-01 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374632', 'tblTempVendorCDR_20' ) end [2025-02-01 00:21:18] Production.INFO: ProcessCDR(1,14374632,1,1,2) [2025-02-01 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374632', 'tblTempUsageDetail_20' ) start [2025-02-01 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374632', 'tblTempUsageDetail_20' ) end [2025-02-01 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:21:21] Production.INFO: ==14215== Releasing lock... [2025-02-01 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:21:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-01 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:22:05 [end_date_ymd] => 2025-02-01 00:22:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:22:05' and `end` < '2025-02-01 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-01 00:22:21] Production.INFO: count ==334 [2025-02-01 00:22:21] Production.ERROR: pbx CDR StartTime 2025-01-31 21:22:05 - End Time 2025-02-01 00:22:05 [2025-02-01 00:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374637', 'tblTempUsageDetail_20' ) start [2025-02-01 00:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374637', 'tblTempUsageDetail_20' ) end [2025-02-01 00:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374637', 'tblTempVendorCDR_20' ) start [2025-02-01 00:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374637', 'tblTempVendorCDR_20' ) end [2025-02-01 00:22:21] Production.INFO: ProcessCDR(1,14374637,1,1,2) [2025-02-01 00:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374637', 'tblTempUsageDetail_20' ) start [2025-02-01 00:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374637', 'tblTempUsageDetail_20' ) end [2025-02-01 00:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:22:24] Production.INFO: ==14291== Releasing lock... [2025-02-01 00:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:22:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-01 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:23:05 [end_date_ymd] => 2025-02-01 00:23:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:23:05' and `end` < '2025-02-01 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-01 00:23:17] Production.INFO: count ==332 [2025-02-01 00:23:17] Production.ERROR: pbx CDR StartTime 2025-01-31 21:23:05 - End Time 2025-02-01 00:23:05 [2025-02-01 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374642', 'tblTempUsageDetail_20' ) start [2025-02-01 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374642', 'tblTempUsageDetail_20' ) end [2025-02-01 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374642', 'tblTempVendorCDR_20' ) start [2025-02-01 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374642', 'tblTempVendorCDR_20' ) end [2025-02-01 00:23:17] Production.INFO: ProcessCDR(1,14374642,1,1,2) [2025-02-01 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374642', 'tblTempUsageDetail_20' ) start [2025-02-01 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374642', 'tblTempUsageDetail_20' ) end [2025-02-01 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:23:21] Production.INFO: ==14404== Releasing lock... [2025-02-01 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:23:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:24:05 [end_date_ymd] => 2025-02-01 00:24:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:24:05' and `end` < '2025-02-01 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-01 00:24:18] Production.INFO: count ==332 [2025-02-01 00:24:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:24:05 - End Time 2025-02-01 00:24:05 [2025-02-01 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374647', 'tblTempUsageDetail_20' ) start [2025-02-01 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374647', 'tblTempUsageDetail_20' ) end [2025-02-01 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374647', 'tblTempVendorCDR_20' ) start [2025-02-01 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374647', 'tblTempVendorCDR_20' ) end [2025-02-01 00:24:18] Production.INFO: ProcessCDR(1,14374647,1,1,2) [2025-02-01 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374647', 'tblTempUsageDetail_20' ) start [2025-02-01 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374647', 'tblTempUsageDetail_20' ) end [2025-02-01 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:24:21] Production.INFO: ==14476== Releasing lock... [2025-02-01 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:24:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:25:04 [end_date_ymd] => 2025-02-01 00:25:04 [RateCDR] => 1 ) [2025-02-01 00:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 21:25:04' and `end` < '2025-02-01 00:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 00:25:17] Production.INFO: count ==329 [2025-02-01 00:25:17] Production.ERROR: pbx CDR StartTime 2025-01-31 21:25:04 - End Time 2025-02-01 00:25:04 [2025-02-01 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374648', 'tblTempUsageDetail_20' ) start [2025-02-01 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374648', 'tblTempUsageDetail_20' ) end [2025-02-01 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374648', 'tblTempVendorCDR_20' ) start [2025-02-01 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374648', 'tblTempVendorCDR_20' ) end [2025-02-01 00:25:17] Production.INFO: ProcessCDR(1,14374648,1,1,2) [2025-02-01 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374648', 'tblTempUsageDetail_20' ) start [2025-02-01 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374648', 'tblTempUsageDetail_20' ) end [2025-02-01 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:25:22] Production.INFO: ==14547== Releasing lock... [2025-02-01 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:25:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-01 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:26:05 [end_date_ymd] => 2025-02-01 00:26:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:26:05' and `end` < '2025-02-01 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-01 00:26:18] Production.INFO: count ==325 [2025-02-01 00:26:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:26:05 - End Time 2025-02-01 00:26:05 [2025-02-01 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374657', 'tblTempUsageDetail_20' ) start [2025-02-01 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374657', 'tblTempUsageDetail_20' ) end [2025-02-01 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374657', 'tblTempVendorCDR_20' ) start [2025-02-01 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374657', 'tblTempVendorCDR_20' ) end [2025-02-01 00:26:18] Production.INFO: ProcessCDR(1,14374657,1,1,2) [2025-02-01 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374657', 'tblTempUsageDetail_20' ) start [2025-02-01 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374657', 'tblTempUsageDetail_20' ) end [2025-02-01 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:26:21] Production.INFO: ==14619== Releasing lock... [2025-02-01 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:26:21] Production.INFO: 31 MB #Memory Used# [2025-02-01 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:27:05 [end_date_ymd] => 2025-02-01 00:27:05 [RateCDR] => 1 ) [2025-02-01 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 21:27:05' and `end` < '2025-02-01 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 00:27:17] Production.INFO: count ==321 [2025-02-01 00:27:17] Production.ERROR: pbx CDR StartTime 2025-01-31 21:27:05 - End Time 2025-02-01 00:27:05 [2025-02-01 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374662', 'tblTempUsageDetail_20' ) start [2025-02-01 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374662', 'tblTempUsageDetail_20' ) end [2025-02-01 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374662', 'tblTempVendorCDR_20' ) start [2025-02-01 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374662', 'tblTempVendorCDR_20' ) end [2025-02-01 00:27:17] Production.INFO: ProcessCDR(1,14374662,1,1,2) [2025-02-01 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374662', 'tblTempUsageDetail_20' ) start [2025-02-01 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374662', 'tblTempUsageDetail_20' ) end [2025-02-01 00:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:27:22] Production.INFO: ==14689== Releasing lock... [2025-02-01 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:27:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:28:05 [end_date_ymd] => 2025-02-01 00:28:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:28:05' and `end` < '2025-02-01 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-01 00:28:18] Production.INFO: count ==317 [2025-02-01 00:28:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:28:05 - End Time 2025-02-01 00:28:05 [2025-02-01 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374667', 'tblTempUsageDetail_20' ) start [2025-02-01 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374667', 'tblTempUsageDetail_20' ) end [2025-02-01 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374667', 'tblTempVendorCDR_20' ) start [2025-02-01 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374667', 'tblTempVendorCDR_20' ) end [2025-02-01 00:28:18] Production.INFO: ProcessCDR(1,14374667,1,1,2) [2025-02-01 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374667', 'tblTempUsageDetail_20' ) start [2025-02-01 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374667', 'tblTempUsageDetail_20' ) end [2025-02-01 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:28:21] Production.INFO: ==14759== Releasing lock... [2025-02-01 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:28:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:29:05 [end_date_ymd] => 2025-02-01 00:29:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:29:05' and `end` < '2025-02-01 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-01 00:29:18] Production.INFO: count ==318 [2025-02-01 00:29:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:29:05 - End Time 2025-02-01 00:29:05 [2025-02-01 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374672', 'tblTempUsageDetail_20' ) start [2025-02-01 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374672', 'tblTempUsageDetail_20' ) end [2025-02-01 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374672', 'tblTempVendorCDR_20' ) start [2025-02-01 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374672', 'tblTempVendorCDR_20' ) end [2025-02-01 00:29:18] Production.INFO: ProcessCDR(1,14374672,1,1,2) [2025-02-01 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374672', 'tblTempUsageDetail_20' ) start [2025-02-01 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374672', 'tblTempUsageDetail_20' ) end [2025-02-01 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:29:21] Production.INFO: ==14829== Releasing lock... [2025-02-01 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:29:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:30:06 [end_date_ymd] => 2025-02-01 00:30:06 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:30:06' and `end` < '2025-02-01 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-01 00:30:18] Production.INFO: count ==328 [2025-02-01 00:30:19] Production.ERROR: pbx CDR StartTime 2025-01-31 21:30:06 - End Time 2025-02-01 00:30:06 [2025-02-01 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374678', 'tblTempUsageDetail_20' ) start [2025-02-01 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374678', 'tblTempUsageDetail_20' ) end [2025-02-01 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374678', 'tblTempVendorCDR_20' ) start [2025-02-01 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374678', 'tblTempVendorCDR_20' ) end [2025-02-01 00:30:19] Production.INFO: ProcessCDR(1,14374678,1,1,2) [2025-02-01 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374678', 'tblTempUsageDetail_20' ) start [2025-02-01 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374678', 'tblTempUsageDetail_20' ) end [2025-02-01 00:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:30:23] Production.INFO: ==14902== Releasing lock... [2025-02-01 00:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:30:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:31:05 [end_date_ymd] => 2025-02-01 00:31:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:31:05' and `end` < '2025-02-01 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-01 00:31:18] Production.INFO: count ==338 [2025-02-01 00:31:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:31:05 - End Time 2025-02-01 00:31:05 [2025-02-01 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374683', 'tblTempUsageDetail_20' ) start [2025-02-01 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374683', 'tblTempUsageDetail_20' ) end [2025-02-01 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374683', 'tblTempVendorCDR_20' ) start [2025-02-01 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374683', 'tblTempVendorCDR_20' ) end [2025-02-01 00:31:18] Production.INFO: ProcessCDR(1,14374683,1,1,2) [2025-02-01 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374683', 'tblTempUsageDetail_20' ) start [2025-02-01 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374683', 'tblTempUsageDetail_20' ) end [2025-02-01 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:31:21] Production.INFO: ==14977== Releasing lock... [2025-02-01 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:31:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-01 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:32:05 [end_date_ymd] => 2025-02-01 00:32:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:32:05' and `end` < '2025-02-01 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-01 00:32:19] Production.INFO: count ==337 [2025-02-01 00:32:19] Production.ERROR: pbx CDR StartTime 2025-01-31 21:32:05 - End Time 2025-02-01 00:32:05 [2025-02-01 00:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374688', 'tblTempUsageDetail_20' ) start [2025-02-01 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374688', 'tblTempUsageDetail_20' ) end [2025-02-01 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374688', 'tblTempVendorCDR_20' ) start [2025-02-01 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374688', 'tblTempVendorCDR_20' ) end [2025-02-01 00:32:19] Production.INFO: ProcessCDR(1,14374688,1,1,2) [2025-02-01 00:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374688', 'tblTempUsageDetail_20' ) start [2025-02-01 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374688', 'tblTempUsageDetail_20' ) end [2025-02-01 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:32:22] Production.INFO: ==15048== Releasing lock... [2025-02-01 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:32:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:33:05 [end_date_ymd] => 2025-02-01 00:33:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:33:05' and `end` < '2025-02-01 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-01 00:33:19] Production.INFO: count ==337 [2025-02-01 00:33:19] Production.ERROR: pbx CDR StartTime 2025-01-31 21:33:05 - End Time 2025-02-01 00:33:05 [2025-02-01 00:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374693', 'tblTempUsageDetail_20' ) start [2025-02-01 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374693', 'tblTempUsageDetail_20' ) end [2025-02-01 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374693', 'tblTempVendorCDR_20' ) start [2025-02-01 00:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374693', 'tblTempVendorCDR_20' ) end [2025-02-01 00:33:19] Production.INFO: ProcessCDR(1,14374693,1,1,2) [2025-02-01 00:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374693', 'tblTempUsageDetail_20' ) start [2025-02-01 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374693', 'tblTempUsageDetail_20' ) end [2025-02-01 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:33:22] Production.INFO: ==15118== Releasing lock... [2025-02-01 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:33:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:34:05 [end_date_ymd] => 2025-02-01 00:34:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:34:05' and `end` < '2025-02-01 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-01 00:34:19] Production.INFO: count ==337 [2025-02-01 00:34:19] Production.ERROR: pbx CDR StartTime 2025-01-31 21:34:05 - End Time 2025-02-01 00:34:05 [2025-02-01 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374698', 'tblTempUsageDetail_20' ) start [2025-02-01 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374698', 'tblTempUsageDetail_20' ) end [2025-02-01 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374698', 'tblTempVendorCDR_20' ) start [2025-02-01 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374698', 'tblTempVendorCDR_20' ) end [2025-02-01 00:34:19] Production.INFO: ProcessCDR(1,14374698,1,1,2) [2025-02-01 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374698', 'tblTempUsageDetail_20' ) start [2025-02-01 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374698', 'tblTempUsageDetail_20' ) end [2025-02-01 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:34:22] Production.INFO: ==15189== Releasing lock... [2025-02-01 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:34:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:35:05 [end_date_ymd] => 2025-02-01 00:35:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:35:05' and `end` < '2025-02-01 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-01 00:35:18] Production.INFO: count ==340 [2025-02-01 00:35:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:35:05 - End Time 2025-02-01 00:35:05 [2025-02-01 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374703', 'tblTempUsageDetail_20' ) start [2025-02-01 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374703', 'tblTempUsageDetail_20' ) end [2025-02-01 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374703', 'tblTempVendorCDR_20' ) start [2025-02-01 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374703', 'tblTempVendorCDR_20' ) end [2025-02-01 00:35:18] Production.INFO: ProcessCDR(1,14374703,1,1,2) [2025-02-01 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374703', 'tblTempUsageDetail_20' ) start [2025-02-01 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374703', 'tblTempUsageDetail_20' ) end [2025-02-01 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:35:21] Production.INFO: ==15261== Releasing lock... [2025-02-01 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:35:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:36:05 [end_date_ymd] => 2025-02-01 00:36:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:36:05' and `end` < '2025-02-01 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-01 00:36:18] Production.INFO: count ==341 [2025-02-01 00:36:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:36:05 - End Time 2025-02-01 00:36:05 [2025-02-01 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374708', 'tblTempUsageDetail_20' ) start [2025-02-01 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374708', 'tblTempUsageDetail_20' ) end [2025-02-01 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374708', 'tblTempVendorCDR_20' ) start [2025-02-01 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374708', 'tblTempVendorCDR_20' ) end [2025-02-01 00:36:18] Production.INFO: ProcessCDR(1,14374708,1,1,2) [2025-02-01 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374708', 'tblTempUsageDetail_20' ) start [2025-02-01 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374708', 'tblTempUsageDetail_20' ) end [2025-02-01 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:36:21] Production.INFO: ==15341== Releasing lock... [2025-02-01 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:36:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:37:05 [end_date_ymd] => 2025-02-01 00:37:05 [RateCDR] => 1 ) [2025-02-01 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 21:37:05' and `end` < '2025-02-01 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 00:37:18] Production.INFO: count ==341 [2025-02-01 00:37:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:37:05 - End Time 2025-02-01 00:37:05 [2025-02-01 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374713', 'tblTempUsageDetail_20' ) start [2025-02-01 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374713', 'tblTempUsageDetail_20' ) end [2025-02-01 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374713', 'tblTempVendorCDR_20' ) start [2025-02-01 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374713', 'tblTempVendorCDR_20' ) end [2025-02-01 00:37:18] Production.INFO: ProcessCDR(1,14374713,1,1,2) [2025-02-01 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374713', 'tblTempUsageDetail_20' ) start [2025-02-01 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374713', 'tblTempUsageDetail_20' ) end [2025-02-01 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:37:22] Production.INFO: ==15412== Releasing lock... [2025-02-01 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:37:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:38:05 [end_date_ymd] => 2025-02-01 00:38:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:38:05' and `end` < '2025-02-01 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-01 00:38:18] Production.INFO: count ==342 [2025-02-01 00:38:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:38:05 - End Time 2025-02-01 00:38:05 [2025-02-01 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374718', 'tblTempUsageDetail_20' ) start [2025-02-01 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374718', 'tblTempUsageDetail_20' ) end [2025-02-01 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374718', 'tblTempVendorCDR_20' ) start [2025-02-01 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374718', 'tblTempVendorCDR_20' ) end [2025-02-01 00:38:18] Production.INFO: ProcessCDR(1,14374718,1,1,2) [2025-02-01 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374718', 'tblTempUsageDetail_20' ) start [2025-02-01 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374718', 'tblTempUsageDetail_20' ) end [2025-02-01 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:38:22] Production.INFO: ==15523== Releasing lock... [2025-02-01 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:38:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:39:05 [end_date_ymd] => 2025-02-01 00:39:05 [RateCDR] => 1 ) [2025-02-01 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 21:39:05' and `end` < '2025-02-01 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 00:39:18] Production.INFO: count ==343 [2025-02-01 00:39:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:39:05 - End Time 2025-02-01 00:39:05 [2025-02-01 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374723', 'tblTempUsageDetail_20' ) start [2025-02-01 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374723', 'tblTempUsageDetail_20' ) end [2025-02-01 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374723', 'tblTempVendorCDR_20' ) start [2025-02-01 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374723', 'tblTempVendorCDR_20' ) end [2025-02-01 00:39:18] Production.INFO: ProcessCDR(1,14374723,1,1,2) [2025-02-01 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374723', 'tblTempUsageDetail_20' ) start [2025-02-01 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374723', 'tblTempUsageDetail_20' ) end [2025-02-01 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:39:22] Production.INFO: ==15592== Releasing lock... [2025-02-01 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:39:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:40:06 [end_date_ymd] => 2025-02-01 00:40:06 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:40:06' and `end` < '2025-02-01 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-01 00:40:18] Production.INFO: count ==357 [2025-02-01 00:40:19] Production.ERROR: pbx CDR StartTime 2025-01-31 21:40:06 - End Time 2025-02-01 00:40:06 [2025-02-01 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374729', 'tblTempUsageDetail_20' ) start [2025-02-01 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374729', 'tblTempUsageDetail_20' ) end [2025-02-01 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374729', 'tblTempVendorCDR_20' ) start [2025-02-01 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374729', 'tblTempVendorCDR_20' ) end [2025-02-01 00:40:19] Production.INFO: ProcessCDR(1,14374729,1,1,2) [2025-02-01 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374729', 'tblTempUsageDetail_20' ) start [2025-02-01 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374729', 'tblTempUsageDetail_20' ) end [2025-02-01 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:40:22] Production.INFO: ==15667== Releasing lock... [2025-02-01 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:40:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 00:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:41:06 [end_date_ymd] => 2025-02-01 00:41:06 [RateCDR] => 1 ) [2025-02-01 00:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 21:41:06' and `end` < '2025-02-01 00:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 00:41:18] Production.INFO: count ==388 [2025-02-01 00:41:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:41:06 - End Time 2025-02-01 00:41:06 [2025-02-01 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374734', 'tblTempUsageDetail_20' ) start [2025-02-01 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374734', 'tblTempUsageDetail_20' ) end [2025-02-01 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374734', 'tblTempVendorCDR_20' ) start [2025-02-01 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374734', 'tblTempVendorCDR_20' ) end [2025-02-01 00:41:19] Production.INFO: ProcessCDR(1,14374734,1,1,2) [2025-02-01 00:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374734', 'tblTempUsageDetail_20' ) start [2025-02-01 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374734', 'tblTempUsageDetail_20' ) end [2025-02-01 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:41:22] Production.INFO: ==15743== Releasing lock... [2025-02-01 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:41:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:42:05 [end_date_ymd] => 2025-02-01 00:42:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:42:05' and `end` < '2025-02-01 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-01 00:42:19] Production.INFO: count ==389 [2025-02-01 00:42:19] Production.ERROR: pbx CDR StartTime 2025-01-31 21:42:05 - End Time 2025-02-01 00:42:05 [2025-02-01 00:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374739', 'tblTempUsageDetail_20' ) start [2025-02-01 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374739', 'tblTempUsageDetail_20' ) end [2025-02-01 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374739', 'tblTempVendorCDR_20' ) start [2025-02-01 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374739', 'tblTempVendorCDR_20' ) end [2025-02-01 00:42:19] Production.INFO: ProcessCDR(1,14374739,1,1,2) [2025-02-01 00:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374739', 'tblTempUsageDetail_20' ) start [2025-02-01 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374739', 'tblTempUsageDetail_20' ) end [2025-02-01 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:42:22] Production.INFO: ==15811== Releasing lock... [2025-02-01 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:42:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:43:05 [end_date_ymd] => 2025-02-01 00:43:05 [RateCDR] => 1 ) [2025-02-01 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 21:43:05' and `end` < '2025-02-01 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 00:43:18] Production.INFO: count ==394 [2025-02-01 00:43:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:43:05 - End Time 2025-02-01 00:43:05 [2025-02-01 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374744', 'tblTempUsageDetail_20' ) start [2025-02-01 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374744', 'tblTempUsageDetail_20' ) end [2025-02-01 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374744', 'tblTempVendorCDR_20' ) start [2025-02-01 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374744', 'tblTempVendorCDR_20' ) end [2025-02-01 00:43:18] Production.INFO: ProcessCDR(1,14374744,1,1,2) [2025-02-01 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374744', 'tblTempUsageDetail_20' ) start [2025-02-01 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374744', 'tblTempUsageDetail_20' ) end [2025-02-01 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:43:22] Production.INFO: ==15882== Releasing lock... [2025-02-01 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:43:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:44:05 [end_date_ymd] => 2025-02-01 00:44:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:44:05' and `end` < '2025-02-01 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-01 00:44:19] Production.INFO: count ==394 [2025-02-01 00:44:19] Production.ERROR: pbx CDR StartTime 2025-01-31 21:44:05 - End Time 2025-02-01 00:44:05 [2025-02-01 00:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374749', 'tblTempUsageDetail_20' ) start [2025-02-01 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374749', 'tblTempUsageDetail_20' ) end [2025-02-01 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374749', 'tblTempVendorCDR_20' ) start [2025-02-01 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374749', 'tblTempVendorCDR_20' ) end [2025-02-01 00:44:19] Production.INFO: ProcessCDR(1,14374749,1,1,2) [2025-02-01 00:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374749', 'tblTempUsageDetail_20' ) start [2025-02-01 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374749', 'tblTempUsageDetail_20' ) end [2025-02-01 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:44:22] Production.INFO: ==15951== Releasing lock... [2025-02-01 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:44:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:45:05 [end_date_ymd] => 2025-02-01 00:45:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:45:05' and `end` < '2025-02-01 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-01 00:45:18] Production.INFO: count ==394 [2025-02-01 00:45:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:45:05 - End Time 2025-02-01 00:45:05 [2025-02-01 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374754', 'tblTempUsageDetail_20' ) start [2025-02-01 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374754', 'tblTempUsageDetail_20' ) end [2025-02-01 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374754', 'tblTempVendorCDR_20' ) start [2025-02-01 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374754', 'tblTempVendorCDR_20' ) end [2025-02-01 00:45:18] Production.INFO: ProcessCDR(1,14374754,1,1,2) [2025-02-01 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374754', 'tblTempUsageDetail_20' ) start [2025-02-01 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374754', 'tblTempUsageDetail_20' ) end [2025-02-01 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:45:21] Production.INFO: ==16023== Releasing lock... [2025-02-01 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:45:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:46:05 [end_date_ymd] => 2025-02-01 00:46:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:46:05' and `end` < '2025-02-01 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-01 00:46:19] Production.INFO: count ==394 [2025-02-01 00:46:19] Production.ERROR: pbx CDR StartTime 2025-01-31 21:46:05 - End Time 2025-02-01 00:46:05 [2025-02-01 00:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374759', 'tblTempUsageDetail_20' ) start [2025-02-01 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374759', 'tblTempUsageDetail_20' ) end [2025-02-01 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374759', 'tblTempVendorCDR_20' ) start [2025-02-01 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374759', 'tblTempVendorCDR_20' ) end [2025-02-01 00:46:19] Production.INFO: ProcessCDR(1,14374759,1,1,2) [2025-02-01 00:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374759', 'tblTempUsageDetail_20' ) start [2025-02-01 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374759', 'tblTempUsageDetail_20' ) end [2025-02-01 00:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:46:23] Production.INFO: ==16093== Releasing lock... [2025-02-01 00:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:46:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:47:05 [end_date_ymd] => 2025-02-01 00:47:05 [RateCDR] => 1 ) [2025-02-01 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 21:47:05' and `end` < '2025-02-01 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 00:47:18] Production.INFO: count ==398 [2025-02-01 00:47:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:47:05 - End Time 2025-02-01 00:47:05 [2025-02-01 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374764', 'tblTempUsageDetail_20' ) start [2025-02-01 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374764', 'tblTempUsageDetail_20' ) end [2025-02-01 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374764', 'tblTempVendorCDR_20' ) start [2025-02-01 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374764', 'tblTempVendorCDR_20' ) end [2025-02-01 00:47:18] Production.INFO: ProcessCDR(1,14374764,1,1,2) [2025-02-01 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374764', 'tblTempUsageDetail_20' ) start [2025-02-01 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374764', 'tblTempUsageDetail_20' ) end [2025-02-01 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:47:21] Production.INFO: ==16164== Releasing lock... [2025-02-01 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:47:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:48:05 [end_date_ymd] => 2025-02-01 00:48:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:48:05' and `end` < '2025-02-01 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-01 00:48:18] Production.INFO: count ==398 [2025-02-01 00:48:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:48:05 - End Time 2025-02-01 00:48:05 [2025-02-01 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374769', 'tblTempUsageDetail_20' ) start [2025-02-01 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374769', 'tblTempUsageDetail_20' ) end [2025-02-01 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374769', 'tblTempVendorCDR_20' ) start [2025-02-01 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374769', 'tblTempVendorCDR_20' ) end [2025-02-01 00:48:18] Production.INFO: ProcessCDR(1,14374769,1,1,2) [2025-02-01 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374769', 'tblTempUsageDetail_20' ) start [2025-02-01 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374769', 'tblTempUsageDetail_20' ) end [2025-02-01 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:48:21] Production.INFO: ==16239== Releasing lock... [2025-02-01 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:48:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:49:05 [end_date_ymd] => 2025-02-01 00:49:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:49:05' and `end` < '2025-02-01 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-01 00:49:19] Production.INFO: count ==402 [2025-02-01 00:49:19] Production.ERROR: pbx CDR StartTime 2025-01-31 21:49:05 - End Time 2025-02-01 00:49:05 [2025-02-01 00:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374774', 'tblTempUsageDetail_20' ) start [2025-02-01 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374774', 'tblTempUsageDetail_20' ) end [2025-02-01 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374774', 'tblTempVendorCDR_20' ) start [2025-02-01 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374774', 'tblTempVendorCDR_20' ) end [2025-02-01 00:49:19] Production.INFO: ProcessCDR(1,14374774,1,1,2) [2025-02-01 00:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374774', 'tblTempUsageDetail_20' ) start [2025-02-01 00:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374774', 'tblTempUsageDetail_20' ) end [2025-02-01 00:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:49:23] Production.INFO: ==16311== Releasing lock... [2025-02-01 00:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:49:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:50:06 [end_date_ymd] => 2025-02-01 00:50:06 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:50:06' and `end` < '2025-02-01 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-01 00:50:19] Production.INFO: count ==412 [2025-02-01 00:50:19] Production.ERROR: pbx CDR StartTime 2025-01-31 21:50:06 - End Time 2025-02-01 00:50:06 [2025-02-01 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374780', 'tblTempUsageDetail_20' ) start [2025-02-01 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374780', 'tblTempUsageDetail_20' ) end [2025-02-01 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374780', 'tblTempVendorCDR_20' ) start [2025-02-01 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374780', 'tblTempVendorCDR_20' ) end [2025-02-01 00:50:19] Production.INFO: ProcessCDR(1,14374780,1,1,2) [2025-02-01 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374780', 'tblTempUsageDetail_20' ) start [2025-02-01 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374780', 'tblTempUsageDetail_20' ) end [2025-02-01 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:50:22] Production.INFO: ==16387== Releasing lock... [2025-02-01 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:50:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:51:05 [end_date_ymd] => 2025-02-01 00:51:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:51:05' and `end` < '2025-02-01 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-01 00:51:18] Production.INFO: count ==437 [2025-02-01 00:51:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:51:05 - End Time 2025-02-01 00:51:05 [2025-02-01 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374785', 'tblTempUsageDetail_20' ) start [2025-02-01 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374785', 'tblTempUsageDetail_20' ) end [2025-02-01 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374785', 'tblTempVendorCDR_20' ) start [2025-02-01 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374785', 'tblTempVendorCDR_20' ) end [2025-02-01 00:51:18] Production.INFO: ProcessCDR(1,14374785,1,1,2) [2025-02-01 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374785', 'tblTempUsageDetail_20' ) start [2025-02-01 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374785', 'tblTempUsageDetail_20' ) end [2025-02-01 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:51:22] Production.INFO: ==16459== Releasing lock... [2025-02-01 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:51:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:52:05 [end_date_ymd] => 2025-02-01 00:52:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:52:05' and `end` < '2025-02-01 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-01 00:52:18] Production.INFO: count ==438 [2025-02-01 00:52:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:52:05 - End Time 2025-02-01 00:52:05 [2025-02-01 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374790', 'tblTempUsageDetail_20' ) start [2025-02-01 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374790', 'tblTempUsageDetail_20' ) end [2025-02-01 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374790', 'tblTempVendorCDR_20' ) start [2025-02-01 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374790', 'tblTempVendorCDR_20' ) end [2025-02-01 00:52:18] Production.INFO: ProcessCDR(1,14374790,1,1,2) [2025-02-01 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374790', 'tblTempUsageDetail_20' ) start [2025-02-01 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374790', 'tblTempUsageDetail_20' ) end [2025-02-01 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:52:22] Production.INFO: ==16529== Releasing lock... [2025-02-01 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:52:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:53:05 [end_date_ymd] => 2025-02-01 00:53:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:53:05' and `end` < '2025-02-01 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-01 00:53:18] Production.INFO: count ==443 [2025-02-01 00:53:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:53:05 - End Time 2025-02-01 00:53:05 [2025-02-01 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374792', 'tblTempUsageDetail_20' ) start [2025-02-01 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374792', 'tblTempUsageDetail_20' ) end [2025-02-01 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374792', 'tblTempVendorCDR_20' ) start [2025-02-01 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374792', 'tblTempVendorCDR_20' ) end [2025-02-01 00:53:18] Production.INFO: ProcessCDR(1,14374792,1,1,2) [2025-02-01 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374792', 'tblTempUsageDetail_20' ) start [2025-02-01 00:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374792', 'tblTempUsageDetail_20' ) end [2025-02-01 00:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:53:23] Production.INFO: ==16639== Releasing lock... [2025-02-01 00:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:53:23] Production.INFO: 32 MB #Memory Used# [2025-02-01 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:54:05 [end_date_ymd] => 2025-02-01 00:54:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:54:05' and `end` < '2025-02-01 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-01 00:54:18] Production.INFO: count ==447 [2025-02-01 00:54:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:54:05 - End Time 2025-02-01 00:54:05 [2025-02-01 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374800', 'tblTempUsageDetail_20' ) start [2025-02-01 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374800', 'tblTempUsageDetail_20' ) end [2025-02-01 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374800', 'tblTempVendorCDR_20' ) start [2025-02-01 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374800', 'tblTempVendorCDR_20' ) end [2025-02-01 00:54:18] Production.INFO: ProcessCDR(1,14374800,1,1,2) [2025-02-01 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374800', 'tblTempUsageDetail_20' ) start [2025-02-01 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374800', 'tblTempUsageDetail_20' ) end [2025-02-01 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:54:21] Production.INFO: ==16709== Releasing lock... [2025-02-01 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:54:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:55:05 [end_date_ymd] => 2025-02-01 00:55:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:55:05' and `end` < '2025-02-01 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-01 00:55:18] Production.INFO: count ==443 [2025-02-01 00:55:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:55:05 - End Time 2025-02-01 00:55:05 [2025-02-01 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374805', 'tblTempUsageDetail_20' ) start [2025-02-01 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374805', 'tblTempUsageDetail_20' ) end [2025-02-01 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374805', 'tblTempVendorCDR_20' ) start [2025-02-01 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374805', 'tblTempVendorCDR_20' ) end [2025-02-01 00:55:18] Production.INFO: ProcessCDR(1,14374805,1,1,2) [2025-02-01 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374805', 'tblTempUsageDetail_20' ) start [2025-02-01 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374805', 'tblTempUsageDetail_20' ) end [2025-02-01 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:55:21] Production.INFO: ==16778== Releasing lock... [2025-02-01 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:55:21] Production.INFO: 32 MB #Memory Used# [2025-02-01 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:56:05 [end_date_ymd] => 2025-02-01 00:56:05 [RateCDR] => 1 ) [2025-02-01 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 21:56:05' and `end` < '2025-02-01 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 00:56:19] Production.INFO: count ==443 [2025-02-01 00:56:19] Production.ERROR: pbx CDR StartTime 2025-01-31 21:56:05 - End Time 2025-02-01 00:56:05 [2025-02-01 00:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374810', 'tblTempUsageDetail_20' ) start [2025-02-01 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374810', 'tblTempUsageDetail_20' ) end [2025-02-01 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374810', 'tblTempVendorCDR_20' ) start [2025-02-01 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374810', 'tblTempVendorCDR_20' ) end [2025-02-01 00:56:19] Production.INFO: ProcessCDR(1,14374810,1,1,2) [2025-02-01 00:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374810', 'tblTempUsageDetail_20' ) start [2025-02-01 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374810', 'tblTempUsageDetail_20' ) end [2025-02-01 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:56:22] Production.INFO: ==16857== Releasing lock... [2025-02-01 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:56:22] Production.INFO: 32 MB #Memory Used# [2025-02-01 00:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:57:06 [end_date_ymd] => 2025-02-01 00:57:06 [RateCDR] => 1 ) [2025-02-01 00: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-01-31 21:57:06' and `end` < '2025-02-01 00: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-01 00:57:18] Production.INFO: count ==443 [2025-02-01 00:57:19] Production.ERROR: pbx CDR StartTime 2025-01-31 21:57:06 - End Time 2025-02-01 00:57:06 [2025-02-01 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374815', 'tblTempUsageDetail_20' ) start [2025-02-01 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374815', 'tblTempUsageDetail_20' ) end [2025-02-01 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374815', 'tblTempVendorCDR_20' ) start [2025-02-01 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374815', 'tblTempVendorCDR_20' ) end [2025-02-01 00:57:19] Production.INFO: ProcessCDR(1,14374815,1,1,2) [2025-02-01 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374815', 'tblTempUsageDetail_20' ) start [2025-02-01 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374815', 'tblTempUsageDetail_20' ) end [2025-02-01 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:57:22] Production.INFO: ==16931== Releasing lock... [2025-02-01 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:57:22] Production.INFO: 32 MB #Memory Used# [2025-02-01 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:58:05 [end_date_ymd] => 2025-02-01 00:58:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:58:05' and `end` < '2025-02-01 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-01 00:58:18] Production.INFO: count ==446 [2025-02-01 00:58:18] Production.ERROR: pbx CDR StartTime 2025-01-31 21:58:05 - End Time 2025-02-01 00:58:05 [2025-02-01 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374820', 'tblTempUsageDetail_20' ) start [2025-02-01 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374820', 'tblTempUsageDetail_20' ) end [2025-02-01 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374820', 'tblTempVendorCDR_20' ) start [2025-02-01 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374820', 'tblTempVendorCDR_20' ) end [2025-02-01 00:58:18] Production.INFO: ProcessCDR(1,14374820,1,1,2) [2025-02-01 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374820', 'tblTempUsageDetail_20' ) start [2025-02-01 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374820', 'tblTempUsageDetail_20' ) end [2025-02-01 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:58:21] Production.INFO: ==17002== Releasing lock... [2025-02-01 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:58:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 21:59:05 [end_date_ymd] => 2025-02-01 00:59:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 21:59:05' and `end` < '2025-02-01 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-01 00:59:17] Production.INFO: count ==446 [2025-02-01 00:59:17] Production.ERROR: pbx CDR StartTime 2025-01-31 21:59:05 - End Time 2025-02-01 00:59:05 [2025-02-01 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374825', 'tblTempUsageDetail_20' ) start [2025-02-01 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374825', 'tblTempUsageDetail_20' ) end [2025-02-01 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374825', 'tblTempVendorCDR_20' ) start [2025-02-01 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374825', 'tblTempVendorCDR_20' ) end [2025-02-01 00:59:17] Production.INFO: ProcessCDR(1,14374825,1,1,2) [2025-02-01 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374825', 'tblTempUsageDetail_20' ) start [2025-02-01 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374825', 'tblTempUsageDetail_20' ) end [2025-02-01 00:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 00:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 00:59:20] Production.INFO: ==17072== Releasing lock... [2025-02-01 00:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 00:59:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:00:06 [end_date_ymd] => 2025-02-01 01:00:06 [RateCDR] => 1 ) [2025-02-01 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:00:06' and `end` < '2025-02-01 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:00:19] Production.INFO: count ==457 [2025-02-01 01:00:19] Production.ERROR: pbx CDR StartTime 2025-01-31 22:00:06 - End Time 2025-02-01 01:00:06 [2025-02-01 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374831', 'tblTempUsageDetail_20' ) start [2025-02-01 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374831', 'tblTempUsageDetail_20' ) end [2025-02-01 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374831', 'tblTempVendorCDR_20' ) start [2025-02-01 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374831', 'tblTempVendorCDR_20' ) end [2025-02-01 01:00:19] Production.INFO: ProcessCDR(1,14374831,1,1,2) [2025-02-01 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374831', 'tblTempUsageDetail_20' ) start [2025-02-01 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374831', 'tblTempUsageDetail_20' ) end [2025-02-01 01:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:00:23] Production.INFO: ==17145== Releasing lock... [2025-02-01 01:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:00:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:01:05 [end_date_ymd] => 2025-02-01 01:01:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:01:05' and `end` < '2025-02-01 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-01 01:01:19] Production.INFO: count ==475 [2025-02-01 01:01:20] Production.ERROR: pbx CDR StartTime 2025-01-31 22:01:05 - End Time 2025-02-01 01:01:05 [2025-02-01 01:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374836', 'tblTempUsageDetail_20' ) start [2025-02-01 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374836', 'tblTempUsageDetail_20' ) end [2025-02-01 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374836', 'tblTempVendorCDR_20' ) start [2025-02-01 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374836', 'tblTempVendorCDR_20' ) end [2025-02-01 01:01:20] Production.INFO: ProcessCDR(1,14374836,1,1,2) [2025-02-01 01:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374836', 'tblTempUsageDetail_20' ) start [2025-02-01 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374836', 'tblTempUsageDetail_20' ) end [2025-02-01 01:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:01:23] Production.INFO: ==17232== Releasing lock... [2025-02-01 01:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:01:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:02:05 [end_date_ymd] => 2025-02-01 01:02:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:02:05' and `end` < '2025-02-01 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-01 01:02:18] Production.INFO: count ==475 [2025-02-01 01:02:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:02:05 - End Time 2025-02-01 01:02:05 [2025-02-01 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374841', 'tblTempUsageDetail_20' ) start [2025-02-01 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374841', 'tblTempUsageDetail_20' ) end [2025-02-01 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374841', 'tblTempVendorCDR_20' ) start [2025-02-01 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374841', 'tblTempVendorCDR_20' ) end [2025-02-01 01:02:18] Production.INFO: ProcessCDR(1,14374841,1,1,2) [2025-02-01 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374841', 'tblTempUsageDetail_20' ) start [2025-02-01 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374841', 'tblTempUsageDetail_20' ) end [2025-02-01 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:02:22] Production.INFO: ==17304== Releasing lock... [2025-02-01 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:02:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 01:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:03:06 [end_date_ymd] => 2025-02-01 01:03:06 [RateCDR] => 1 ) [2025-02-01 01: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-01-31 22:03:06' and `end` < '2025-02-01 01: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-01 01:03:19] Production.INFO: count ==474 [2025-02-01 01:03:19] Production.ERROR: pbx CDR StartTime 2025-01-31 22:03:06 - End Time 2025-02-01 01:03:06 [2025-02-01 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374846', 'tblTempUsageDetail_20' ) start [2025-02-01 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374846', 'tblTempUsageDetail_20' ) end [2025-02-01 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374846', 'tblTempVendorCDR_20' ) start [2025-02-01 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374846', 'tblTempVendorCDR_20' ) end [2025-02-01 01:03:19] Production.INFO: ProcessCDR(1,14374846,1,1,2) [2025-02-01 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374846', 'tblTempUsageDetail_20' ) start [2025-02-01 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374846', 'tblTempUsageDetail_20' ) end [2025-02-01 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:03:22] Production.INFO: ==17374== Releasing lock... [2025-02-01 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:03:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:04:06 [end_date_ymd] => 2025-02-01 01:04:06 [RateCDR] => 1 ) [2025-02-01 01:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:04:06' and `end` < '2025-02-01 01:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:04:19] Production.INFO: count ==474 [2025-02-01 01:04:19] Production.ERROR: pbx CDR StartTime 2025-01-31 22:04:06 - End Time 2025-02-01 01:04:06 [2025-02-01 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374851', 'tblTempUsageDetail_20' ) start [2025-02-01 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374851', 'tblTempUsageDetail_20' ) end [2025-02-01 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374851', 'tblTempVendorCDR_20' ) start [2025-02-01 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374851', 'tblTempVendorCDR_20' ) end [2025-02-01 01:04:19] Production.INFO: ProcessCDR(1,14374851,1,1,2) [2025-02-01 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374851', 'tblTempUsageDetail_20' ) start [2025-02-01 01:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374851', 'tblTempUsageDetail_20' ) end [2025-02-01 01:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:04:23] Production.INFO: ==17451== Releasing lock... [2025-02-01 01:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:04:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:05:05 [end_date_ymd] => 2025-02-01 01:05:05 [RateCDR] => 1 ) [2025-02-01 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:05:05' and `end` < '2025-02-01 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:05:20] Production.INFO: count ==472 [2025-02-01 01:05:20] Production.ERROR: pbx CDR StartTime 2025-01-31 22:05:05 - End Time 2025-02-01 01:05:05 [2025-02-01 01:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374856', 'tblTempUsageDetail_20' ) start [2025-02-01 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374856', 'tblTempUsageDetail_20' ) end [2025-02-01 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374856', 'tblTempVendorCDR_20' ) start [2025-02-01 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374856', 'tblTempVendorCDR_20' ) end [2025-02-01 01:05:20] Production.INFO: ProcessCDR(1,14374856,1,1,2) [2025-02-01 01:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374856', 'tblTempUsageDetail_20' ) start [2025-02-01 01:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374856', 'tblTempUsageDetail_20' ) end [2025-02-01 01:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:05:23] Production.INFO: ==17524== Releasing lock... [2025-02-01 01:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:05:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:06:05 [end_date_ymd] => 2025-02-01 01:06:05 [RateCDR] => 1 ) [2025-02-01 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:06:05' and `end` < '2025-02-01 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:06:17] Production.INFO: count ==472 [2025-02-01 01:06:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:06:05 - End Time 2025-02-01 01:06:05 [2025-02-01 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374861', 'tblTempUsageDetail_20' ) start [2025-02-01 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374861', 'tblTempUsageDetail_20' ) end [2025-02-01 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374861', 'tblTempVendorCDR_20' ) start [2025-02-01 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374861', 'tblTempVendorCDR_20' ) end [2025-02-01 01:06:18] Production.INFO: ProcessCDR(1,14374861,1,1,2) [2025-02-01 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374861', 'tblTempUsageDetail_20' ) start [2025-02-01 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374861', 'tblTempUsageDetail_20' ) end [2025-02-01 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:06:21] Production.INFO: ==17596== Releasing lock... [2025-02-01 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:06:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 01:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:07:06 [end_date_ymd] => 2025-02-01 01:07:06 [RateCDR] => 1 ) [2025-02-01 01:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:07:06' and `end` < '2025-02-01 01:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:07:19] Production.INFO: count ==472 [2025-02-01 01:07:19] Production.ERROR: pbx CDR StartTime 2025-01-31 22:07:06 - End Time 2025-02-01 01:07:06 [2025-02-01 01:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374866', 'tblTempUsageDetail_20' ) start [2025-02-01 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374866', 'tblTempUsageDetail_20' ) end [2025-02-01 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374866', 'tblTempVendorCDR_20' ) start [2025-02-01 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374866', 'tblTempVendorCDR_20' ) end [2025-02-01 01:07:19] Production.INFO: ProcessCDR(1,14374866,1,1,2) [2025-02-01 01:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374866', 'tblTempUsageDetail_20' ) start [2025-02-01 01:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374866', 'tblTempUsageDetail_20' ) end [2025-02-01 01:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:07:24] Production.INFO: ==17668== Releasing lock... [2025-02-01 01:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:07:24] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:08:05 [end_date_ymd] => 2025-02-01 01:08:05 [RateCDR] => 1 ) [2025-02-01 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:08:05' and `end` < '2025-02-01 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:08:19] Production.INFO: count ==468 [2025-02-01 01:08:19] Production.ERROR: pbx CDR StartTime 2025-01-31 22:08:05 - End Time 2025-02-01 01:08:05 [2025-02-01 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374871', 'tblTempUsageDetail_20' ) start [2025-02-01 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374871', 'tblTempUsageDetail_20' ) end [2025-02-01 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374871', 'tblTempVendorCDR_20' ) start [2025-02-01 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374871', 'tblTempVendorCDR_20' ) end [2025-02-01 01:08:19] Production.INFO: ProcessCDR(1,14374871,1,1,2) [2025-02-01 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374871', 'tblTempUsageDetail_20' ) start [2025-02-01 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374871', 'tblTempUsageDetail_20' ) end [2025-02-01 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:08:22] Production.INFO: ==17742== Releasing lock... [2025-02-01 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:08:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:09:05 [end_date_ymd] => 2025-02-01 01:09:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:09:05' and `end` < '2025-02-01 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-01 01:09:18] Production.INFO: count ==467 [2025-02-01 01:09:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:09:05 - End Time 2025-02-01 01:09:05 [2025-02-01 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374876', 'tblTempUsageDetail_20' ) start [2025-02-01 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374876', 'tblTempUsageDetail_20' ) end [2025-02-01 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374876', 'tblTempVendorCDR_20' ) start [2025-02-01 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374876', 'tblTempVendorCDR_20' ) end [2025-02-01 01:09:18] Production.INFO: ProcessCDR(1,14374876,1,1,2) [2025-02-01 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374876', 'tblTempUsageDetail_20' ) start [2025-02-01 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374876', 'tblTempUsageDetail_20' ) end [2025-02-01 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:09:21] Production.INFO: ==17855== Releasing lock... [2025-02-01 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:09:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:10:05 [end_date_ymd] => 2025-02-01 01:10:05 [RateCDR] => 1 ) [2025-02-01 01: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-01-31 22:10:05' and `end` < '2025-02-01 01: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-01 01:10:18] Production.INFO: count ==472 [2025-02-01 01:10:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:10:05 - End Time 2025-02-01 01:10:05 [2025-02-01 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374882', 'tblTempUsageDetail_20' ) start [2025-02-01 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374882', 'tblTempUsageDetail_20' ) end [2025-02-01 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374882', 'tblTempVendorCDR_20' ) start [2025-02-01 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374882', 'tblTempVendorCDR_20' ) end [2025-02-01 01:10:18] Production.INFO: ProcessCDR(1,14374882,1,1,2) [2025-02-01 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374882', 'tblTempUsageDetail_20' ) start [2025-02-01 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374882', 'tblTempUsageDetail_20' ) end [2025-02-01 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:10:22] Production.INFO: ==17931== Releasing lock... [2025-02-01 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:10:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:11:05 [end_date_ymd] => 2025-02-01 01:11:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:11:05' and `end` < '2025-02-01 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-01 01:11:19] Production.INFO: count ==480 [2025-02-01 01:11:19] Production.ERROR: pbx CDR StartTime 2025-01-31 22:11:05 - End Time 2025-02-01 01:11:05 [2025-02-01 01:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374887', 'tblTempUsageDetail_20' ) start [2025-02-01 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374887', 'tblTempUsageDetail_20' ) end [2025-02-01 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374887', 'tblTempVendorCDR_20' ) start [2025-02-01 01:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374887', 'tblTempVendorCDR_20' ) end [2025-02-01 01:11:20] Production.INFO: ProcessCDR(1,14374887,1,1,2) [2025-02-01 01:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374887', 'tblTempUsageDetail_20' ) start [2025-02-01 01:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374887', 'tblTempUsageDetail_20' ) end [2025-02-01 01:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:11:23] Production.INFO: ==18012== Releasing lock... [2025-02-01 01:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:11:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:12:05 [end_date_ymd] => 2025-02-01 01:12:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:12:05' and `end` < '2025-02-01 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-01 01:12:18] Production.INFO: count ==480 [2025-02-01 01:12:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:12:05 - End Time 2025-02-01 01:12:05 [2025-02-01 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374892', 'tblTempUsageDetail_20' ) start [2025-02-01 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374892', 'tblTempUsageDetail_20' ) end [2025-02-01 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374892', 'tblTempVendorCDR_20' ) start [2025-02-01 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374892', 'tblTempVendorCDR_20' ) end [2025-02-01 01:12:18] Production.INFO: ProcessCDR(1,14374892,1,1,2) [2025-02-01 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374892', 'tblTempUsageDetail_20' ) start [2025-02-01 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374892', 'tblTempUsageDetail_20' ) end [2025-02-01 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:12:21] Production.INFO: ==18089== Releasing lock... [2025-02-01 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:12:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:13:05 [end_date_ymd] => 2025-02-01 01:13:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:13:05' and `end` < '2025-02-01 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-01 01:13:18] Production.INFO: count ==483 [2025-02-01 01:13:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:13:05 - End Time 2025-02-01 01:13:05 [2025-02-01 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374897', 'tblTempUsageDetail_20' ) start [2025-02-01 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374897', 'tblTempUsageDetail_20' ) end [2025-02-01 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374897', 'tblTempVendorCDR_20' ) start [2025-02-01 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374897', 'tblTempVendorCDR_20' ) end [2025-02-01 01:13:18] Production.INFO: ProcessCDR(1,14374897,1,1,2) [2025-02-01 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374897', 'tblTempUsageDetail_20' ) start [2025-02-01 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374897', 'tblTempUsageDetail_20' ) end [2025-02-01 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:13:21] Production.INFO: ==18166== Releasing lock... [2025-02-01 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:13:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:14:05 [end_date_ymd] => 2025-02-01 01:14:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:14:05' and `end` < '2025-02-01 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-01 01:14:19] Production.INFO: count ==485 [2025-02-01 01:14:19] Production.ERROR: pbx CDR StartTime 2025-01-31 22:14:05 - End Time 2025-02-01 01:14:05 [2025-02-01 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374902', 'tblTempUsageDetail_20' ) start [2025-02-01 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374902', 'tblTempUsageDetail_20' ) end [2025-02-01 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374902', 'tblTempVendorCDR_20' ) start [2025-02-01 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374902', 'tblTempVendorCDR_20' ) end [2025-02-01 01:14:19] Production.INFO: ProcessCDR(1,14374902,1,1,2) [2025-02-01 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374902', 'tblTempUsageDetail_20' ) start [2025-02-01 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374902', 'tblTempUsageDetail_20' ) end [2025-02-01 01:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:14:23] Production.INFO: ==18240== Releasing lock... [2025-02-01 01:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:14:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:15:05 [end_date_ymd] => 2025-02-01 01:15:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:15:05' and `end` < '2025-02-01 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-01 01:15:18] Production.INFO: count ==485 [2025-02-01 01:15:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:15:05 - End Time 2025-02-01 01:15:05 [2025-02-01 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374907', 'tblTempUsageDetail_20' ) start [2025-02-01 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374907', 'tblTempUsageDetail_20' ) end [2025-02-01 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374907', 'tblTempVendorCDR_20' ) start [2025-02-01 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374907', 'tblTempVendorCDR_20' ) end [2025-02-01 01:15:18] Production.INFO: ProcessCDR(1,14374907,1,1,2) [2025-02-01 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374907', 'tblTempUsageDetail_20' ) start [2025-02-01 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374907', 'tblTempUsageDetail_20' ) end [2025-02-01 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:15:21] Production.INFO: ==18320== Releasing lock... [2025-02-01 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:15:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 01:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:16:04 [end_date_ymd] => 2025-02-01 01:16:04 [RateCDR] => 1 ) [2025-02-01 01:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:16:04' and `end` < '2025-02-01 01:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:16:17] Production.INFO: count ==483 [2025-02-01 01:16:17] Production.ERROR: pbx CDR StartTime 2025-01-31 22:16:04 - End Time 2025-02-01 01:16:04 [2025-02-01 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374912', 'tblTempUsageDetail_20' ) start [2025-02-01 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374912', 'tblTempUsageDetail_20' ) end [2025-02-01 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374912', 'tblTempVendorCDR_20' ) start [2025-02-01 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374912', 'tblTempVendorCDR_20' ) end [2025-02-01 01:16:17] Production.INFO: ProcessCDR(1,14374912,1,1,2) [2025-02-01 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374912', 'tblTempUsageDetail_20' ) start [2025-02-01 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374912', 'tblTempUsageDetail_20' ) end [2025-02-01 01:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:16:20] Production.INFO: ==18396== Releasing lock... [2025-02-01 01:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:16:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:17:05 [end_date_ymd] => 2025-02-01 01:17:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:17:05' and `end` < '2025-02-01 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-01 01:17:18] Production.INFO: count ==483 [2025-02-01 01:17:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:17:05 - End Time 2025-02-01 01:17:05 [2025-02-01 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374917', 'tblTempUsageDetail_20' ) start [2025-02-01 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374917', 'tblTempUsageDetail_20' ) end [2025-02-01 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374917', 'tblTempVendorCDR_20' ) start [2025-02-01 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374917', 'tblTempVendorCDR_20' ) end [2025-02-01 01:17:18] Production.INFO: ProcessCDR(1,14374917,1,1,2) [2025-02-01 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374917', 'tblTempUsageDetail_20' ) start [2025-02-01 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374917', 'tblTempUsageDetail_20' ) end [2025-02-01 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:17:21] Production.INFO: ==18472== Releasing lock... [2025-02-01 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:17:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:18:06 [end_date_ymd] => 2025-02-01 01:18:06 [RateCDR] => 1 ) [2025-02-01 01:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:18:06' and `end` < '2025-02-01 01:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:18:19] Production.INFO: count ==483 [2025-02-01 01:18:19] Production.ERROR: pbx CDR StartTime 2025-01-31 22:18:06 - End Time 2025-02-01 01:18:06 [2025-02-01 01:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374922', 'tblTempUsageDetail_20' ) start [2025-02-01 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374922', 'tblTempUsageDetail_20' ) end [2025-02-01 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374922', 'tblTempVendorCDR_20' ) start [2025-02-01 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374922', 'tblTempVendorCDR_20' ) end [2025-02-01 01:18:19] Production.INFO: ProcessCDR(1,14374922,1,1,2) [2025-02-01 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374922', 'tblTempUsageDetail_20' ) start [2025-02-01 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374922', 'tblTempUsageDetail_20' ) end [2025-02-01 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:18:22] Production.INFO: ==18548== Releasing lock... [2025-02-01 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:18:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:19:05 [end_date_ymd] => 2025-02-01 01:19:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:19:05' and `end` < '2025-02-01 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-01 01:19:19] Production.INFO: count ==483 [2025-02-01 01:19:19] Production.ERROR: pbx CDR StartTime 2025-01-31 22:19:05 - End Time 2025-02-01 01:19:05 [2025-02-01 01:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374927', 'tblTempUsageDetail_20' ) start [2025-02-01 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374927', 'tblTempUsageDetail_20' ) end [2025-02-01 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374927', 'tblTempVendorCDR_20' ) start [2025-02-01 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374927', 'tblTempVendorCDR_20' ) end [2025-02-01 01:19:19] Production.INFO: ProcessCDR(1,14374927,1,1,2) [2025-02-01 01:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374927', 'tblTempUsageDetail_20' ) start [2025-02-01 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374927', 'tblTempUsageDetail_20' ) end [2025-02-01 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:19:22] Production.INFO: ==18626== Releasing lock... [2025-02-01 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:19:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:20:06 [end_date_ymd] => 2025-02-01 01:20:06 [RateCDR] => 1 ) [2025-02-01 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:20:06' and `end` < '2025-02-01 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:20:19] Production.INFO: count ==490 [2025-02-01 01:20:19] Production.ERROR: pbx CDR StartTime 2025-01-31 22:20:06 - End Time 2025-02-01 01:20:06 [2025-02-01 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374933', 'tblTempUsageDetail_20' ) start [2025-02-01 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374933', 'tblTempUsageDetail_20' ) end [2025-02-01 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374933', 'tblTempVendorCDR_20' ) start [2025-02-01 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374933', 'tblTempVendorCDR_20' ) end [2025-02-01 01:20:19] Production.INFO: ProcessCDR(1,14374933,1,1,2) [2025-02-01 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374933', 'tblTempUsageDetail_20' ) start [2025-02-01 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374933', 'tblTempUsageDetail_20' ) end [2025-02-01 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:20:22] Production.INFO: ==18706== Releasing lock... [2025-02-01 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:20:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 01:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:21:04 [end_date_ymd] => 2025-02-01 01:21:04 [RateCDR] => 1 ) [2025-02-01 01:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:21:04' and `end` < '2025-02-01 01:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:21:17] Production.INFO: count ==516 [2025-02-01 01:21:17] Production.ERROR: pbx CDR StartTime 2025-01-31 22:21:04 - End Time 2025-02-01 01:21:04 [2025-02-01 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374938', 'tblTempUsageDetail_20' ) start [2025-02-01 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374938', 'tblTempUsageDetail_20' ) end [2025-02-01 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374938', 'tblTempVendorCDR_20' ) start [2025-02-01 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374938', 'tblTempVendorCDR_20' ) end [2025-02-01 01:21:17] Production.INFO: ProcessCDR(1,14374938,1,1,2) [2025-02-01 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374938', 'tblTempUsageDetail_20' ) start [2025-02-01 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374938', 'tblTempUsageDetail_20' ) end [2025-02-01 01:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:21:20] Production.INFO: ==18790== Releasing lock... [2025-02-01 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:21:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:22:05 [end_date_ymd] => 2025-02-01 01:22:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:22:05' and `end` < '2025-02-01 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-01 01:22:19] Production.INFO: count ==515 [2025-02-01 01:22:20] Production.ERROR: pbx CDR StartTime 2025-01-31 22:22:05 - End Time 2025-02-01 01:22:05 [2025-02-01 01:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374943', 'tblTempUsageDetail_20' ) start [2025-02-01 01:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374943', 'tblTempUsageDetail_20' ) end [2025-02-01 01:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374943', 'tblTempVendorCDR_20' ) start [2025-02-01 01:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374943', 'tblTempVendorCDR_20' ) end [2025-02-01 01:22:20] Production.INFO: ProcessCDR(1,14374943,1,1,2) [2025-02-01 01:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374943', 'tblTempUsageDetail_20' ) start [2025-02-01 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374943', 'tblTempUsageDetail_20' ) end [2025-02-01 01:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:22:23] Production.INFO: ==18866== Releasing lock... [2025-02-01 01:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:22:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:23:05 [end_date_ymd] => 2025-02-01 01:23:05 [RateCDR] => 1 ) [2025-02-01 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:23:05' and `end` < '2025-02-01 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:23:18] Production.INFO: count ==514 [2025-02-01 01:23:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:23:05 - End Time 2025-02-01 01:23:05 [2025-02-01 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374948', 'tblTempUsageDetail_20' ) start [2025-02-01 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374948', 'tblTempUsageDetail_20' ) end [2025-02-01 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374948', 'tblTempVendorCDR_20' ) start [2025-02-01 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374948', 'tblTempVendorCDR_20' ) end [2025-02-01 01:23:18] Production.INFO: ProcessCDR(1,14374948,1,1,2) [2025-02-01 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374948', 'tblTempUsageDetail_20' ) start [2025-02-01 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374948', 'tblTempUsageDetail_20' ) end [2025-02-01 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:23:21] Production.INFO: ==18939== Releasing lock... [2025-02-01 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:23:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:24:06 [end_date_ymd] => 2025-02-01 01:24:06 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:24:06' and `end` < '2025-02-01 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-01 01:24:18] Production.INFO: count ==516 [2025-02-01 01:24:19] Production.ERROR: pbx CDR StartTime 2025-01-31 22:24:06 - End Time 2025-02-01 01:24:06 [2025-02-01 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374953', 'tblTempUsageDetail_20' ) start [2025-02-01 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374953', 'tblTempUsageDetail_20' ) end [2025-02-01 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374953', 'tblTempVendorCDR_20' ) start [2025-02-01 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374953', 'tblTempVendorCDR_20' ) end [2025-02-01 01:24:19] Production.INFO: ProcessCDR(1,14374953,1,1,2) [2025-02-01 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374953', 'tblTempUsageDetail_20' ) start [2025-02-01 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374953', 'tblTempUsageDetail_20' ) end [2025-02-01 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:24:22] Production.INFO: ==19054== Releasing lock... [2025-02-01 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:24:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:25:05 [end_date_ymd] => 2025-02-01 01:25:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:25:05' and `end` < '2025-02-01 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-01 01:25:18] Production.INFO: count ==513 [2025-02-01 01:25:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:25:05 - End Time 2025-02-01 01:25:05 [2025-02-01 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374958', 'tblTempUsageDetail_20' ) start [2025-02-01 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374958', 'tblTempUsageDetail_20' ) end [2025-02-01 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374958', 'tblTempVendorCDR_20' ) start [2025-02-01 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374958', 'tblTempVendorCDR_20' ) end [2025-02-01 01:25:18] Production.INFO: ProcessCDR(1,14374958,1,1,2) [2025-02-01 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374958', 'tblTempUsageDetail_20' ) start [2025-02-01 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374958', 'tblTempUsageDetail_20' ) end [2025-02-01 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:25:21] Production.INFO: ==19134== Releasing lock... [2025-02-01 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:25:21] Production.INFO: 32 MB #Memory Used# [2025-02-01 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:26:05 [end_date_ymd] => 2025-02-01 01:26:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:26:05' and `end` < '2025-02-01 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-01 01:26:18] Production.INFO: count ==513 [2025-02-01 01:26:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:26:05 - End Time 2025-02-01 01:26:05 [2025-02-01 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374963', 'tblTempUsageDetail_20' ) start [2025-02-01 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374963', 'tblTempUsageDetail_20' ) end [2025-02-01 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374963', 'tblTempVendorCDR_20' ) start [2025-02-01 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374963', 'tblTempVendorCDR_20' ) end [2025-02-01 01:26:18] Production.INFO: ProcessCDR(1,14374963,1,1,2) [2025-02-01 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374963', 'tblTempUsageDetail_20' ) start [2025-02-01 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374963', 'tblTempUsageDetail_20' ) end [2025-02-01 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:26:21] Production.INFO: ==19207== Releasing lock... [2025-02-01 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:26:21] Production.INFO: 32 MB #Memory Used# [2025-02-01 01:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:27:04 [end_date_ymd] => 2025-02-01 01:27:04 [RateCDR] => 1 ) [2025-02-01 01: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-01-31 22:27:04' and `end` < '2025-02-01 01: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-01 01:27:17] Production.INFO: count ==515 [2025-02-01 01:27:17] Production.ERROR: pbx CDR StartTime 2025-01-31 22:27:04 - End Time 2025-02-01 01:27:04 [2025-02-01 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374968', 'tblTempUsageDetail_20' ) start [2025-02-01 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374968', 'tblTempUsageDetail_20' ) end [2025-02-01 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374968', 'tblTempVendorCDR_20' ) start [2025-02-01 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374968', 'tblTempVendorCDR_20' ) end [2025-02-01 01:27:17] Production.INFO: ProcessCDR(1,14374968,1,1,2) [2025-02-01 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374968', 'tblTempUsageDetail_20' ) start [2025-02-01 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374968', 'tblTempUsageDetail_20' ) end [2025-02-01 01:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:27:20] Production.INFO: ==19282== Releasing lock... [2025-02-01 01:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:27:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:28:05 [end_date_ymd] => 2025-02-01 01:28:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:28:05' and `end` < '2025-02-01 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-01 01:28:18] Production.INFO: count ==520 [2025-02-01 01:28:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:28:05 - End Time 2025-02-01 01:28:05 [2025-02-01 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374973', 'tblTempUsageDetail_20' ) start [2025-02-01 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374973', 'tblTempUsageDetail_20' ) end [2025-02-01 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374973', 'tblTempVendorCDR_20' ) start [2025-02-01 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374973', 'tblTempVendorCDR_20' ) end [2025-02-01 01:28:18] Production.INFO: ProcessCDR(1,14374973,1,1,2) [2025-02-01 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374973', 'tblTempUsageDetail_20' ) start [2025-02-01 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374973', 'tblTempUsageDetail_20' ) end [2025-02-01 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:28:21] Production.INFO: ==19361== Releasing lock... [2025-02-01 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:28:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 01:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:29:06 [end_date_ymd] => 2025-02-01 01:29:06 [RateCDR] => 1 ) [2025-02-01 01: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-01-31 22:29:06' and `end` < '2025-02-01 01: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-01 01:29:19] Production.INFO: count ==523 [2025-02-01 01:29:19] Production.ERROR: pbx CDR StartTime 2025-01-31 22:29:06 - End Time 2025-02-01 01:29:06 [2025-02-01 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374978', 'tblTempUsageDetail_20' ) start [2025-02-01 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374978', 'tblTempUsageDetail_20' ) end [2025-02-01 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374978', 'tblTempVendorCDR_20' ) start [2025-02-01 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374978', 'tblTempVendorCDR_20' ) end [2025-02-01 01:29:19] Production.INFO: ProcessCDR(1,14374978,1,1,2) [2025-02-01 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374978', 'tblTempUsageDetail_20' ) start [2025-02-01 01:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374978', 'tblTempUsageDetail_20' ) end [2025-02-01 01:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:29:23] Production.INFO: ==19437== Releasing lock... [2025-02-01 01:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:29:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-01 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:30:06 [end_date_ymd] => 2025-02-01 01:30:06 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:30:06' and `end` < '2025-02-01 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-01 01:30:18] Production.INFO: count ==535 [2025-02-01 01:30:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:30:06 - End Time 2025-02-01 01:30:06 [2025-02-01 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374983', 'tblTempUsageDetail_20' ) start [2025-02-01 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374983', 'tblTempUsageDetail_20' ) end [2025-02-01 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374983', 'tblTempVendorCDR_20' ) start [2025-02-01 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374983', 'tblTempVendorCDR_20' ) end [2025-02-01 01:30:18] Production.INFO: ProcessCDR(1,14374983,1,1,2) [2025-02-01 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374983', 'tblTempUsageDetail_20' ) start [2025-02-01 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374983', 'tblTempUsageDetail_20' ) end [2025-02-01 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:30:22] Production.INFO: ==19516== Releasing lock... [2025-02-01 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:30:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:31:05 [end_date_ymd] => 2025-02-01 01:31:05 [RateCDR] => 1 ) [2025-02-01 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:31:05' and `end` < '2025-02-01 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:31:19] Production.INFO: count ==556 [2025-02-01 01:31:19] Production.ERROR: pbx CDR StartTime 2025-01-31 22:31:05 - End Time 2025-02-01 01:31:05 [2025-02-01 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374989', 'tblTempUsageDetail_20' ) start [2025-02-01 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374989', 'tblTempUsageDetail_20' ) end [2025-02-01 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374989', 'tblTempVendorCDR_20' ) start [2025-02-01 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374989', 'tblTempVendorCDR_20' ) end [2025-02-01 01:31:19] Production.INFO: ProcessCDR(1,14374989,1,1,2) [2025-02-01 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374989', 'tblTempUsageDetail_20' ) start [2025-02-01 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374989', 'tblTempUsageDetail_20' ) end [2025-02-01 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:31:22] Production.INFO: ==19590== Releasing lock... [2025-02-01 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:31:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:32:05 [end_date_ymd] => 2025-02-01 01:32:05 [RateCDR] => 1 ) [2025-02-01 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:32:05' and `end` < '2025-02-01 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:32:18] Production.INFO: count ==556 [2025-02-01 01:32:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:32:05 - End Time 2025-02-01 01:32:05 [2025-02-01 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374994', 'tblTempUsageDetail_20' ) start [2025-02-01 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374994', 'tblTempUsageDetail_20' ) end [2025-02-01 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374994', 'tblTempVendorCDR_20' ) start [2025-02-01 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374994', 'tblTempVendorCDR_20' ) end [2025-02-01 01:32:18] Production.INFO: ProcessCDR(1,14374994,1,1,2) [2025-02-01 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374994', 'tblTempUsageDetail_20' ) start [2025-02-01 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374994', 'tblTempUsageDetail_20' ) end [2025-02-01 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:32:21] Production.INFO: ==19663== Releasing lock... [2025-02-01 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:32:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-01 01:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:33:06 [end_date_ymd] => 2025-02-01 01:33:06 [RateCDR] => 1 ) [2025-02-01 01:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:33:06' and `end` < '2025-02-01 01:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:33:19] Production.INFO: count ==560 [2025-02-01 01:33:20] Production.ERROR: pbx CDR StartTime 2025-01-31 22:33:06 - End Time 2025-02-01 01:33:06 [2025-02-01 01:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374999', 'tblTempUsageDetail_20' ) start [2025-02-01 01:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14374999', 'tblTempUsageDetail_20' ) end [2025-02-01 01:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374999', 'tblTempVendorCDR_20' ) start [2025-02-01 01:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14374999', 'tblTempVendorCDR_20' ) end [2025-02-01 01:33:20] Production.INFO: ProcessCDR(1,14374999,1,1,2) [2025-02-01 01:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14374999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14374999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14374999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14374999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374999', 'tblTempUsageDetail_20' ) start [2025-02-01 01:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14374999', 'tblTempUsageDetail_20' ) end [2025-02-01 01:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:33:23] Production.INFO: ==19742== Releasing lock... [2025-02-01 01:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:33:23] Production.INFO: 33 MB #Memory Used# [2025-02-01 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:34:05 [end_date_ymd] => 2025-02-01 01:34:05 [RateCDR] => 1 ) [2025-02-01 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:34:05' and `end` < '2025-02-01 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:34:18] Production.INFO: count ==572 [2025-02-01 01:34:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:34:05 - End Time 2025-02-01 01:34:05 [2025-02-01 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375004', 'tblTempUsageDetail_20' ) start [2025-02-01 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375004', 'tblTempUsageDetail_20' ) end [2025-02-01 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375004', 'tblTempVendorCDR_20' ) start [2025-02-01 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375004', 'tblTempVendorCDR_20' ) end [2025-02-01 01:34:18] Production.INFO: ProcessCDR(1,14375004,1,1,2) [2025-02-01 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375004', 'tblTempUsageDetail_20' ) start [2025-02-01 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375004', 'tblTempUsageDetail_20' ) end [2025-02-01 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:34:21] Production.INFO: ==19823== Releasing lock... [2025-02-01 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:34:21] Production.INFO: 33 MB #Memory Used# [2025-02-01 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:35:05 [end_date_ymd] => 2025-02-01 01:35:05 [RateCDR] => 1 ) [2025-02-01 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:35:05' and `end` < '2025-02-01 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:35:18] Production.INFO: count ==576 [2025-02-01 01:35:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:35:05 - End Time 2025-02-01 01:35:05 [2025-02-01 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375009', 'tblTempUsageDetail_20' ) start [2025-02-01 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375009', 'tblTempUsageDetail_20' ) end [2025-02-01 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375009', 'tblTempVendorCDR_20' ) start [2025-02-01 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375009', 'tblTempVendorCDR_20' ) end [2025-02-01 01:35:18] Production.INFO: ProcessCDR(1,14375009,1,1,2) [2025-02-01 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375009', 'tblTempUsageDetail_20' ) start [2025-02-01 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375009', 'tblTempUsageDetail_20' ) end [2025-02-01 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:35:21] Production.INFO: ==19902== Releasing lock... [2025-02-01 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:35:21] Production.INFO: 33 MB #Memory Used# [2025-02-01 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:36:05 [end_date_ymd] => 2025-02-01 01:36:05 [RateCDR] => 1 ) [2025-02-01 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:36:05' and `end` < '2025-02-01 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:36:18] Production.INFO: count ==580 [2025-02-01 01:36:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:36:05 - End Time 2025-02-01 01:36:05 [2025-02-01 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375014', 'tblTempUsageDetail_20' ) start [2025-02-01 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375014', 'tblTempUsageDetail_20' ) end [2025-02-01 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375014', 'tblTempVendorCDR_20' ) start [2025-02-01 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375014', 'tblTempVendorCDR_20' ) end [2025-02-01 01:36:18] Production.INFO: ProcessCDR(1,14375014,1,1,2) [2025-02-01 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375014', 'tblTempUsageDetail_20' ) start [2025-02-01 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375014', 'tblTempUsageDetail_20' ) end [2025-02-01 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:36:21] Production.INFO: ==19978== Releasing lock... [2025-02-01 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:36:21] Production.INFO: 33 MB #Memory Used# [2025-02-01 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:37:05 [end_date_ymd] => 2025-02-01 01:37:05 [RateCDR] => 1 ) [2025-02-01 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:37:05' and `end` < '2025-02-01 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:37:20] Production.INFO: count ==583 [2025-02-01 01:37:20] Production.ERROR: pbx CDR StartTime 2025-01-31 22:37:05 - End Time 2025-02-01 01:37:05 [2025-02-01 01:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375019', 'tblTempUsageDetail_20' ) start [2025-02-01 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375019', 'tblTempUsageDetail_20' ) end [2025-02-01 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375019', 'tblTempVendorCDR_20' ) start [2025-02-01 01:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375019', 'tblTempVendorCDR_20' ) end [2025-02-01 01:37:20] Production.INFO: ProcessCDR(1,14375019,1,1,2) [2025-02-01 01:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375019', 'tblTempUsageDetail_20' ) start [2025-02-01 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375019', 'tblTempUsageDetail_20' ) end [2025-02-01 01:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:37:23] Production.INFO: ==20058== Releasing lock... [2025-02-01 01:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:37:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-01 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:38:05 [end_date_ymd] => 2025-02-01 01:38:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:38:05' and `end` < '2025-02-01 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-01 01:38:19] Production.INFO: count ==584 [2025-02-01 01:38:19] Production.ERROR: pbx CDR StartTime 2025-01-31 22:38:05 - End Time 2025-02-01 01:38:05 [2025-02-01 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375024', 'tblTempUsageDetail_20' ) start [2025-02-01 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375024', 'tblTempUsageDetail_20' ) end [2025-02-01 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375024', 'tblTempVendorCDR_20' ) start [2025-02-01 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375024', 'tblTempVendorCDR_20' ) end [2025-02-01 01:38:19] Production.INFO: ProcessCDR(1,14375024,1,1,2) [2025-02-01 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375024', 'tblTempUsageDetail_20' ) start [2025-02-01 01:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375024', 'tblTempUsageDetail_20' ) end [2025-02-01 01:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:38:24] Production.INFO: ==20134== Releasing lock... [2025-02-01 01:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:38:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-01 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:39:05 [end_date_ymd] => 2025-02-01 01:39:05 [RateCDR] => 1 ) [2025-02-01 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:39:05' and `end` < '2025-02-01 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:39:18] Production.INFO: count ==584 [2025-02-01 01:39:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:39:05 - End Time 2025-02-01 01:39:05 [2025-02-01 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375029', 'tblTempUsageDetail_20' ) start [2025-02-01 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375029', 'tblTempUsageDetail_20' ) end [2025-02-01 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375029', 'tblTempVendorCDR_20' ) start [2025-02-01 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375029', 'tblTempVendorCDR_20' ) end [2025-02-01 01:39:18] Production.INFO: ProcessCDR(1,14375029,1,1,2) [2025-02-01 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375029', 'tblTempUsageDetail_20' ) start [2025-02-01 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375029', 'tblTempUsageDetail_20' ) end [2025-02-01 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:39:21] Production.INFO: ==20213== Releasing lock... [2025-02-01 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:39:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-01 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:40:06 [end_date_ymd] => 2025-02-01 01:40:06 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:40:06' and `end` < '2025-02-01 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-01 01:40:19] Production.INFO: count ==588 [2025-02-01 01:40:19] Production.ERROR: pbx CDR StartTime 2025-01-31 22:40:06 - End Time 2025-02-01 01:40:06 [2025-02-01 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375035', 'tblTempUsageDetail_20' ) start [2025-02-01 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375035', 'tblTempUsageDetail_20' ) end [2025-02-01 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375035', 'tblTempVendorCDR_20' ) start [2025-02-01 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375035', 'tblTempVendorCDR_20' ) end [2025-02-01 01:40:19] Production.INFO: ProcessCDR(1,14375035,1,1,2) [2025-02-01 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375035', 'tblTempUsageDetail_20' ) start [2025-02-01 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375035', 'tblTempUsageDetail_20' ) end [2025-02-01 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:40:22] Production.INFO: ==20331== Releasing lock... [2025-02-01 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:40:22] Production.INFO: 33 MB #Memory Used# [2025-02-01 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:41:05 [end_date_ymd] => 2025-02-01 01:41:05 [RateCDR] => 1 ) [2025-02-01 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:41:05' and `end` < '2025-02-01 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:41:18] Production.INFO: count ==602 [2025-02-01 01:41:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:41:05 - End Time 2025-02-01 01:41:05 [2025-02-01 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375040', 'tblTempUsageDetail_20' ) start [2025-02-01 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375040', 'tblTempUsageDetail_20' ) end [2025-02-01 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375040', 'tblTempVendorCDR_20' ) start [2025-02-01 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375040', 'tblTempVendorCDR_20' ) end [2025-02-01 01:41:18] Production.INFO: ProcessCDR(1,14375040,1,1,2) [2025-02-01 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375040', 'tblTempUsageDetail_20' ) start [2025-02-01 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375040', 'tblTempUsageDetail_20' ) end [2025-02-01 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:41:21] Production.INFO: ==20408== Releasing lock... [2025-02-01 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:41:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-01 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:42:06 [end_date_ymd] => 2025-02-01 01:42:06 [RateCDR] => 1 ) [2025-02-01 01:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:42:06' and `end` < '2025-02-01 01:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:42:19] Production.INFO: count ==606 [2025-02-01 01:42:19] Production.ERROR: pbx CDR StartTime 2025-01-31 22:42:06 - End Time 2025-02-01 01:42:06 [2025-02-01 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375045', 'tblTempUsageDetail_20' ) start [2025-02-01 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375045', 'tblTempUsageDetail_20' ) end [2025-02-01 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375045', 'tblTempVendorCDR_20' ) start [2025-02-01 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375045', 'tblTempVendorCDR_20' ) end [2025-02-01 01:42:19] Production.INFO: ProcessCDR(1,14375045,1,1,2) [2025-02-01 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375045', 'tblTempUsageDetail_20' ) start [2025-02-01 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375045', 'tblTempUsageDetail_20' ) end [2025-02-01 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:42:22] Production.INFO: ==20485== Releasing lock... [2025-02-01 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:42:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-01 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:43:05 [end_date_ymd] => 2025-02-01 01:43:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:43:05' and `end` < '2025-02-01 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-01 01:43:18] Production.INFO: count ==597 [2025-02-01 01:43:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:43:05 - End Time 2025-02-01 01:43:05 [2025-02-01 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375050', 'tblTempUsageDetail_20' ) start [2025-02-01 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375050', 'tblTempUsageDetail_20' ) end [2025-02-01 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375050', 'tblTempVendorCDR_20' ) start [2025-02-01 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375050', 'tblTempVendorCDR_20' ) end [2025-02-01 01:43:18] Production.INFO: ProcessCDR(1,14375050,1,1,2) [2025-02-01 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375050', 'tblTempUsageDetail_20' ) start [2025-02-01 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375050', 'tblTempUsageDetail_20' ) end [2025-02-01 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:43:21] Production.INFO: ==20560== Releasing lock... [2025-02-01 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:43:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-01 01:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:44:04 [end_date_ymd] => 2025-02-01 01:44:04 [RateCDR] => 1 ) [2025-02-01 01:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:44:04' and `end` < '2025-02-01 01:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:44:17] Production.INFO: count ==591 [2025-02-01 01:44:17] Production.ERROR: pbx CDR StartTime 2025-01-31 22:44:04 - End Time 2025-02-01 01:44:04 [2025-02-01 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375055', 'tblTempUsageDetail_20' ) start [2025-02-01 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375055', 'tblTempUsageDetail_20' ) end [2025-02-01 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375055', 'tblTempVendorCDR_20' ) start [2025-02-01 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375055', 'tblTempVendorCDR_20' ) end [2025-02-01 01:44:17] Production.INFO: ProcessCDR(1,14375055,1,1,2) [2025-02-01 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375055', 'tblTempUsageDetail_20' ) start [2025-02-01 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375055', 'tblTempUsageDetail_20' ) end [2025-02-01 01:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:44:20] Production.INFO: ==20636== Releasing lock... [2025-02-01 01:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:44:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-01 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:45:05 [end_date_ymd] => 2025-02-01 01:45:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:45:05' and `end` < '2025-02-01 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-01 01:45:18] Production.INFO: count ==589 [2025-02-01 01:45:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:45:05 - End Time 2025-02-01 01:45:05 [2025-02-01 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375060', 'tblTempUsageDetail_20' ) start [2025-02-01 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375060', 'tblTempUsageDetail_20' ) end [2025-02-01 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375060', 'tblTempVendorCDR_20' ) start [2025-02-01 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375060', 'tblTempVendorCDR_20' ) end [2025-02-01 01:45:18] Production.INFO: ProcessCDR(1,14375060,1,1,2) [2025-02-01 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375060', 'tblTempUsageDetail_20' ) start [2025-02-01 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375060', 'tblTempUsageDetail_20' ) end [2025-02-01 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:45:21] Production.INFO: ==20713== Releasing lock... [2025-02-01 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:45:21] Production.INFO: 33 MB #Memory Used# [2025-02-01 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:46:05 [end_date_ymd] => 2025-02-01 01:46:05 [RateCDR] => 1 ) [2025-02-01 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:46:05' and `end` < '2025-02-01 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:46:19] Production.INFO: count ==582 [2025-02-01 01:46:19] Production.ERROR: pbx CDR StartTime 2025-01-31 22:46:05 - End Time 2025-02-01 01:46:05 [2025-02-01 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375065', 'tblTempUsageDetail_20' ) start [2025-02-01 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375065', 'tblTempUsageDetail_20' ) end [2025-02-01 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375065', 'tblTempVendorCDR_20' ) start [2025-02-01 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375065', 'tblTempVendorCDR_20' ) end [2025-02-01 01:46:19] Production.INFO: ProcessCDR(1,14375065,1,1,2) [2025-02-01 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375065', 'tblTempUsageDetail_20' ) start [2025-02-01 01:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375065', 'tblTempUsageDetail_20' ) end [2025-02-01 01:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:46:23] Production.INFO: ==20785== Releasing lock... [2025-02-01 01:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:46:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-01 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:47:05 [end_date_ymd] => 2025-02-01 01:47:05 [RateCDR] => 1 ) [2025-02-01 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:47:05' and `end` < '2025-02-01 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:47:18] Production.INFO: count ==576 [2025-02-01 01:47:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:47:05 - End Time 2025-02-01 01:47:05 [2025-02-01 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375070', 'tblTempUsageDetail_20' ) start [2025-02-01 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375070', 'tblTempUsageDetail_20' ) end [2025-02-01 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375070', 'tblTempVendorCDR_20' ) start [2025-02-01 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375070', 'tblTempVendorCDR_20' ) end [2025-02-01 01:47:18] Production.INFO: ProcessCDR(1,14375070,1,1,2) [2025-02-01 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375070', 'tblTempUsageDetail_20' ) start [2025-02-01 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375070', 'tblTempUsageDetail_20' ) end [2025-02-01 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:47:21] Production.INFO: ==20858== Releasing lock... [2025-02-01 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:47:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-01 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:48:05 [end_date_ymd] => 2025-02-01 01:48:05 [RateCDR] => 1 ) [2025-02-01 01: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-01-31 22:48:05' and `end` < '2025-02-01 01: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-01 01:48:17] Production.INFO: count ==565 [2025-02-01 01:48:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:48:05 - End Time 2025-02-01 01:48:05 [2025-02-01 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375075', 'tblTempUsageDetail_20' ) start [2025-02-01 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375075', 'tblTempUsageDetail_20' ) end [2025-02-01 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375075', 'tblTempVendorCDR_20' ) start [2025-02-01 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375075', 'tblTempVendorCDR_20' ) end [2025-02-01 01:48:18] Production.INFO: ProcessCDR(1,14375075,1,1,2) [2025-02-01 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375075', 'tblTempUsageDetail_20' ) start [2025-02-01 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375075', 'tblTempUsageDetail_20' ) end [2025-02-01 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:48:21] Production.INFO: ==20933== Releasing lock... [2025-02-01 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:48:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:49:05 [end_date_ymd] => 2025-02-01 01:49:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:49:05' and `end` < '2025-02-01 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-01 01:49:20] Production.INFO: count ==563 [2025-02-01 01:49:20] Production.ERROR: pbx CDR StartTime 2025-01-31 22:49:05 - End Time 2025-02-01 01:49:05 [2025-02-01 01:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375080', 'tblTempUsageDetail_20' ) start [2025-02-01 01:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375080', 'tblTempUsageDetail_20' ) end [2025-02-01 01:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375080', 'tblTempVendorCDR_20' ) start [2025-02-01 01:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375080', 'tblTempVendorCDR_20' ) end [2025-02-01 01:49:20] Production.INFO: ProcessCDR(1,14375080,1,1,2) [2025-02-01 01:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375080', 'tblTempUsageDetail_20' ) start [2025-02-01 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375080', 'tblTempUsageDetail_20' ) end [2025-02-01 01:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:49:23] Production.INFO: ==21006== Releasing lock... [2025-02-01 01:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:49:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-01 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:50:06 [end_date_ymd] => 2025-02-01 01:50:06 [RateCDR] => 1 ) [2025-02-01 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:50:06' and `end` < '2025-02-01 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:50:20] Production.INFO: count ==565 [2025-02-01 01:50:20] Production.ERROR: pbx CDR StartTime 2025-01-31 22:50:06 - End Time 2025-02-01 01:50:06 [2025-02-01 01:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375086', 'tblTempUsageDetail_20' ) start [2025-02-01 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375086', 'tblTempUsageDetail_20' ) end [2025-02-01 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375086', 'tblTempVendorCDR_20' ) start [2025-02-01 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375086', 'tblTempVendorCDR_20' ) end [2025-02-01 01:50:20] Production.INFO: ProcessCDR(1,14375086,1,1,2) [2025-02-01 01:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375086', 'tblTempUsageDetail_20' ) start [2025-02-01 01:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375086', 'tblTempUsageDetail_20' ) end [2025-02-01 01:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:50:24] Production.INFO: ==21088== Releasing lock... [2025-02-01 01:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:50:24] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:51:05 [end_date_ymd] => 2025-02-01 01:51:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:51:05' and `end` < '2025-02-01 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-01 01:51:18] Production.INFO: count ==567 [2025-02-01 01:51:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:51:05 - End Time 2025-02-01 01:51:05 [2025-02-01 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375091', 'tblTempUsageDetail_20' ) start [2025-02-01 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375091', 'tblTempUsageDetail_20' ) end [2025-02-01 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375091', 'tblTempVendorCDR_20' ) start [2025-02-01 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375091', 'tblTempVendorCDR_20' ) end [2025-02-01 01:51:18] Production.INFO: ProcessCDR(1,14375091,1,1,2) [2025-02-01 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375091', 'tblTempUsageDetail_20' ) start [2025-02-01 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375091', 'tblTempUsageDetail_20' ) end [2025-02-01 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:51:21] Production.INFO: ==21172== Releasing lock... [2025-02-01 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:51:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:52:05 [end_date_ymd] => 2025-02-01 01:52:05 [RateCDR] => 1 ) [2025-02-01 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:52:05' and `end` < '2025-02-01 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:52:18] Production.INFO: count ==567 [2025-02-01 01:52:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:52:05 - End Time 2025-02-01 01:52:05 [2025-02-01 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375096', 'tblTempUsageDetail_20' ) start [2025-02-01 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375096', 'tblTempUsageDetail_20' ) end [2025-02-01 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375096', 'tblTempVendorCDR_20' ) start [2025-02-01 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375096', 'tblTempVendorCDR_20' ) end [2025-02-01 01:52:18] Production.INFO: ProcessCDR(1,14375096,1,1,2) [2025-02-01 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375096', 'tblTempUsageDetail_20' ) start [2025-02-01 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375096', 'tblTempUsageDetail_20' ) end [2025-02-01 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:52:21] Production.INFO: ==21243== Releasing lock... [2025-02-01 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:52:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:53:05 [end_date_ymd] => 2025-02-01 01:53:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:53:05' and `end` < '2025-02-01 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-01 01:53:19] Production.INFO: count ==567 [2025-02-01 01:53:19] Production.ERROR: pbx CDR StartTime 2025-01-31 22:53:05 - End Time 2025-02-01 01:53:05 [2025-02-01 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375101', 'tblTempUsageDetail_20' ) start [2025-02-01 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375101', 'tblTempUsageDetail_20' ) end [2025-02-01 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375101', 'tblTempVendorCDR_20' ) start [2025-02-01 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375101', 'tblTempVendorCDR_20' ) end [2025-02-01 01:53:19] Production.INFO: ProcessCDR(1,14375101,1,1,2) [2025-02-01 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375101', 'tblTempUsageDetail_20' ) start [2025-02-01 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375101', 'tblTempUsageDetail_20' ) end [2025-02-01 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:53:22] Production.INFO: ==21320== Releasing lock... [2025-02-01 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:53:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:54:05 [end_date_ymd] => 2025-02-01 01:54:05 [RateCDR] => 1 ) [2025-02-01 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:54:05' and `end` < '2025-02-01 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:54:19] Production.INFO: count ==567 [2025-02-01 01:54:19] Production.ERROR: pbx CDR StartTime 2025-01-31 22:54:05 - End Time 2025-02-01 01:54:05 [2025-02-01 01:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375106', 'tblTempUsageDetail_20' ) start [2025-02-01 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375106', 'tblTempUsageDetail_20' ) end [2025-02-01 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375106', 'tblTempVendorCDR_20' ) start [2025-02-01 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375106', 'tblTempVendorCDR_20' ) end [2025-02-01 01:54:19] Production.INFO: ProcessCDR(1,14375106,1,1,2) [2025-02-01 01:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375106', 'tblTempUsageDetail_20' ) start [2025-02-01 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375106', 'tblTempUsageDetail_20' ) end [2025-02-01 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:54:22] Production.INFO: ==21403== Releasing lock... [2025-02-01 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:54:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:55:05 [end_date_ymd] => 2025-02-01 01:55:05 [RateCDR] => 1 ) [2025-02-01 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:55:05' and `end` < '2025-02-01 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:55:18] Production.INFO: count ==569 [2025-02-01 01:55:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:55:05 - End Time 2025-02-01 01:55:05 [2025-02-01 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375111', 'tblTempUsageDetail_20' ) start [2025-02-01 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375111', 'tblTempUsageDetail_20' ) end [2025-02-01 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375111', 'tblTempVendorCDR_20' ) start [2025-02-01 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375111', 'tblTempVendorCDR_20' ) end [2025-02-01 01:55:18] Production.INFO: ProcessCDR(1,14375111,1,1,2) [2025-02-01 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375111', 'tblTempUsageDetail_20' ) start [2025-02-01 01:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375111', 'tblTempUsageDetail_20' ) end [2025-02-01 01:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:55:23] Production.INFO: ==21520== Releasing lock... [2025-02-01 01:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:55:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-01 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:56:05 [end_date_ymd] => 2025-02-01 01:56:05 [RateCDR] => 1 ) [2025-02-01 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:56:05' and `end` < '2025-02-01 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:56:18] Production.INFO: count ==569 [2025-02-01 01:56:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:56:05 - End Time 2025-02-01 01:56:05 [2025-02-01 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375116', 'tblTempUsageDetail_20' ) start [2025-02-01 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375116', 'tblTempUsageDetail_20' ) end [2025-02-01 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375116', 'tblTempVendorCDR_20' ) start [2025-02-01 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375116', 'tblTempVendorCDR_20' ) end [2025-02-01 01:56:18] Production.INFO: ProcessCDR(1,14375116,1,1,2) [2025-02-01 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375116', 'tblTempUsageDetail_20' ) start [2025-02-01 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375116', 'tblTempUsageDetail_20' ) end [2025-02-01 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:56:21] Production.INFO: ==21593== Releasing lock... [2025-02-01 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:56:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-01 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:57:05 [end_date_ymd] => 2025-02-01 01:57:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 22:57:05' and `end` < '2025-02-01 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-01 01:57:19] Production.INFO: count ==569 [2025-02-01 01:57:19] Production.ERROR: pbx CDR StartTime 2025-01-31 22:57:05 - End Time 2025-02-01 01:57:05 [2025-02-01 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375121', 'tblTempUsageDetail_20' ) start [2025-02-01 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375121', 'tblTempUsageDetail_20' ) end [2025-02-01 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375121', 'tblTempVendorCDR_20' ) start [2025-02-01 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375121', 'tblTempVendorCDR_20' ) end [2025-02-01 01:57:19] Production.INFO: ProcessCDR(1,14375121,1,1,2) [2025-02-01 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375121', 'tblTempUsageDetail_20' ) start [2025-02-01 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375121', 'tblTempUsageDetail_20' ) end [2025-02-01 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:57:22] Production.INFO: ==21668== Releasing lock... [2025-02-01 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:57:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-01 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:58:05 [end_date_ymd] => 2025-02-01 01:58:05 [RateCDR] => 1 ) [2025-02-01 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:58:05' and `end` < '2025-02-01 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:58:19] Production.INFO: count ==569 [2025-02-01 01:58:20] Production.ERROR: pbx CDR StartTime 2025-01-31 22:58:05 - End Time 2025-02-01 01:58:05 [2025-02-01 01:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375126', 'tblTempUsageDetail_20' ) start [2025-02-01 01:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375126', 'tblTempUsageDetail_20' ) end [2025-02-01 01:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375126', 'tblTempVendorCDR_20' ) start [2025-02-01 01:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375126', 'tblTempVendorCDR_20' ) end [2025-02-01 01:58:20] Production.INFO: ProcessCDR(1,14375126,1,1,2) [2025-02-01 01:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375126', 'tblTempUsageDetail_20' ) start [2025-02-01 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375126', 'tblTempUsageDetail_20' ) end [2025-02-01 01:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:58:23] Production.INFO: ==21746== Releasing lock... [2025-02-01 01:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:58:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-01 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 22:59:05 [end_date_ymd] => 2025-02-01 01:59:05 [RateCDR] => 1 ) [2025-02-01 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 22:59:05' and `end` < '2025-02-01 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 01:59:18] Production.INFO: count ==569 [2025-02-01 01:59:18] Production.ERROR: pbx CDR StartTime 2025-01-31 22:59:05 - End Time 2025-02-01 01:59:05 [2025-02-01 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375131', 'tblTempUsageDetail_20' ) start [2025-02-01 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375131', 'tblTempUsageDetail_20' ) end [2025-02-01 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375131', 'tblTempVendorCDR_20' ) start [2025-02-01 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375131', 'tblTempVendorCDR_20' ) end [2025-02-01 01:59:18] Production.INFO: ProcessCDR(1,14375131,1,1,2) [2025-02-01 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375131', 'tblTempUsageDetail_20' ) start [2025-02-01 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375131', 'tblTempUsageDetail_20' ) end [2025-02-01 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 01:59:21] Production.INFO: ==21822== Releasing lock... [2025-02-01 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 01:59:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-01 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:00:07 [end_date_ymd] => 2025-02-01 02:00:07 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:00:07' and `end` < '2025-02-01 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-01 02:00:19] Production.INFO: count ==578 [2025-02-01 02:00:20] Production.ERROR: pbx CDR StartTime 2025-01-31 23:00:07 - End Time 2025-02-01 02:00:07 [2025-02-01 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375137', 'tblTempUsageDetail_20' ) start [2025-02-01 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375137', 'tblTempUsageDetail_20' ) end [2025-02-01 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375137', 'tblTempVendorCDR_20' ) start [2025-02-01 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375137', 'tblTempVendorCDR_20' ) end [2025-02-01 02:00:20] Production.INFO: ProcessCDR(1,14375137,1,1,2) [2025-02-01 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375137', 'tblTempUsageDetail_20' ) start [2025-02-01 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375137', 'tblTempUsageDetail_20' ) end [2025-02-01 02:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:00:24] Production.INFO: ==21907== Releasing lock... [2025-02-01 02:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:00:24] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:01:04 [end_date_ymd] => 2025-02-01 02:01:04 [RateCDR] => 1 ) [2025-02-01 02:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:01:04' and `end` < '2025-02-01 02:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:01:18] Production.INFO: count ==595 [2025-02-01 02:01:19] Production.ERROR: pbx CDR StartTime 2025-01-31 23:01:04 - End Time 2025-02-01 02:01:04 [2025-02-01 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375142', 'tblTempUsageDetail_20' ) start [2025-02-01 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375142', 'tblTempUsageDetail_20' ) end [2025-02-01 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375142', 'tblTempVendorCDR_20' ) start [2025-02-01 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375142', 'tblTempVendorCDR_20' ) end [2025-02-01 02:01:19] Production.INFO: ProcessCDR(1,14375142,1,1,2) [2025-02-01 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375142', 'tblTempUsageDetail_20' ) start [2025-02-01 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375142', 'tblTempUsageDetail_20' ) end [2025-02-01 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:01:22] Production.INFO: ==22082== Releasing lock... [2025-02-01 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:01:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:02:05 [end_date_ymd] => 2025-02-01 02:02:05 [RateCDR] => 1 ) [2025-02-01 02: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-01-31 23:02:05' and `end` < '2025-02-01 02: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-01 02:02:18] Production.INFO: count ==590 [2025-02-01 02:02:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:02:05 - End Time 2025-02-01 02:02:05 [2025-02-01 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375147', 'tblTempUsageDetail_20' ) start [2025-02-01 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375147', 'tblTempUsageDetail_20' ) end [2025-02-01 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375147', 'tblTempVendorCDR_20' ) start [2025-02-01 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375147', 'tblTempVendorCDR_20' ) end [2025-02-01 02:02:18] Production.INFO: ProcessCDR(1,14375147,1,1,2) [2025-02-01 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375147', 'tblTempUsageDetail_20' ) start [2025-02-01 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375147', 'tblTempUsageDetail_20' ) end [2025-02-01 02:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:02:23] Production.INFO: ==22159== Releasing lock... [2025-02-01 02:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:02:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:03:04 [end_date_ymd] => 2025-02-01 02:03:04 [RateCDR] => 1 ) [2025-02-01 02:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:03:04' and `end` < '2025-02-01 02:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:03:17] Production.INFO: count ==590 [2025-02-01 02:03:17] Production.ERROR: pbx CDR StartTime 2025-01-31 23:03:04 - End Time 2025-02-01 02:03:04 [2025-02-01 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375152', 'tblTempUsageDetail_20' ) start [2025-02-01 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375152', 'tblTempUsageDetail_20' ) end [2025-02-01 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375152', 'tblTempVendorCDR_20' ) start [2025-02-01 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375152', 'tblTempVendorCDR_20' ) end [2025-02-01 02:03:17] Production.INFO: ProcessCDR(1,14375152,1,1,2) [2025-02-01 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375152', 'tblTempUsageDetail_20' ) start [2025-02-01 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375152', 'tblTempUsageDetail_20' ) end [2025-02-01 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:03:21] Production.INFO: ==22239== Releasing lock... [2025-02-01 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:03:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:04:06 [end_date_ymd] => 2025-02-01 02:04:06 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:04:06' and `end` < '2025-02-01 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-01 02:04:18] Production.INFO: count ==591 [2025-02-01 02:04:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:04:06 - End Time 2025-02-01 02:04:06 [2025-02-01 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375157', 'tblTempUsageDetail_20' ) start [2025-02-01 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375157', 'tblTempUsageDetail_20' ) end [2025-02-01 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375157', 'tblTempVendorCDR_20' ) start [2025-02-01 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375157', 'tblTempVendorCDR_20' ) end [2025-02-01 02:04:18] Production.INFO: ProcessCDR(1,14375157,1,1,2) [2025-02-01 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375157', 'tblTempUsageDetail_20' ) start [2025-02-01 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375157', 'tblTempUsageDetail_20' ) end [2025-02-01 02:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:04:23] Production.INFO: ==22319== Releasing lock... [2025-02-01 02:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:04:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:05:04 [end_date_ymd] => 2025-02-01 02:05:04 [RateCDR] => 1 ) [2025-02-01 02: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-01-31 23:05:04' and `end` < '2025-02-01 02: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-01 02:05:18] Production.INFO: count ==591 [2025-02-01 02:05:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:05:04 - End Time 2025-02-01 02:05:04 [2025-02-01 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375162', 'tblTempUsageDetail_20' ) start [2025-02-01 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375162', 'tblTempUsageDetail_20' ) end [2025-02-01 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375162', 'tblTempVendorCDR_20' ) start [2025-02-01 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375162', 'tblTempVendorCDR_20' ) end [2025-02-01 02:05:18] Production.INFO: ProcessCDR(1,14375162,1,1,2) [2025-02-01 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375162', 'tblTempUsageDetail_20' ) start [2025-02-01 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375162', 'tblTempUsageDetail_20' ) end [2025-02-01 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:05:22] Production.INFO: ==22394== Releasing lock... [2025-02-01 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:05:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:06:05 [end_date_ymd] => 2025-02-01 02:06:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:06:05' and `end` < '2025-02-01 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-01 02:06:19] Production.INFO: count ==590 [2025-02-01 02:06:19] Production.ERROR: pbx CDR StartTime 2025-01-31 23:06:05 - End Time 2025-02-01 02:06:05 [2025-02-01 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375167', 'tblTempUsageDetail_20' ) start [2025-02-01 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375167', 'tblTempUsageDetail_20' ) end [2025-02-01 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375167', 'tblTempVendorCDR_20' ) start [2025-02-01 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375167', 'tblTempVendorCDR_20' ) end [2025-02-01 02:06:19] Production.INFO: ProcessCDR(1,14375167,1,1,2) [2025-02-01 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375167', 'tblTempUsageDetail_20' ) start [2025-02-01 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375167', 'tblTempUsageDetail_20' ) end [2025-02-01 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:06:22] Production.INFO: ==22473== Releasing lock... [2025-02-01 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:06:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:07:05 [end_date_ymd] => 2025-02-01 02:07:05 [RateCDR] => 1 ) [2025-02-01 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:07:05' and `end` < '2025-02-01 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:07:19] Production.INFO: count ==584 [2025-02-01 02:07:19] Production.ERROR: pbx CDR StartTime 2025-01-31 23:07:05 - End Time 2025-02-01 02:07:05 [2025-02-01 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375172', 'tblTempUsageDetail_20' ) start [2025-02-01 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375172', 'tblTempUsageDetail_20' ) end [2025-02-01 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375172', 'tblTempVendorCDR_20' ) start [2025-02-01 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375172', 'tblTempVendorCDR_20' ) end [2025-02-01 02:07:19] Production.INFO: ProcessCDR(1,14375172,1,1,2) [2025-02-01 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375172', 'tblTempUsageDetail_20' ) start [2025-02-01 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375172', 'tblTempUsageDetail_20' ) end [2025-02-01 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:07:22] Production.INFO: ==22548== Releasing lock... [2025-02-01 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:07:22] Production.INFO: 32 MB #Memory Used# [2025-02-01 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:08:06 [end_date_ymd] => 2025-02-01 02:08:06 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:08:06' and `end` < '2025-02-01 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-01 02:08:20] Production.INFO: count ==588 [2025-02-01 02:08:20] Production.ERROR: pbx CDR StartTime 2025-01-31 23:08:06 - End Time 2025-02-01 02:08:06 [2025-02-01 02:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375177', 'tblTempUsageDetail_20' ) start [2025-02-01 02:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375177', 'tblTempUsageDetail_20' ) end [2025-02-01 02:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375177', 'tblTempVendorCDR_20' ) start [2025-02-01 02:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375177', 'tblTempVendorCDR_20' ) end [2025-02-01 02:08:20] Production.INFO: ProcessCDR(1,14375177,1,1,2) [2025-02-01 02:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375177', 'tblTempUsageDetail_20' ) start [2025-02-01 02:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375177', 'tblTempUsageDetail_20' ) end [2025-02-01 02:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:08:23] Production.INFO: ==22627== Releasing lock... [2025-02-01 02:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:08:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:09:05 [end_date_ymd] => 2025-02-01 02:09:05 [RateCDR] => 1 ) [2025-02-01 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:09:05' and `end` < '2025-02-01 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:09:18] Production.INFO: count ==586 [2025-02-01 02:09:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:09:05 - End Time 2025-02-01 02:09:05 [2025-02-01 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375182', 'tblTempUsageDetail_20' ) start [2025-02-01 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375182', 'tblTempUsageDetail_20' ) end [2025-02-01 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375182', 'tblTempVendorCDR_20' ) start [2025-02-01 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375182', 'tblTempVendorCDR_20' ) end [2025-02-01 02:09:18] Production.INFO: ProcessCDR(1,14375182,1,1,2) [2025-02-01 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375182', 'tblTempUsageDetail_20' ) start [2025-02-01 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375182', 'tblTempUsageDetail_20' ) end [2025-02-01 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:09:22] Production.INFO: ==22713== Releasing lock... [2025-02-01 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:09:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:10:05 [end_date_ymd] => 2025-02-01 02:10:05 [RateCDR] => 1 ) [2025-02-01 02: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-01-31 23:10:05' and `end` < '2025-02-01 02: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-01 02:10:18] Production.INFO: count ==593 [2025-02-01 02:10:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:10:05 - End Time 2025-02-01 02:10:05 [2025-02-01 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375188', 'tblTempUsageDetail_20' ) start [2025-02-01 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375188', 'tblTempUsageDetail_20' ) end [2025-02-01 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375188', 'tblTempVendorCDR_20' ) start [2025-02-01 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375188', 'tblTempVendorCDR_20' ) end [2025-02-01 02:10:18] Production.INFO: ProcessCDR(1,14375188,1,1,2) [2025-02-01 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375188', 'tblTempUsageDetail_20' ) start [2025-02-01 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375188', 'tblTempUsageDetail_20' ) end [2025-02-01 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:10:22] Production.INFO: ==22801== Releasing lock... [2025-02-01 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:10:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:11:05 [end_date_ymd] => 2025-02-01 02:11:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:11:05' and `end` < '2025-02-01 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-01 02:11:19] Production.INFO: count ==600 [2025-02-01 02:11:20] Production.ERROR: pbx CDR StartTime 2025-01-31 23:11:05 - End Time 2025-02-01 02:11:05 [2025-02-01 02:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375193', 'tblTempUsageDetail_20' ) start [2025-02-01 02:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375193', 'tblTempUsageDetail_20' ) end [2025-02-01 02:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375193', 'tblTempVendorCDR_20' ) start [2025-02-01 02:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375193', 'tblTempVendorCDR_20' ) end [2025-02-01 02:11:20] Production.INFO: ProcessCDR(1,14375193,1,1,2) [2025-02-01 02:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375193', 'tblTempUsageDetail_20' ) start [2025-02-01 02:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375193', 'tblTempUsageDetail_20' ) end [2025-02-01 02:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:11:24] Production.INFO: ==22920== Releasing lock... [2025-02-01 02:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:11:24] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:12:05 [end_date_ymd] => 2025-02-01 02:12:05 [RateCDR] => 1 ) [2025-02-01 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:12:05' and `end` < '2025-02-01 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:12:18] Production.INFO: count ==599 [2025-02-01 02:12:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:12:05 - End Time 2025-02-01 02:12:05 [2025-02-01 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375198', 'tblTempUsageDetail_20' ) start [2025-02-01 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375198', 'tblTempUsageDetail_20' ) end [2025-02-01 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375198', 'tblTempVendorCDR_20' ) start [2025-02-01 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375198', 'tblTempVendorCDR_20' ) end [2025-02-01 02:12:18] Production.INFO: ProcessCDR(1,14375198,1,1,2) [2025-02-01 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375198', 'tblTempUsageDetail_20' ) start [2025-02-01 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375198', 'tblTempUsageDetail_20' ) end [2025-02-01 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:12:21] Production.INFO: ==23005== Releasing lock... [2025-02-01 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:12:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:13:05 [end_date_ymd] => 2025-02-01 02:13:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:13:05' and `end` < '2025-02-01 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-01 02:13:19] Production.INFO: count ==599 [2025-02-01 02:13:19] Production.ERROR: pbx CDR StartTime 2025-01-31 23:13:05 - End Time 2025-02-01 02:13:05 [2025-02-01 02:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375203', 'tblTempUsageDetail_20' ) start [2025-02-01 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375203', 'tblTempUsageDetail_20' ) end [2025-02-01 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375203', 'tblTempVendorCDR_20' ) start [2025-02-01 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375203', 'tblTempVendorCDR_20' ) end [2025-02-01 02:13:19] Production.INFO: ProcessCDR(1,14375203,1,1,2) [2025-02-01 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375203', 'tblTempUsageDetail_20' ) start [2025-02-01 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375203', 'tblTempUsageDetail_20' ) end [2025-02-01 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:13:22] Production.INFO: ==23090== Releasing lock... [2025-02-01 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:13:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:14:05 [end_date_ymd] => 2025-02-01 02:14:05 [RateCDR] => 1 ) [2025-02-01 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:14:05' and `end` < '2025-02-01 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:14:19] Production.INFO: count ==597 [2025-02-01 02:14:19] Production.ERROR: pbx CDR StartTime 2025-01-31 23:14:05 - End Time 2025-02-01 02:14:05 [2025-02-01 02:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375208', 'tblTempUsageDetail_20' ) start [2025-02-01 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375208', 'tblTempUsageDetail_20' ) end [2025-02-01 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375208', 'tblTempVendorCDR_20' ) start [2025-02-01 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375208', 'tblTempVendorCDR_20' ) end [2025-02-01 02:14:19] Production.INFO: ProcessCDR(1,14375208,1,1,2) [2025-02-01 02:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375208', 'tblTempUsageDetail_20' ) start [2025-02-01 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375208', 'tblTempUsageDetail_20' ) end [2025-02-01 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:14:22] Production.INFO: ==23174== Releasing lock... [2025-02-01 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:14:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:15:05 [end_date_ymd] => 2025-02-01 02:15:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:15:05' and `end` < '2025-02-01 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-01 02:15:18] Production.INFO: count ==600 [2025-02-01 02:15:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:15:05 - End Time 2025-02-01 02:15:05 [2025-02-01 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375213', 'tblTempUsageDetail_20' ) start [2025-02-01 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375213', 'tblTempUsageDetail_20' ) end [2025-02-01 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375213', 'tblTempVendorCDR_20' ) start [2025-02-01 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375213', 'tblTempVendorCDR_20' ) end [2025-02-01 02:15:18] Production.INFO: ProcessCDR(1,14375213,1,1,2) [2025-02-01 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375213', 'tblTempUsageDetail_20' ) start [2025-02-01 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375213', 'tblTempUsageDetail_20' ) end [2025-02-01 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:15:21] Production.INFO: ==23262== Releasing lock... [2025-02-01 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:15:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:16:05 [end_date_ymd] => 2025-02-01 02:16:05 [RateCDR] => 1 ) [2025-02-01 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:16:05' and `end` < '2025-02-01 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:16:19] Production.INFO: count ==599 [2025-02-01 02:16:19] Production.ERROR: pbx CDR StartTime 2025-01-31 23:16:05 - End Time 2025-02-01 02:16:05 [2025-02-01 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375218', 'tblTempUsageDetail_20' ) start [2025-02-01 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375218', 'tblTempUsageDetail_20' ) end [2025-02-01 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375218', 'tblTempVendorCDR_20' ) start [2025-02-01 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375218', 'tblTempVendorCDR_20' ) end [2025-02-01 02:16:19] Production.INFO: ProcessCDR(1,14375218,1,1,2) [2025-02-01 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375218', 'tblTempUsageDetail_20' ) start [2025-02-01 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375218', 'tblTempUsageDetail_20' ) end [2025-02-01 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:16:22] Production.INFO: ==23344== Releasing lock... [2025-02-01 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:16:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:17:04 [end_date_ymd] => 2025-02-01 02:17:04 [RateCDR] => 1 ) [2025-02-01 02: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-01-31 23:17:04' and `end` < '2025-02-01 02: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-01 02:17:17] Production.INFO: count ==599 [2025-02-01 02:17:17] Production.ERROR: pbx CDR StartTime 2025-01-31 23:17:04 - End Time 2025-02-01 02:17:04 [2025-02-01 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375223', 'tblTempUsageDetail_20' ) start [2025-02-01 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375223', 'tblTempUsageDetail_20' ) end [2025-02-01 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375223', 'tblTempVendorCDR_20' ) start [2025-02-01 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375223', 'tblTempVendorCDR_20' ) end [2025-02-01 02:17:17] Production.INFO: ProcessCDR(1,14375223,1,1,2) [2025-02-01 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375223', 'tblTempUsageDetail_20' ) start [2025-02-01 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375223', 'tblTempUsageDetail_20' ) end [2025-02-01 02:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:17:20] Production.INFO: ==23427== Releasing lock... [2025-02-01 02:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:17:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:18:05 [end_date_ymd] => 2025-02-01 02:18:05 [RateCDR] => 1 ) [2025-02-01 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:18:05' and `end` < '2025-02-01 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:18:19] Production.INFO: count ==598 [2025-02-01 02:18:20] Production.ERROR: pbx CDR StartTime 2025-01-31 23:18:05 - End Time 2025-02-01 02:18:05 [2025-02-01 02:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375228', 'tblTempUsageDetail_20' ) start [2025-02-01 02:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375228', 'tblTempUsageDetail_20' ) end [2025-02-01 02:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375228', 'tblTempVendorCDR_20' ) start [2025-02-01 02:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375228', 'tblTempVendorCDR_20' ) end [2025-02-01 02:18:20] Production.INFO: ProcessCDR(1,14375228,1,1,2) [2025-02-01 02:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375228', 'tblTempUsageDetail_20' ) start [2025-02-01 02:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375228', 'tblTempUsageDetail_20' ) end [2025-02-01 02:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:18:23] Production.INFO: ==23514== Releasing lock... [2025-02-01 02:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:18:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:19:05 [end_date_ymd] => 2025-02-01 02:19:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:19:05' and `end` < '2025-02-01 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-01 02:19:18] Production.INFO: count ==597 [2025-02-01 02:19:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:19:05 - End Time 2025-02-01 02:19:05 [2025-02-01 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375233', 'tblTempUsageDetail_20' ) start [2025-02-01 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375233', 'tblTempUsageDetail_20' ) end [2025-02-01 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375233', 'tblTempVendorCDR_20' ) start [2025-02-01 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375233', 'tblTempVendorCDR_20' ) end [2025-02-01 02:19:18] Production.INFO: ProcessCDR(1,14375233,1,1,2) [2025-02-01 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375233', 'tblTempUsageDetail_20' ) start [2025-02-01 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375233', 'tblTempUsageDetail_20' ) end [2025-02-01 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:19:21] Production.INFO: ==23600== Releasing lock... [2025-02-01 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:19:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:20:06 [end_date_ymd] => 2025-02-01 02:20:06 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:20:06' and `end` < '2025-02-01 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-01 02:20:19] Production.INFO: count ==607 [2025-02-01 02:20:19] Production.ERROR: pbx CDR StartTime 2025-01-31 23:20:06 - End Time 2025-02-01 02:20:06 [2025-02-01 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375239', 'tblTempUsageDetail_20' ) start [2025-02-01 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375239', 'tblTempUsageDetail_20' ) end [2025-02-01 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375239', 'tblTempVendorCDR_20' ) start [2025-02-01 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375239', 'tblTempVendorCDR_20' ) end [2025-02-01 02:20:19] Production.INFO: ProcessCDR(1,14375239,1,1,2) [2025-02-01 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375239', 'tblTempUsageDetail_20' ) start [2025-02-01 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375239', 'tblTempUsageDetail_20' ) end [2025-02-01 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:20:22] Production.INFO: ==23690== Releasing lock... [2025-02-01 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:20:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:21:05 [end_date_ymd] => 2025-02-01 02:21:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:21:05' and `end` < '2025-02-01 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-01 02:21:17] Production.INFO: count ==626 [2025-02-01 02:21:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:21:05 - End Time 2025-02-01 02:21:05 [2025-02-01 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375244', 'tblTempUsageDetail_20' ) start [2025-02-01 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375244', 'tblTempUsageDetail_20' ) end [2025-02-01 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375244', 'tblTempVendorCDR_20' ) start [2025-02-01 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375244', 'tblTempVendorCDR_20' ) end [2025-02-01 02:21:18] Production.INFO: ProcessCDR(1,14375244,1,1,2) [2025-02-01 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375244', 'tblTempUsageDetail_20' ) start [2025-02-01 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375244', 'tblTempUsageDetail_20' ) end [2025-02-01 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:21:20] Production.INFO: ==23780== Releasing lock... [2025-02-01 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:21:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:22:05 [end_date_ymd] => 2025-02-01 02:22:05 [RateCDR] => 1 ) [2025-02-01 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:22:05' and `end` < '2025-02-01 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:22:18] Production.INFO: count ==626 [2025-02-01 02:22:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:22:05 - End Time 2025-02-01 02:22:05 [2025-02-01 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375249', 'tblTempUsageDetail_20' ) start [2025-02-01 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375249', 'tblTempUsageDetail_20' ) end [2025-02-01 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375249', 'tblTempVendorCDR_20' ) start [2025-02-01 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375249', 'tblTempVendorCDR_20' ) end [2025-02-01 02:22:18] Production.INFO: ProcessCDR(1,14375249,1,1,2) [2025-02-01 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375249', 'tblTempUsageDetail_20' ) start [2025-02-01 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375249', 'tblTempUsageDetail_20' ) end [2025-02-01 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:22:21] Production.INFO: ==23861== Releasing lock... [2025-02-01 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:22:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:23:06 [end_date_ymd] => 2025-02-01 02:23:06 [RateCDR] => 1 ) [2025-02-01 02:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:23:06' and `end` < '2025-02-01 02:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:23:18] Production.INFO: count ==626 [2025-02-01 02:23:19] Production.ERROR: pbx CDR StartTime 2025-01-31 23:23:06 - End Time 2025-02-01 02:23:06 [2025-02-01 02:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375254', 'tblTempUsageDetail_20' ) start [2025-02-01 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375254', 'tblTempUsageDetail_20' ) end [2025-02-01 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375254', 'tblTempVendorCDR_20' ) start [2025-02-01 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375254', 'tblTempVendorCDR_20' ) end [2025-02-01 02:23:19] Production.INFO: ProcessCDR(1,14375254,1,1,2) [2025-02-01 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375254', 'tblTempUsageDetail_20' ) start [2025-02-01 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375254', 'tblTempUsageDetail_20' ) end [2025-02-01 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:23:22] Production.INFO: ==23951== Releasing lock... [2025-02-01 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:23:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:24:05 [end_date_ymd] => 2025-02-01 02:24:05 [RateCDR] => 1 ) [2025-02-01 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:24:05' and `end` < '2025-02-01 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:24:18] Production.INFO: count ==626 [2025-02-01 02:24:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:24:05 - End Time 2025-02-01 02:24:05 [2025-02-01 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375259', 'tblTempUsageDetail_20' ) start [2025-02-01 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375259', 'tblTempUsageDetail_20' ) end [2025-02-01 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375259', 'tblTempVendorCDR_20' ) start [2025-02-01 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375259', 'tblTempVendorCDR_20' ) end [2025-02-01 02:24:18] Production.INFO: ProcessCDR(1,14375259,1,1,2) [2025-02-01 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375259', 'tblTempUsageDetail_20' ) start [2025-02-01 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375259', 'tblTempUsageDetail_20' ) end [2025-02-01 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:24:21] Production.INFO: ==24038== Releasing lock... [2025-02-01 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:24:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:25:05 [end_date_ymd] => 2025-02-01 02:25:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:25:05' and `end` < '2025-02-01 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-01 02:25:18] Production.INFO: count ==626 [2025-02-01 02:25:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:25:05 - End Time 2025-02-01 02:25:05 [2025-02-01 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375264', 'tblTempUsageDetail_20' ) start [2025-02-01 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375264', 'tblTempUsageDetail_20' ) end [2025-02-01 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375264', 'tblTempVendorCDR_20' ) start [2025-02-01 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375264', 'tblTempVendorCDR_20' ) end [2025-02-01 02:25:18] Production.INFO: ProcessCDR(1,14375264,1,1,2) [2025-02-01 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375264', 'tblTempUsageDetail_20' ) start [2025-02-01 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375264', 'tblTempUsageDetail_20' ) end [2025-02-01 02:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:25:23] Production.INFO: ==24119== Releasing lock... [2025-02-01 02:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:25:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:26:05 [end_date_ymd] => 2025-02-01 02:26:05 [RateCDR] => 1 ) [2025-02-01 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:26:05' and `end` < '2025-02-01 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:26:18] Production.INFO: count ==624 [2025-02-01 02:26:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:26:05 - End Time 2025-02-01 02:26:05 [2025-02-01 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375269', 'tblTempUsageDetail_20' ) start [2025-02-01 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375269', 'tblTempUsageDetail_20' ) end [2025-02-01 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375269', 'tblTempVendorCDR_20' ) start [2025-02-01 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375269', 'tblTempVendorCDR_20' ) end [2025-02-01 02:26:18] Production.INFO: ProcessCDR(1,14375269,1,1,2) [2025-02-01 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375269', 'tblTempUsageDetail_20' ) start [2025-02-01 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375269', 'tblTempUsageDetail_20' ) end [2025-02-01 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:26:21] Production.INFO: ==24245== Releasing lock... [2025-02-01 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:26:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:27:05 [end_date_ymd] => 2025-02-01 02:27:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:27:05' and `end` < '2025-02-01 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-01 02:27:19] Production.INFO: count ==623 [2025-02-01 02:27:20] Production.ERROR: pbx CDR StartTime 2025-01-31 23:27:05 - End Time 2025-02-01 02:27:05 [2025-02-01 02:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375274', 'tblTempUsageDetail_20' ) start [2025-02-01 02:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375274', 'tblTempUsageDetail_20' ) end [2025-02-01 02:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375274', 'tblTempVendorCDR_20' ) start [2025-02-01 02:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375274', 'tblTempVendorCDR_20' ) end [2025-02-01 02:27:20] Production.INFO: ProcessCDR(1,14375274,1,1,2) [2025-02-01 02:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375274', 'tblTempUsageDetail_20' ) start [2025-02-01 02:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375274', 'tblTempUsageDetail_20' ) end [2025-02-01 02:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:27:23] Production.INFO: ==24326== Releasing lock... [2025-02-01 02:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:27:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:28:05 [end_date_ymd] => 2025-02-01 02:28:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:28:05' and `end` < '2025-02-01 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-01 02:28:17] Production.INFO: count ==623 [2025-02-01 02:28:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:28:05 - End Time 2025-02-01 02:28:05 [2025-02-01 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375279', 'tblTempUsageDetail_20' ) start [2025-02-01 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375279', 'tblTempUsageDetail_20' ) end [2025-02-01 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375279', 'tblTempVendorCDR_20' ) start [2025-02-01 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375279', 'tblTempVendorCDR_20' ) end [2025-02-01 02:28:18] Production.INFO: ProcessCDR(1,14375279,1,1,2) [2025-02-01 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375279', 'tblTempUsageDetail_20' ) start [2025-02-01 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375279', 'tblTempUsageDetail_20' ) end [2025-02-01 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:28:21] Production.INFO: ==24406== Releasing lock... [2025-02-01 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:28:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:29:06 [end_date_ymd] => 2025-02-01 02:29:06 [RateCDR] => 1 ) [2025-02-01 02:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:29:06' and `end` < '2025-02-01 02:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:29:20] Production.INFO: count ==623 [2025-02-01 02:29:20] Production.ERROR: pbx CDR StartTime 2025-01-31 23:29:06 - End Time 2025-02-01 02:29:06 [2025-02-01 02:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375284', 'tblTempUsageDetail_20' ) start [2025-02-01 02:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375284', 'tblTempUsageDetail_20' ) end [2025-02-01 02:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375284', 'tblTempVendorCDR_20' ) start [2025-02-01 02:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375284', 'tblTempVendorCDR_20' ) end [2025-02-01 02:29:20] Production.INFO: ProcessCDR(1,14375284,1,1,2) [2025-02-01 02:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375284', 'tblTempUsageDetail_20' ) start [2025-02-01 02:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375284', 'tblTempUsageDetail_20' ) end [2025-02-01 02:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:29:23] Production.INFO: ==24492== Releasing lock... [2025-02-01 02:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:29:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:30:06 [end_date_ymd] => 2025-02-01 02:30:06 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:30:06' and `end` < '2025-02-01 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-01 02:30:21] Production.INFO: count ==630 [2025-02-01 02:30:21] Production.ERROR: pbx CDR StartTime 2025-01-31 23:30:06 - End Time 2025-02-01 02:30:06 [2025-02-01 02:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375290', 'tblTempUsageDetail_20' ) start [2025-02-01 02:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375290', 'tblTempUsageDetail_20' ) end [2025-02-01 02:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375290', 'tblTempVendorCDR_20' ) start [2025-02-01 02:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375290', 'tblTempVendorCDR_20' ) end [2025-02-01 02:30:21] Production.INFO: ProcessCDR(1,14375290,1,1,2) [2025-02-01 02:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375290', 'tblTempUsageDetail_20' ) start [2025-02-01 02:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375290', 'tblTempUsageDetail_20' ) end [2025-02-01 02:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:30:24] Production.INFO: ==24574== Releasing lock... [2025-02-01 02:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:30:24] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:31:05 [end_date_ymd] => 2025-02-01 02:31:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:31:05' and `end` < '2025-02-01 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-01 02:31:18] Production.INFO: count ==634 [2025-02-01 02:31:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:31:05 - End Time 2025-02-01 02:31:05 [2025-02-01 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375295', 'tblTempUsageDetail_20' ) start [2025-02-01 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375295', 'tblTempUsageDetail_20' ) end [2025-02-01 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375295', 'tblTempVendorCDR_20' ) start [2025-02-01 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375295', 'tblTempVendorCDR_20' ) end [2025-02-01 02:31:18] Production.INFO: ProcessCDR(1,14375295,1,1,2) [2025-02-01 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375295', 'tblTempUsageDetail_20' ) start [2025-02-01 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375295', 'tblTempUsageDetail_20' ) end [2025-02-01 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:31:21] Production.INFO: ==24662== Releasing lock... [2025-02-01 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:31:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:32:06 [end_date_ymd] => 2025-02-01 02:32:06 [RateCDR] => 1 ) [2025-02-01 02:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:32:06' and `end` < '2025-02-01 02:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:32:18] Production.INFO: count ==634 [2025-02-01 02:32:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:32:06 - End Time 2025-02-01 02:32:06 [2025-02-01 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375300', 'tblTempUsageDetail_20' ) start [2025-02-01 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375300', 'tblTempUsageDetail_20' ) end [2025-02-01 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375300', 'tblTempVendorCDR_20' ) start [2025-02-01 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375300', 'tblTempVendorCDR_20' ) end [2025-02-01 02:32:19] Production.INFO: ProcessCDR(1,14375300,1,1,2) [2025-02-01 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375300', 'tblTempUsageDetail_20' ) start [2025-02-01 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375300', 'tblTempUsageDetail_20' ) end [2025-02-01 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:32:22] Production.INFO: ==24750== Releasing lock... [2025-02-01 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:32:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:33:05 [end_date_ymd] => 2025-02-01 02:33:05 [RateCDR] => 1 ) [2025-02-01 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:33:05' and `end` < '2025-02-01 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:33:18] Production.INFO: count ==634 [2025-02-01 02:33:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:33:05 - End Time 2025-02-01 02:33:05 [2025-02-01 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375305', 'tblTempUsageDetail_20' ) start [2025-02-01 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375305', 'tblTempUsageDetail_20' ) end [2025-02-01 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375305', 'tblTempVendorCDR_20' ) start [2025-02-01 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375305', 'tblTempVendorCDR_20' ) end [2025-02-01 02:33:18] Production.INFO: ProcessCDR(1,14375305,1,1,2) [2025-02-01 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375305', 'tblTempUsageDetail_20' ) start [2025-02-01 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375305', 'tblTempUsageDetail_20' ) end [2025-02-01 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:33:21] Production.INFO: ==24839== Releasing lock... [2025-02-01 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:33:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:34:06 [end_date_ymd] => 2025-02-01 02:34:06 [RateCDR] => 1 ) [2025-02-01 02: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-01-31 23:34:06' and `end` < '2025-02-01 02: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-01 02:34:18] Production.INFO: count ==632 [2025-02-01 02:34:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:34:06 - End Time 2025-02-01 02:34:06 [2025-02-01 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375310', 'tblTempUsageDetail_20' ) start [2025-02-01 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375310', 'tblTempUsageDetail_20' ) end [2025-02-01 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375310', 'tblTempVendorCDR_20' ) start [2025-02-01 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375310', 'tblTempVendorCDR_20' ) end [2025-02-01 02:34:18] Production.INFO: ProcessCDR(1,14375310,1,1,2) [2025-02-01 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375310', 'tblTempUsageDetail_20' ) start [2025-02-01 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375310', 'tblTempUsageDetail_20' ) end [2025-02-01 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:34:21] Production.INFO: ==24924== Releasing lock... [2025-02-01 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:34:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:35:05 [end_date_ymd] => 2025-02-01 02:35:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:35:05' and `end` < '2025-02-01 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-01 02:35:18] Production.INFO: count ==632 [2025-02-01 02:35:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:35:05 - End Time 2025-02-01 02:35:05 [2025-02-01 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375315', 'tblTempUsageDetail_20' ) start [2025-02-01 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375315', 'tblTempUsageDetail_20' ) end [2025-02-01 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375315', 'tblTempVendorCDR_20' ) start [2025-02-01 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375315', 'tblTempVendorCDR_20' ) end [2025-02-01 02:35:18] Production.INFO: ProcessCDR(1,14375315,1,1,2) [2025-02-01 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375315', 'tblTempUsageDetail_20' ) start [2025-02-01 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375315', 'tblTempUsageDetail_20' ) end [2025-02-01 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:35:21] Production.INFO: ==25013== Releasing lock... [2025-02-01 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:35:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:36:05 [end_date_ymd] => 2025-02-01 02:36:05 [RateCDR] => 1 ) [2025-02-01 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:36:05' and `end` < '2025-02-01 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:36:19] Production.INFO: count ==628 [2025-02-01 02:36:19] Production.ERROR: pbx CDR StartTime 2025-01-31 23:36:05 - End Time 2025-02-01 02:36:05 [2025-02-01 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375320', 'tblTempUsageDetail_20' ) start [2025-02-01 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375320', 'tblTempUsageDetail_20' ) end [2025-02-01 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375320', 'tblTempVendorCDR_20' ) start [2025-02-01 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375320', 'tblTempVendorCDR_20' ) end [2025-02-01 02:36:19] Production.INFO: ProcessCDR(1,14375320,1,1,2) [2025-02-01 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375320', 'tblTempUsageDetail_20' ) start [2025-02-01 02:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375320', 'tblTempUsageDetail_20' ) end [2025-02-01 02:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:36:24] Production.INFO: ==25101== Releasing lock... [2025-02-01 02:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:36:24] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:37:05 [end_date_ymd] => 2025-02-01 02:37:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:37:05' and `end` < '2025-02-01 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-01 02:37:19] Production.INFO: count ==626 [2025-02-01 02:37:19] Production.ERROR: pbx CDR StartTime 2025-01-31 23:37:05 - End Time 2025-02-01 02:37:05 [2025-02-01 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375325', 'tblTempUsageDetail_20' ) start [2025-02-01 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375325', 'tblTempUsageDetail_20' ) end [2025-02-01 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375325', 'tblTempVendorCDR_20' ) start [2025-02-01 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375325', 'tblTempVendorCDR_20' ) end [2025-02-01 02:37:19] Production.INFO: ProcessCDR(1,14375325,1,1,2) [2025-02-01 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375325', 'tblTempUsageDetail_20' ) start [2025-02-01 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375325', 'tblTempUsageDetail_20' ) end [2025-02-01 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:37:22] Production.INFO: ==25192== Releasing lock... [2025-02-01 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:37:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:38:05 [end_date_ymd] => 2025-02-01 02:38:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:38:05' and `end` < '2025-02-01 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-01 02:38:18] Production.INFO: count ==625 [2025-02-01 02:38:19] Production.ERROR: pbx CDR StartTime 2025-01-31 23:38:05 - End Time 2025-02-01 02:38:05 [2025-02-01 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375330', 'tblTempUsageDetail_20' ) start [2025-02-01 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375330', 'tblTempUsageDetail_20' ) end [2025-02-01 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375330', 'tblTempVendorCDR_20' ) start [2025-02-01 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375330', 'tblTempVendorCDR_20' ) end [2025-02-01 02:38:19] Production.INFO: ProcessCDR(1,14375330,1,1,2) [2025-02-01 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375330', 'tblTempUsageDetail_20' ) start [2025-02-01 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375330', 'tblTempUsageDetail_20' ) end [2025-02-01 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:38:22] Production.INFO: ==25286== Releasing lock... [2025-02-01 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:38:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:39:05 [end_date_ymd] => 2025-02-01 02:39:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:39:05' and `end` < '2025-02-01 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-01 02:39:18] Production.INFO: count ==625 [2025-02-01 02:39:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:39:05 - End Time 2025-02-01 02:39:05 [2025-02-01 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375335', 'tblTempUsageDetail_20' ) start [2025-02-01 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375335', 'tblTempUsageDetail_20' ) end [2025-02-01 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375335', 'tblTempVendorCDR_20' ) start [2025-02-01 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375335', 'tblTempVendorCDR_20' ) end [2025-02-01 02:39:18] Production.INFO: ProcessCDR(1,14375335,1,1,2) [2025-02-01 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375335', 'tblTempUsageDetail_20' ) start [2025-02-01 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375335', 'tblTempUsageDetail_20' ) end [2025-02-01 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:39:21] Production.INFO: ==25371== Releasing lock... [2025-02-01 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:39:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:40:06 [end_date_ymd] => 2025-02-01 02:40:06 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:40:06' and `end` < '2025-02-01 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-01 02:40:19] Production.INFO: count ==631 [2025-02-01 02:40:19] Production.ERROR: pbx CDR StartTime 2025-01-31 23:40:06 - End Time 2025-02-01 02:40:06 [2025-02-01 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375341', 'tblTempUsageDetail_20' ) start [2025-02-01 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375341', 'tblTempUsageDetail_20' ) end [2025-02-01 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375341', 'tblTempVendorCDR_20' ) start [2025-02-01 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375341', 'tblTempVendorCDR_20' ) end [2025-02-01 02:40:19] Production.INFO: ProcessCDR(1,14375341,1,1,2) [2025-02-01 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375341', 'tblTempUsageDetail_20' ) start [2025-02-01 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375341', 'tblTempUsageDetail_20' ) end [2025-02-01 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:40:22] Production.INFO: ==25457== Releasing lock... [2025-02-01 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:40:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:41:05 [end_date_ymd] => 2025-02-01 02:41:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:41:05' and `end` < '2025-02-01 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-01 02:41:18] Production.INFO: count ==632 [2025-02-01 02:41:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:41:05 - End Time 2025-02-01 02:41:05 [2025-02-01 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375346', 'tblTempUsageDetail_20' ) start [2025-02-01 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375346', 'tblTempUsageDetail_20' ) end [2025-02-01 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375346', 'tblTempVendorCDR_20' ) start [2025-02-01 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375346', 'tblTempVendorCDR_20' ) end [2025-02-01 02:41:18] Production.INFO: ProcessCDR(1,14375346,1,1,2) [2025-02-01 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375346', 'tblTempUsageDetail_20' ) start [2025-02-01 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375346', 'tblTempUsageDetail_20' ) end [2025-02-01 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:41:21] Production.INFO: ==25555== Releasing lock... [2025-02-01 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:41:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:42:05 [end_date_ymd] => 2025-02-01 02:42:05 [RateCDR] => 1 ) [2025-02-01 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:42:05' and `end` < '2025-02-01 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:42:18] Production.INFO: count ==632 [2025-02-01 02:42:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:42:05 - End Time 2025-02-01 02:42:05 [2025-02-01 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375351', 'tblTempUsageDetail_20' ) start [2025-02-01 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375351', 'tblTempUsageDetail_20' ) end [2025-02-01 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375351', 'tblTempVendorCDR_20' ) start [2025-02-01 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375351', 'tblTempVendorCDR_20' ) end [2025-02-01 02:42:18] Production.INFO: ProcessCDR(1,14375351,1,1,2) [2025-02-01 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375351', 'tblTempUsageDetail_20' ) start [2025-02-01 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375351', 'tblTempUsageDetail_20' ) end [2025-02-01 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:42:21] Production.INFO: ==25686== Releasing lock... [2025-02-01 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:42:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:43:05 [end_date_ymd] => 2025-02-01 02:43:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:43:05' and `end` < '2025-02-01 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-01 02:43:18] Production.INFO: count ==631 [2025-02-01 02:43:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:43:05 - End Time 2025-02-01 02:43:05 [2025-02-01 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375356', 'tblTempUsageDetail_20' ) start [2025-02-01 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375356', 'tblTempUsageDetail_20' ) end [2025-02-01 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375356', 'tblTempVendorCDR_20' ) start [2025-02-01 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375356', 'tblTempVendorCDR_20' ) end [2025-02-01 02:43:18] Production.INFO: ProcessCDR(1,14375356,1,1,2) [2025-02-01 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375356', 'tblTempUsageDetail_20' ) start [2025-02-01 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375356', 'tblTempUsageDetail_20' ) end [2025-02-01 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:43:21] Production.INFO: ==25782== Releasing lock... [2025-02-01 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:43:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:44:05 [end_date_ymd] => 2025-02-01 02:44:05 [RateCDR] => 1 ) [2025-02-01 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:44:05' and `end` < '2025-02-01 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:44:19] Production.INFO: count ==630 [2025-02-01 02:44:19] Production.ERROR: pbx CDR StartTime 2025-01-31 23:44:05 - End Time 2025-02-01 02:44:05 [2025-02-01 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375361', 'tblTempUsageDetail_20' ) start [2025-02-01 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375361', 'tblTempUsageDetail_20' ) end [2025-02-01 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375361', 'tblTempVendorCDR_20' ) start [2025-02-01 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375361', 'tblTempVendorCDR_20' ) end [2025-02-01 02:44:19] Production.INFO: ProcessCDR(1,14375361,1,1,2) [2025-02-01 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375361', 'tblTempUsageDetail_20' ) start [2025-02-01 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375361', 'tblTempUsageDetail_20' ) end [2025-02-01 02:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:44:23] Production.INFO: ==25875== Releasing lock... [2025-02-01 02:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:44:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:45:05 [end_date_ymd] => 2025-02-01 02:45:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:45:05' and `end` < '2025-02-01 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-01 02:45:18] Production.INFO: count ==630 [2025-02-01 02:45:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:45:05 - End Time 2025-02-01 02:45:05 [2025-02-01 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375366', 'tblTempUsageDetail_20' ) start [2025-02-01 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375366', 'tblTempUsageDetail_20' ) end [2025-02-01 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375366', 'tblTempVendorCDR_20' ) start [2025-02-01 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375366', 'tblTempVendorCDR_20' ) end [2025-02-01 02:45:18] Production.INFO: ProcessCDR(1,14375366,1,1,2) [2025-02-01 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375366', 'tblTempUsageDetail_20' ) start [2025-02-01 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375366', 'tblTempUsageDetail_20' ) end [2025-02-01 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:45:21] Production.INFO: ==25960== Releasing lock... [2025-02-01 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:45:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:46:05 [end_date_ymd] => 2025-02-01 02:46:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:46:05' and `end` < '2025-02-01 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-01 02:46:18] Production.INFO: count ==630 [2025-02-01 02:46:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:46:05 - End Time 2025-02-01 02:46:05 [2025-02-01 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375371', 'tblTempUsageDetail_20' ) start [2025-02-01 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375371', 'tblTempUsageDetail_20' ) end [2025-02-01 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375371', 'tblTempVendorCDR_20' ) start [2025-02-01 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375371', 'tblTempVendorCDR_20' ) end [2025-02-01 02:46:18] Production.INFO: ProcessCDR(1,14375371,1,1,2) [2025-02-01 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375371', 'tblTempUsageDetail_20' ) start [2025-02-01 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375371', 'tblTempUsageDetail_20' ) end [2025-02-01 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:46:21] Production.INFO: ==26046== Releasing lock... [2025-02-01 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:46:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:47:06 [end_date_ymd] => 2025-02-01 02:47:06 [RateCDR] => 1 ) [2025-02-01 02:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:47:06' and `end` < '2025-02-01 02:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:47:19] Production.INFO: count ==630 [2025-02-01 02:47:19] Production.ERROR: pbx CDR StartTime 2025-01-31 23:47:06 - End Time 2025-02-01 02:47:06 [2025-02-01 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375376', 'tblTempUsageDetail_20' ) start [2025-02-01 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375376', 'tblTempUsageDetail_20' ) end [2025-02-01 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375376', 'tblTempVendorCDR_20' ) start [2025-02-01 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375376', 'tblTempVendorCDR_20' ) end [2025-02-01 02:47:19] Production.INFO: ProcessCDR(1,14375376,1,1,2) [2025-02-01 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375376', 'tblTempUsageDetail_20' ) start [2025-02-01 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375376', 'tblTempUsageDetail_20' ) end [2025-02-01 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:47:22] Production.INFO: ==26140== Releasing lock... [2025-02-01 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:47:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:48:05 [end_date_ymd] => 2025-02-01 02:48:05 [RateCDR] => 1 ) [2025-02-01 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:48:05' and `end` < '2025-02-01 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:48:18] Production.INFO: count ==630 [2025-02-01 02:48:19] Production.ERROR: pbx CDR StartTime 2025-01-31 23:48:05 - End Time 2025-02-01 02:48:05 [2025-02-01 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375381', 'tblTempUsageDetail_20' ) start [2025-02-01 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375381', 'tblTempUsageDetail_20' ) end [2025-02-01 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375381', 'tblTempVendorCDR_20' ) start [2025-02-01 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375381', 'tblTempVendorCDR_20' ) end [2025-02-01 02:48:19] Production.INFO: ProcessCDR(1,14375381,1,1,2) [2025-02-01 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375381', 'tblTempUsageDetail_20' ) start [2025-02-01 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375381', 'tblTempUsageDetail_20' ) end [2025-02-01 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:48:22] Production.INFO: ==26224== Releasing lock... [2025-02-01 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:48:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:49:05 [end_date_ymd] => 2025-02-01 02:49:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:49:05' and `end` < '2025-02-01 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-01 02:49:18] Production.INFO: count ==630 [2025-02-01 02:49:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:49:05 - End Time 2025-02-01 02:49:05 [2025-02-01 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375386', 'tblTempUsageDetail_20' ) start [2025-02-01 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375386', 'tblTempUsageDetail_20' ) end [2025-02-01 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375386', 'tblTempVendorCDR_20' ) start [2025-02-01 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375386', 'tblTempVendorCDR_20' ) end [2025-02-01 02:49:18] Production.INFO: ProcessCDR(1,14375386,1,1,2) [2025-02-01 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375386', 'tblTempUsageDetail_20' ) start [2025-02-01 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375386', 'tblTempUsageDetail_20' ) end [2025-02-01 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:49:21] Production.INFO: ==26318== Releasing lock... [2025-02-01 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:49:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:50:06 [end_date_ymd] => 2025-02-01 02:50:06 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:50:06' and `end` < '2025-02-01 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-01 02:50:19] Production.INFO: count ==636 [2025-02-01 02:50:19] Production.ERROR: pbx CDR StartTime 2025-01-31 23:50:06 - End Time 2025-02-01 02:50:06 [2025-02-01 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375392', 'tblTempUsageDetail_20' ) start [2025-02-01 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375392', 'tblTempUsageDetail_20' ) end [2025-02-01 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375392', 'tblTempVendorCDR_20' ) start [2025-02-01 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375392', 'tblTempVendorCDR_20' ) end [2025-02-01 02:50:19] Production.INFO: ProcessCDR(1,14375392,1,1,2) [2025-02-01 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375392', 'tblTempUsageDetail_20' ) start [2025-02-01 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375392', 'tblTempUsageDetail_20' ) end [2025-02-01 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:50:22] Production.INFO: ==26412== Releasing lock... [2025-02-01 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:50:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:51:05 [end_date_ymd] => 2025-02-01 02:51:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:51:05' and `end` < '2025-02-01 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-01 02:51:17] Production.INFO: count ==636 [2025-02-01 02:51:17] Production.ERROR: pbx CDR StartTime 2025-01-31 23:51:05 - End Time 2025-02-01 02:51:05 [2025-02-01 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375397', 'tblTempUsageDetail_20' ) start [2025-02-01 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375397', 'tblTempUsageDetail_20' ) end [2025-02-01 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375397', 'tblTempVendorCDR_20' ) start [2025-02-01 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375397', 'tblTempVendorCDR_20' ) end [2025-02-01 02:51:18] Production.INFO: ProcessCDR(1,14375397,1,1,2) [2025-02-01 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375397', 'tblTempUsageDetail_20' ) start [2025-02-01 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375397', 'tblTempUsageDetail_20' ) end [2025-02-01 02:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:51:20] Production.INFO: ==26503== Releasing lock... [2025-02-01 02:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:51:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:52:05 [end_date_ymd] => 2025-02-01 02:52:05 [RateCDR] => 1 ) [2025-02-01 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:52:05' and `end` < '2025-02-01 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:52:19] Production.INFO: count ==636 [2025-02-01 02:52:19] Production.ERROR: pbx CDR StartTime 2025-01-31 23:52:05 - End Time 2025-02-01 02:52:05 [2025-02-01 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375402', 'tblTempUsageDetail_20' ) start [2025-02-01 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375402', 'tblTempUsageDetail_20' ) end [2025-02-01 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375402', 'tblTempVendorCDR_20' ) start [2025-02-01 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375402', 'tblTempVendorCDR_20' ) end [2025-02-01 02:52:19] Production.INFO: ProcessCDR(1,14375402,1,1,2) [2025-02-01 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375402', 'tblTempUsageDetail_20' ) start [2025-02-01 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375402', 'tblTempUsageDetail_20' ) end [2025-02-01 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:52:22] Production.INFO: ==26602== Releasing lock... [2025-02-01 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:52:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:53:05 [end_date_ymd] => 2025-02-01 02:53:05 [RateCDR] => 1 ) [2025-02-01 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:53:05' and `end` < '2025-02-01 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:53:17] Production.INFO: count ==636 [2025-02-01 02:53:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:53:05 - End Time 2025-02-01 02:53:05 [2025-02-01 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375407', 'tblTempUsageDetail_20' ) start [2025-02-01 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375407', 'tblTempUsageDetail_20' ) end [2025-02-01 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375407', 'tblTempVendorCDR_20' ) start [2025-02-01 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375407', 'tblTempVendorCDR_20' ) end [2025-02-01 02:53:18] Production.INFO: ProcessCDR(1,14375407,1,1,2) [2025-02-01 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375407', 'tblTempUsageDetail_20' ) start [2025-02-01 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375407', 'tblTempUsageDetail_20' ) end [2025-02-01 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:53:21] Production.INFO: ==26687== Releasing lock... [2025-02-01 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:53:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:54:05 [end_date_ymd] => 2025-02-01 02:54:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:54:05' and `end` < '2025-02-01 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-01 02:54:19] Production.INFO: count ==636 [2025-02-01 02:54:19] Production.ERROR: pbx CDR StartTime 2025-01-31 23:54:05 - End Time 2025-02-01 02:54:05 [2025-02-01 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375412', 'tblTempUsageDetail_20' ) start [2025-02-01 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375412', 'tblTempUsageDetail_20' ) end [2025-02-01 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375412', 'tblTempVendorCDR_20' ) start [2025-02-01 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375412', 'tblTempVendorCDR_20' ) end [2025-02-01 02:54:19] Production.INFO: ProcessCDR(1,14375412,1,1,2) [2025-02-01 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375412', 'tblTempUsageDetail_20' ) start [2025-02-01 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375412', 'tblTempUsageDetail_20' ) end [2025-02-01 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:54:22] Production.INFO: ==26779== Releasing lock... [2025-02-01 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:54:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-01 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:55:05 [end_date_ymd] => 2025-02-01 02:55:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:55:05' and `end` < '2025-02-01 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-01 02:55:17] Production.INFO: count ==633 [2025-02-01 02:55:17] Production.ERROR: pbx CDR StartTime 2025-01-31 23:55:05 - End Time 2025-02-01 02:55:05 [2025-02-01 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375417', 'tblTempUsageDetail_20' ) start [2025-02-01 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375417', 'tblTempUsageDetail_20' ) end [2025-02-01 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375417', 'tblTempVendorCDR_20' ) start [2025-02-01 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375417', 'tblTempVendorCDR_20' ) end [2025-02-01 02:55:17] Production.INFO: ProcessCDR(1,14375417,1,1,2) [2025-02-01 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375417', 'tblTempUsageDetail_20' ) start [2025-02-01 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375417', 'tblTempUsageDetail_20' ) end [2025-02-01 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:55:21] Production.INFO: ==26855== Releasing lock... [2025-02-01 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:55:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:56:05 [end_date_ymd] => 2025-02-01 02:56:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:56:05' and `end` < '2025-02-01 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-01 02:56:18] Production.INFO: count ==632 [2025-02-01 02:56:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:56:05 - End Time 2025-02-01 02:56:05 [2025-02-01 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375422', 'tblTempUsageDetail_20' ) start [2025-02-01 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375422', 'tblTempUsageDetail_20' ) end [2025-02-01 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375422', 'tblTempVendorCDR_20' ) start [2025-02-01 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375422', 'tblTempVendorCDR_20' ) end [2025-02-01 02:56:18] Production.INFO: ProcessCDR(1,14375422,1,1,2) [2025-02-01 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375422', 'tblTempUsageDetail_20' ) start [2025-02-01 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375422', 'tblTempUsageDetail_20' ) end [2025-02-01 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:56:21] Production.INFO: ==26945== Releasing lock... [2025-02-01 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:56:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:57:05 [end_date_ymd] => 2025-02-01 02:57:05 [RateCDR] => 1 ) [2025-02-01 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-31 23:57:05' and `end` < '2025-02-01 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 02:57:18] Production.INFO: count ==628 [2025-02-01 02:57:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:57:05 - End Time 2025-02-01 02:57:05 [2025-02-01 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375427', 'tblTempUsageDetail_20' ) start [2025-02-01 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375427', 'tblTempUsageDetail_20' ) end [2025-02-01 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375427', 'tblTempVendorCDR_20' ) start [2025-02-01 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375427', 'tblTempVendorCDR_20' ) end [2025-02-01 02:57:18] Production.INFO: ProcessCDR(1,14375427,1,1,2) [2025-02-01 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375427', 'tblTempUsageDetail_20' ) start [2025-02-01 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375427', 'tblTempUsageDetail_20' ) end [2025-02-01 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:57:21] Production.INFO: ==27067== Releasing lock... [2025-02-01 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:57:21] Production.INFO: 32 MB #Memory Used# [2025-02-01 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:58:05 [end_date_ymd] => 2025-02-01 02:58:05 [RateCDR] => 1 ) [2025-02-01 02: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-01-31 23:58:05' and `end` < '2025-02-01 02: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-01 02:58:18] Production.INFO: count ==626 [2025-02-01 02:58:18] Production.ERROR: pbx CDR StartTime 2025-01-31 23:58:05 - End Time 2025-02-01 02:58:05 [2025-02-01 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375432', 'tblTempUsageDetail_20' ) start [2025-02-01 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375432', 'tblTempUsageDetail_20' ) end [2025-02-01 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375432', 'tblTempVendorCDR_20' ) start [2025-02-01 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375432', 'tblTempVendorCDR_20' ) end [2025-02-01 02:58:18] Production.INFO: ProcessCDR(1,14375432,1,1,2) [2025-02-01 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375432', 'tblTempUsageDetail_20' ) start [2025-02-01 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375432', 'tblTempUsageDetail_20' ) end [2025-02-01 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:58:21] Production.INFO: ==27149== Releasing lock... [2025-02-01 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:58:21] Production.INFO: 32 MB #Memory Used# [2025-02-01 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-31 23:59:05 [end_date_ymd] => 2025-02-01 02:59:05 [RateCDR] => 1 ) [2025-02-01 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-01-31 23:59:05' and `end` < '2025-02-01 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-01 02:59:19] Production.INFO: count ==625 [2025-02-01 02:59:19] Production.ERROR: pbx CDR StartTime 2025-01-31 23:59:05 - End Time 2025-02-01 02:59:05 [2025-02-01 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375437', 'tblTempUsageDetail_20' ) start [2025-02-01 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375437', 'tblTempUsageDetail_20' ) end [2025-02-01 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375437', 'tblTempVendorCDR_20' ) start [2025-02-01 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375437', 'tblTempVendorCDR_20' ) end [2025-02-01 02:59:19] Production.INFO: ProcessCDR(1,14375437,1,1,2) [2025-02-01 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375437', 'tblTempUsageDetail_20' ) start [2025-02-01 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375437', 'tblTempUsageDetail_20' ) end [2025-02-01 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 02:59:22] Production.INFO: ==27231== Releasing lock... [2025-02-01 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 02:59:22] Production.INFO: 32 MB #Memory Used# [2025-02-01 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:00:06 [end_date_ymd] => 2025-02-01 03:00:06 [RateCDR] => 1 ) [2025-02-01 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:00:06' and `end` < '2025-02-01 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-01 03:00:20] Production.INFO: count ==630 [2025-02-01 03:00:20] Production.ERROR: pbx CDR StartTime 2025-02-01 00:00:06 - End Time 2025-02-01 03:00:06 [2025-02-01 03:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375443', 'tblTempUsageDetail_20' ) start [2025-02-01 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375443', 'tblTempUsageDetail_20' ) end [2025-02-01 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375443', 'tblTempVendorCDR_20' ) start [2025-02-01 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375443', 'tblTempVendorCDR_20' ) end [2025-02-01 03:00:20] Production.INFO: ProcessCDR(1,14375443,1,1,2) [2025-02-01 03:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375443', 'tblTempUsageDetail_20' ) start [2025-02-01 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375443', 'tblTempUsageDetail_20' ) end [2025-02-01 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:00:23] Production.INFO: ==27318== Releasing lock... [2025-02-01 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:00:23] Production.INFO: 32 MB #Memory Used# [2025-02-01 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:01:06 [end_date_ymd] => 2025-02-01 03:01:06 [RateCDR] => 1 ) [2025-02-01 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-01 00:01:06' and `end` < '2025-02-01 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-01 03:01:19] Production.INFO: count ==626 [2025-02-01 03:01:19] Production.ERROR: pbx CDR StartTime 2025-02-01 00:01:06 - End Time 2025-02-01 03:01:06 [2025-02-01 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375448', 'tblTempUsageDetail_20' ) start [2025-02-01 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375448', 'tblTempUsageDetail_20' ) end [2025-02-01 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375448', 'tblTempVendorCDR_20' ) start [2025-02-01 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375448', 'tblTempVendorCDR_20' ) end [2025-02-01 03:01:19] Production.INFO: ProcessCDR(1,14375448,1,1,2) [2025-02-01 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375448', 'tblTempUsageDetail_20' ) start [2025-02-01 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375448', 'tblTempUsageDetail_20' ) end [2025-02-01 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:01:22] Production.INFO: ==27421== Releasing lock... [2025-02-01 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:01:22] Production.INFO: 32 MB #Memory Used# [2025-02-01 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:02:05 [end_date_ymd] => 2025-02-01 03:02:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:02:05' and `end` < '2025-02-01 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-01 03:02:19] Production.INFO: count ==625 [2025-02-01 03:02:19] Production.ERROR: pbx CDR StartTime 2025-02-01 00:02:05 - End Time 2025-02-01 03:02:05 [2025-02-01 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375453', 'tblTempUsageDetail_20' ) start [2025-02-01 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375453', 'tblTempUsageDetail_20' ) end [2025-02-01 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375453', 'tblTempVendorCDR_20' ) start [2025-02-01 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375453', 'tblTempVendorCDR_20' ) end [2025-02-01 03:02:19] Production.INFO: ProcessCDR(1,14375453,1,1,2) [2025-02-01 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375453', 'tblTempUsageDetail_20' ) start [2025-02-01 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375453', 'tblTempUsageDetail_20' ) end [2025-02-01 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:02:22] Production.INFO: ==27578== Releasing lock... [2025-02-01 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:02:22] Production.INFO: 32 MB #Memory Used# [2025-02-01 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:03:05 [end_date_ymd] => 2025-02-01 03:03:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:03:05' and `end` < '2025-02-01 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-01 03:03:18] Production.INFO: count ==624 [2025-02-01 03:03:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:03:05 - End Time 2025-02-01 03:03:05 [2025-02-01 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375458', 'tblTempUsageDetail_20' ) start [2025-02-01 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375458', 'tblTempUsageDetail_20' ) end [2025-02-01 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375458', 'tblTempVendorCDR_20' ) start [2025-02-01 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375458', 'tblTempVendorCDR_20' ) end [2025-02-01 03:03:18] Production.INFO: ProcessCDR(1,14375458,1,1,2) [2025-02-01 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375458', 'tblTempUsageDetail_20' ) start [2025-02-01 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375458', 'tblTempUsageDetail_20' ) end [2025-02-01 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:03:21] Production.INFO: ==27659== Releasing lock... [2025-02-01 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:03:21] Production.INFO: 32 MB #Memory Used# [2025-02-01 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:04:05 [end_date_ymd] => 2025-02-01 03:04:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:04:05' and `end` < '2025-02-01 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-01 03:04:20] Production.INFO: count ==624 [2025-02-01 03:04:20] Production.ERROR: pbx CDR StartTime 2025-02-01 00:04:05 - End Time 2025-02-01 03:04:05 [2025-02-01 03:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375463', 'tblTempUsageDetail_20' ) start [2025-02-01 03:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375463', 'tblTempUsageDetail_20' ) end [2025-02-01 03:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375463', 'tblTempVendorCDR_20' ) start [2025-02-01 03:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375463', 'tblTempVendorCDR_20' ) end [2025-02-01 03:04:20] Production.INFO: ProcessCDR(1,14375463,1,1,2) [2025-02-01 03:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375463', 'tblTempUsageDetail_20' ) start [2025-02-01 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375463', 'tblTempUsageDetail_20' ) end [2025-02-01 03:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:04:23] Production.INFO: ==27738== Releasing lock... [2025-02-01 03:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:04:23] Production.INFO: 32 MB #Memory Used# [2025-02-01 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:05:05 [end_date_ymd] => 2025-02-01 03:05:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:05:05' and `end` < '2025-02-01 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-01 03:05:18] Production.INFO: count ==624 [2025-02-01 03:05:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:05:05 - End Time 2025-02-01 03:05:05 [2025-02-01 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375468', 'tblTempUsageDetail_20' ) start [2025-02-01 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375468', 'tblTempUsageDetail_20' ) end [2025-02-01 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375468', 'tblTempVendorCDR_20' ) start [2025-02-01 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375468', 'tblTempVendorCDR_20' ) end [2025-02-01 03:05:18] Production.INFO: ProcessCDR(1,14375468,1,1,2) [2025-02-01 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375468', 'tblTempUsageDetail_20' ) start [2025-02-01 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375468', 'tblTempUsageDetail_20' ) end [2025-02-01 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:05:22] Production.INFO: ==27822== Releasing lock... [2025-02-01 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:05:22] Production.INFO: 32 MB #Memory Used# [2025-02-01 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:06:05 [end_date_ymd] => 2025-02-01 03:06:05 [RateCDR] => 1 ) [2025-02-01 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:06:05' and `end` < '2025-02-01 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:06:18] Production.INFO: count ==624 [2025-02-01 03:06:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:06:05 - End Time 2025-02-01 03:06:05 [2025-02-01 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375473', 'tblTempUsageDetail_20' ) start [2025-02-01 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375473', 'tblTempUsageDetail_20' ) end [2025-02-01 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375473', 'tblTempVendorCDR_20' ) start [2025-02-01 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375473', 'tblTempVendorCDR_20' ) end [2025-02-01 03:06:18] Production.INFO: ProcessCDR(1,14375473,1,1,2) [2025-02-01 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375473', 'tblTempUsageDetail_20' ) start [2025-02-01 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375473', 'tblTempUsageDetail_20' ) end [2025-02-01 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:06:21] Production.INFO: ==27987== Releasing lock... [2025-02-01 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:06:21] Production.INFO: 32 MB #Memory Used# [2025-02-01 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:07:05 [end_date_ymd] => 2025-02-01 03:07:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:07:05' and `end` < '2025-02-01 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-01 03:07:18] Production.INFO: count ==624 [2025-02-01 03:07:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:07:05 - End Time 2025-02-01 03:07:05 [2025-02-01 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375478', 'tblTempUsageDetail_20' ) start [2025-02-01 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375478', 'tblTempUsageDetail_20' ) end [2025-02-01 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375478', 'tblTempVendorCDR_20' ) start [2025-02-01 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375478', 'tblTempVendorCDR_20' ) end [2025-02-01 03:07:18] Production.INFO: ProcessCDR(1,14375478,1,1,2) [2025-02-01 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375478', 'tblTempUsageDetail_20' ) start [2025-02-01 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375478', 'tblTempUsageDetail_20' ) end [2025-02-01 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:07:21] Production.INFO: ==28064== Releasing lock... [2025-02-01 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:07:21] Production.INFO: 32 MB #Memory Used# [2025-02-01 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:08:05 [end_date_ymd] => 2025-02-01 03:08:05 [RateCDR] => 1 ) [2025-02-01 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:08:05' and `end` < '2025-02-01 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:08:18] Production.INFO: count ==624 [2025-02-01 03:08:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:08:05 - End Time 2025-02-01 03:08:05 [2025-02-01 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375483', 'tblTempUsageDetail_20' ) start [2025-02-01 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375483', 'tblTempUsageDetail_20' ) end [2025-02-01 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375483', 'tblTempVendorCDR_20' ) start [2025-02-01 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375483', 'tblTempVendorCDR_20' ) end [2025-02-01 03:08:18] Production.INFO: ProcessCDR(1,14375483,1,1,2) [2025-02-01 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375483', 'tblTempUsageDetail_20' ) start [2025-02-01 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375483', 'tblTempUsageDetail_20' ) end [2025-02-01 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:08:21] Production.INFO: ==28148== Releasing lock... [2025-02-01 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:08:21] Production.INFO: 32 MB #Memory Used# [2025-02-01 03:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:09:06 [end_date_ymd] => 2025-02-01 03:09:06 [RateCDR] => 1 ) [2025-02-01 03: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-01 00:09:06' and `end` < '2025-02-01 03: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-01 03:09:19] Production.INFO: count ==620 [2025-02-01 03:09:19] Production.ERROR: pbx CDR StartTime 2025-02-01 00:09:06 - End Time 2025-02-01 03:09:06 [2025-02-01 03:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375488', 'tblTempUsageDetail_20' ) start [2025-02-01 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375488', 'tblTempUsageDetail_20' ) end [2025-02-01 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375488', 'tblTempVendorCDR_20' ) start [2025-02-01 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375488', 'tblTempVendorCDR_20' ) end [2025-02-01 03:09:19] Production.INFO: ProcessCDR(1,14375488,1,1,2) [2025-02-01 03:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375488', 'tblTempUsageDetail_20' ) start [2025-02-01 03:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375488', 'tblTempUsageDetail_20' ) end [2025-02-01 03:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:09:23] Production.INFO: ==28303== Releasing lock... [2025-02-01 03:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:09:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:10:06 [end_date_ymd] => 2025-02-01 03:10:06 [RateCDR] => 1 ) [2025-02-01 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-01 00:10:06' and `end` < '2025-02-01 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-01 03:10:18] Production.INFO: count ==619 [2025-02-01 03:10:19] Production.ERROR: pbx CDR StartTime 2025-02-01 00:10:06 - End Time 2025-02-01 03:10:06 [2025-02-01 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375494', 'tblTempUsageDetail_20' ) start [2025-02-01 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375494', 'tblTempUsageDetail_20' ) end [2025-02-01 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375494', 'tblTempVendorCDR_20' ) start [2025-02-01 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375494', 'tblTempVendorCDR_20' ) end [2025-02-01 03:10:19] Production.INFO: ProcessCDR(1,14375494,1,1,2) [2025-02-01 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375494', 'tblTempUsageDetail_20' ) start [2025-02-01 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375494', 'tblTempUsageDetail_20' ) end [2025-02-01 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:10:22] Production.INFO: ==28386== Releasing lock... [2025-02-01 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:10:22] Production.INFO: 32 MB #Memory Used# [2025-02-01 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:11:05 [end_date_ymd] => 2025-02-01 03:11:05 [RateCDR] => 1 ) [2025-02-01 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:11:05' and `end` < '2025-02-01 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:11:19] Production.INFO: count ==589 [2025-02-01 03:11:19] Production.ERROR: pbx CDR StartTime 2025-02-01 00:11:05 - End Time 2025-02-01 03:11:05 [2025-02-01 03:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375499', 'tblTempUsageDetail_20' ) start [2025-02-01 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375499', 'tblTempUsageDetail_20' ) end [2025-02-01 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375499', 'tblTempVendorCDR_20' ) start [2025-02-01 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375499', 'tblTempVendorCDR_20' ) end [2025-02-01 03:11:19] Production.INFO: ProcessCDR(1,14375499,1,1,2) [2025-02-01 03:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375499', 'tblTempUsageDetail_20' ) start [2025-02-01 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375499', 'tblTempUsageDetail_20' ) end [2025-02-01 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:11:22] Production.INFO: ==28481== Releasing lock... [2025-02-01 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:11:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:12:05 [end_date_ymd] => 2025-02-01 03:12:05 [RateCDR] => 1 ) [2025-02-01 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:12:05' and `end` < '2025-02-01 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:12:18] Production.INFO: count ==591 [2025-02-01 03:12:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:12:05 - End Time 2025-02-01 03:12:05 [2025-02-01 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375504', 'tblTempUsageDetail_20' ) start [2025-02-01 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375504', 'tblTempUsageDetail_20' ) end [2025-02-01 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375504', 'tblTempVendorCDR_20' ) start [2025-02-01 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375504', 'tblTempVendorCDR_20' ) end [2025-02-01 03:12:18] Production.INFO: ProcessCDR(1,14375504,1,1,2) [2025-02-01 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375504', 'tblTempUsageDetail_20' ) start [2025-02-01 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375504', 'tblTempUsageDetail_20' ) end [2025-02-01 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:12:22] Production.INFO: ==28558== Releasing lock... [2025-02-01 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:12:22] Production.INFO: 32 MB #Memory Used# [2025-02-01 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:13:05 [end_date_ymd] => 2025-02-01 03:13:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:13:05' and `end` < '2025-02-01 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-01 03:13:18] Production.INFO: count ==594 [2025-02-01 03:13:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:13:05 - End Time 2025-02-01 03:13:05 [2025-02-01 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375509', 'tblTempUsageDetail_20' ) start [2025-02-01 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375509', 'tblTempUsageDetail_20' ) end [2025-02-01 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375509', 'tblTempVendorCDR_20' ) start [2025-02-01 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375509', 'tblTempVendorCDR_20' ) end [2025-02-01 03:13:18] Production.INFO: ProcessCDR(1,14375509,1,1,2) [2025-02-01 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375509', 'tblTempUsageDetail_20' ) start [2025-02-01 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375509', 'tblTempUsageDetail_20' ) end [2025-02-01 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:13:21] Production.INFO: ==28753== Releasing lock... [2025-02-01 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:13:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 03:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:14:06 [end_date_ymd] => 2025-02-01 03:14:06 [RateCDR] => 1 ) [2025-02-01 03:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:14:06' and `end` < '2025-02-01 03:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:14:20] Production.INFO: count ==591 [2025-02-01 03:14:20] Production.ERROR: pbx CDR StartTime 2025-02-01 00:14:06 - End Time 2025-02-01 03:14:06 [2025-02-01 03:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375514', 'tblTempUsageDetail_20' ) start [2025-02-01 03:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375514', 'tblTempUsageDetail_20' ) end [2025-02-01 03:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375514', 'tblTempVendorCDR_20' ) start [2025-02-01 03:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375514', 'tblTempVendorCDR_20' ) end [2025-02-01 03:14:20] Production.INFO: ProcessCDR(1,14375514,1,1,2) [2025-02-01 03:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375514', 'tblTempUsageDetail_20' ) start [2025-02-01 03:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375514', 'tblTempUsageDetail_20' ) end [2025-02-01 03:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:14:23] Production.INFO: ==28831== Releasing lock... [2025-02-01 03:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:14:23] Production.INFO: 32 MB #Memory Used# [2025-02-01 03:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:15:04 [end_date_ymd] => 2025-02-01 03:15:04 [RateCDR] => 1 ) [2025-02-01 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-01 00:15:04' and `end` < '2025-02-01 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-01 03:15:17] Production.INFO: count ==586 [2025-02-01 03:15:17] Production.ERROR: pbx CDR StartTime 2025-02-01 00:15:04 - End Time 2025-02-01 03:15:04 [2025-02-01 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375519', 'tblTempUsageDetail_20' ) start [2025-02-01 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375519', 'tblTempUsageDetail_20' ) end [2025-02-01 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375519', 'tblTempVendorCDR_20' ) start [2025-02-01 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375519', 'tblTempVendorCDR_20' ) end [2025-02-01 03:15:17] Production.INFO: ProcessCDR(1,14375519,1,1,2) [2025-02-01 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375519', 'tblTempUsageDetail_20' ) start [2025-02-01 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375519', 'tblTempUsageDetail_20' ) end [2025-02-01 03:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:15:20] Production.INFO: ==28912== Releasing lock... [2025-02-01 03:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:15:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:16:05 [end_date_ymd] => 2025-02-01 03:16:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:16:05' and `end` < '2025-02-01 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-01 03:16:17] Production.INFO: count ==585 [2025-02-01 03:16:17] Production.ERROR: pbx CDR StartTime 2025-02-01 00:16:05 - End Time 2025-02-01 03:16:05 [2025-02-01 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375524', 'tblTempUsageDetail_20' ) start [2025-02-01 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375524', 'tblTempUsageDetail_20' ) end [2025-02-01 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375524', 'tblTempVendorCDR_20' ) start [2025-02-01 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375524', 'tblTempVendorCDR_20' ) end [2025-02-01 03:16:17] Production.INFO: ProcessCDR(1,14375524,1,1,2) [2025-02-01 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375524', 'tblTempUsageDetail_20' ) start [2025-02-01 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375524', 'tblTempUsageDetail_20' ) end [2025-02-01 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:16:21] Production.INFO: ==28989== Releasing lock... [2025-02-01 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:16:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:17:05 [end_date_ymd] => 2025-02-01 03:17:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:17:05' and `end` < '2025-02-01 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-01 03:17:17] Production.INFO: count ==585 [2025-02-01 03:17:17] Production.ERROR: pbx CDR StartTime 2025-02-01 00:17:05 - End Time 2025-02-01 03:17:05 [2025-02-01 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375529', 'tblTempUsageDetail_20' ) start [2025-02-01 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375529', 'tblTempUsageDetail_20' ) end [2025-02-01 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375529', 'tblTempVendorCDR_20' ) start [2025-02-01 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375529', 'tblTempVendorCDR_20' ) end [2025-02-01 03:17:17] Production.INFO: ProcessCDR(1,14375529,1,1,2) [2025-02-01 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375529', 'tblTempUsageDetail_20' ) start [2025-02-01 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375529', 'tblTempUsageDetail_20' ) end [2025-02-01 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:17:21] Production.INFO: ==29149== Releasing lock... [2025-02-01 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:17:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:18:05 [end_date_ymd] => 2025-02-01 03:18:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:18:05' and `end` < '2025-02-01 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-01 03:18:17] Production.INFO: count ==590 [2025-02-01 03:18:17] Production.ERROR: pbx CDR StartTime 2025-02-01 00:18:05 - End Time 2025-02-01 03:18:05 [2025-02-01 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375534', 'tblTempUsageDetail_20' ) start [2025-02-01 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375534', 'tblTempUsageDetail_20' ) end [2025-02-01 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375534', 'tblTempVendorCDR_20' ) start [2025-02-01 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375534', 'tblTempVendorCDR_20' ) end [2025-02-01 03:18:17] Production.INFO: ProcessCDR(1,14375534,1,1,2) [2025-02-01 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375534', 'tblTempUsageDetail_20' ) start [2025-02-01 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375534', 'tblTempUsageDetail_20' ) end [2025-02-01 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:18:21] Production.INFO: ==29227== Releasing lock... [2025-02-01 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:18:21] Production.INFO: 32 MB #Memory Used# [2025-02-01 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:19:04 [end_date_ymd] => 2025-02-01 03:19:04 [RateCDR] => 1 ) [2025-02-01 03:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:19:04' and `end` < '2025-02-01 03:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:19:18] Production.INFO: count ==588 [2025-02-01 03:19:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:19:04 - End Time 2025-02-01 03:19:04 [2025-02-01 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375539', 'tblTempUsageDetail_20' ) start [2025-02-01 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375539', 'tblTempUsageDetail_20' ) end [2025-02-01 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375539', 'tblTempVendorCDR_20' ) start [2025-02-01 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375539', 'tblTempVendorCDR_20' ) end [2025-02-01 03:19:18] Production.INFO: ProcessCDR(1,14375539,1,1,2) [2025-02-01 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375539', 'tblTempUsageDetail_20' ) start [2025-02-01 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375539', 'tblTempUsageDetail_20' ) end [2025-02-01 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:19:21] Production.INFO: ==29305== Releasing lock... [2025-02-01 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:19:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:20:06 [end_date_ymd] => 2025-02-01 03:20:06 [RateCDR] => 1 ) [2025-02-01 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-01 00:20:06' and `end` < '2025-02-01 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-01 03:20:19] Production.INFO: count ==585 [2025-02-01 03:20:19] Production.ERROR: pbx CDR StartTime 2025-02-01 00:20:06 - End Time 2025-02-01 03:20:06 [2025-02-01 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375545', 'tblTempUsageDetail_20' ) start [2025-02-01 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375545', 'tblTempUsageDetail_20' ) end [2025-02-01 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375545', 'tblTempVendorCDR_20' ) start [2025-02-01 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375545', 'tblTempVendorCDR_20' ) end [2025-02-01 03:20:19] Production.INFO: ProcessCDR(1,14375545,1,1,2) [2025-02-01 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375545', 'tblTempUsageDetail_20' ) start [2025-02-01 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375545', 'tblTempUsageDetail_20' ) end [2025-02-01 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:20:22] Production.INFO: ==29392== Releasing lock... [2025-02-01 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:20:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 03:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:21:06 [end_date_ymd] => 2025-02-01 03:21:06 [RateCDR] => 1 ) [2025-02-01 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-01 00:21:06' and `end` < '2025-02-01 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-01 03:21:20] Production.INFO: count ==563 [2025-02-01 03:21:21] Production.ERROR: pbx CDR StartTime 2025-02-01 00:21:06 - End Time 2025-02-01 03:21:06 [2025-02-01 03:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375550', 'tblTempUsageDetail_20' ) start [2025-02-01 03:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375550', 'tblTempUsageDetail_20' ) end [2025-02-01 03:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375550', 'tblTempVendorCDR_20' ) start [2025-02-01 03:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375550', 'tblTempVendorCDR_20' ) end [2025-02-01 03:21:21] Production.INFO: ProcessCDR(1,14375550,1,1,2) [2025-02-01 03:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375550', 'tblTempUsageDetail_20' ) start [2025-02-01 03:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375550', 'tblTempUsageDetail_20' ) end [2025-02-01 03:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:21:24] Production.INFO: ==29472== Releasing lock... [2025-02-01 03:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:21:24] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:22:05 [end_date_ymd] => 2025-02-01 03:22:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:22:05' and `end` < '2025-02-01 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-01 03:22:18] Production.INFO: count ==562 [2025-02-01 03:22:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:22:05 - End Time 2025-02-01 03:22:05 [2025-02-01 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375555', 'tblTempUsageDetail_20' ) start [2025-02-01 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375555', 'tblTempUsageDetail_20' ) end [2025-02-01 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375555', 'tblTempVendorCDR_20' ) start [2025-02-01 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375555', 'tblTempVendorCDR_20' ) end [2025-02-01 03:22:18] Production.INFO: ProcessCDR(1,14375555,1,1,2) [2025-02-01 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375555', 'tblTempUsageDetail_20' ) start [2025-02-01 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375555', 'tblTempUsageDetail_20' ) end [2025-02-01 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:22:21] Production.INFO: ==29547== Releasing lock... [2025-02-01 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:22:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:23:05 [end_date_ymd] => 2025-02-01 03:23:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:23:05' and `end` < '2025-02-01 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-01 03:23:19] Production.INFO: count ==562 [2025-02-01 03:23:19] Production.ERROR: pbx CDR StartTime 2025-02-01 00:23:05 - End Time 2025-02-01 03:23:05 [2025-02-01 03:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375560', 'tblTempUsageDetail_20' ) start [2025-02-01 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375560', 'tblTempUsageDetail_20' ) end [2025-02-01 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375560', 'tblTempVendorCDR_20' ) start [2025-02-01 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375560', 'tblTempVendorCDR_20' ) end [2025-02-01 03:23:19] Production.INFO: ProcessCDR(1,14375560,1,1,2) [2025-02-01 03:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375560', 'tblTempUsageDetail_20' ) start [2025-02-01 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375560', 'tblTempUsageDetail_20' ) end [2025-02-01 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:23:22] Production.INFO: ==29620== Releasing lock... [2025-02-01 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:23:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:24:05 [end_date_ymd] => 2025-02-01 03:24:05 [RateCDR] => 1 ) [2025-02-01 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:24:05' and `end` < '2025-02-01 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:24:18] Production.INFO: count ==562 [2025-02-01 03:24:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:24:05 - End Time 2025-02-01 03:24:05 [2025-02-01 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375565', 'tblTempUsageDetail_20' ) start [2025-02-01 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375565', 'tblTempUsageDetail_20' ) end [2025-02-01 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375565', 'tblTempVendorCDR_20' ) start [2025-02-01 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375565', 'tblTempVendorCDR_20' ) end [2025-02-01 03:24:18] Production.INFO: ProcessCDR(1,14375565,1,1,2) [2025-02-01 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375565', 'tblTempUsageDetail_20' ) start [2025-02-01 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375565', 'tblTempUsageDetail_20' ) end [2025-02-01 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:24:21] Production.INFO: ==29693== Releasing lock... [2025-02-01 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:24:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:25:06 [end_date_ymd] => 2025-02-01 03:25:06 [RateCDR] => 1 ) [2025-02-01 03:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:25:06' and `end` < '2025-02-01 03:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:25:18] Production.INFO: count ==561 [2025-02-01 03:25:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:25:06 - End Time 2025-02-01 03:25:06 [2025-02-01 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375570', 'tblTempUsageDetail_20' ) start [2025-02-01 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375570', 'tblTempUsageDetail_20' ) end [2025-02-01 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375570', 'tblTempVendorCDR_20' ) start [2025-02-01 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375570', 'tblTempVendorCDR_20' ) end [2025-02-01 03:25:18] Production.INFO: ProcessCDR(1,14375570,1,1,2) [2025-02-01 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375570', 'tblTempUsageDetail_20' ) start [2025-02-01 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375570', 'tblTempUsageDetail_20' ) end [2025-02-01 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:25:22] Production.INFO: ==29767== Releasing lock... [2025-02-01 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:25:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:26:05 [end_date_ymd] => 2025-02-01 03:26:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:26:05' and `end` < '2025-02-01 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-01 03:26:18] Production.INFO: count ==561 [2025-02-01 03:26:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:26:05 - End Time 2025-02-01 03:26:05 [2025-02-01 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375575', 'tblTempUsageDetail_20' ) start [2025-02-01 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375575', 'tblTempUsageDetail_20' ) end [2025-02-01 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375575', 'tblTempVendorCDR_20' ) start [2025-02-01 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375575', 'tblTempVendorCDR_20' ) end [2025-02-01 03:26:18] Production.INFO: ProcessCDR(1,14375575,1,1,2) [2025-02-01 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375575', 'tblTempUsageDetail_20' ) start [2025-02-01 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375575', 'tblTempUsageDetail_20' ) end [2025-02-01 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:26:21] Production.INFO: ==29843== Releasing lock... [2025-02-01 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:26:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:27:05 [end_date_ymd] => 2025-02-01 03:27:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:27:05' and `end` < '2025-02-01 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-01 03:27:18] Production.INFO: count ==560 [2025-02-01 03:27:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:27:05 - End Time 2025-02-01 03:27:05 [2025-02-01 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375580', 'tblTempUsageDetail_20' ) start [2025-02-01 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375580', 'tblTempUsageDetail_20' ) end [2025-02-01 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375580', 'tblTempVendorCDR_20' ) start [2025-02-01 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375580', 'tblTempVendorCDR_20' ) end [2025-02-01 03:27:18] Production.INFO: ProcessCDR(1,14375580,1,1,2) [2025-02-01 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375580', 'tblTempUsageDetail_20' ) start [2025-02-01 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375580', 'tblTempUsageDetail_20' ) end [2025-02-01 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:27:21] Production.INFO: ==29917== Releasing lock... [2025-02-01 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:27:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:28:05 [end_date_ymd] => 2025-02-01 03:28:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:28:05' and `end` < '2025-02-01 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-01 03:28:18] Production.INFO: count ==557 [2025-02-01 03:28:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:28:05 - End Time 2025-02-01 03:28:05 [2025-02-01 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375585', 'tblTempUsageDetail_20' ) start [2025-02-01 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375585', 'tblTempUsageDetail_20' ) end [2025-02-01 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375585', 'tblTempVendorCDR_20' ) start [2025-02-01 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375585', 'tblTempVendorCDR_20' ) end [2025-02-01 03:28:18] Production.INFO: ProcessCDR(1,14375585,1,1,2) [2025-02-01 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375585', 'tblTempUsageDetail_20' ) start [2025-02-01 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375585', 'tblTempUsageDetail_20' ) end [2025-02-01 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:28:21] Production.INFO: ==29991== Releasing lock... [2025-02-01 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:28:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:29:05 [end_date_ymd] => 2025-02-01 03:29:05 [RateCDR] => 1 ) [2025-02-01 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:29:05' and `end` < '2025-02-01 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:29:20] Production.INFO: count ==557 [2025-02-01 03:29:20] Production.ERROR: pbx CDR StartTime 2025-02-01 00:29:05 - End Time 2025-02-01 03:29:05 [2025-02-01 03:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375590', 'tblTempUsageDetail_20' ) start [2025-02-01 03:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375590', 'tblTempUsageDetail_20' ) end [2025-02-01 03:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375590', 'tblTempVendorCDR_20' ) start [2025-02-01 03:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375590', 'tblTempVendorCDR_20' ) end [2025-02-01 03:29:20] Production.INFO: ProcessCDR(1,14375590,1,1,2) [2025-02-01 03:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375590', 'tblTempUsageDetail_20' ) start [2025-02-01 03:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375590', 'tblTempUsageDetail_20' ) end [2025-02-01 03:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:29:23] Production.INFO: ==30066== Releasing lock... [2025-02-01 03:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:29:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:30:06 [end_date_ymd] => 2025-02-01 03:30:06 [RateCDR] => 1 ) [2025-02-01 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:30:06' and `end` < '2025-02-01 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:30:19] Production.INFO: count ==550 [2025-02-01 03:30:19] Production.ERROR: pbx CDR StartTime 2025-02-01 00:30:06 - End Time 2025-02-01 03:30:06 [2025-02-01 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375595', 'tblTempUsageDetail_20' ) start [2025-02-01 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375595', 'tblTempUsageDetail_20' ) end [2025-02-01 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375595', 'tblTempVendorCDR_20' ) start [2025-02-01 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375595', 'tblTempVendorCDR_20' ) end [2025-02-01 03:30:19] Production.INFO: ProcessCDR(1,14375595,1,1,2) [2025-02-01 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375595', 'tblTempUsageDetail_20' ) start [2025-02-01 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375595', 'tblTempUsageDetail_20' ) end [2025-02-01 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:30:22] Production.INFO: ==30183== Releasing lock... [2025-02-01 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:30:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:31:05 [end_date_ymd] => 2025-02-01 03:31:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:31:05' and `end` < '2025-02-01 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-01 03:31:19] Production.INFO: count ==538 [2025-02-01 03:31:19] Production.ERROR: pbx CDR StartTime 2025-02-01 00:31:05 - End Time 2025-02-01 03:31:05 [2025-02-01 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375601', 'tblTempUsageDetail_20' ) start [2025-02-01 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375601', 'tblTempUsageDetail_20' ) end [2025-02-01 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375601', 'tblTempVendorCDR_20' ) start [2025-02-01 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375601', 'tblTempVendorCDR_20' ) end [2025-02-01 03:31:19] Production.INFO: ProcessCDR(1,14375601,1,1,2) [2025-02-01 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375601', 'tblTempUsageDetail_20' ) start [2025-02-01 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375601', 'tblTempUsageDetail_20' ) end [2025-02-01 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:31:22] Production.INFO: ==30262== Releasing lock... [2025-02-01 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:31:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:32:06 [end_date_ymd] => 2025-02-01 03:32:06 [RateCDR] => 1 ) [2025-02-01 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-01 00:32:06' and `end` < '2025-02-01 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-01 03:32:18] Production.INFO: count ==539 [2025-02-01 03:32:19] Production.ERROR: pbx CDR StartTime 2025-02-01 00:32:06 - End Time 2025-02-01 03:32:06 [2025-02-01 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375606', 'tblTempUsageDetail_20' ) start [2025-02-01 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375606', 'tblTempUsageDetail_20' ) end [2025-02-01 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375606', 'tblTempVendorCDR_20' ) start [2025-02-01 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375606', 'tblTempVendorCDR_20' ) end [2025-02-01 03:32:19] Production.INFO: ProcessCDR(1,14375606,1,1,2) [2025-02-01 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375606', 'tblTempUsageDetail_20' ) start [2025-02-01 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375606', 'tblTempUsageDetail_20' ) end [2025-02-01 03:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:32:23] Production.INFO: ==30335== Releasing lock... [2025-02-01 03:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:32:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:33:05 [end_date_ymd] => 2025-02-01 03:33:05 [RateCDR] => 1 ) [2025-02-01 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:33:05' and `end` < '2025-02-01 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-01 03:33:18] Production.INFO: count ==539 [2025-02-01 03:33:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:33:05 - End Time 2025-02-01 03:33:05 [2025-02-01 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375611', 'tblTempUsageDetail_20' ) start [2025-02-01 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375611', 'tblTempUsageDetail_20' ) end [2025-02-01 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375611', 'tblTempVendorCDR_20' ) start [2025-02-01 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375611', 'tblTempVendorCDR_20' ) end [2025-02-01 03:33:18] Production.INFO: ProcessCDR(1,14375611,1,1,2) [2025-02-01 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375611', 'tblTempUsageDetail_20' ) start [2025-02-01 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375611', 'tblTempUsageDetail_20' ) end [2025-02-01 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:33:21] Production.INFO: ==30412== Releasing lock... [2025-02-01 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:33:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:34:05 [end_date_ymd] => 2025-02-01 03:34:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:34:05' and `end` < '2025-02-01 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-01 03:34:18] Production.INFO: count ==537 [2025-02-01 03:34:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:34:05 - End Time 2025-02-01 03:34:05 [2025-02-01 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375616', 'tblTempUsageDetail_20' ) start [2025-02-01 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375616', 'tblTempUsageDetail_20' ) end [2025-02-01 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375616', 'tblTempVendorCDR_20' ) start [2025-02-01 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375616', 'tblTempVendorCDR_20' ) end [2025-02-01 03:34:18] Production.INFO: ProcessCDR(1,14375616,1,1,2) [2025-02-01 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375616', 'tblTempUsageDetail_20' ) start [2025-02-01 03:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375616', 'tblTempUsageDetail_20' ) end [2025-02-01 03:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:34:23] Production.INFO: ==30483== Releasing lock... [2025-02-01 03:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:34:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 03:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:35:04 [end_date_ymd] => 2025-02-01 03:35:04 [RateCDR] => 1 ) [2025-02-01 03:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:35:04' and `end` < '2025-02-01 03:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:35:17] Production.INFO: count ==537 [2025-02-01 03:35:17] Production.ERROR: pbx CDR StartTime 2025-02-01 00:35:04 - End Time 2025-02-01 03:35:04 [2025-02-01 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375621', 'tblTempUsageDetail_20' ) start [2025-02-01 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375621', 'tblTempUsageDetail_20' ) end [2025-02-01 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375621', 'tblTempVendorCDR_20' ) start [2025-02-01 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375621', 'tblTempVendorCDR_20' ) end [2025-02-01 03:35:17] Production.INFO: ProcessCDR(1,14375621,1,1,2) [2025-02-01 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375621', 'tblTempUsageDetail_20' ) start [2025-02-01 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375621', 'tblTempUsageDetail_20' ) end [2025-02-01 03:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:35:20] Production.INFO: ==30707== Releasing lock... [2025-02-01 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:35:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:36:05 [end_date_ymd] => 2025-02-01 03:36:05 [RateCDR] => 1 ) [2025-02-01 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:36:05' and `end` < '2025-02-01 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:36:20] Production.INFO: count ==536 [2025-02-01 03:36:20] Production.ERROR: pbx CDR StartTime 2025-02-01 00:36:05 - End Time 2025-02-01 03:36:05 [2025-02-01 03:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375626', 'tblTempUsageDetail_20' ) start [2025-02-01 03:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375626', 'tblTempUsageDetail_20' ) end [2025-02-01 03:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375626', 'tblTempVendorCDR_20' ) start [2025-02-01 03:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375626', 'tblTempVendorCDR_20' ) end [2025-02-01 03:36:20] Production.INFO: ProcessCDR(1,14375626,1,1,2) [2025-02-01 03:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375626', 'tblTempUsageDetail_20' ) start [2025-02-01 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375626', 'tblTempUsageDetail_20' ) end [2025-02-01 03:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:36:23] Production.INFO: ==31091== Releasing lock... [2025-02-01 03:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:36:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:37:06 [end_date_ymd] => 2025-02-01 03:37:06 [RateCDR] => 1 ) [2025-02-01 03:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:37:06' and `end` < '2025-02-01 03:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:37:19] Production.INFO: count ==536 [2025-02-01 03:37:19] Production.ERROR: pbx CDR StartTime 2025-02-01 00:37:06 - End Time 2025-02-01 03:37:06 [2025-02-01 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375631', 'tblTempUsageDetail_20' ) start [2025-02-01 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375631', 'tblTempUsageDetail_20' ) end [2025-02-01 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375631', 'tblTempVendorCDR_20' ) start [2025-02-01 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375631', 'tblTempVendorCDR_20' ) end [2025-02-01 03:37:19] Production.INFO: ProcessCDR(1,14375631,1,1,2) [2025-02-01 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375631', 'tblTempUsageDetail_20' ) start [2025-02-01 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375631', 'tblTempUsageDetail_20' ) end [2025-02-01 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:37:22] Production.INFO: ==31177== Releasing lock... [2025-02-01 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:37:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:38:05 [end_date_ymd] => 2025-02-01 03:38:05 [RateCDR] => 1 ) [2025-02-01 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:38:05' and `end` < '2025-02-01 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:38:18] Production.INFO: count ==535 [2025-02-01 03:38:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:38:05 - End Time 2025-02-01 03:38:05 [2025-02-01 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375636', 'tblTempUsageDetail_20' ) start [2025-02-01 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375636', 'tblTempUsageDetail_20' ) end [2025-02-01 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375636', 'tblTempVendorCDR_20' ) start [2025-02-01 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375636', 'tblTempVendorCDR_20' ) end [2025-02-01 03:38:18] Production.INFO: ProcessCDR(1,14375636,1,1,2) [2025-02-01 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375636', 'tblTempUsageDetail_20' ) start [2025-02-01 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375636', 'tblTempUsageDetail_20' ) end [2025-02-01 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:38:21] Production.INFO: ==31255== Releasing lock... [2025-02-01 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:38:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:39:06 [end_date_ymd] => 2025-02-01 03:39:06 [RateCDR] => 1 ) [2025-02-01 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-01 00:39:06' and `end` < '2025-02-01 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-01 03:39:19] Production.INFO: count ==534 [2025-02-01 03:39:19] Production.ERROR: pbx CDR StartTime 2025-02-01 00:39:06 - End Time 2025-02-01 03:39:06 [2025-02-01 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375641', 'tblTempUsageDetail_20' ) start [2025-02-01 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375641', 'tblTempUsageDetail_20' ) end [2025-02-01 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375641', 'tblTempVendorCDR_20' ) start [2025-02-01 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375641', 'tblTempVendorCDR_20' ) end [2025-02-01 03:39:19] Production.INFO: ProcessCDR(1,14375641,1,1,2) [2025-02-01 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375641', 'tblTempUsageDetail_20' ) start [2025-02-01 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375641', 'tblTempUsageDetail_20' ) end [2025-02-01 03:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:39:23] Production.INFO: ==31324== Releasing lock... [2025-02-01 03:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:39:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:40:06 [end_date_ymd] => 2025-02-01 03:40:06 [RateCDR] => 1 ) [2025-02-01 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:40:06' and `end` < '2025-02-01 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:40:19] Production.INFO: count ==523 [2025-02-01 03:40:19] Production.ERROR: pbx CDR StartTime 2025-02-01 00:40:06 - End Time 2025-02-01 03:40:06 [2025-02-01 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375647', 'tblTempUsageDetail_20' ) start [2025-02-01 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375647', 'tblTempUsageDetail_20' ) end [2025-02-01 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375647', 'tblTempVendorCDR_20' ) start [2025-02-01 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375647', 'tblTempVendorCDR_20' ) end [2025-02-01 03:40:19] Production.INFO: ProcessCDR(1,14375647,1,1,2) [2025-02-01 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375647', 'tblTempUsageDetail_20' ) start [2025-02-01 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375647', 'tblTempUsageDetail_20' ) end [2025-02-01 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:40:22] Production.INFO: ==31403== Releasing lock... [2025-02-01 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:40:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-01 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:41:05 [end_date_ymd] => 2025-02-01 03:41:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:41:05' and `end` < '2025-02-01 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-01 03:41:18] Production.INFO: count ==486 [2025-02-01 03:41:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:41:05 - End Time 2025-02-01 03:41:05 [2025-02-01 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375652', 'tblTempUsageDetail_20' ) start [2025-02-01 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375652', 'tblTempUsageDetail_20' ) end [2025-02-01 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375652', 'tblTempVendorCDR_20' ) start [2025-02-01 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375652', 'tblTempVendorCDR_20' ) end [2025-02-01 03:41:18] Production.INFO: ProcessCDR(1,14375652,1,1,2) [2025-02-01 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375652', 'tblTempUsageDetail_20' ) start [2025-02-01 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375652', 'tblTempUsageDetail_20' ) end [2025-02-01 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:41:21] Production.INFO: ==31480== Releasing lock... [2025-02-01 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:41:21] Production.INFO: 31 MB #Memory Used# [2025-02-01 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:42:05 [end_date_ymd] => 2025-02-01 03:42:05 [RateCDR] => 1 ) [2025-02-01 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:42:05' and `end` < '2025-02-01 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:42:17] Production.INFO: count ==483 [2025-02-01 03:42:17] Production.ERROR: pbx CDR StartTime 2025-02-01 00:42:05 - End Time 2025-02-01 03:42:05 [2025-02-01 03:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375657', 'tblTempUsageDetail_20' ) start [2025-02-01 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375657', 'tblTempUsageDetail_20' ) end [2025-02-01 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375657', 'tblTempVendorCDR_20' ) start [2025-02-01 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375657', 'tblTempVendorCDR_20' ) end [2025-02-01 03:42:17] Production.INFO: ProcessCDR(1,14375657,1,1,2) [2025-02-01 03:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375657', 'tblTempUsageDetail_20' ) start [2025-02-01 03:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375657', 'tblTempUsageDetail_20' ) end [2025-02-01 03:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:42:21] Production.INFO: ==31549== Releasing lock... [2025-02-01 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:42:21] Production.INFO: 31 MB #Memory Used# [2025-02-01 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:43:05 [end_date_ymd] => 2025-02-01 03:43:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:43:05' and `end` < '2025-02-01 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:43:19] Production.INFO: count ==478 [2025-02-01 03:43:19] Production.ERROR: pbx CDR StartTime 2025-02-01 00:43:05 - End Time 2025-02-01 03:43:05 [2025-02-01 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375662', 'tblTempUsageDetail_20' ) start [2025-02-01 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375662', 'tblTempUsageDetail_20' ) end [2025-02-01 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375662', 'tblTempVendorCDR_20' ) start [2025-02-01 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375662', 'tblTempVendorCDR_20' ) end [2025-02-01 03:43:19] Production.INFO: ProcessCDR(1,14375662,1,1,2) [2025-02-01 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375662', 'tblTempUsageDetail_20' ) start [2025-02-01 03:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375662', 'tblTempUsageDetail_20' ) end [2025-02-01 03:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:43:24] Production.INFO: ==31623== Releasing lock... [2025-02-01 03:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:43:24] Production.INFO: 31 MB #Memory Used# [2025-02-01 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:44:06 [end_date_ymd] => 2025-02-01 03:44:06 [RateCDR] => 1 ) [2025-02-01 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-01 00:44:06' and `end` < '2025-02-01 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-01 03:44:19] Production.INFO: count ==478 [2025-02-01 03:44:19] Production.ERROR: pbx CDR StartTime 2025-02-01 00:44:06 - End Time 2025-02-01 03:44:06 [2025-02-01 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375667', 'tblTempUsageDetail_20' ) start [2025-02-01 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375667', 'tblTempUsageDetail_20' ) end [2025-02-01 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375667', 'tblTempVendorCDR_20' ) start [2025-02-01 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375667', 'tblTempVendorCDR_20' ) end [2025-02-01 03:44:19] Production.INFO: ProcessCDR(1,14375667,1,1,2) [2025-02-01 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375667', 'tblTempUsageDetail_20' ) start [2025-02-01 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375667', 'tblTempUsageDetail_20' ) end [2025-02-01 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:44:22] Production.INFO: ==31697== Releasing lock... [2025-02-01 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:44:22] Production.INFO: 31 MB #Memory Used# [2025-02-01 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:45:05 [end_date_ymd] => 2025-02-01 03:45:05 [RateCDR] => 1 ) [2025-02-01 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:45:05' and `end` < '2025-02-01 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:45:18] Production.INFO: count ==471 [2025-02-01 03:45:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:45:05 - End Time 2025-02-01 03:45:05 [2025-02-01 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375672', 'tblTempUsageDetail_20' ) start [2025-02-01 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375672', 'tblTempUsageDetail_20' ) end [2025-02-01 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375672', 'tblTempVendorCDR_20' ) start [2025-02-01 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375672', 'tblTempVendorCDR_20' ) end [2025-02-01 03:45:18] Production.INFO: ProcessCDR(1,14375672,1,1,2) [2025-02-01 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375672', 'tblTempUsageDetail_20' ) start [2025-02-01 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375672', 'tblTempUsageDetail_20' ) end [2025-02-01 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:45:21] Production.INFO: ==31808== Releasing lock... [2025-02-01 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:45:21] Production.INFO: 31 MB #Memory Used# [2025-02-01 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:46:06 [end_date_ymd] => 2025-02-01 03:46:06 [RateCDR] => 1 ) [2025-02-01 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-01 00:46:06' and `end` < '2025-02-01 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-01 03:46:19] Production.INFO: count ==472 [2025-02-01 03:46:20] Production.ERROR: pbx CDR StartTime 2025-02-01 00:46:06 - End Time 2025-02-01 03:46:06 [2025-02-01 03:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375677', 'tblTempUsageDetail_20' ) start [2025-02-01 03:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375677', 'tblTempUsageDetail_20' ) end [2025-02-01 03:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375677', 'tblTempVendorCDR_20' ) start [2025-02-01 03:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375677', 'tblTempVendorCDR_20' ) end [2025-02-01 03:46:20] Production.INFO: ProcessCDR(1,14375677,1,1,2) [2025-02-01 03:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375677', 'tblTempUsageDetail_20' ) start [2025-02-01 03:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375677', 'tblTempUsageDetail_20' ) end [2025-02-01 03:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:46:24] Production.INFO: ==31880== Releasing lock... [2025-02-01 03:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:46:24] Production.INFO: 31 MB #Memory Used# [2025-02-01 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:47:05 [end_date_ymd] => 2025-02-01 03:47:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:47:05' and `end` < '2025-02-01 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-01 03:47:18] Production.INFO: count ==472 [2025-02-01 03:47:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:47:05 - End Time 2025-02-01 03:47:05 [2025-02-01 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375682', 'tblTempUsageDetail_20' ) start [2025-02-01 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375682', 'tblTempUsageDetail_20' ) end [2025-02-01 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375682', 'tblTempVendorCDR_20' ) start [2025-02-01 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375682', 'tblTempVendorCDR_20' ) end [2025-02-01 03:47:18] Production.INFO: ProcessCDR(1,14375682,1,1,2) [2025-02-01 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375682', 'tblTempUsageDetail_20' ) start [2025-02-01 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375682', 'tblTempUsageDetail_20' ) end [2025-02-01 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:47:21] Production.INFO: ==31953== Releasing lock... [2025-02-01 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:47:21] Production.INFO: 31 MB #Memory Used# [2025-02-01 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:48:06 [end_date_ymd] => 2025-02-01 03:48:06 [RateCDR] => 1 ) [2025-02-01 03:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:48:06' and `end` < '2025-02-01 03:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:48:20] Production.INFO: count ==472 [2025-02-01 03:48:20] Production.ERROR: pbx CDR StartTime 2025-02-01 00:48:06 - End Time 2025-02-01 03:48:06 [2025-02-01 03:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375687', 'tblTempUsageDetail_20' ) start [2025-02-01 03:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375687', 'tblTempUsageDetail_20' ) end [2025-02-01 03:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375687', 'tblTempVendorCDR_20' ) start [2025-02-01 03:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375687', 'tblTempVendorCDR_20' ) end [2025-02-01 03:48:20] Production.INFO: ProcessCDR(1,14375687,1,1,2) [2025-02-01 03:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375687', 'tblTempUsageDetail_20' ) start [2025-02-01 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375687', 'tblTempUsageDetail_20' ) end [2025-02-01 03:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:48:23] Production.INFO: ==32027== Releasing lock... [2025-02-01 03:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:48:23] Production.INFO: 31 MB #Memory Used# [2025-02-01 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:49:05 [end_date_ymd] => 2025-02-01 03:49:05 [RateCDR] => 1 ) [2025-02-01 03: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-01 00:49:05' and `end` < '2025-02-01 03: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-01 03:49:18] Production.INFO: count ==471 [2025-02-01 03:49:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:49:05 - End Time 2025-02-01 03:49:05 [2025-02-01 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375692', 'tblTempUsageDetail_20' ) start [2025-02-01 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375692', 'tblTempUsageDetail_20' ) end [2025-02-01 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375692', 'tblTempVendorCDR_20' ) start [2025-02-01 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375692', 'tblTempVendorCDR_20' ) end [2025-02-01 03:49:18] Production.INFO: ProcessCDR(1,14375692,1,1,2) [2025-02-01 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375692', 'tblTempUsageDetail_20' ) start [2025-02-01 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375692', 'tblTempUsageDetail_20' ) end [2025-02-01 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:49:21] Production.INFO: ==32108== Releasing lock... [2025-02-01 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:49:21] Production.INFO: 31 MB #Memory Used# [2025-02-01 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:50:06 [end_date_ymd] => 2025-02-01 03:50:06 [RateCDR] => 1 ) [2025-02-01 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:50:06' and `end` < '2025-02-01 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:50:19] Production.INFO: count ==463 [2025-02-01 03:50:19] Production.ERROR: pbx CDR StartTime 2025-02-01 00:50:06 - End Time 2025-02-01 03:50:06 [2025-02-01 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375698', 'tblTempUsageDetail_20' ) start [2025-02-01 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375698', 'tblTempUsageDetail_20' ) end [2025-02-01 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375698', 'tblTempVendorCDR_20' ) start [2025-02-01 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375698', 'tblTempVendorCDR_20' ) end [2025-02-01 03:50:19] Production.INFO: ProcessCDR(1,14375698,1,1,2) [2025-02-01 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375698', 'tblTempUsageDetail_20' ) start [2025-02-01 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375698', 'tblTempUsageDetail_20' ) end [2025-02-01 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:50:22] Production.INFO: ==32225== Releasing lock... [2025-02-01 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:50:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-01 03:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:51:04 [end_date_ymd] => 2025-02-01 03:51:04 [RateCDR] => 1 ) [2025-02-01 03:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:51:04' and `end` < '2025-02-01 03:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:51:17] Production.INFO: count ==437 [2025-02-01 03:51:17] Production.ERROR: pbx CDR StartTime 2025-02-01 00:51:04 - End Time 2025-02-01 03:51:04 [2025-02-01 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375703', 'tblTempUsageDetail_20' ) start [2025-02-01 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375703', 'tblTempUsageDetail_20' ) end [2025-02-01 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375703', 'tblTempVendorCDR_20' ) start [2025-02-01 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375703', 'tblTempVendorCDR_20' ) end [2025-02-01 03:51:17] Production.INFO: ProcessCDR(1,14375703,1,1,2) [2025-02-01 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375703', 'tblTempUsageDetail_20' ) start [2025-02-01 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375703', 'tblTempUsageDetail_20' ) end [2025-02-01 03:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:51:20] Production.INFO: ==32300== Releasing lock... [2025-02-01 03:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:51:20] Production.INFO: 31 MB #Memory Used# [2025-02-01 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:52:05 [end_date_ymd] => 2025-02-01 03:52:05 [RateCDR] => 1 ) [2025-02-01 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:52:05' and `end` < '2025-02-01 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:52:19] Production.INFO: count ==433 [2025-02-01 03:52:19] Production.ERROR: pbx CDR StartTime 2025-02-01 00:52:05 - End Time 2025-02-01 03:52:05 [2025-02-01 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375708', 'tblTempUsageDetail_20' ) start [2025-02-01 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375708', 'tblTempUsageDetail_20' ) end [2025-02-01 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375708', 'tblTempVendorCDR_20' ) start [2025-02-01 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375708', 'tblTempVendorCDR_20' ) end [2025-02-01 03:52:19] Production.INFO: ProcessCDR(1,14375708,1,1,2) [2025-02-01 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375708', 'tblTempUsageDetail_20' ) start [2025-02-01 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375708', 'tblTempUsageDetail_20' ) end [2025-02-01 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:52:22] Production.INFO: ==32375== Releasing lock... [2025-02-01 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:52:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:53:06 [end_date_ymd] => 2025-02-01 03:53:06 [RateCDR] => 1 ) [2025-02-01 03:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:53:06' and `end` < '2025-02-01 03:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:53:19] Production.INFO: count ==432 [2025-02-01 03:53:19] Production.ERROR: pbx CDR StartTime 2025-02-01 00:53:06 - End Time 2025-02-01 03:53:06 [2025-02-01 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375713', 'tblTempUsageDetail_20' ) start [2025-02-01 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375713', 'tblTempUsageDetail_20' ) end [2025-02-01 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375713', 'tblTempVendorCDR_20' ) start [2025-02-01 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375713', 'tblTempVendorCDR_20' ) end [2025-02-01 03:53:19] Production.INFO: ProcessCDR(1,14375713,1,1,2) [2025-02-01 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375713', 'tblTempUsageDetail_20' ) start [2025-02-01 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375713', 'tblTempUsageDetail_20' ) end [2025-02-01 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:53:22] Production.INFO: ==32451== Releasing lock... [2025-02-01 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:53:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:54:05 [end_date_ymd] => 2025-02-01 03:54:05 [RateCDR] => 1 ) [2025-02-01 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:54:05' and `end` < '2025-02-01 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:54:19] Production.INFO: count ==431 [2025-02-01 03:54:19] Production.ERROR: pbx CDR StartTime 2025-02-01 00:54:05 - End Time 2025-02-01 03:54:05 [2025-02-01 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375718', 'tblTempUsageDetail_20' ) start [2025-02-01 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375718', 'tblTempUsageDetail_20' ) end [2025-02-01 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375718', 'tblTempVendorCDR_20' ) start [2025-02-01 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375718', 'tblTempVendorCDR_20' ) end [2025-02-01 03:54:19] Production.INFO: ProcessCDR(1,14375718,1,1,2) [2025-02-01 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375718', 'tblTempUsageDetail_20' ) start [2025-02-01 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375718', 'tblTempUsageDetail_20' ) end [2025-02-01 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:54:22] Production.INFO: ==32520== Releasing lock... [2025-02-01 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:54:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-01 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:55:05 [end_date_ymd] => 2025-02-01 03:55:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:55:05' and `end` < '2025-02-01 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-01 03:55:18] Production.INFO: count ==431 [2025-02-01 03:55:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:55:05 - End Time 2025-02-01 03:55:05 [2025-02-01 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375723', 'tblTempUsageDetail_20' ) start [2025-02-01 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375723', 'tblTempUsageDetail_20' ) end [2025-02-01 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375723', 'tblTempVendorCDR_20' ) start [2025-02-01 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375723', 'tblTempVendorCDR_20' ) end [2025-02-01 03:55:18] Production.INFO: ProcessCDR(1,14375723,1,1,2) [2025-02-01 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375723', 'tblTempUsageDetail_20' ) start [2025-02-01 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375723', 'tblTempUsageDetail_20' ) end [2025-02-01 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:55:21] Production.INFO: ==32608== Releasing lock... [2025-02-01 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:55:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-01 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:56:05 [end_date_ymd] => 2025-02-01 03:56:05 [RateCDR] => 1 ) [2025-02-01 03: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-01 00:56:05' and `end` < '2025-02-01 03: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-01 03:56:18] Production.INFO: count ==431 [2025-02-01 03:56:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:56:05 - End Time 2025-02-01 03:56:05 [2025-02-01 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375728', 'tblTempUsageDetail_20' ) start [2025-02-01 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375728', 'tblTempUsageDetail_20' ) end [2025-02-01 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375728', 'tblTempVendorCDR_20' ) start [2025-02-01 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375728', 'tblTempVendorCDR_20' ) end [2025-02-01 03:56:18] Production.INFO: ProcessCDR(1,14375728,1,1,2) [2025-02-01 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375728', 'tblTempUsageDetail_20' ) start [2025-02-01 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375728', 'tblTempUsageDetail_20' ) end [2025-02-01 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:56:21] Production.INFO: ==32681== Releasing lock... [2025-02-01 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:56:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-01 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:57:05 [end_date_ymd] => 2025-02-01 03:57:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:57:05' and `end` < '2025-02-01 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-01 03:57:18] Production.INFO: count ==428 [2025-02-01 03:57:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:57:05 - End Time 2025-02-01 03:57:05 [2025-02-01 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375733', 'tblTempUsageDetail_20' ) start [2025-02-01 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375733', 'tblTempUsageDetail_20' ) end [2025-02-01 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375733', 'tblTempVendorCDR_20' ) start [2025-02-01 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375733', 'tblTempVendorCDR_20' ) end [2025-02-01 03:57:18] Production.INFO: ProcessCDR(1,14375733,1,1,2) [2025-02-01 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375733', 'tblTempUsageDetail_20' ) start [2025-02-01 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375733', 'tblTempUsageDetail_20' ) end [2025-02-01 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:57:21] Production.INFO: ==32754== Releasing lock... [2025-02-01 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:57:21] Production.INFO: 31 MB #Memory Used# [2025-02-01 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:58:05 [end_date_ymd] => 2025-02-01 03:58:05 [RateCDR] => 1 ) [2025-02-01 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 00:58:05' and `end` < '2025-02-01 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 03:58:18] Production.INFO: count ==428 [2025-02-01 03:58:18] Production.ERROR: pbx CDR StartTime 2025-02-01 00:58:05 - End Time 2025-02-01 03:58:05 [2025-02-01 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375738', 'tblTempUsageDetail_20' ) start [2025-02-01 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375738', 'tblTempUsageDetail_20' ) end [2025-02-01 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375738', 'tblTempVendorCDR_20' ) start [2025-02-01 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375738', 'tblTempVendorCDR_20' ) end [2025-02-01 03:58:18] Production.INFO: ProcessCDR(1,14375738,1,1,2) [2025-02-01 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375738', 'tblTempUsageDetail_20' ) start [2025-02-01 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375738', 'tblTempUsageDetail_20' ) end [2025-02-01 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:58:21] Production.INFO: ==379== Releasing lock... [2025-02-01 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:58:21] Production.INFO: 31 MB #Memory Used# [2025-02-01 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 00:59:05 [end_date_ymd] => 2025-02-01 03:59:05 [RateCDR] => 1 ) [2025-02-01 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-01 00:59:05' and `end` < '2025-02-01 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-01 03:59:19] Production.INFO: count ==428 [2025-02-01 03:59:19] Production.ERROR: pbx CDR StartTime 2025-02-01 00:59:05 - End Time 2025-02-01 03:59:05 [2025-02-01 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375743', 'tblTempUsageDetail_20' ) start [2025-02-01 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375743', 'tblTempUsageDetail_20' ) end [2025-02-01 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375743', 'tblTempVendorCDR_20' ) start [2025-02-01 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375743', 'tblTempVendorCDR_20' ) end [2025-02-01 03:59:19] Production.INFO: ProcessCDR(1,14375743,1,1,2) [2025-02-01 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375743', 'tblTempUsageDetail_20' ) start [2025-02-01 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375743', 'tblTempUsageDetail_20' ) end [2025-02-01 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 03:59:22] Production.INFO: ==455== Releasing lock... [2025-02-01 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 03:59:22] Production.INFO: 31 MB #Memory Used# [2025-02-01 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:00:06 [end_date_ymd] => 2025-02-01 04:00:06 [RateCDR] => 1 ) [2025-02-01 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 01:00:06' and `end` < '2025-02-01 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 04:00:19] Production.INFO: count ==425 [2025-02-01 04:00:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:00:06 - End Time 2025-02-01 04:00:06 [2025-02-01 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375750', 'tblTempUsageDetail_20' ) start [2025-02-01 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375750', 'tblTempUsageDetail_20' ) end [2025-02-01 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375750', 'tblTempVendorCDR_20' ) start [2025-02-01 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375750', 'tblTempVendorCDR_20' ) end [2025-02-01 04:00:19] Production.INFO: ProcessCDR(1,14375750,1,1,2) [2025-02-01 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375750', 'tblTempUsageDetail_20' ) start [2025-02-01 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375750', 'tblTempUsageDetail_20' ) end [2025-02-01 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:00:23] Production.INFO: ==576== Releasing lock... [2025-02-01 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:00:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-01 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:01:05 [end_date_ymd] => 2025-02-01 04:01:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:01:05' and `end` < '2025-02-01 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-01 04:01:18] Production.INFO: count ==414 [2025-02-01 04:01:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:01:05 - End Time 2025-02-01 04:01:05 [2025-02-01 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375755', 'tblTempUsageDetail_20' ) start [2025-02-01 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375755', 'tblTempUsageDetail_20' ) end [2025-02-01 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375755', 'tblTempVendorCDR_20' ) start [2025-02-01 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375755', 'tblTempVendorCDR_20' ) end [2025-02-01 04:01:18] Production.INFO: ProcessCDR(1,14375755,1,1,2) [2025-02-01 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375755', 'tblTempUsageDetail_20' ) start [2025-02-01 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375755', 'tblTempUsageDetail_20' ) end [2025-02-01 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:01:21] Production.INFO: ==694== Releasing lock... [2025-02-01 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:01:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:02:05 [end_date_ymd] => 2025-02-01 04:02:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:02:05' and `end` < '2025-02-01 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-01 04:02:18] Production.INFO: count ==414 [2025-02-01 04:02:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:02:05 - End Time 2025-02-01 04:02:05 [2025-02-01 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375760', 'tblTempUsageDetail_20' ) start [2025-02-01 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375760', 'tblTempUsageDetail_20' ) end [2025-02-01 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375760', 'tblTempVendorCDR_20' ) start [2025-02-01 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375760', 'tblTempVendorCDR_20' ) end [2025-02-01 04:02:19] Production.INFO: ProcessCDR(1,14375760,1,1,2) [2025-02-01 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375760', 'tblTempUsageDetail_20' ) start [2025-02-01 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375760', 'tblTempUsageDetail_20' ) end [2025-02-01 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:02:21] Production.INFO: ==776== Releasing lock... [2025-02-01 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:02:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:03:05 [end_date_ymd] => 2025-02-01 04:03:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:03:05' and `end` < '2025-02-01 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-01 04:03:17] Production.INFO: count ==414 [2025-02-01 04:03:17] Production.ERROR: pbx CDR StartTime 2025-02-01 01:03:05 - End Time 2025-02-01 04:03:05 [2025-02-01 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375765', 'tblTempUsageDetail_20' ) start [2025-02-01 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375765', 'tblTempUsageDetail_20' ) end [2025-02-01 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375765', 'tblTempVendorCDR_20' ) start [2025-02-01 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375765', 'tblTempVendorCDR_20' ) end [2025-02-01 04:03:17] Production.INFO: ProcessCDR(1,14375765,1,1,2) [2025-02-01 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375765', 'tblTempUsageDetail_20' ) start [2025-02-01 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375765', 'tblTempUsageDetail_20' ) end [2025-02-01 04:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:03:21] Production.INFO: ==845== Releasing lock... [2025-02-01 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:03:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:04:05 [end_date_ymd] => 2025-02-01 04:04:05 [RateCDR] => 1 ) [2025-02-01 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 01:04:05' and `end` < '2025-02-01 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 04:04:18] Production.INFO: count ==414 [2025-02-01 04:04:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:04:05 - End Time 2025-02-01 04:04:05 [2025-02-01 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375770', 'tblTempUsageDetail_20' ) start [2025-02-01 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375770', 'tblTempUsageDetail_20' ) end [2025-02-01 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375770', 'tblTempVendorCDR_20' ) start [2025-02-01 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375770', 'tblTempVendorCDR_20' ) end [2025-02-01 04:04:18] Production.INFO: ProcessCDR(1,14375770,1,1,2) [2025-02-01 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375770', 'tblTempUsageDetail_20' ) start [2025-02-01 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375770', 'tblTempUsageDetail_20' ) end [2025-02-01 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:04:21] Production.INFO: ==925== Releasing lock... [2025-02-01 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:04:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 04:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:05:04 [end_date_ymd] => 2025-02-01 04:05:04 [RateCDR] => 1 ) [2025-02-01 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-01 01:05:04' and `end` < '2025-02-01 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-01 04:05:17] Production.INFO: count ==414 [2025-02-01 04:05:17] Production.ERROR: pbx CDR StartTime 2025-02-01 01:05:04 - End Time 2025-02-01 04:05:04 [2025-02-01 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375775', 'tblTempUsageDetail_20' ) start [2025-02-01 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375775', 'tblTempUsageDetail_20' ) end [2025-02-01 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375775', 'tblTempVendorCDR_20' ) start [2025-02-01 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375775', 'tblTempVendorCDR_20' ) end [2025-02-01 04:05:17] Production.INFO: ProcessCDR(1,14375775,1,1,2) [2025-02-01 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375775', 'tblTempUsageDetail_20' ) start [2025-02-01 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375775', 'tblTempUsageDetail_20' ) end [2025-02-01 04:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:05:20] Production.INFO: ==1002== Releasing lock... [2025-02-01 04:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:05:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:06:05 [end_date_ymd] => 2025-02-01 04:06:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:06:05' and `end` < '2025-02-01 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-01 04:06:18] Production.INFO: count ==414 [2025-02-01 04:06:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:06:05 - End Time 2025-02-01 04:06:05 [2025-02-01 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375780', 'tblTempUsageDetail_20' ) start [2025-02-01 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375780', 'tblTempUsageDetail_20' ) end [2025-02-01 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375780', 'tblTempVendorCDR_20' ) start [2025-02-01 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375780', 'tblTempVendorCDR_20' ) end [2025-02-01 04:06:18] Production.INFO: ProcessCDR(1,14375780,1,1,2) [2025-02-01 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375780', 'tblTempUsageDetail_20' ) start [2025-02-01 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375780', 'tblTempUsageDetail_20' ) end [2025-02-01 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:06:21] Production.INFO: ==1074== Releasing lock... [2025-02-01 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:06:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:07:05 [end_date_ymd] => 2025-02-01 04:07:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:07:05' and `end` < '2025-02-01 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-01 04:07:18] Production.INFO: count ==413 [2025-02-01 04:07:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:07:05 - End Time 2025-02-01 04:07:05 [2025-02-01 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375785', 'tblTempUsageDetail_20' ) start [2025-02-01 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375785', 'tblTempUsageDetail_20' ) end [2025-02-01 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375785', 'tblTempVendorCDR_20' ) start [2025-02-01 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375785', 'tblTempVendorCDR_20' ) end [2025-02-01 04:07:18] Production.INFO: ProcessCDR(1,14375785,1,1,2) [2025-02-01 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375785', 'tblTempUsageDetail_20' ) start [2025-02-01 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375785', 'tblTempUsageDetail_20' ) end [2025-02-01 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:07:21] Production.INFO: ==1155== Releasing lock... [2025-02-01 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:07:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-01 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:08:05 [end_date_ymd] => 2025-02-01 04:08:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:08:05' and `end` < '2025-02-01 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-01 04:08:17] Production.INFO: count ==413 [2025-02-01 04:08:17] Production.ERROR: pbx CDR StartTime 2025-02-01 01:08:05 - End Time 2025-02-01 04:08:05 [2025-02-01 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375790', 'tblTempUsageDetail_20' ) start [2025-02-01 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375790', 'tblTempUsageDetail_20' ) end [2025-02-01 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375790', 'tblTempVendorCDR_20' ) start [2025-02-01 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375790', 'tblTempVendorCDR_20' ) end [2025-02-01 04:08:17] Production.INFO: ProcessCDR(1,14375790,1,1,2) [2025-02-01 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375790', 'tblTempUsageDetail_20' ) start [2025-02-01 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375790', 'tblTempUsageDetail_20' ) end [2025-02-01 04:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:08:20] Production.INFO: ==1233== Releasing lock... [2025-02-01 04:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:08:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-01 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:09:05 [end_date_ymd] => 2025-02-01 04:09:05 [RateCDR] => 1 ) [2025-02-01 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 01:09:05' and `end` < '2025-02-01 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 04:09:18] Production.INFO: count ==413 [2025-02-01 04:09:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:09:05 - End Time 2025-02-01 04:09:05 [2025-02-01 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375795', 'tblTempUsageDetail_20' ) start [2025-02-01 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375795', 'tblTempUsageDetail_20' ) end [2025-02-01 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375795', 'tblTempVendorCDR_20' ) start [2025-02-01 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375795', 'tblTempVendorCDR_20' ) end [2025-02-01 04:09:18] Production.INFO: ProcessCDR(1,14375795,1,1,2) [2025-02-01 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375795', 'tblTempUsageDetail_20' ) start [2025-02-01 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375795', 'tblTempUsageDetail_20' ) end [2025-02-01 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:09:21] Production.INFO: ==1323== Releasing lock... [2025-02-01 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:09:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-01 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:10:06 [end_date_ymd] => 2025-02-01 04:10:06 [RateCDR] => 1 ) [2025-02-01 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-01 01:10:06' and `end` < '2025-02-01 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-01 04:10:19] Production.INFO: count ==409 [2025-02-01 04:10:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:10:06 - End Time 2025-02-01 04:10:06 [2025-02-01 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375801', 'tblTempUsageDetail_20' ) start [2025-02-01 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375801', 'tblTempUsageDetail_20' ) end [2025-02-01 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375801', 'tblTempVendorCDR_20' ) start [2025-02-01 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375801', 'tblTempVendorCDR_20' ) end [2025-02-01 04:10:19] Production.INFO: ProcessCDR(1,14375801,1,1,2) [2025-02-01 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375801', 'tblTempUsageDetail_20' ) start [2025-02-01 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375801', 'tblTempUsageDetail_20' ) end [2025-02-01 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:10:22] Production.INFO: ==1397== Releasing lock... [2025-02-01 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:10:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-01 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:11:05 [end_date_ymd] => 2025-02-01 04:11:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:11:05' and `end` < '2025-02-01 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-01 04:11:19] Production.INFO: count ==400 [2025-02-01 04:11:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:11:05 - End Time 2025-02-01 04:11:05 [2025-02-01 04:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375805', 'tblTempUsageDetail_20' ) start [2025-02-01 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375805', 'tblTempUsageDetail_20' ) end [2025-02-01 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375805', 'tblTempVendorCDR_20' ) start [2025-02-01 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375805', 'tblTempVendorCDR_20' ) end [2025-02-01 04:11:19] Production.INFO: ProcessCDR(1,14375805,1,1,2) [2025-02-01 04:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375805', 'tblTempUsageDetail_20' ) start [2025-02-01 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375805', 'tblTempUsageDetail_20' ) end [2025-02-01 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:11:22] Production.INFO: ==1475== Releasing lock... [2025-02-01 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:11:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-01 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:12:05 [end_date_ymd] => 2025-02-01 04:12:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:12:05' and `end` < '2025-02-01 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-01 04:12:17] Production.INFO: count ==400 [2025-02-01 04:12:17] Production.ERROR: pbx CDR StartTime 2025-02-01 01:12:05 - End Time 2025-02-01 04:12:05 [2025-02-01 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375811', 'tblTempUsageDetail_20' ) start [2025-02-01 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375811', 'tblTempUsageDetail_20' ) end [2025-02-01 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375811', 'tblTempVendorCDR_20' ) start [2025-02-01 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375811', 'tblTempVendorCDR_20' ) end [2025-02-01 04:12:17] Production.INFO: ProcessCDR(1,14375811,1,1,2) [2025-02-01 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375811', 'tblTempUsageDetail_20' ) start [2025-02-01 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375811', 'tblTempUsageDetail_20' ) end [2025-02-01 04:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:12:20] Production.INFO: ==1585== Releasing lock... [2025-02-01 04:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:12:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-01 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:13:05 [end_date_ymd] => 2025-02-01 04:13:05 [RateCDR] => 1 ) [2025-02-01 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 01:13:05' and `end` < '2025-02-01 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 04:13:19] Production.INFO: count ==399 [2025-02-01 04:13:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:13:05 - End Time 2025-02-01 04:13:05 [2025-02-01 04:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375816', 'tblTempUsageDetail_20' ) start [2025-02-01 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375816', 'tblTempUsageDetail_20' ) end [2025-02-01 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375816', 'tblTempVendorCDR_20' ) start [2025-02-01 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375816', 'tblTempVendorCDR_20' ) end [2025-02-01 04:13:19] Production.INFO: ProcessCDR(1,14375816,1,1,2) [2025-02-01 04:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375816', 'tblTempUsageDetail_20' ) start [2025-02-01 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375816', 'tblTempUsageDetail_20' ) end [2025-02-01 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:13:22] Production.INFO: ==1654== Releasing lock... [2025-02-01 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:13:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-01 04:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:14:04 [end_date_ymd] => 2025-02-01 04:14:04 [RateCDR] => 1 ) [2025-02-01 04:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 01:14:04' and `end` < '2025-02-01 04:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 04:14:19] Production.INFO: count ==397 [2025-02-01 04:14:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:14:04 - End Time 2025-02-01 04:14:04 [2025-02-01 04:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375821', 'tblTempUsageDetail_20' ) start [2025-02-01 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375821', 'tblTempUsageDetail_20' ) end [2025-02-01 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375821', 'tblTempVendorCDR_20' ) start [2025-02-01 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375821', 'tblTempVendorCDR_20' ) end [2025-02-01 04:14:19] Production.INFO: ProcessCDR(1,14375821,1,1,2) [2025-02-01 04:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375821', 'tblTempUsageDetail_20' ) start [2025-02-01 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375821', 'tblTempUsageDetail_20' ) end [2025-02-01 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:14:22] Production.INFO: ==1729== Releasing lock... [2025-02-01 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:14:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-01 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:15:05 [end_date_ymd] => 2025-02-01 04:15:05 [RateCDR] => 1 ) [2025-02-01 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 01:15:05' and `end` < '2025-02-01 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 04:15:18] Production.INFO: count ==397 [2025-02-01 04:15:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:15:05 - End Time 2025-02-01 04:15:05 [2025-02-01 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375826', 'tblTempUsageDetail_20' ) start [2025-02-01 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375826', 'tblTempUsageDetail_20' ) end [2025-02-01 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375826', 'tblTempVendorCDR_20' ) start [2025-02-01 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375826', 'tblTempVendorCDR_20' ) end [2025-02-01 04:15:18] Production.INFO: ProcessCDR(1,14375826,1,1,2) [2025-02-01 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375826', 'tblTempUsageDetail_20' ) start [2025-02-01 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375826', 'tblTempUsageDetail_20' ) end [2025-02-01 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:15:21] Production.INFO: ==1802== Releasing lock... [2025-02-01 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:15:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-01 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:16:05 [end_date_ymd] => 2025-02-01 04:16:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:16:05' and `end` < '2025-02-01 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-01 04:16:18] Production.INFO: count ==397 [2025-02-01 04:16:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:16:05 - End Time 2025-02-01 04:16:05 [2025-02-01 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375831', 'tblTempUsageDetail_20' ) start [2025-02-01 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375831', 'tblTempUsageDetail_20' ) end [2025-02-01 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375831', 'tblTempVendorCDR_20' ) start [2025-02-01 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375831', 'tblTempVendorCDR_20' ) end [2025-02-01 04:16:18] Production.INFO: ProcessCDR(1,14375831,1,1,2) [2025-02-01 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375831', 'tblTempUsageDetail_20' ) start [2025-02-01 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375831', 'tblTempUsageDetail_20' ) end [2025-02-01 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:16:21] Production.INFO: ==1915== Releasing lock... [2025-02-01 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:16:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-01 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:17:05 [end_date_ymd] => 2025-02-01 04:17:05 [RateCDR] => 1 ) [2025-02-01 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 01:17:05' and `end` < '2025-02-01 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 04:17:19] Production.INFO: count ==398 [2025-02-01 04:17:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:17:05 - End Time 2025-02-01 04:17:05 [2025-02-01 04:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375836', 'tblTempUsageDetail_20' ) start [2025-02-01 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375836', 'tblTempUsageDetail_20' ) end [2025-02-01 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375836', 'tblTempVendorCDR_20' ) start [2025-02-01 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375836', 'tblTempVendorCDR_20' ) end [2025-02-01 04:17:19] Production.INFO: ProcessCDR(1,14375836,1,1,2) [2025-02-01 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375836', 'tblTempUsageDetail_20' ) start [2025-02-01 04:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375836', 'tblTempUsageDetail_20' ) end [2025-02-01 04:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:17:23] Production.INFO: ==1985== Releasing lock... [2025-02-01 04:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:17:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-01 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:18:05 [end_date_ymd] => 2025-02-01 04:18:05 [RateCDR] => 1 ) [2025-02-01 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 01:18:05' and `end` < '2025-02-01 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 04:18:19] Production.INFO: count ==398 [2025-02-01 04:18:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:18:05 - End Time 2025-02-01 04:18:05 [2025-02-01 04:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375841', 'tblTempUsageDetail_20' ) start [2025-02-01 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375841', 'tblTempUsageDetail_20' ) end [2025-02-01 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375841', 'tblTempVendorCDR_20' ) start [2025-02-01 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375841', 'tblTempVendorCDR_20' ) end [2025-02-01 04:18:19] Production.INFO: ProcessCDR(1,14375841,1,1,2) [2025-02-01 04:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375841', 'tblTempUsageDetail_20' ) start [2025-02-01 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375841', 'tblTempUsageDetail_20' ) end [2025-02-01 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:18:22] Production.INFO: ==2066== Releasing lock... [2025-02-01 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:18:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-01 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:19:05 [end_date_ymd] => 2025-02-01 04:19:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:19:05' and `end` < '2025-02-01 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-01 04:19:18] Production.INFO: count ==398 [2025-02-01 04:19:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:19:05 - End Time 2025-02-01 04:19:05 [2025-02-01 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375846', 'tblTempUsageDetail_20' ) start [2025-02-01 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375846', 'tblTempUsageDetail_20' ) end [2025-02-01 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375846', 'tblTempVendorCDR_20' ) start [2025-02-01 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375846', 'tblTempVendorCDR_20' ) end [2025-02-01 04:19:18] Production.INFO: ProcessCDR(1,14375846,1,1,2) [2025-02-01 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375846', 'tblTempUsageDetail_20' ) start [2025-02-01 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375846', 'tblTempUsageDetail_20' ) end [2025-02-01 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:19:21] Production.INFO: ==2144== Releasing lock... [2025-02-01 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-01 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:20:06 [end_date_ymd] => 2025-02-01 04:20:06 [RateCDR] => 1 ) [2025-02-01 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-01 01:20:06' and `end` < '2025-02-01 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-01 04:20:20] Production.INFO: count ==397 [2025-02-01 04:20:20] Production.ERROR: pbx CDR StartTime 2025-02-01 01:20:06 - End Time 2025-02-01 04:20:06 [2025-02-01 04:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375851', 'tblTempUsageDetail_20' ) start [2025-02-01 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375851', 'tblTempUsageDetail_20' ) end [2025-02-01 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375851', 'tblTempVendorCDR_20' ) start [2025-02-01 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375851', 'tblTempVendorCDR_20' ) end [2025-02-01 04:20:20] Production.INFO: ProcessCDR(1,14375851,1,1,2) [2025-02-01 04:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375851', 'tblTempUsageDetail_20' ) start [2025-02-01 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375851', 'tblTempUsageDetail_20' ) end [2025-02-01 04:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:20:23] Production.INFO: ==2218== Releasing lock... [2025-02-01 04:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:20:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-01 04:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:21:04 [end_date_ymd] => 2025-02-01 04:21:04 [RateCDR] => 1 ) [2025-02-01 04:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 01:21:04' and `end` < '2025-02-01 04:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 04:21:17] Production.INFO: count ==373 [2025-02-01 04:21:17] Production.ERROR: pbx CDR StartTime 2025-02-01 01:21:04 - End Time 2025-02-01 04:21:04 [2025-02-01 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375857', 'tblTempUsageDetail_20' ) start [2025-02-01 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375857', 'tblTempUsageDetail_20' ) end [2025-02-01 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375857', 'tblTempVendorCDR_20' ) start [2025-02-01 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375857', 'tblTempVendorCDR_20' ) end [2025-02-01 04:21:17] Production.INFO: ProcessCDR(1,14375857,1,1,2) [2025-02-01 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375857', 'tblTempUsageDetail_20' ) start [2025-02-01 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375857', 'tblTempUsageDetail_20' ) end [2025-02-01 04:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:21:20] Production.INFO: ==2292== Releasing lock... [2025-02-01 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:21:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-01 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:22:05 [end_date_ymd] => 2025-02-01 04:22:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:22:05' and `end` < '2025-02-01 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-01 04:22:19] Production.INFO: count ==370 [2025-02-01 04:22:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:22:05 - End Time 2025-02-01 04:22:05 [2025-02-01 04:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375862', 'tblTempUsageDetail_20' ) start [2025-02-01 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375862', 'tblTempUsageDetail_20' ) end [2025-02-01 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375862', 'tblTempVendorCDR_20' ) start [2025-02-01 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375862', 'tblTempVendorCDR_20' ) end [2025-02-01 04:22:19] Production.INFO: ProcessCDR(1,14375862,1,1,2) [2025-02-01 04:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375862', 'tblTempUsageDetail_20' ) start [2025-02-01 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375862', 'tblTempUsageDetail_20' ) end [2025-02-01 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:22:22] Production.INFO: ==2365== Releasing lock... [2025-02-01 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:22:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-01 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:23:05 [end_date_ymd] => 2025-02-01 04:23:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:23:05' and `end` < '2025-02-01 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-01 04:23:19] Production.INFO: count ==370 [2025-02-01 04:23:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:23:05 - End Time 2025-02-01 04:23:05 [2025-02-01 04:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375867', 'tblTempUsageDetail_20' ) start [2025-02-01 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375867', 'tblTempUsageDetail_20' ) end [2025-02-01 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375867', 'tblTempVendorCDR_20' ) start [2025-02-01 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375867', 'tblTempVendorCDR_20' ) end [2025-02-01 04:23:19] Production.INFO: ProcessCDR(1,14375867,1,1,2) [2025-02-01 04:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375867', 'tblTempUsageDetail_20' ) start [2025-02-01 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375867', 'tblTempUsageDetail_20' ) end [2025-02-01 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:23:22] Production.INFO: ==2437== Releasing lock... [2025-02-01 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:23:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-01 04:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:24:04 [end_date_ymd] => 2025-02-01 04:24:04 [RateCDR] => 1 ) [2025-02-01 04:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 01:24:04' and `end` < '2025-02-01 04:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 04:24:17] Production.INFO: count ==370 [2025-02-01 04:24:17] Production.ERROR: pbx CDR StartTime 2025-02-01 01:24:04 - End Time 2025-02-01 04:24:04 [2025-02-01 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375870', 'tblTempUsageDetail_20' ) start [2025-02-01 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375870', 'tblTempUsageDetail_20' ) end [2025-02-01 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375870', 'tblTempVendorCDR_20' ) start [2025-02-01 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375870', 'tblTempVendorCDR_20' ) end [2025-02-01 04:24:17] Production.INFO: ProcessCDR(1,14375870,1,1,2) [2025-02-01 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375870', 'tblTempUsageDetail_20' ) start [2025-02-01 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375870', 'tblTempUsageDetail_20' ) end [2025-02-01 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:24:20] Production.INFO: ==2506== Releasing lock... [2025-02-01 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:24:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-01 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:25:05 [end_date_ymd] => 2025-02-01 04:25:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:25:05' and `end` < '2025-02-01 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-01 04:25:18] Production.INFO: count ==370 [2025-02-01 04:25:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:25:05 - End Time 2025-02-01 04:25:05 [2025-02-01 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375877', 'tblTempUsageDetail_20' ) start [2025-02-01 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375877', 'tblTempUsageDetail_20' ) end [2025-02-01 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375877', 'tblTempVendorCDR_20' ) start [2025-02-01 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375877', 'tblTempVendorCDR_20' ) end [2025-02-01 04:25:18] Production.INFO: ProcessCDR(1,14375877,1,1,2) [2025-02-01 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375877', 'tblTempUsageDetail_20' ) start [2025-02-01 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375877', 'tblTempUsageDetail_20' ) end [2025-02-01 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:25:21] Production.INFO: ==2578== Releasing lock... [2025-02-01 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-01 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:26:05 [end_date_ymd] => 2025-02-01 04:26:05 [RateCDR] => 1 ) [2025-02-01 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 01:26:05' and `end` < '2025-02-01 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 04:26:18] Production.INFO: count ==370 [2025-02-01 04:26:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:26:05 - End Time 2025-02-01 04:26:05 [2025-02-01 04:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375882', 'tblTempUsageDetail_20' ) start [2025-02-01 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375882', 'tblTempUsageDetail_20' ) end [2025-02-01 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375882', 'tblTempVendorCDR_20' ) start [2025-02-01 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375882', 'tblTempVendorCDR_20' ) end [2025-02-01 04:26:19] Production.INFO: ProcessCDR(1,14375882,1,1,2) [2025-02-01 04:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375882', 'tblTempUsageDetail_20' ) start [2025-02-01 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375882', 'tblTempUsageDetail_20' ) end [2025-02-01 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:26:22] Production.INFO: ==2648== Releasing lock... [2025-02-01 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:26:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-01 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:27:05 [end_date_ymd] => 2025-02-01 04:27:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:27:05' and `end` < '2025-02-01 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-01 04:27:18] Production.INFO: count ==367 [2025-02-01 04:27:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:27:05 - End Time 2025-02-01 04:27:05 [2025-02-01 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375887', 'tblTempUsageDetail_20' ) start [2025-02-01 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375887', 'tblTempUsageDetail_20' ) end [2025-02-01 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375887', 'tblTempVendorCDR_20' ) start [2025-02-01 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375887', 'tblTempVendorCDR_20' ) end [2025-02-01 04:27:18] Production.INFO: ProcessCDR(1,14375887,1,1,2) [2025-02-01 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375887', 'tblTempUsageDetail_20' ) start [2025-02-01 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375887', 'tblTempUsageDetail_20' ) end [2025-02-01 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:27:21] Production.INFO: ==2719== Releasing lock... [2025-02-01 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-01 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:28:05 [end_date_ymd] => 2025-02-01 04:28:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:28:05' and `end` < '2025-02-01 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-01 04:28:19] Production.INFO: count ==360 [2025-02-01 04:28:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:28:05 - End Time 2025-02-01 04:28:05 [2025-02-01 04:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375892', 'tblTempUsageDetail_20' ) start [2025-02-01 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375892', 'tblTempUsageDetail_20' ) end [2025-02-01 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375892', 'tblTempVendorCDR_20' ) start [2025-02-01 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375892', 'tblTempVendorCDR_20' ) end [2025-02-01 04:28:19] Production.INFO: ProcessCDR(1,14375892,1,1,2) [2025-02-01 04:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375892', 'tblTempUsageDetail_20' ) start [2025-02-01 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375892', 'tblTempUsageDetail_20' ) end [2025-02-01 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:28:22] Production.INFO: ==2790== Releasing lock... [2025-02-01 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:28:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-01 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:29:05 [end_date_ymd] => 2025-02-01 04:29:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:29:05' and `end` < '2025-02-01 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-01 04:29:18] Production.INFO: count ==356 [2025-02-01 04:29:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:29:05 - End Time 2025-02-01 04:29:05 [2025-02-01 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375897', 'tblTempUsageDetail_20' ) start [2025-02-01 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375897', 'tblTempUsageDetail_20' ) end [2025-02-01 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375897', 'tblTempVendorCDR_20' ) start [2025-02-01 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375897', 'tblTempVendorCDR_20' ) end [2025-02-01 04:29:18] Production.INFO: ProcessCDR(1,14375897,1,1,2) [2025-02-01 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375897', 'tblTempUsageDetail_20' ) start [2025-02-01 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375897', 'tblTempUsageDetail_20' ) end [2025-02-01 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:29:21] Production.INFO: ==2866== Releasing lock... [2025-02-01 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-01 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:30:06 [end_date_ymd] => 2025-02-01 04:30:06 [RateCDR] => 1 ) [2025-02-01 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 01:30:06' and `end` < '2025-02-01 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 04:30:19] Production.INFO: count ==350 [2025-02-01 04:30:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:30:06 - End Time 2025-02-01 04:30:06 [2025-02-01 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375902', 'tblTempUsageDetail_20' ) start [2025-02-01 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375902', 'tblTempUsageDetail_20' ) end [2025-02-01 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375902', 'tblTempVendorCDR_20' ) start [2025-02-01 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375902', 'tblTempVendorCDR_20' ) end [2025-02-01 04:30:19] Production.INFO: ProcessCDR(1,14375902,1,1,2) [2025-02-01 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375902', 'tblTempUsageDetail_20' ) start [2025-02-01 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375902', 'tblTempUsageDetail_20' ) end [2025-02-01 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:30:22] Production.INFO: ==2942== Releasing lock... [2025-02-01 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:30:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-01 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:31:05 [end_date_ymd] => 2025-02-01 04:31:05 [RateCDR] => 1 ) [2025-02-01 04: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-01 01:31:05' and `end` < '2025-02-01 04: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-01 04:31:18] Production.INFO: count ==329 [2025-02-01 04:31:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:31:05 - End Time 2025-02-01 04:31:05 [2025-02-01 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375909', 'tblTempUsageDetail_20' ) start [2025-02-01 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375909', 'tblTempUsageDetail_20' ) end [2025-02-01 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375909', 'tblTempVendorCDR_20' ) start [2025-02-01 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375909', 'tblTempVendorCDR_20' ) end [2025-02-01 04:31:18] Production.INFO: ProcessCDR(1,14375909,1,1,2) [2025-02-01 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375909', 'tblTempUsageDetail_20' ) start [2025-02-01 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375909', 'tblTempUsageDetail_20' ) end [2025-02-01 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:31:21] Production.INFO: ==3059== Releasing lock... [2025-02-01 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:31:21] Production.INFO: 30 MB #Memory Used# [2025-02-01 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:32:05 [end_date_ymd] => 2025-02-01 04:32:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:32:05' and `end` < '2025-02-01 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-01 04:32:18] Production.INFO: count ==319 [2025-02-01 04:32:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:32:05 - End Time 2025-02-01 04:32:05 [2025-02-01 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375914', 'tblTempUsageDetail_20' ) start [2025-02-01 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375914', 'tblTempUsageDetail_20' ) end [2025-02-01 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375914', 'tblTempVendorCDR_20' ) start [2025-02-01 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375914', 'tblTempVendorCDR_20' ) end [2025-02-01 04:32:18] Production.INFO: ProcessCDR(1,14375914,1,1,2) [2025-02-01 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375914', 'tblTempUsageDetail_20' ) start [2025-02-01 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375914', 'tblTempUsageDetail_20' ) end [2025-02-01 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:32:21] Production.INFO: ==3337== Releasing lock... [2025-02-01 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:32:21] Production.INFO: 30 MB #Memory Used# [2025-02-01 04:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:33:06 [end_date_ymd] => 2025-02-01 04:33:06 [RateCDR] => 1 ) [2025-02-01 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-01 01:33:06' and `end` < '2025-02-01 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-01 04:33:18] Production.INFO: count ==312 [2025-02-01 04:33:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:33:06 - End Time 2025-02-01 04:33:06 [2025-02-01 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375919', 'tblTempUsageDetail_20' ) start [2025-02-01 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375919', 'tblTempUsageDetail_20' ) end [2025-02-01 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375919', 'tblTempVendorCDR_20' ) start [2025-02-01 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375919', 'tblTempVendorCDR_20' ) end [2025-02-01 04:33:18] Production.INFO: ProcessCDR(1,14375919,1,1,2) [2025-02-01 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375919', 'tblTempUsageDetail_20' ) start [2025-02-01 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375919', 'tblTempUsageDetail_20' ) end [2025-02-01 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:33:21] Production.INFO: ==3523== Releasing lock... [2025-02-01 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:33:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-01 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:34:05 [end_date_ymd] => 2025-02-01 04:34:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:34:05' and `end` < '2025-02-01 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-01 04:34:18] Production.INFO: count ==299 [2025-02-01 04:34:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:34:05 - End Time 2025-02-01 04:34:05 [2025-02-01 04:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375924', 'tblTempUsageDetail_20' ) start [2025-02-01 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375924', 'tblTempUsageDetail_20' ) end [2025-02-01 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375924', 'tblTempVendorCDR_20' ) start [2025-02-01 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375924', 'tblTempVendorCDR_20' ) end [2025-02-01 04:34:19] Production.INFO: ProcessCDR(1,14375924,1,1,2) [2025-02-01 04:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375924', 'tblTempUsageDetail_20' ) start [2025-02-01 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375924', 'tblTempUsageDetail_20' ) end [2025-02-01 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:34:21] Production.INFO: ==3601== Releasing lock... [2025-02-01 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:34:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-01 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:35:05 [end_date_ymd] => 2025-02-01 04:35:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:35:05' and `end` < '2025-02-01 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-01 04:35:19] Production.INFO: count ==294 [2025-02-01 04:35:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:35:05 - End Time 2025-02-01 04:35:05 [2025-02-01 04:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375929', 'tblTempUsageDetail_20' ) start [2025-02-01 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375929', 'tblTempUsageDetail_20' ) end [2025-02-01 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375929', 'tblTempVendorCDR_20' ) start [2025-02-01 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375929', 'tblTempVendorCDR_20' ) end [2025-02-01 04:35:19] Production.INFO: ProcessCDR(1,14375929,1,1,2) [2025-02-01 04:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375929', 'tblTempUsageDetail_20' ) start [2025-02-01 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375929', 'tblTempUsageDetail_20' ) end [2025-02-01 04:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:35:22] Production.INFO: ==3671== Releasing lock... [2025-02-01 04:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:35:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-01 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:36:05 [end_date_ymd] => 2025-02-01 04:36:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:36:05' and `end` < '2025-02-01 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-01 04:36:19] Production.INFO: count ==294 [2025-02-01 04:36:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:36:05 - End Time 2025-02-01 04:36:05 [2025-02-01 04:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375934', 'tblTempUsageDetail_20' ) start [2025-02-01 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375934', 'tblTempUsageDetail_20' ) end [2025-02-01 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375934', 'tblTempVendorCDR_20' ) start [2025-02-01 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375934', 'tblTempVendorCDR_20' ) end [2025-02-01 04:36:19] Production.INFO: ProcessCDR(1,14375934,1,1,2) [2025-02-01 04:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375934', 'tblTempUsageDetail_20' ) start [2025-02-01 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375934', 'tblTempUsageDetail_20' ) end [2025-02-01 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:36:22] Production.INFO: ==3742== Releasing lock... [2025-02-01 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:36:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-01 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:37:05 [end_date_ymd] => 2025-02-01 04:37:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:37:05' and `end` < '2025-02-01 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-01 04:37:19] Production.INFO: count ==291 [2025-02-01 04:37:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:37:05 - End Time 2025-02-01 04:37:05 [2025-02-01 04:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375939', 'tblTempUsageDetail_20' ) start [2025-02-01 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375939', 'tblTempUsageDetail_20' ) end [2025-02-01 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375939', 'tblTempVendorCDR_20' ) start [2025-02-01 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375939', 'tblTempVendorCDR_20' ) end [2025-02-01 04:37:19] Production.INFO: ProcessCDR(1,14375939,1,1,2) [2025-02-01 04:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375939', 'tblTempUsageDetail_20' ) start [2025-02-01 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375939', 'tblTempUsageDetail_20' ) end [2025-02-01 04:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:37:22] Production.INFO: ==3812== Releasing lock... [2025-02-01 04:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:37:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-01 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:38:05 [end_date_ymd] => 2025-02-01 04:38:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:38:05' and `end` < '2025-02-01 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-01 04:38:18] Production.INFO: count ==292 [2025-02-01 04:38:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:38:05 - End Time 2025-02-01 04:38:05 [2025-02-01 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375944', 'tblTempUsageDetail_20' ) start [2025-02-01 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375944', 'tblTempUsageDetail_20' ) end [2025-02-01 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375944', 'tblTempVendorCDR_20' ) start [2025-02-01 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375944', 'tblTempVendorCDR_20' ) end [2025-02-01 04:38:18] Production.INFO: ProcessCDR(1,14375944,1,1,2) [2025-02-01 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375944', 'tblTempUsageDetail_20' ) start [2025-02-01 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375944', 'tblTempUsageDetail_20' ) end [2025-02-01 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:38:21] Production.INFO: ==3883== Releasing lock... [2025-02-01 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:38:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-01 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:39:05 [end_date_ymd] => 2025-02-01 04:39:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:39:05' and `end` < '2025-02-01 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-01 04:39:18] Production.INFO: count ==289 [2025-02-01 04:39:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:39:05 - End Time 2025-02-01 04:39:05 [2025-02-01 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375949', 'tblTempUsageDetail_20' ) start [2025-02-01 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375949', 'tblTempUsageDetail_20' ) end [2025-02-01 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375949', 'tblTempVendorCDR_20' ) start [2025-02-01 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375949', 'tblTempVendorCDR_20' ) end [2025-02-01 04:39:18] Production.INFO: ProcessCDR(1,14375949,1,1,2) [2025-02-01 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375949', 'tblTempUsageDetail_20' ) start [2025-02-01 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375949', 'tblTempUsageDetail_20' ) end [2025-02-01 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:39:21] Production.INFO: ==3952== Releasing lock... [2025-02-01 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-01 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:40:06 [end_date_ymd] => 2025-02-01 04:40:06 [RateCDR] => 1 ) [2025-02-01 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-01 01:40:06' and `end` < '2025-02-01 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-01 04:40:19] Production.INFO: count ==289 [2025-02-01 04:40:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:40:06 - End Time 2025-02-01 04:40:06 [2025-02-01 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375955', 'tblTempUsageDetail_20' ) start [2025-02-01 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375955', 'tblTempUsageDetail_20' ) end [2025-02-01 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375955', 'tblTempVendorCDR_20' ) start [2025-02-01 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375955', 'tblTempVendorCDR_20' ) end [2025-02-01 04:40:19] Production.INFO: ProcessCDR(1,14375955,1,1,2) [2025-02-01 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375955', 'tblTempUsageDetail_20' ) start [2025-02-01 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375955', 'tblTempUsageDetail_20' ) end [2025-02-01 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:40:22] Production.INFO: ==4026== Releasing lock... [2025-02-01 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-01 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:41:05 [end_date_ymd] => 2025-02-01 04:41:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:41:05' and `end` < '2025-02-01 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-01 04:41:18] Production.INFO: count ==279 [2025-02-01 04:41:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:41:05 - End Time 2025-02-01 04:41:05 [2025-02-01 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375960', 'tblTempUsageDetail_20' ) start [2025-02-01 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375960', 'tblTempUsageDetail_20' ) end [2025-02-01 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375960', 'tblTempVendorCDR_20' ) start [2025-02-01 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375960', 'tblTempVendorCDR_20' ) end [2025-02-01 04:41:18] Production.INFO: ProcessCDR(1,14375960,1,1,2) [2025-02-01 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375960', 'tblTempUsageDetail_20' ) start [2025-02-01 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375960', 'tblTempUsageDetail_20' ) end [2025-02-01 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:41:21] Production.INFO: ==4100== Releasing lock... [2025-02-01 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-01 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:42:05 [end_date_ymd] => 2025-02-01 04:42:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:42:05' and `end` < '2025-02-01 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-01 04:42:18] Production.INFO: count ==273 [2025-02-01 04:42:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:42:05 - End Time 2025-02-01 04:42:05 [2025-02-01 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375965', 'tblTempUsageDetail_20' ) start [2025-02-01 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375965', 'tblTempUsageDetail_20' ) end [2025-02-01 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375965', 'tblTempVendorCDR_20' ) start [2025-02-01 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375965', 'tblTempVendorCDR_20' ) end [2025-02-01 04:42:18] Production.INFO: ProcessCDR(1,14375965,1,1,2) [2025-02-01 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375965', 'tblTempUsageDetail_20' ) start [2025-02-01 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375965', 'tblTempUsageDetail_20' ) end [2025-02-01 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:42:21] Production.INFO: ==4171== Releasing lock... [2025-02-01 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-01 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:43:05 [end_date_ymd] => 2025-02-01 04:43:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:43:05' and `end` < '2025-02-01 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-01 04:43:17] Production.INFO: count ==273 [2025-02-01 04:43:17] Production.ERROR: pbx CDR StartTime 2025-02-01 01:43:05 - End Time 2025-02-01 04:43:05 [2025-02-01 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375969', 'tblTempUsageDetail_20' ) start [2025-02-01 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375969', 'tblTempUsageDetail_20' ) end [2025-02-01 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375969', 'tblTempVendorCDR_20' ) start [2025-02-01 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375969', 'tblTempVendorCDR_20' ) end [2025-02-01 04:43:17] Production.INFO: ProcessCDR(1,14375969,1,1,2) [2025-02-01 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375969', 'tblTempUsageDetail_20' ) start [2025-02-01 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375969', 'tblTempUsageDetail_20' ) end [2025-02-01 04:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:43:20] Production.INFO: ==4246== Releasing lock... [2025-02-01 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:43:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-01 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:44:05 [end_date_ymd] => 2025-02-01 04:44:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:44:05' and `end` < '2025-02-01 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-01 04:44:18] Production.INFO: count ==271 [2025-02-01 04:44:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:44:05 - End Time 2025-02-01 04:44:05 [2025-02-01 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375975', 'tblTempUsageDetail_20' ) start [2025-02-01 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375975', 'tblTempUsageDetail_20' ) end [2025-02-01 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375975', 'tblTempVendorCDR_20' ) start [2025-02-01 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375975', 'tblTempVendorCDR_20' ) end [2025-02-01 04:44:18] Production.INFO: ProcessCDR(1,14375975,1,1,2) [2025-02-01 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375975', 'tblTempUsageDetail_20' ) start [2025-02-01 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375975', 'tblTempUsageDetail_20' ) end [2025-02-01 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:44:21] Production.INFO: ==4317== Releasing lock... [2025-02-01 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-01 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:45:05 [end_date_ymd] => 2025-02-01 04:45:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:45:05' and `end` < '2025-02-01 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-01 04:45:17] Production.INFO: count ==264 [2025-02-01 04:45:17] Production.ERROR: pbx CDR StartTime 2025-02-01 01:45:05 - End Time 2025-02-01 04:45:05 [2025-02-01 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375980', 'tblTempUsageDetail_20' ) start [2025-02-01 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375980', 'tblTempUsageDetail_20' ) end [2025-02-01 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375980', 'tblTempVendorCDR_20' ) start [2025-02-01 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375980', 'tblTempVendorCDR_20' ) end [2025-02-01 04:45:17] Production.INFO: ProcessCDR(1,14375980,1,1,2) [2025-02-01 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375980', 'tblTempUsageDetail_20' ) start [2025-02-01 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375980', 'tblTempUsageDetail_20' ) end [2025-02-01 04:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:45:20] Production.INFO: ==4391== Releasing lock... [2025-02-01 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:45:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-01 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:46:05 [end_date_ymd] => 2025-02-01 04:46:05 [RateCDR] => 1 ) [2025-02-01 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 01:46:05' and `end` < '2025-02-01 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 04:46:36] Production.INFO: count ==260 [2025-02-01 04:46:36] Production.ERROR: pbx CDR StartTime 2025-02-01 01:46:05 - End Time 2025-02-01 04:46:05 [2025-02-01 04:46:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:46:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375985', 'tblTempUsageDetail_20' ) start [2025-02-01 04:46:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375985', 'tblTempUsageDetail_20' ) end [2025-02-01 04:46:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375985', 'tblTempVendorCDR_20' ) start [2025-02-01 04:46:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375985', 'tblTempVendorCDR_20' ) end [2025-02-01 04:46:36] Production.INFO: ProcessCDR(1,14375985,1,1,2) [2025-02-01 04:46:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:46:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:46:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:46:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:46:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375985', 'tblTempUsageDetail_20' ) start [2025-02-01 04:46:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375985', 'tblTempUsageDetail_20' ) end [2025-02-01 04:46:39] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:46:39] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:46:39] Production.INFO: ==4460== Releasing lock... [2025-02-01 04:46:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:46:39] Production.INFO: 29.25 MB #Memory Used# [2025-02-01 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:47:05 [end_date_ymd] => 2025-02-01 04:47:05 [RateCDR] => 1 ) [2025-02-01 04: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-01 01:47:05' and `end` < '2025-02-01 04: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-01 04:47:21] Production.INFO: count ==260 [2025-02-01 04:47:22] Production.ERROR: pbx CDR StartTime 2025-02-01 01:47:05 - End Time 2025-02-01 04:47:05 [2025-02-01 04:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375990', 'tblTempUsageDetail_20' ) start [2025-02-01 04:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375990', 'tblTempUsageDetail_20' ) end [2025-02-01 04:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375990', 'tblTempVendorCDR_20' ) start [2025-02-01 04:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375990', 'tblTempVendorCDR_20' ) end [2025-02-01 04:47:22] Production.INFO: ProcessCDR(1,14375990,1,1,2) [2025-02-01 04:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375990', 'tblTempUsageDetail_20' ) start [2025-02-01 04:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375990', 'tblTempUsageDetail_20' ) end [2025-02-01 04:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:47:25] Production.INFO: ==4579== Releasing lock... [2025-02-01 04:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:47:25] Production.INFO: 29.25 MB #Memory Used# [2025-02-01 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:48:05 [end_date_ymd] => 2025-02-01 04:48:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:48:05' and `end` < '2025-02-01 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-01 04:48:19] Production.INFO: count ==258 [2025-02-01 04:48:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:48:05 - End Time 2025-02-01 04:48:05 [2025-02-01 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375995', 'tblTempUsageDetail_20' ) start [2025-02-01 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14375995', 'tblTempUsageDetail_20' ) end [2025-02-01 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375995', 'tblTempVendorCDR_20' ) start [2025-02-01 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14375995', 'tblTempVendorCDR_20' ) end [2025-02-01 04:48:19] Production.INFO: ProcessCDR(1,14375995,1,1,2) [2025-02-01 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14375995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14375995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14375995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14375995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375995', 'tblTempUsageDetail_20' ) start [2025-02-01 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14375995', 'tblTempUsageDetail_20' ) end [2025-02-01 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:48:22] Production.INFO: ==4663== Releasing lock... [2025-02-01 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:48:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-01 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:49:05 [end_date_ymd] => 2025-02-01 04:49:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:49:05' and `end` < '2025-02-01 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-01 04:49:20] Production.INFO: count ==256 [2025-02-01 04:49:20] Production.ERROR: pbx CDR StartTime 2025-02-01 01:49:05 - End Time 2025-02-01 04:49:05 [2025-02-01 04:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376000', 'tblTempUsageDetail_20' ) start [2025-02-01 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376000', 'tblTempUsageDetail_20' ) end [2025-02-01 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376000', 'tblTempVendorCDR_20' ) start [2025-02-01 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376000', 'tblTempVendorCDR_20' ) end [2025-02-01 04:49:20] Production.INFO: ProcessCDR(1,14376000,1,1,2) [2025-02-01 04:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376000', 'tblTempUsageDetail_20' ) start [2025-02-01 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376000', 'tblTempUsageDetail_20' ) end [2025-02-01 04:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:49:23] Production.INFO: ==4735== Releasing lock... [2025-02-01 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:49:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-01 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:50:05 [end_date_ymd] => 2025-02-01 04:50:05 [RateCDR] => 1 ) [2025-02-01 04:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 01:50:05' and `end` < '2025-02-01 04:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 04:50:20] Production.INFO: count ==256 [2025-02-01 04:50:20] Production.ERROR: pbx CDR StartTime 2025-02-01 01:50:05 - End Time 2025-02-01 04:50:05 [2025-02-01 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376006', 'tblTempUsageDetail_20' ) start [2025-02-01 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376006', 'tblTempUsageDetail_20' ) end [2025-02-01 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376006', 'tblTempVendorCDR_20' ) start [2025-02-01 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376006', 'tblTempVendorCDR_20' ) end [2025-02-01 04:50:20] Production.INFO: ProcessCDR(1,14376006,1,1,2) [2025-02-01 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376006', 'tblTempUsageDetail_20' ) start [2025-02-01 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376006', 'tblTempUsageDetail_20' ) end [2025-02-01 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:50:23] Production.INFO: ==4814== Releasing lock... [2025-02-01 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:50:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-01 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:51:05 [end_date_ymd] => 2025-02-01 04:51:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:51:05' and `end` < '2025-02-01 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-01 04:51:19] Production.INFO: count ==252 [2025-02-01 04:51:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:51:05 - End Time 2025-02-01 04:51:05 [2025-02-01 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376011', 'tblTempUsageDetail_20' ) start [2025-02-01 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376011', 'tblTempUsageDetail_20' ) end [2025-02-01 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376011', 'tblTempVendorCDR_20' ) start [2025-02-01 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376011', 'tblTempVendorCDR_20' ) end [2025-02-01 04:51:19] Production.INFO: ProcessCDR(1,14376011,1,1,2) [2025-02-01 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376011', 'tblTempUsageDetail_20' ) start [2025-02-01 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376011', 'tblTempUsageDetail_20' ) end [2025-02-01 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:51:22] Production.INFO: ==4891== Releasing lock... [2025-02-01 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:51:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-01 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:52:05 [end_date_ymd] => 2025-02-01 04:52:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:52:05' and `end` < '2025-02-01 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-01 04:52:19] Production.INFO: count ==252 [2025-02-01 04:52:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:52:05 - End Time 2025-02-01 04:52:05 [2025-02-01 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376016', 'tblTempUsageDetail_20' ) start [2025-02-01 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376016', 'tblTempUsageDetail_20' ) end [2025-02-01 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376016', 'tblTempVendorCDR_20' ) start [2025-02-01 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376016', 'tblTempVendorCDR_20' ) end [2025-02-01 04:52:19] Production.INFO: ProcessCDR(1,14376016,1,1,2) [2025-02-01 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376016', 'tblTempUsageDetail_20' ) start [2025-02-01 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376016', 'tblTempUsageDetail_20' ) end [2025-02-01 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:52:22] Production.INFO: ==4963== Releasing lock... [2025-02-01 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:52:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-01 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:53:05 [end_date_ymd] => 2025-02-01 04:53:05 [RateCDR] => 1 ) [2025-02-01 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 01:53:05' and `end` < '2025-02-01 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 04:53:19] Production.INFO: count ==252 [2025-02-01 04:53:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:53:05 - End Time 2025-02-01 04:53:05 [2025-02-01 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376021', 'tblTempUsageDetail_20' ) start [2025-02-01 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376021', 'tblTempUsageDetail_20' ) end [2025-02-01 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376021', 'tblTempVendorCDR_20' ) start [2025-02-01 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376021', 'tblTempVendorCDR_20' ) end [2025-02-01 04:53:19] Production.INFO: ProcessCDR(1,14376021,1,1,2) [2025-02-01 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376021', 'tblTempUsageDetail_20' ) start [2025-02-01 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376021', 'tblTempUsageDetail_20' ) end [2025-02-01 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:53:22] Production.INFO: ==5037== Releasing lock... [2025-02-01 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:53:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-01 04:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:54:04 [end_date_ymd] => 2025-02-01 04:54:04 [RateCDR] => 1 ) [2025-02-01 04: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-01 01:54:04' and `end` < '2025-02-01 04: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-01 04:54:18] Production.INFO: count ==252 [2025-02-01 04:54:18] Production.ERROR: pbx CDR StartTime 2025-02-01 01:54:04 - End Time 2025-02-01 04:54:04 [2025-02-01 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376026', 'tblTempUsageDetail_20' ) start [2025-02-01 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376026', 'tblTempUsageDetail_20' ) end [2025-02-01 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376026', 'tblTempVendorCDR_20' ) start [2025-02-01 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376026', 'tblTempVendorCDR_20' ) end [2025-02-01 04:54:18] Production.INFO: ProcessCDR(1,14376026,1,1,2) [2025-02-01 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376026', 'tblTempUsageDetail_20' ) start [2025-02-01 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376026', 'tblTempUsageDetail_20' ) end [2025-02-01 04:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:54:21] Production.INFO: ==5113== Releasing lock... [2025-02-01 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-01 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:55:05 [end_date_ymd] => 2025-02-01 04:55:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:55:05' and `end` < '2025-02-01 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-01 04:55:19] Production.INFO: count ==251 [2025-02-01 04:55:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:55:05 - End Time 2025-02-01 04:55:05 [2025-02-01 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376031', 'tblTempUsageDetail_20' ) start [2025-02-01 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376031', 'tblTempUsageDetail_20' ) end [2025-02-01 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376031', 'tblTempVendorCDR_20' ) start [2025-02-01 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376031', 'tblTempVendorCDR_20' ) end [2025-02-01 04:55:19] Production.INFO: ProcessCDR(1,14376031,1,1,2) [2025-02-01 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376031', 'tblTempUsageDetail_20' ) start [2025-02-01 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376031', 'tblTempUsageDetail_20' ) end [2025-02-01 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:55:22] Production.INFO: ==5186== Releasing lock... [2025-02-01 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:55:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-01 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:56:06 [end_date_ymd] => 2025-02-01 04:56:06 [RateCDR] => 1 ) [2025-02-01 04:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 01:56:06' and `end` < '2025-02-01 04:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 04:56:20] Production.INFO: count ==251 [2025-02-01 04:56:20] Production.ERROR: pbx CDR StartTime 2025-02-01 01:56:06 - End Time 2025-02-01 04:56:06 [2025-02-01 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376036', 'tblTempUsageDetail_20' ) start [2025-02-01 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376036', 'tblTempUsageDetail_20' ) end [2025-02-01 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376036', 'tblTempVendorCDR_20' ) start [2025-02-01 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376036', 'tblTempVendorCDR_20' ) end [2025-02-01 04:56:20] Production.INFO: ProcessCDR(1,14376036,1,1,2) [2025-02-01 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376036', 'tblTempUsageDetail_20' ) start [2025-02-01 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376036', 'tblTempUsageDetail_20' ) end [2025-02-01 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:56:23] Production.INFO: ==5261== Releasing lock... [2025-02-01 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:56:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-01 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:57:05 [end_date_ymd] => 2025-02-01 04:57:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:57:05' and `end` < '2025-02-01 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-01 04:57:20] Production.INFO: count ==251 [2025-02-01 04:57:20] Production.ERROR: pbx CDR StartTime 2025-02-01 01:57:05 - End Time 2025-02-01 04:57:05 [2025-02-01 04:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376041', 'tblTempUsageDetail_20' ) start [2025-02-01 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376041', 'tblTempUsageDetail_20' ) end [2025-02-01 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376041', 'tblTempVendorCDR_20' ) start [2025-02-01 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376041', 'tblTempVendorCDR_20' ) end [2025-02-01 04:57:20] Production.INFO: ProcessCDR(1,14376041,1,1,2) [2025-02-01 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376041', 'tblTempUsageDetail_20' ) start [2025-02-01 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376041', 'tblTempUsageDetail_20' ) end [2025-02-01 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:57:23] Production.INFO: ==5335== Releasing lock... [2025-02-01 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:57:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-01 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:58:05 [end_date_ymd] => 2025-02-01 04:58:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:58:05' and `end` < '2025-02-01 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-01 04:58:20] Production.INFO: count ==252 [2025-02-01 04:58:20] Production.ERROR: pbx CDR StartTime 2025-02-01 01:58:05 - End Time 2025-02-01 04:58:05 [2025-02-01 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376046', 'tblTempUsageDetail_20' ) start [2025-02-01 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376046', 'tblTempUsageDetail_20' ) end [2025-02-01 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376046', 'tblTempVendorCDR_20' ) start [2025-02-01 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376046', 'tblTempVendorCDR_20' ) end [2025-02-01 04:58:20] Production.INFO: ProcessCDR(1,14376046,1,1,2) [2025-02-01 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376046', 'tblTempUsageDetail_20' ) start [2025-02-01 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376046', 'tblTempUsageDetail_20' ) end [2025-02-01 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:58:23] Production.INFO: ==5408== Releasing lock... [2025-02-01 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:58:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-01 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 01:59:05 [end_date_ymd] => 2025-02-01 04:59:05 [RateCDR] => 1 ) [2025-02-01 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-01 01:59:05' and `end` < '2025-02-01 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-01 04:59:19] Production.INFO: count ==252 [2025-02-01 04:59:19] Production.ERROR: pbx CDR StartTime 2025-02-01 01:59:05 - End Time 2025-02-01 04:59:05 [2025-02-01 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376051', 'tblTempUsageDetail_20' ) start [2025-02-01 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376051', 'tblTempUsageDetail_20' ) end [2025-02-01 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376051', 'tblTempVendorCDR_20' ) start [2025-02-01 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376051', 'tblTempVendorCDR_20' ) end [2025-02-01 04:59:19] Production.INFO: ProcessCDR(1,14376051,1,1,2) [2025-02-01 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376051', 'tblTempUsageDetail_20' ) start [2025-02-01 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376051', 'tblTempUsageDetail_20' ) end [2025-02-01 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 04:59:22] Production.INFO: ==5482== Releasing lock... [2025-02-01 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 04:59:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-01 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:00:06 [end_date_ymd] => 2025-02-01 05:00:06 [RateCDR] => 1 ) [2025-02-01 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-01 02:00:06' and `end` < '2025-02-01 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-01 05:00:20] Production.INFO: count ==246 [2025-02-01 05:00:20] Production.ERROR: pbx CDR StartTime 2025-02-01 02:00:06 - End Time 2025-02-01 05:00:06 [2025-02-01 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376056', 'tblTempUsageDetail_20' ) start [2025-02-01 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376056', 'tblTempUsageDetail_20' ) end [2025-02-01 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376056', 'tblTempVendorCDR_20' ) start [2025-02-01 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376056', 'tblTempVendorCDR_20' ) end [2025-02-01 05:00:20] Production.INFO: ProcessCDR(1,14376056,1,1,2) [2025-02-01 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376056', 'tblTempUsageDetail_20' ) start [2025-02-01 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376056', 'tblTempUsageDetail_20' ) end [2025-02-01 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:00:23] Production.INFO: ==5561== Releasing lock... [2025-02-01 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:00:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-01 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:01:05 [end_date_ymd] => 2025-02-01 05:01:05 [RateCDR] => 1 ) [2025-02-01 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:01:05' and `end` < '2025-02-01 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:01:18] Production.INFO: count ==226 [2025-02-01 05:01:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:01:05 - End Time 2025-02-01 05:01:05 [2025-02-01 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376062', 'tblTempUsageDetail_20' ) start [2025-02-01 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376062', 'tblTempUsageDetail_20' ) end [2025-02-01 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376062', 'tblTempVendorCDR_20' ) start [2025-02-01 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376062', 'tblTempVendorCDR_20' ) end [2025-02-01 05:01:19] Production.INFO: ProcessCDR(1,14376062,1,1,2) [2025-02-01 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376062', 'tblTempUsageDetail_20' ) start [2025-02-01 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376062', 'tblTempUsageDetail_20' ) end [2025-02-01 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:01:22] Production.INFO: ==5647== Releasing lock... [2025-02-01 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:01:22] Production.INFO: 29 MB #Memory Used# [2025-02-01 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:02:05 [end_date_ymd] => 2025-02-01 05:02:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:02:05' and `end` < '2025-02-01 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-01 05:02:19] Production.INFO: count ==223 [2025-02-01 05:02:19] Production.ERROR: pbx CDR StartTime 2025-02-01 02:02:05 - End Time 2025-02-01 05:02:05 [2025-02-01 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376067', 'tblTempUsageDetail_20' ) start [2025-02-01 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376067', 'tblTempUsageDetail_20' ) end [2025-02-01 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376067', 'tblTempVendorCDR_20' ) start [2025-02-01 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376067', 'tblTempVendorCDR_20' ) end [2025-02-01 05:02:19] Production.INFO: ProcessCDR(1,14376067,1,1,2) [2025-02-01 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376067', 'tblTempUsageDetail_20' ) start [2025-02-01 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376067', 'tblTempUsageDetail_20' ) end [2025-02-01 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:02:22] Production.INFO: ==5762== Releasing lock... [2025-02-01 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:02:22] Production.INFO: 29 MB #Memory Used# [2025-02-01 05:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:03:06 [end_date_ymd] => 2025-02-01 05:03:06 [RateCDR] => 1 ) [2025-02-01 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-01 02:03:06' and `end` < '2025-02-01 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-01 05:03:19] Production.INFO: count ==223 [2025-02-01 05:03:19] Production.ERROR: pbx CDR StartTime 2025-02-01 02:03:06 - End Time 2025-02-01 05:03:06 [2025-02-01 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376072', 'tblTempUsageDetail_20' ) start [2025-02-01 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376072', 'tblTempUsageDetail_20' ) end [2025-02-01 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376072', 'tblTempVendorCDR_20' ) start [2025-02-01 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376072', 'tblTempVendorCDR_20' ) end [2025-02-01 05:03:19] Production.INFO: ProcessCDR(1,14376072,1,1,2) [2025-02-01 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376072', 'tblTempUsageDetail_20' ) start [2025-02-01 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376072', 'tblTempUsageDetail_20' ) end [2025-02-01 05:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:03:23] Production.INFO: ==5844== Releasing lock... [2025-02-01 05:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:03:23] Production.INFO: 29 MB #Memory Used# [2025-02-01 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:04:05 [end_date_ymd] => 2025-02-01 05:04:05 [RateCDR] => 1 ) [2025-02-01 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:04:05' and `end` < '2025-02-01 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-01 05:04:18] Production.INFO: count ==222 [2025-02-01 05:04:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:04:05 - End Time 2025-02-01 05:04:05 [2025-02-01 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376077', 'tblTempUsageDetail_20' ) start [2025-02-01 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376077', 'tblTempUsageDetail_20' ) end [2025-02-01 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376077', 'tblTempVendorCDR_20' ) start [2025-02-01 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376077', 'tblTempVendorCDR_20' ) end [2025-02-01 05:04:18] Production.INFO: ProcessCDR(1,14376077,1,1,2) [2025-02-01 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376077', 'tblTempUsageDetail_20' ) start [2025-02-01 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376077', 'tblTempUsageDetail_20' ) end [2025-02-01 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:04:22] Production.INFO: ==5918== Releasing lock... [2025-02-01 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:04:22] Production.INFO: 29 MB #Memory Used# [2025-02-01 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:05:05 [end_date_ymd] => 2025-02-01 05:05:05 [RateCDR] => 1 ) [2025-02-01 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:05:05' and `end` < '2025-02-01 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:05:18] Production.INFO: count ==222 [2025-02-01 05:05:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:05:05 - End Time 2025-02-01 05:05:05 [2025-02-01 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376082', 'tblTempUsageDetail_20' ) start [2025-02-01 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376082', 'tblTempUsageDetail_20' ) end [2025-02-01 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376082', 'tblTempVendorCDR_20' ) start [2025-02-01 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376082', 'tblTempVendorCDR_20' ) end [2025-02-01 05:05:18] Production.INFO: ProcessCDR(1,14376082,1,1,2) [2025-02-01 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376082', 'tblTempUsageDetail_20' ) start [2025-02-01 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376082', 'tblTempUsageDetail_20' ) end [2025-02-01 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:05:21] Production.INFO: ==5994== Releasing lock... [2025-02-01 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:05:21] Production.INFO: 29 MB #Memory Used# [2025-02-01 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:06:05 [end_date_ymd] => 2025-02-01 05:06:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:06:05' and `end` < '2025-02-01 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-01 05:06:18] Production.INFO: count ==222 [2025-02-01 05:06:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:06:05 - End Time 2025-02-01 05:06:05 [2025-02-01 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376087', 'tblTempUsageDetail_20' ) start [2025-02-01 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376087', 'tblTempUsageDetail_20' ) end [2025-02-01 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376087', 'tblTempVendorCDR_20' ) start [2025-02-01 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376087', 'tblTempVendorCDR_20' ) end [2025-02-01 05:06:18] Production.INFO: ProcessCDR(1,14376087,1,1,2) [2025-02-01 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376087', 'tblTempUsageDetail_20' ) start [2025-02-01 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376087', 'tblTempUsageDetail_20' ) end [2025-02-01 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:06:21] Production.INFO: ==6064== Releasing lock... [2025-02-01 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:06:21] Production.INFO: 29 MB #Memory Used# [2025-02-01 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:07:05 [end_date_ymd] => 2025-02-01 05:07:05 [RateCDR] => 1 ) [2025-02-01 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:07:05' and `end` < '2025-02-01 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:07:18] Production.INFO: count ==218 [2025-02-01 05:07:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:07:05 - End Time 2025-02-01 05:07:05 [2025-02-01 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376092', 'tblTempUsageDetail_20' ) start [2025-02-01 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376092', 'tblTempUsageDetail_20' ) end [2025-02-01 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376092', 'tblTempVendorCDR_20' ) start [2025-02-01 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376092', 'tblTempVendorCDR_20' ) end [2025-02-01 05:07:18] Production.INFO: ProcessCDR(1,14376092,1,1,2) [2025-02-01 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376092', 'tblTempUsageDetail_20' ) start [2025-02-01 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376092', 'tblTempUsageDetail_20' ) end [2025-02-01 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:07:21] Production.INFO: ==6142== Releasing lock... [2025-02-01 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:07:21] Production.INFO: 29 MB #Memory Used# [2025-02-01 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:08:05 [end_date_ymd] => 2025-02-01 05:08:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:08:05' and `end` < '2025-02-01 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-01 05:08:19] Production.INFO: count ==214 [2025-02-01 05:08:19] Production.ERROR: pbx CDR StartTime 2025-02-01 02:08:05 - End Time 2025-02-01 05:08:05 [2025-02-01 05:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376097', 'tblTempUsageDetail_20' ) start [2025-02-01 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376097', 'tblTempUsageDetail_20' ) end [2025-02-01 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376097', 'tblTempVendorCDR_20' ) start [2025-02-01 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376097', 'tblTempVendorCDR_20' ) end [2025-02-01 05:08:19] Production.INFO: ProcessCDR(1,14376097,1,1,2) [2025-02-01 05:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376097', 'tblTempUsageDetail_20' ) start [2025-02-01 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376097', 'tblTempUsageDetail_20' ) end [2025-02-01 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:08:22] Production.INFO: ==6219== Releasing lock... [2025-02-01 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:08:22] Production.INFO: 29 MB #Memory Used# [2025-02-01 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:09:05 [end_date_ymd] => 2025-02-01 05:09:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:09:05' and `end` < '2025-02-01 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-01 05:09:18] Production.INFO: count ==212 [2025-02-01 05:09:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:09:05 - End Time 2025-02-01 05:09:05 [2025-02-01 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376102', 'tblTempUsageDetail_20' ) start [2025-02-01 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376102', 'tblTempUsageDetail_20' ) end [2025-02-01 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376102', 'tblTempVendorCDR_20' ) start [2025-02-01 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376102', 'tblTempVendorCDR_20' ) end [2025-02-01 05:09:18] Production.INFO: ProcessCDR(1,14376102,1,1,2) [2025-02-01 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376102', 'tblTempUsageDetail_20' ) start [2025-02-01 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376102', 'tblTempUsageDetail_20' ) end [2025-02-01 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:09:21] Production.INFO: ==6292== Releasing lock... [2025-02-01 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:09:21] Production.INFO: 29 MB #Memory Used# [2025-02-01 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:10:06 [end_date_ymd] => 2025-02-01 05:10:06 [RateCDR] => 1 ) [2025-02-01 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-01 02:10:06' and `end` < '2025-02-01 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-01 05:10:19] Production.INFO: count ==206 [2025-02-01 05:10:19] Production.ERROR: pbx CDR StartTime 2025-02-01 02:10:06 - End Time 2025-02-01 05:10:06 [2025-02-01 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376108', 'tblTempUsageDetail_20' ) start [2025-02-01 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376108', 'tblTempUsageDetail_20' ) end [2025-02-01 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376108', 'tblTempVendorCDR_20' ) start [2025-02-01 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376108', 'tblTempVendorCDR_20' ) end [2025-02-01 05:10:19] Production.INFO: ProcessCDR(1,14376108,1,1,2) [2025-02-01 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376108', 'tblTempUsageDetail_20' ) start [2025-02-01 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376108', 'tblTempUsageDetail_20' ) end [2025-02-01 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:10:22] Production.INFO: ==6367== Releasing lock... [2025-02-01 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:10:22] Production.INFO: 29 MB #Memory Used# [2025-02-01 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:11:05 [end_date_ymd] => 2025-02-01 05:11:05 [RateCDR] => 1 ) [2025-02-01 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:11:05' and `end` < '2025-02-01 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:11:18] Production.INFO: count ==201 [2025-02-01 05:11:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:11:05 - End Time 2025-02-01 05:11:05 [2025-02-01 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376113', 'tblTempUsageDetail_20' ) start [2025-02-01 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376113', 'tblTempUsageDetail_20' ) end [2025-02-01 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376113', 'tblTempVendorCDR_20' ) start [2025-02-01 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376113', 'tblTempVendorCDR_20' ) end [2025-02-01 05:11:18] Production.INFO: ProcessCDR(1,14376113,1,1,2) [2025-02-01 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376113', 'tblTempUsageDetail_20' ) start [2025-02-01 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376113', 'tblTempUsageDetail_20' ) end [2025-02-01 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:11:21] Production.INFO: ==6445== Releasing lock... [2025-02-01 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:12:05 [end_date_ymd] => 2025-02-01 05:12:05 [RateCDR] => 1 ) [2025-02-01 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:12:05' and `end` < '2025-02-01 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:12:18] Production.INFO: count ==201 [2025-02-01 05:12:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:12:05 - End Time 2025-02-01 05:12:05 [2025-02-01 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376118', 'tblTempUsageDetail_20' ) start [2025-02-01 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376118', 'tblTempUsageDetail_20' ) end [2025-02-01 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376118', 'tblTempVendorCDR_20' ) start [2025-02-01 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376118', 'tblTempVendorCDR_20' ) end [2025-02-01 05:12:18] Production.INFO: ProcessCDR(1,14376118,1,1,2) [2025-02-01 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376118', 'tblTempUsageDetail_20' ) start [2025-02-01 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376118', 'tblTempUsageDetail_20' ) end [2025-02-01 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:12:21] Production.INFO: ==6525== Releasing lock... [2025-02-01 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:13:05 [end_date_ymd] => 2025-02-01 05:13:05 [RateCDR] => 1 ) [2025-02-01 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:13:05' and `end` < '2025-02-01 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:13:17] Production.INFO: count ==203 [2025-02-01 05:13:17] Production.ERROR: pbx CDR StartTime 2025-02-01 02:13:05 - End Time 2025-02-01 05:13:05 [2025-02-01 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376123', 'tblTempUsageDetail_20' ) start [2025-02-01 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376123', 'tblTempUsageDetail_20' ) end [2025-02-01 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376123', 'tblTempVendorCDR_20' ) start [2025-02-01 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376123', 'tblTempVendorCDR_20' ) end [2025-02-01 05:13:17] Production.INFO: ProcessCDR(1,14376123,1,1,2) [2025-02-01 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376123', 'tblTempUsageDetail_20' ) start [2025-02-01 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376123', 'tblTempUsageDetail_20' ) end [2025-02-01 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:13:21] Production.INFO: ==6598== Releasing lock... [2025-02-01 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:14:05 [end_date_ymd] => 2025-02-01 05:14:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:14:05' and `end` < '2025-02-01 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-01 05:14:19] Production.INFO: count ==200 [2025-02-01 05:14:19] Production.ERROR: pbx CDR StartTime 2025-02-01 02:14:05 - End Time 2025-02-01 05:14:05 [2025-02-01 05:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376128', 'tblTempUsageDetail_20' ) start [2025-02-01 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376128', 'tblTempUsageDetail_20' ) end [2025-02-01 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376128', 'tblTempVendorCDR_20' ) start [2025-02-01 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376128', 'tblTempVendorCDR_20' ) end [2025-02-01 05:14:19] Production.INFO: ProcessCDR(1,14376128,1,1,2) [2025-02-01 05:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376128', 'tblTempUsageDetail_20' ) start [2025-02-01 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376128', 'tblTempUsageDetail_20' ) end [2025-02-01 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:14:22] Production.INFO: ==6669== Releasing lock... [2025-02-01 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:14:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:15:05 [end_date_ymd] => 2025-02-01 05:15:05 [RateCDR] => 1 ) [2025-02-01 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:15:05' and `end` < '2025-02-01 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:15:18] Production.INFO: count ==199 [2025-02-01 05:15:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:15:05 - End Time 2025-02-01 05:15:05 [2025-02-01 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376133', 'tblTempUsageDetail_20' ) start [2025-02-01 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376133', 'tblTempUsageDetail_20' ) end [2025-02-01 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376133', 'tblTempVendorCDR_20' ) start [2025-02-01 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376133', 'tblTempVendorCDR_20' ) end [2025-02-01 05:15:18] Production.INFO: ProcessCDR(1,14376133,1,1,2) [2025-02-01 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376133', 'tblTempUsageDetail_20' ) start [2025-02-01 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376133', 'tblTempUsageDetail_20' ) end [2025-02-01 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:15:21] Production.INFO: ==6745== Releasing lock... [2025-02-01 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:16:05 [end_date_ymd] => 2025-02-01 05:16:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:16:05' and `end` < '2025-02-01 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-01 05:16:19] Production.INFO: count ==199 [2025-02-01 05:16:19] Production.ERROR: pbx CDR StartTime 2025-02-01 02:16:05 - End Time 2025-02-01 05:16:05 [2025-02-01 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376138', 'tblTempUsageDetail_20' ) start [2025-02-01 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376138', 'tblTempUsageDetail_20' ) end [2025-02-01 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376138', 'tblTempVendorCDR_20' ) start [2025-02-01 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376138', 'tblTempVendorCDR_20' ) end [2025-02-01 05:16:19] Production.INFO: ProcessCDR(1,14376138,1,1,2) [2025-02-01 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376138', 'tblTempUsageDetail_20' ) start [2025-02-01 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376138', 'tblTempUsageDetail_20' ) end [2025-02-01 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:16:22] Production.INFO: ==6819== Releasing lock... [2025-02-01 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:16:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:17:05 [end_date_ymd] => 2025-02-01 05:17:05 [RateCDR] => 1 ) [2025-02-01 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:17:05' and `end` < '2025-02-01 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:17:18] Production.INFO: count ==199 [2025-02-01 05:17:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:17:05 - End Time 2025-02-01 05:17:05 [2025-02-01 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376143', 'tblTempUsageDetail_20' ) start [2025-02-01 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376143', 'tblTempUsageDetail_20' ) end [2025-02-01 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376143', 'tblTempVendorCDR_20' ) start [2025-02-01 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376143', 'tblTempVendorCDR_20' ) end [2025-02-01 05:17:18] Production.INFO: ProcessCDR(1,14376143,1,1,2) [2025-02-01 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376143', 'tblTempUsageDetail_20' ) start [2025-02-01 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376143', 'tblTempUsageDetail_20' ) end [2025-02-01 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:17:21] Production.INFO: ==6893== Releasing lock... [2025-02-01 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:18:05 [end_date_ymd] => 2025-02-01 05:18:05 [RateCDR] => 1 ) [2025-02-01 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:18:05' and `end` < '2025-02-01 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:18:18] Production.INFO: count ==199 [2025-02-01 05:18:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:18:05 - End Time 2025-02-01 05:18:05 [2025-02-01 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376148', 'tblTempUsageDetail_20' ) start [2025-02-01 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376148', 'tblTempUsageDetail_20' ) end [2025-02-01 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376148', 'tblTempVendorCDR_20' ) start [2025-02-01 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376148', 'tblTempVendorCDR_20' ) end [2025-02-01 05:18:18] Production.INFO: ProcessCDR(1,14376148,1,1,2) [2025-02-01 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376148', 'tblTempUsageDetail_20' ) start [2025-02-01 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376148', 'tblTempUsageDetail_20' ) end [2025-02-01 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:18:21] Production.INFO: ==7012== Releasing lock... [2025-02-01 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:19:05 [end_date_ymd] => 2025-02-01 05:19:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:19:05' and `end` < '2025-02-01 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-01 05:19:18] Production.INFO: count ==199 [2025-02-01 05:19:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:19:05 - End Time 2025-02-01 05:19:05 [2025-02-01 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376153', 'tblTempUsageDetail_20' ) start [2025-02-01 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376153', 'tblTempUsageDetail_20' ) end [2025-02-01 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376153', 'tblTempVendorCDR_20' ) start [2025-02-01 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376153', 'tblTempVendorCDR_20' ) end [2025-02-01 05:19:18] Production.INFO: ProcessCDR(1,14376153,1,1,2) [2025-02-01 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376153', 'tblTempUsageDetail_20' ) start [2025-02-01 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376153', 'tblTempUsageDetail_20' ) end [2025-02-01 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:19:21] Production.INFO: ==7090== Releasing lock... [2025-02-01 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:20:06 [end_date_ymd] => 2025-02-01 05:20:06 [RateCDR] => 1 ) [2025-02-01 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-01 02:20:06' and `end` < '2025-02-01 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-01 05:20:19] Production.INFO: count ==191 [2025-02-01 05:20:19] Production.ERROR: pbx CDR StartTime 2025-02-01 02:20:06 - End Time 2025-02-01 05:20:06 [2025-02-01 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376159', 'tblTempUsageDetail_20' ) start [2025-02-01 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376159', 'tblTempUsageDetail_20' ) end [2025-02-01 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376159', 'tblTempVendorCDR_20' ) start [2025-02-01 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376159', 'tblTempVendorCDR_20' ) end [2025-02-01 05:20:19] Production.INFO: ProcessCDR(1,14376159,1,1,2) [2025-02-01 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376159', 'tblTempUsageDetail_20' ) start [2025-02-01 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376159', 'tblTempUsageDetail_20' ) end [2025-02-01 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:20:23] Production.INFO: ==7166== Releasing lock... [2025-02-01 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:20:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:21:05 [end_date_ymd] => 2025-02-01 05:21:05 [RateCDR] => 1 ) [2025-02-01 05: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-01 02:21:05' and `end` < '2025-02-01 05: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-01 05:21:18] Production.INFO: count ==176 [2025-02-01 05:21:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:21:05 - End Time 2025-02-01 05:21:05 [2025-02-01 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376164', 'tblTempUsageDetail_20' ) start [2025-02-01 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376164', 'tblTempUsageDetail_20' ) end [2025-02-01 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376164', 'tblTempVendorCDR_20' ) start [2025-02-01 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376164', 'tblTempVendorCDR_20' ) end [2025-02-01 05:21:18] Production.INFO: ProcessCDR(1,14376164,1,1,2) [2025-02-01 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376164', 'tblTempUsageDetail_20' ) start [2025-02-01 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376164', 'tblTempUsageDetail_20' ) end [2025-02-01 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:21:22] Production.INFO: ==7239== Releasing lock... [2025-02-01 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:21:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:22:05 [end_date_ymd] => 2025-02-01 05:22:05 [RateCDR] => 1 ) [2025-02-01 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:22:05' and `end` < '2025-02-01 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:22:18] Production.INFO: count ==176 [2025-02-01 05:22:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:22:05 - End Time 2025-02-01 05:22:05 [2025-02-01 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376169', 'tblTempUsageDetail_20' ) start [2025-02-01 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376169', 'tblTempUsageDetail_20' ) end [2025-02-01 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376169', 'tblTempVendorCDR_20' ) start [2025-02-01 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376169', 'tblTempVendorCDR_20' ) end [2025-02-01 05:22:18] Production.INFO: ProcessCDR(1,14376169,1,1,2) [2025-02-01 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376169', 'tblTempUsageDetail_20' ) start [2025-02-01 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376169', 'tblTempUsageDetail_20' ) end [2025-02-01 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:22:21] Production.INFO: ==7314== Releasing lock... [2025-02-01 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:23:05 [end_date_ymd] => 2025-02-01 05:23:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:23:05' and `end` < '2025-02-01 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-01 05:23:19] Production.INFO: count ==176 [2025-02-01 05:23:19] Production.ERROR: pbx CDR StartTime 2025-02-01 02:23:05 - End Time 2025-02-01 05:23:05 [2025-02-01 05:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376174', 'tblTempUsageDetail_20' ) start [2025-02-01 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376174', 'tblTempUsageDetail_20' ) end [2025-02-01 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376174', 'tblTempVendorCDR_20' ) start [2025-02-01 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376174', 'tblTempVendorCDR_20' ) end [2025-02-01 05:23:19] Production.INFO: ProcessCDR(1,14376174,1,1,2) [2025-02-01 05:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376174', 'tblTempUsageDetail_20' ) start [2025-02-01 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376174', 'tblTempUsageDetail_20' ) end [2025-02-01 05:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:23:22] Production.INFO: ==7389== Releasing lock... [2025-02-01 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:23:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:24:05 [end_date_ymd] => 2025-02-01 05:24:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:24:05' and `end` < '2025-02-01 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-01 05:24:18] Production.INFO: count ==176 [2025-02-01 05:24:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:24:05 - End Time 2025-02-01 05:24:05 [2025-02-01 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376179', 'tblTempUsageDetail_20' ) start [2025-02-01 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376179', 'tblTempUsageDetail_20' ) end [2025-02-01 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376179', 'tblTempVendorCDR_20' ) start [2025-02-01 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376179', 'tblTempVendorCDR_20' ) end [2025-02-01 05:24:18] Production.INFO: ProcessCDR(1,14376179,1,1,2) [2025-02-01 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376179', 'tblTempUsageDetail_20' ) start [2025-02-01 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376179', 'tblTempUsageDetail_20' ) end [2025-02-01 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:24:21] Production.INFO: ==7461== Releasing lock... [2025-02-01 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:25:05 [end_date_ymd] => 2025-02-01 05:25:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:25:05' and `end` < '2025-02-01 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-01 05:25:18] Production.INFO: count ==175 [2025-02-01 05:25:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:25:05 - End Time 2025-02-01 05:25:05 [2025-02-01 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376184', 'tblTempUsageDetail_20' ) start [2025-02-01 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376184', 'tblTempUsageDetail_20' ) end [2025-02-01 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376184', 'tblTempVendorCDR_20' ) start [2025-02-01 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376184', 'tblTempVendorCDR_20' ) end [2025-02-01 05:25:18] Production.INFO: ProcessCDR(1,14376184,1,1,2) [2025-02-01 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376184', 'tblTempUsageDetail_20' ) start [2025-02-01 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376184', 'tblTempUsageDetail_20' ) end [2025-02-01 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:25:21] Production.INFO: ==7537== Releasing lock... [2025-02-01 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:26:05 [end_date_ymd] => 2025-02-01 05:26:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:26:05' and `end` < '2025-02-01 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-01 05:26:18] Production.INFO: count ==175 [2025-02-01 05:26:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:26:05 - End Time 2025-02-01 05:26:05 [2025-02-01 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376189', 'tblTempUsageDetail_20' ) start [2025-02-01 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376189', 'tblTempUsageDetail_20' ) end [2025-02-01 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376189', 'tblTempVendorCDR_20' ) start [2025-02-01 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376189', 'tblTempVendorCDR_20' ) end [2025-02-01 05:26:18] Production.INFO: ProcessCDR(1,14376189,1,1,2) [2025-02-01 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376189', 'tblTempUsageDetail_20' ) start [2025-02-01 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376189', 'tblTempUsageDetail_20' ) end [2025-02-01 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:26:21] Production.INFO: ==7614== Releasing lock... [2025-02-01 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:27:05 [end_date_ymd] => 2025-02-01 05:27:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:27:05' and `end` < '2025-02-01 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-01 05:27:18] Production.INFO: count ==175 [2025-02-01 05:27:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:27:05 - End Time 2025-02-01 05:27:05 [2025-02-01 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376194', 'tblTempUsageDetail_20' ) start [2025-02-01 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376194', 'tblTempUsageDetail_20' ) end [2025-02-01 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376194', 'tblTempVendorCDR_20' ) start [2025-02-01 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376194', 'tblTempVendorCDR_20' ) end [2025-02-01 05:27:18] Production.INFO: ProcessCDR(1,14376194,1,1,2) [2025-02-01 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376194', 'tblTempUsageDetail_20' ) start [2025-02-01 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376194', 'tblTempUsageDetail_20' ) end [2025-02-01 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:27:21] Production.INFO: ==7692== Releasing lock... [2025-02-01 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:28:05 [end_date_ymd] => 2025-02-01 05:28:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:28:05' and `end` < '2025-02-01 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-01 05:28:18] Production.INFO: count ==175 [2025-02-01 05:28:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:28:05 - End Time 2025-02-01 05:28:05 [2025-02-01 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376199', 'tblTempUsageDetail_20' ) start [2025-02-01 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376199', 'tblTempUsageDetail_20' ) end [2025-02-01 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376199', 'tblTempVendorCDR_20' ) start [2025-02-01 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376199', 'tblTempVendorCDR_20' ) end [2025-02-01 05:28:18] Production.INFO: ProcessCDR(1,14376199,1,1,2) [2025-02-01 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376199', 'tblTempUsageDetail_20' ) start [2025-02-01 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376199', 'tblTempUsageDetail_20' ) end [2025-02-01 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:28:21] Production.INFO: ==7765== Releasing lock... [2025-02-01 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:29:05 [end_date_ymd] => 2025-02-01 05:29:05 [RateCDR] => 1 ) [2025-02-01 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:29:05' and `end` < '2025-02-01 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:29:19] Production.INFO: count ==175 [2025-02-01 05:29:19] Production.ERROR: pbx CDR StartTime 2025-02-01 02:29:05 - End Time 2025-02-01 05:29:05 [2025-02-01 05:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376204', 'tblTempUsageDetail_20' ) start [2025-02-01 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376204', 'tblTempUsageDetail_20' ) end [2025-02-01 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376204', 'tblTempVendorCDR_20' ) start [2025-02-01 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376204', 'tblTempVendorCDR_20' ) end [2025-02-01 05:29:19] Production.INFO: ProcessCDR(1,14376204,1,1,2) [2025-02-01 05:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376204', 'tblTempUsageDetail_20' ) start [2025-02-01 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376204', 'tblTempUsageDetail_20' ) end [2025-02-01 05:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:29:22] Production.INFO: ==7836== Releasing lock... [2025-02-01 05:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:29:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:30:06 [end_date_ymd] => 2025-02-01 05:30:06 [RateCDR] => 1 ) [2025-02-01 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:30:06' and `end` < '2025-02-01 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:30:19] Production.INFO: count ==170 [2025-02-01 05:30:19] Production.ERROR: pbx CDR StartTime 2025-02-01 02:30:06 - End Time 2025-02-01 05:30:06 [2025-02-01 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376210', 'tblTempUsageDetail_20' ) start [2025-02-01 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376210', 'tblTempUsageDetail_20' ) end [2025-02-01 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376210', 'tblTempVendorCDR_20' ) start [2025-02-01 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376210', 'tblTempVendorCDR_20' ) end [2025-02-01 05:30:19] Production.INFO: ProcessCDR(1,14376210,1,1,2) [2025-02-01 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376210', 'tblTempUsageDetail_20' ) start [2025-02-01 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376210', 'tblTempUsageDetail_20' ) end [2025-02-01 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:30:22] Production.INFO: ==7912== Releasing lock... [2025-02-01 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:31:05 [end_date_ymd] => 2025-02-01 05:31:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:31:05' and `end` < '2025-02-01 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-01 05:31:18] Production.INFO: count ==166 [2025-02-01 05:31:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:31:05 - End Time 2025-02-01 05:31:05 [2025-02-01 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376215', 'tblTempUsageDetail_20' ) start [2025-02-01 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376215', 'tblTempUsageDetail_20' ) end [2025-02-01 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376215', 'tblTempVendorCDR_20' ) start [2025-02-01 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376215', 'tblTempVendorCDR_20' ) end [2025-02-01 05:31:18] Production.INFO: ProcessCDR(1,14376215,1,1,2) [2025-02-01 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376215', 'tblTempUsageDetail_20' ) start [2025-02-01 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376215', 'tblTempUsageDetail_20' ) end [2025-02-01 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:31:21] Production.INFO: ==7984== Releasing lock... [2025-02-01 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:32:05 [end_date_ymd] => 2025-02-01 05:32:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:32:05' and `end` < '2025-02-01 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-01 05:32:19] Production.INFO: count ==166 [2025-02-01 05:32:19] Production.ERROR: pbx CDR StartTime 2025-02-01 02:32:05 - End Time 2025-02-01 05:32:05 [2025-02-01 05:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376220', 'tblTempUsageDetail_20' ) start [2025-02-01 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376220', 'tblTempUsageDetail_20' ) end [2025-02-01 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376220', 'tblTempVendorCDR_20' ) start [2025-02-01 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376220', 'tblTempVendorCDR_20' ) end [2025-02-01 05:32:19] Production.INFO: ProcessCDR(1,14376220,1,1,2) [2025-02-01 05:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376220', 'tblTempUsageDetail_20' ) start [2025-02-01 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376220', 'tblTempUsageDetail_20' ) end [2025-02-01 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:32:22] Production.INFO: ==8063== Releasing lock... [2025-02-01 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:32:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:33:05 [end_date_ymd] => 2025-02-01 05:33:05 [RateCDR] => 1 ) [2025-02-01 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:33:05' and `end` < '2025-02-01 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:33:17] Production.INFO: count ==166 [2025-02-01 05:33:17] Production.ERROR: pbx CDR StartTime 2025-02-01 02:33:05 - End Time 2025-02-01 05:33:05 [2025-02-01 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376225', 'tblTempUsageDetail_20' ) start [2025-02-01 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376225', 'tblTempUsageDetail_20' ) end [2025-02-01 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376225', 'tblTempVendorCDR_20' ) start [2025-02-01 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376225', 'tblTempVendorCDR_20' ) end [2025-02-01 05:33:17] Production.INFO: ProcessCDR(1,14376225,1,1,2) [2025-02-01 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376225', 'tblTempUsageDetail_20' ) start [2025-02-01 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376225', 'tblTempUsageDetail_20' ) end [2025-02-01 05:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:33:20] Production.INFO: ==8179== Releasing lock... [2025-02-01 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:33:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:34:05 [end_date_ymd] => 2025-02-01 05:34:05 [RateCDR] => 1 ) [2025-02-01 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:34:05' and `end` < '2025-02-01 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:34:18] Production.INFO: count ==166 [2025-02-01 05:34:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:34:05 - End Time 2025-02-01 05:34:05 [2025-02-01 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376230', 'tblTempUsageDetail_20' ) start [2025-02-01 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376230', 'tblTempUsageDetail_20' ) end [2025-02-01 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376230', 'tblTempVendorCDR_20' ) start [2025-02-01 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376230', 'tblTempVendorCDR_20' ) end [2025-02-01 05:34:18] Production.INFO: ProcessCDR(1,14376230,1,1,2) [2025-02-01 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376230', 'tblTempUsageDetail_20' ) start [2025-02-01 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376230', 'tblTempUsageDetail_20' ) end [2025-02-01 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:34:21] Production.INFO: ==8255== Releasing lock... [2025-02-01 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:35:06 [end_date_ymd] => 2025-02-01 05:35:06 [RateCDR] => 1 ) [2025-02-01 05:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:35:06' and `end` < '2025-02-01 05:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:35:18] Production.INFO: count ==166 [2025-02-01 05:35:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:35:06 - End Time 2025-02-01 05:35:06 [2025-02-01 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376235', 'tblTempUsageDetail_20' ) start [2025-02-01 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376235', 'tblTempUsageDetail_20' ) end [2025-02-01 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376235', 'tblTempVendorCDR_20' ) start [2025-02-01 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376235', 'tblTempVendorCDR_20' ) end [2025-02-01 05:35:18] Production.INFO: ProcessCDR(1,14376235,1,1,2) [2025-02-01 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376235', 'tblTempUsageDetail_20' ) start [2025-02-01 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376235', 'tblTempUsageDetail_20' ) end [2025-02-01 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:35:21] Production.INFO: ==8326== Releasing lock... [2025-02-01 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:36:05 [end_date_ymd] => 2025-02-01 05:36:05 [RateCDR] => 1 ) [2025-02-01 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:36:05' and `end` < '2025-02-01 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:36:18] Production.INFO: count ==165 [2025-02-01 05:36:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:36:05 - End Time 2025-02-01 05:36:05 [2025-02-01 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376240', 'tblTempUsageDetail_20' ) start [2025-02-01 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376240', 'tblTempUsageDetail_20' ) end [2025-02-01 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376240', 'tblTempVendorCDR_20' ) start [2025-02-01 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376240', 'tblTempVendorCDR_20' ) end [2025-02-01 05:36:18] Production.INFO: ProcessCDR(1,14376240,1,1,2) [2025-02-01 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376240', 'tblTempUsageDetail_20' ) start [2025-02-01 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376240', 'tblTempUsageDetail_20' ) end [2025-02-01 05:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:36:21] Production.INFO: ==8397== Releasing lock... [2025-02-01 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:37:05 [end_date_ymd] => 2025-02-01 05:37:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:37:05' and `end` < '2025-02-01 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-01 05:37:18] Production.INFO: count ==165 [2025-02-01 05:37:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:37:05 - End Time 2025-02-01 05:37:05 [2025-02-01 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376245', 'tblTempUsageDetail_20' ) start [2025-02-01 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376245', 'tblTempUsageDetail_20' ) end [2025-02-01 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376245', 'tblTempVendorCDR_20' ) start [2025-02-01 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376245', 'tblTempVendorCDR_20' ) end [2025-02-01 05:37:18] Production.INFO: ProcessCDR(1,14376245,1,1,2) [2025-02-01 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376245', 'tblTempUsageDetail_20' ) start [2025-02-01 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376245', 'tblTempUsageDetail_20' ) end [2025-02-01 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:37:21] Production.INFO: ==8467== Releasing lock... [2025-02-01 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:38:05 [end_date_ymd] => 2025-02-01 05:38:05 [RateCDR] => 1 ) [2025-02-01 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:38:05' and `end` < '2025-02-01 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:38:18] Production.INFO: count ==167 [2025-02-01 05:38:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:38:05 - End Time 2025-02-01 05:38:05 [2025-02-01 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376250', 'tblTempUsageDetail_20' ) start [2025-02-01 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376250', 'tblTempUsageDetail_20' ) end [2025-02-01 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376250', 'tblTempVendorCDR_20' ) start [2025-02-01 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376250', 'tblTempVendorCDR_20' ) end [2025-02-01 05:38:18] Production.INFO: ProcessCDR(1,14376250,1,1,2) [2025-02-01 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376250', 'tblTempUsageDetail_20' ) start [2025-02-01 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376250', 'tblTempUsageDetail_20' ) end [2025-02-01 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:38:21] Production.INFO: ==8541== Releasing lock... [2025-02-01 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:39:05 [end_date_ymd] => 2025-02-01 05:39:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:39:05' and `end` < '2025-02-01 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-01 05:39:18] Production.INFO: count ==167 [2025-02-01 05:39:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:39:05 - End Time 2025-02-01 05:39:05 [2025-02-01 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376255', 'tblTempUsageDetail_20' ) start [2025-02-01 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376255', 'tblTempUsageDetail_20' ) end [2025-02-01 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376255', 'tblTempVendorCDR_20' ) start [2025-02-01 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376255', 'tblTempVendorCDR_20' ) end [2025-02-01 05:39:18] Production.INFO: ProcessCDR(1,14376255,1,1,2) [2025-02-01 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376255', 'tblTempUsageDetail_20' ) start [2025-02-01 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376255', 'tblTempUsageDetail_20' ) end [2025-02-01 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:39:21] Production.INFO: ==8614== Releasing lock... [2025-02-01 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:40:06 [end_date_ymd] => 2025-02-01 05:40:06 [RateCDR] => 1 ) [2025-02-01 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-01 02:40:06' and `end` < '2025-02-01 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-01 05:40:19] Production.INFO: count ==164 [2025-02-01 05:40:19] Production.ERROR: pbx CDR StartTime 2025-02-01 02:40:06 - End Time 2025-02-01 05:40:06 [2025-02-01 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376261', 'tblTempUsageDetail_20' ) start [2025-02-01 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376261', 'tblTempUsageDetail_20' ) end [2025-02-01 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376261', 'tblTempVendorCDR_20' ) start [2025-02-01 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376261', 'tblTempVendorCDR_20' ) end [2025-02-01 05:40:19] Production.INFO: ProcessCDR(1,14376261,1,1,2) [2025-02-01 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376261', 'tblTempUsageDetail_20' ) start [2025-02-01 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376261', 'tblTempUsageDetail_20' ) end [2025-02-01 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:40:22] Production.INFO: ==8686== Releasing lock... [2025-02-01 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:40:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:41:05 [end_date_ymd] => 2025-02-01 05:41:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:41:05' and `end` < '2025-02-01 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-01 05:41:18] Production.INFO: count ==164 [2025-02-01 05:41:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:41:05 - End Time 2025-02-01 05:41:05 [2025-02-01 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376266', 'tblTempUsageDetail_20' ) start [2025-02-01 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376266', 'tblTempUsageDetail_20' ) end [2025-02-01 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376266', 'tblTempVendorCDR_20' ) start [2025-02-01 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376266', 'tblTempVendorCDR_20' ) end [2025-02-01 05:41:18] Production.INFO: ProcessCDR(1,14376266,1,1,2) [2025-02-01 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376266', 'tblTempUsageDetail_20' ) start [2025-02-01 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376266', 'tblTempUsageDetail_20' ) end [2025-02-01 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:41:21] Production.INFO: ==8761== Releasing lock... [2025-02-01 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:42:05 [end_date_ymd] => 2025-02-01 05:42:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:42:05' and `end` < '2025-02-01 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-01 05:42:18] Production.INFO: count ==164 [2025-02-01 05:42:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:42:05 - End Time 2025-02-01 05:42:05 [2025-02-01 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376271', 'tblTempUsageDetail_20' ) start [2025-02-01 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376271', 'tblTempUsageDetail_20' ) end [2025-02-01 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376271', 'tblTempVendorCDR_20' ) start [2025-02-01 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376271', 'tblTempVendorCDR_20' ) end [2025-02-01 05:42:18] Production.INFO: ProcessCDR(1,14376271,1,1,2) [2025-02-01 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376271', 'tblTempUsageDetail_20' ) start [2025-02-01 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376271', 'tblTempUsageDetail_20' ) end [2025-02-01 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:42:21] Production.INFO: ==8835== Releasing lock... [2025-02-01 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:43:05 [end_date_ymd] => 2025-02-01 05:43:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:43:05' and `end` < '2025-02-01 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-01 05:43:18] Production.INFO: count ==164 [2025-02-01 05:43:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:43:05 - End Time 2025-02-01 05:43:05 [2025-02-01 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376276', 'tblTempUsageDetail_20' ) start [2025-02-01 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376276', 'tblTempUsageDetail_20' ) end [2025-02-01 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376276', 'tblTempVendorCDR_20' ) start [2025-02-01 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376276', 'tblTempVendorCDR_20' ) end [2025-02-01 05:43:18] Production.INFO: ProcessCDR(1,14376276,1,1,2) [2025-02-01 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376276', 'tblTempUsageDetail_20' ) start [2025-02-01 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376276', 'tblTempUsageDetail_20' ) end [2025-02-01 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:43:21] Production.INFO: ==8907== Releasing lock... [2025-02-01 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:44:05 [end_date_ymd] => 2025-02-01 05:44:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:44:05' and `end` < '2025-02-01 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-01 05:44:19] Production.INFO: count ==166 [2025-02-01 05:44:19] Production.ERROR: pbx CDR StartTime 2025-02-01 02:44:05 - End Time 2025-02-01 05:44:05 [2025-02-01 05:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376281', 'tblTempUsageDetail_20' ) start [2025-02-01 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376281', 'tblTempUsageDetail_20' ) end [2025-02-01 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376281', 'tblTempVendorCDR_20' ) start [2025-02-01 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376281', 'tblTempVendorCDR_20' ) end [2025-02-01 05:44:19] Production.INFO: ProcessCDR(1,14376281,1,1,2) [2025-02-01 05:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376281', 'tblTempUsageDetail_20' ) start [2025-02-01 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376281', 'tblTempUsageDetail_20' ) end [2025-02-01 05:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:44:22] Production.INFO: ==8978== Releasing lock... [2025-02-01 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:44:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:45:05 [end_date_ymd] => 2025-02-01 05:45:05 [RateCDR] => 1 ) [2025-02-01 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:45:05' and `end` < '2025-02-01 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:45:18] Production.INFO: count ==166 [2025-02-01 05:45:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:45:05 - End Time 2025-02-01 05:45:05 [2025-02-01 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376286', 'tblTempUsageDetail_20' ) start [2025-02-01 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376286', 'tblTempUsageDetail_20' ) end [2025-02-01 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376286', 'tblTempVendorCDR_20' ) start [2025-02-01 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376286', 'tblTempVendorCDR_20' ) end [2025-02-01 05:45:18] Production.INFO: ProcessCDR(1,14376286,1,1,2) [2025-02-01 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376286', 'tblTempUsageDetail_20' ) start [2025-02-01 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376286', 'tblTempUsageDetail_20' ) end [2025-02-01 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:45:21] Production.INFO: ==9052== Releasing lock... [2025-02-01 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:46:05 [end_date_ymd] => 2025-02-01 05:46:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:46:05' and `end` < '2025-02-01 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-01 05:46:18] Production.INFO: count ==166 [2025-02-01 05:46:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:46:05 - End Time 2025-02-01 05:46:05 [2025-02-01 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376291', 'tblTempUsageDetail_20' ) start [2025-02-01 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376291', 'tblTempUsageDetail_20' ) end [2025-02-01 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376291', 'tblTempVendorCDR_20' ) start [2025-02-01 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376291', 'tblTempVendorCDR_20' ) end [2025-02-01 05:46:18] Production.INFO: ProcessCDR(1,14376291,1,1,2) [2025-02-01 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376291', 'tblTempUsageDetail_20' ) start [2025-02-01 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376291', 'tblTempUsageDetail_20' ) end [2025-02-01 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:46:21] Production.INFO: ==9129== Releasing lock... [2025-02-01 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:47:05 [end_date_ymd] => 2025-02-01 05:47:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:47:05' and `end` < '2025-02-01 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-01 05:47:18] Production.INFO: count ==166 [2025-02-01 05:47:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:47:05 - End Time 2025-02-01 05:47:05 [2025-02-01 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376296', 'tblTempUsageDetail_20' ) start [2025-02-01 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376296', 'tblTempUsageDetail_20' ) end [2025-02-01 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376296', 'tblTempVendorCDR_20' ) start [2025-02-01 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376296', 'tblTempVendorCDR_20' ) end [2025-02-01 05:47:18] Production.INFO: ProcessCDR(1,14376296,1,1,2) [2025-02-01 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376296', 'tblTempUsageDetail_20' ) start [2025-02-01 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376296', 'tblTempUsageDetail_20' ) end [2025-02-01 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:47:21] Production.INFO: ==9206== Releasing lock... [2025-02-01 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:48:05 [end_date_ymd] => 2025-02-01 05:48:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:48:05' and `end` < '2025-02-01 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-01 05:48:18] Production.INFO: count ==166 [2025-02-01 05:48:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:48:05 - End Time 2025-02-01 05:48:05 [2025-02-01 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376301', 'tblTempUsageDetail_20' ) start [2025-02-01 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376301', 'tblTempUsageDetail_20' ) end [2025-02-01 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376301', 'tblTempVendorCDR_20' ) start [2025-02-01 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376301', 'tblTempVendorCDR_20' ) end [2025-02-01 05:48:18] Production.INFO: ProcessCDR(1,14376301,1,1,2) [2025-02-01 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376301', 'tblTempUsageDetail_20' ) start [2025-02-01 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376301', 'tblTempUsageDetail_20' ) end [2025-02-01 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:48:21] Production.INFO: ==9276== Releasing lock... [2025-02-01 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:49:05 [end_date_ymd] => 2025-02-01 05:49:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:49:05' and `end` < '2025-02-01 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-01 05:49:17] Production.INFO: count ==166 [2025-02-01 05:49:17] Production.ERROR: pbx CDR StartTime 2025-02-01 02:49:05 - End Time 2025-02-01 05:49:05 [2025-02-01 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376306', 'tblTempUsageDetail_20' ) start [2025-02-01 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376306', 'tblTempUsageDetail_20' ) end [2025-02-01 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376306', 'tblTempVendorCDR_20' ) start [2025-02-01 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376306', 'tblTempVendorCDR_20' ) end [2025-02-01 05:49:17] Production.INFO: ProcessCDR(1,14376306,1,1,2) [2025-02-01 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376306', 'tblTempUsageDetail_20' ) start [2025-02-01 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376306', 'tblTempUsageDetail_20' ) end [2025-02-01 05:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:49:20] Production.INFO: ==9389== Releasing lock... [2025-02-01 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:49:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:50:06 [end_date_ymd] => 2025-02-01 05:50:06 [RateCDR] => 1 ) [2025-02-01 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:50:06' and `end` < '2025-02-01 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:50:19] Production.INFO: count ==166 [2025-02-01 05:50:19] Production.ERROR: pbx CDR StartTime 2025-02-01 02:50:06 - End Time 2025-02-01 05:50:06 [2025-02-01 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376312', 'tblTempUsageDetail_20' ) start [2025-02-01 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376312', 'tblTempUsageDetail_20' ) end [2025-02-01 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376312', 'tblTempVendorCDR_20' ) start [2025-02-01 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376312', 'tblTempVendorCDR_20' ) end [2025-02-01 05:50:19] Production.INFO: ProcessCDR(1,14376312,1,1,2) [2025-02-01 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376312', 'tblTempUsageDetail_20' ) start [2025-02-01 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376312', 'tblTempUsageDetail_20' ) end [2025-02-01 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:50:22] Production.INFO: ==9461== Releasing lock... [2025-02-01 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:50:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:51:05 [end_date_ymd] => 2025-02-01 05:51:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:51:05' and `end` < '2025-02-01 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-01 05:51:18] Production.INFO: count ==166 [2025-02-01 05:51:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:51:05 - End Time 2025-02-01 05:51:05 [2025-02-01 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376317', 'tblTempUsageDetail_20' ) start [2025-02-01 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376317', 'tblTempUsageDetail_20' ) end [2025-02-01 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376317', 'tblTempVendorCDR_20' ) start [2025-02-01 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376317', 'tblTempVendorCDR_20' ) end [2025-02-01 05:51:18] Production.INFO: ProcessCDR(1,14376317,1,1,2) [2025-02-01 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376317', 'tblTempUsageDetail_20' ) start [2025-02-01 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376317', 'tblTempUsageDetail_20' ) end [2025-02-01 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:51:21] Production.INFO: ==9539== Releasing lock... [2025-02-01 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:52:05 [end_date_ymd] => 2025-02-01 05:52:05 [RateCDR] => 1 ) [2025-02-01 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:52:05' and `end` < '2025-02-01 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:52:17] Production.INFO: count ==166 [2025-02-01 05:52:17] Production.ERROR: pbx CDR StartTime 2025-02-01 02:52:05 - End Time 2025-02-01 05:52:05 [2025-02-01 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376322', 'tblTempUsageDetail_20' ) start [2025-02-01 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376322', 'tblTempUsageDetail_20' ) end [2025-02-01 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376322', 'tblTempVendorCDR_20' ) start [2025-02-01 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376322', 'tblTempVendorCDR_20' ) end [2025-02-01 05:52:17] Production.INFO: ProcessCDR(1,14376322,1,1,2) [2025-02-01 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376322', 'tblTempUsageDetail_20' ) start [2025-02-01 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376322', 'tblTempUsageDetail_20' ) end [2025-02-01 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:52:20] Production.INFO: ==9610== Releasing lock... [2025-02-01 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:52:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:53:05 [end_date_ymd] => 2025-02-01 05:53:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:53:05' and `end` < '2025-02-01 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-01 05:53:19] Production.INFO: count ==166 [2025-02-01 05:53:19] Production.ERROR: pbx CDR StartTime 2025-02-01 02:53:05 - End Time 2025-02-01 05:53:05 [2025-02-01 05:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376327', 'tblTempUsageDetail_20' ) start [2025-02-01 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376327', 'tblTempUsageDetail_20' ) end [2025-02-01 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376327', 'tblTempVendorCDR_20' ) start [2025-02-01 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376327', 'tblTempVendorCDR_20' ) end [2025-02-01 05:53:19] Production.INFO: ProcessCDR(1,14376327,1,1,2) [2025-02-01 05:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376327', 'tblTempUsageDetail_20' ) start [2025-02-01 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376327', 'tblTempUsageDetail_20' ) end [2025-02-01 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:53:22] Production.INFO: ==9684== Releasing lock... [2025-02-01 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:53:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:54:05 [end_date_ymd] => 2025-02-01 05:54:05 [RateCDR] => 1 ) [2025-02-01 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:54:05' and `end` < '2025-02-01 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:54:17] Production.INFO: count ==166 [2025-02-01 05:54:17] Production.ERROR: pbx CDR StartTime 2025-02-01 02:54:05 - End Time 2025-02-01 05:54:05 [2025-02-01 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376332', 'tblTempUsageDetail_20' ) start [2025-02-01 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376332', 'tblTempUsageDetail_20' ) end [2025-02-01 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376332', 'tblTempVendorCDR_20' ) start [2025-02-01 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376332', 'tblTempVendorCDR_20' ) end [2025-02-01 05:54:17] Production.INFO: ProcessCDR(1,14376332,1,1,2) [2025-02-01 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376332', 'tblTempUsageDetail_20' ) start [2025-02-01 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376332', 'tblTempUsageDetail_20' ) end [2025-02-01 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:54:20] Production.INFO: ==9753== Releasing lock... [2025-02-01 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:54:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:55:05 [end_date_ymd] => 2025-02-01 05:55:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:55:05' and `end` < '2025-02-01 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-01 05:55:18] Production.INFO: count ==166 [2025-02-01 05:55:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:55:05 - End Time 2025-02-01 05:55:05 [2025-02-01 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376337', 'tblTempUsageDetail_20' ) start [2025-02-01 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376337', 'tblTempUsageDetail_20' ) end [2025-02-01 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376337', 'tblTempVendorCDR_20' ) start [2025-02-01 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376337', 'tblTempVendorCDR_20' ) end [2025-02-01 05:55:18] Production.INFO: ProcessCDR(1,14376337,1,1,2) [2025-02-01 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376337', 'tblTempUsageDetail_20' ) start [2025-02-01 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376337', 'tblTempUsageDetail_20' ) end [2025-02-01 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:55:21] Production.INFO: ==9824== Releasing lock... [2025-02-01 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:56:04 [end_date_ymd] => 2025-02-01 05:56:04 [RateCDR] => 1 ) [2025-02-01 05:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 02:56:04' and `end` < '2025-02-01 05:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 05:56:18] Production.INFO: count ==166 [2025-02-01 05:56:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:56:04 - End Time 2025-02-01 05:56:04 [2025-02-01 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376342', 'tblTempUsageDetail_20' ) start [2025-02-01 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376342', 'tblTempUsageDetail_20' ) end [2025-02-01 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376342', 'tblTempVendorCDR_20' ) start [2025-02-01 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376342', 'tblTempVendorCDR_20' ) end [2025-02-01 05:56:18] Production.INFO: ProcessCDR(1,14376342,1,1,2) [2025-02-01 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376342', 'tblTempUsageDetail_20' ) start [2025-02-01 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376342', 'tblTempUsageDetail_20' ) end [2025-02-01 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:56:21] Production.INFO: ==9895== Releasing lock... [2025-02-01 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:57:05 [end_date_ymd] => 2025-02-01 05:57:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:57:05' and `end` < '2025-02-01 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-01 05:57:18] Production.INFO: count ==166 [2025-02-01 05:57:18] Production.ERROR: pbx CDR StartTime 2025-02-01 02:57:05 - End Time 2025-02-01 05:57:05 [2025-02-01 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376347', 'tblTempUsageDetail_20' ) start [2025-02-01 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376347', 'tblTempUsageDetail_20' ) end [2025-02-01 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376347', 'tblTempVendorCDR_20' ) start [2025-02-01 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376347', 'tblTempVendorCDR_20' ) end [2025-02-01 05:57:18] Production.INFO: ProcessCDR(1,14376347,1,1,2) [2025-02-01 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376347', 'tblTempUsageDetail_20' ) start [2025-02-01 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376347', 'tblTempUsageDetail_20' ) end [2025-02-01 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:57:21] Production.INFO: ==9974== Releasing lock... [2025-02-01 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:58:04 [end_date_ymd] => 2025-02-01 05:58:04 [RateCDR] => 1 ) [2025-02-01 05: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-01 02:58:04' and `end` < '2025-02-01 05: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-01 05:58:17] Production.INFO: count ==166 [2025-02-01 05:58:17] Production.ERROR: pbx CDR StartTime 2025-02-01 02:58:04 - End Time 2025-02-01 05:58:04 [2025-02-01 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376352', 'tblTempUsageDetail_20' ) start [2025-02-01 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376352', 'tblTempUsageDetail_20' ) end [2025-02-01 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376352', 'tblTempVendorCDR_20' ) start [2025-02-01 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376352', 'tblTempVendorCDR_20' ) end [2025-02-01 05:58:17] Production.INFO: ProcessCDR(1,14376352,1,1,2) [2025-02-01 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376352', 'tblTempUsageDetail_20' ) start [2025-02-01 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376352', 'tblTempUsageDetail_20' ) end [2025-02-01 05:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:58:20] Production.INFO: ==10043== Releasing lock... [2025-02-01 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:58:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 02:59:05 [end_date_ymd] => 2025-02-01 05:59:05 [RateCDR] => 1 ) [2025-02-01 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-01 02:59:05' and `end` < '2025-02-01 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-01 05:59:19] Production.INFO: count ==166 [2025-02-01 05:59:19] Production.ERROR: pbx CDR StartTime 2025-02-01 02:59:05 - End Time 2025-02-01 05:59:05 [2025-02-01 05:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376357', 'tblTempUsageDetail_20' ) start [2025-02-01 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376357', 'tblTempUsageDetail_20' ) end [2025-02-01 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376357', 'tblTempVendorCDR_20' ) start [2025-02-01 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376357', 'tblTempVendorCDR_20' ) end [2025-02-01 05:59:19] Production.INFO: ProcessCDR(1,14376357,1,1,2) [2025-02-01 05:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376357', 'tblTempUsageDetail_20' ) start [2025-02-01 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376357', 'tblTempUsageDetail_20' ) end [2025-02-01 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 05:59:22] Production.INFO: ==10114== Releasing lock... [2025-02-01 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 05:59:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:00:07 [end_date_ymd] => 2025-02-01 06:00:07 [RateCDR] => 1 ) [2025-02-01 06: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-01 03:00:07' and `end` < '2025-02-01 06: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-01 06:00:19] Production.INFO: count ==164 [2025-02-01 06:00:19] Production.ERROR: pbx CDR StartTime 2025-02-01 03:00:07 - End Time 2025-02-01 06:00:07 [2025-02-01 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376363', 'tblTempUsageDetail_20' ) start [2025-02-01 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376363', 'tblTempUsageDetail_20' ) end [2025-02-01 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376363', 'tblTempVendorCDR_20' ) start [2025-02-01 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376363', 'tblTempVendorCDR_20' ) end [2025-02-01 06:00:19] Production.INFO: ProcessCDR(1,14376363,1,1,2) [2025-02-01 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376363', 'tblTempUsageDetail_20' ) start [2025-02-01 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376363', 'tblTempUsageDetail_20' ) end [2025-02-01 06:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:00:23] Production.INFO: ==10190== Releasing lock... [2025-02-01 06:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:00:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:01:05 [end_date_ymd] => 2025-02-01 06:01:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:01:05' and `end` < '2025-02-01 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-01 06:01:18] Production.INFO: count ==164 [2025-02-01 06:01:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:01:05 - End Time 2025-02-01 06:01:05 [2025-02-01 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376368', 'tblTempUsageDetail_20' ) start [2025-02-01 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376368', 'tblTempUsageDetail_20' ) end [2025-02-01 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376368', 'tblTempVendorCDR_20' ) start [2025-02-01 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376368', 'tblTempVendorCDR_20' ) end [2025-02-01 06:01:18] Production.INFO: ProcessCDR(1,14376368,1,1,2) [2025-02-01 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376368', 'tblTempUsageDetail_20' ) start [2025-02-01 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376368', 'tblTempUsageDetail_20' ) end [2025-02-01 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:01:21] Production.INFO: ==10273== Releasing lock... [2025-02-01 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:02:05 [end_date_ymd] => 2025-02-01 06:02:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:02:05' and `end` < '2025-02-01 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-01 06:02:18] Production.INFO: count ==164 [2025-02-01 06:02:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:02:05 - End Time 2025-02-01 06:02:05 [2025-02-01 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376373', 'tblTempUsageDetail_20' ) start [2025-02-01 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376373', 'tblTempUsageDetail_20' ) end [2025-02-01 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376373', 'tblTempVendorCDR_20' ) start [2025-02-01 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376373', 'tblTempVendorCDR_20' ) end [2025-02-01 06:02:18] Production.INFO: ProcessCDR(1,14376373,1,1,2) [2025-02-01 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376373', 'tblTempUsageDetail_20' ) start [2025-02-01 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376373', 'tblTempUsageDetail_20' ) end [2025-02-01 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:02:22] Production.INFO: ==10352== Releasing lock... [2025-02-01 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:02:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:03:05 [end_date_ymd] => 2025-02-01 06:03:05 [RateCDR] => 1 ) [2025-02-01 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:03:05' and `end` < '2025-02-01 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:03:18] Production.INFO: count ==166 [2025-02-01 06:03:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:03:05 - End Time 2025-02-01 06:03:05 [2025-02-01 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376378', 'tblTempUsageDetail_20' ) start [2025-02-01 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376378', 'tblTempUsageDetail_20' ) end [2025-02-01 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376378', 'tblTempVendorCDR_20' ) start [2025-02-01 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376378', 'tblTempVendorCDR_20' ) end [2025-02-01 06:03:18] Production.INFO: ProcessCDR(1,14376378,1,1,2) [2025-02-01 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376378', 'tblTempUsageDetail_20' ) start [2025-02-01 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376378', 'tblTempUsageDetail_20' ) end [2025-02-01 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:03:21] Production.INFO: ==10426== Releasing lock... [2025-02-01 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:04:06 [end_date_ymd] => 2025-02-01 06:04:06 [RateCDR] => 1 ) [2025-02-01 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-01 03:04:06' and `end` < '2025-02-01 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-01 06:04:19] Production.INFO: count ==166 [2025-02-01 06:04:19] Production.ERROR: pbx CDR StartTime 2025-02-01 03:04:06 - End Time 2025-02-01 06:04:06 [2025-02-01 06:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376383', 'tblTempUsageDetail_20' ) start [2025-02-01 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376383', 'tblTempUsageDetail_20' ) end [2025-02-01 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376383', 'tblTempVendorCDR_20' ) start [2025-02-01 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376383', 'tblTempVendorCDR_20' ) end [2025-02-01 06:04:19] Production.INFO: ProcessCDR(1,14376383,1,1,2) [2025-02-01 06:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376383', 'tblTempUsageDetail_20' ) start [2025-02-01 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376383', 'tblTempUsageDetail_20' ) end [2025-02-01 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:04:22] Production.INFO: ==10541== Releasing lock... [2025-02-01 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:04:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:05:05 [end_date_ymd] => 2025-02-01 06:05:05 [RateCDR] => 1 ) [2025-02-01 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:05:05' and `end` < '2025-02-01 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:05:18] Production.INFO: count ==166 [2025-02-01 06:05:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:05:05 - End Time 2025-02-01 06:05:05 [2025-02-01 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376388', 'tblTempUsageDetail_20' ) start [2025-02-01 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376388', 'tblTempUsageDetail_20' ) end [2025-02-01 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376388', 'tblTempVendorCDR_20' ) start [2025-02-01 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376388', 'tblTempVendorCDR_20' ) end [2025-02-01 06:05:18] Production.INFO: ProcessCDR(1,14376388,1,1,2) [2025-02-01 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376388', 'tblTempUsageDetail_20' ) start [2025-02-01 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376388', 'tblTempUsageDetail_20' ) end [2025-02-01 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:05:21] Production.INFO: ==10612== Releasing lock... [2025-02-01 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:06:05 [end_date_ymd] => 2025-02-01 06:06:05 [RateCDR] => 1 ) [2025-02-01 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:06:05' and `end` < '2025-02-01 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:06:18] Production.INFO: count ==166 [2025-02-01 06:06:19] Production.ERROR: pbx CDR StartTime 2025-02-01 03:06:05 - End Time 2025-02-01 06:06:05 [2025-02-01 06:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376393', 'tblTempUsageDetail_20' ) start [2025-02-01 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376393', 'tblTempUsageDetail_20' ) end [2025-02-01 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376393', 'tblTempVendorCDR_20' ) start [2025-02-01 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376393', 'tblTempVendorCDR_20' ) end [2025-02-01 06:06:19] Production.INFO: ProcessCDR(1,14376393,1,1,2) [2025-02-01 06:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376393', 'tblTempUsageDetail_20' ) start [2025-02-01 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376393', 'tblTempUsageDetail_20' ) end [2025-02-01 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:06:22] Production.INFO: ==10689== Releasing lock... [2025-02-01 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:06:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:07:05 [end_date_ymd] => 2025-02-01 06:07:05 [RateCDR] => 1 ) [2025-02-01 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:07:05' and `end` < '2025-02-01 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:07:18] Production.INFO: count ==166 [2025-02-01 06:07:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:07:05 - End Time 2025-02-01 06:07:05 [2025-02-01 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376398', 'tblTempUsageDetail_20' ) start [2025-02-01 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376398', 'tblTempUsageDetail_20' ) end [2025-02-01 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376398', 'tblTempVendorCDR_20' ) start [2025-02-01 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376398', 'tblTempVendorCDR_20' ) end [2025-02-01 06:07:18] Production.INFO: ProcessCDR(1,14376398,1,1,2) [2025-02-01 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376398', 'tblTempUsageDetail_20' ) start [2025-02-01 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376398', 'tblTempUsageDetail_20' ) end [2025-02-01 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:07:21] Production.INFO: ==10760== Releasing lock... [2025-02-01 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:07:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:08:05 [end_date_ymd] => 2025-02-01 06:08:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:08:05' and `end` < '2025-02-01 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-01 06:08:18] Production.INFO: count ==166 [2025-02-01 06:08:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:08:05 - End Time 2025-02-01 06:08:05 [2025-02-01 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376403', 'tblTempUsageDetail_20' ) start [2025-02-01 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376403', 'tblTempUsageDetail_20' ) end [2025-02-01 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376403', 'tblTempVendorCDR_20' ) start [2025-02-01 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376403', 'tblTempVendorCDR_20' ) end [2025-02-01 06:08:18] Production.INFO: ProcessCDR(1,14376403,1,1,2) [2025-02-01 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376403', 'tblTempUsageDetail_20' ) start [2025-02-01 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376403', 'tblTempUsageDetail_20' ) end [2025-02-01 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:08:21] Production.INFO: ==10832== Releasing lock... [2025-02-01 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:08:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:09:06 [end_date_ymd] => 2025-02-01 06:09:06 [RateCDR] => 1 ) [2025-02-01 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-01 03:09:06' and `end` < '2025-02-01 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-01 06:09:19] Production.INFO: count ==166 [2025-02-01 06:09:19] Production.ERROR: pbx CDR StartTime 2025-02-01 03:09:06 - End Time 2025-02-01 06:09:06 [2025-02-01 06:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376408', 'tblTempUsageDetail_20' ) start [2025-02-01 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376408', 'tblTempUsageDetail_20' ) end [2025-02-01 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376408', 'tblTempVendorCDR_20' ) start [2025-02-01 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376408', 'tblTempVendorCDR_20' ) end [2025-02-01 06:09:19] Production.INFO: ProcessCDR(1,14376408,1,1,2) [2025-02-01 06:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376408', 'tblTempUsageDetail_20' ) start [2025-02-01 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376408', 'tblTempUsageDetail_20' ) end [2025-02-01 06:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:09:22] Production.INFO: ==10903== Releasing lock... [2025-02-01 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:09:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:10:06 [end_date_ymd] => 2025-02-01 06:10:06 [RateCDR] => 1 ) [2025-02-01 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-01 03:10:06' and `end` < '2025-02-01 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-01 06:10:19] Production.INFO: count ==160 [2025-02-01 06:10:19] Production.ERROR: pbx CDR StartTime 2025-02-01 03:10:06 - End Time 2025-02-01 06:10:06 [2025-02-01 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376413', 'tblTempUsageDetail_20' ) start [2025-02-01 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376413', 'tblTempUsageDetail_20' ) end [2025-02-01 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376413', 'tblTempVendorCDR_20' ) start [2025-02-01 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376413', 'tblTempVendorCDR_20' ) end [2025-02-01 06:10:19] Production.INFO: ProcessCDR(1,14376413,1,1,2) [2025-02-01 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376413', 'tblTempUsageDetail_20' ) start [2025-02-01 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376413', 'tblTempUsageDetail_20' ) end [2025-02-01 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:10:22] Production.INFO: ==10976== Releasing lock... [2025-02-01 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:10:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:11:05 [end_date_ymd] => 2025-02-01 06:11:05 [RateCDR] => 1 ) [2025-02-01 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:11:05' and `end` < '2025-02-01 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:11:18] Production.INFO: count ==154 [2025-02-01 06:11:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:11:05 - End Time 2025-02-01 06:11:05 [2025-02-01 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376419', 'tblTempUsageDetail_20' ) start [2025-02-01 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376419', 'tblTempUsageDetail_20' ) end [2025-02-01 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376419', 'tblTempVendorCDR_20' ) start [2025-02-01 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376419', 'tblTempVendorCDR_20' ) end [2025-02-01 06:11:18] Production.INFO: ProcessCDR(1,14376419,1,1,2) [2025-02-01 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376419', 'tblTempUsageDetail_20' ) start [2025-02-01 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376419', 'tblTempUsageDetail_20' ) end [2025-02-01 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:11:21] Production.INFO: ==11050== Releasing lock... [2025-02-01 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:11:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:12:05 [end_date_ymd] => 2025-02-01 06:12:05 [RateCDR] => 1 ) [2025-02-01 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:12:05' and `end` < '2025-02-01 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:12:18] Production.INFO: count ==153 [2025-02-01 06:12:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:12:05 - End Time 2025-02-01 06:12:05 [2025-02-01 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376424', 'tblTempUsageDetail_20' ) start [2025-02-01 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376424', 'tblTempUsageDetail_20' ) end [2025-02-01 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376424', 'tblTempVendorCDR_20' ) start [2025-02-01 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376424', 'tblTempVendorCDR_20' ) end [2025-02-01 06:12:18] Production.INFO: ProcessCDR(1,14376424,1,1,2) [2025-02-01 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376424', 'tblTempUsageDetail_20' ) start [2025-02-01 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376424', 'tblTempUsageDetail_20' ) end [2025-02-01 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:12:21] Production.INFO: ==11123== Releasing lock... [2025-02-01 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:13:05 [end_date_ymd] => 2025-02-01 06:13:05 [RateCDR] => 1 ) [2025-02-01 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:13:05' and `end` < '2025-02-01 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:13:18] Production.INFO: count ==149 [2025-02-01 06:13:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:13:05 - End Time 2025-02-01 06:13:05 [2025-02-01 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376429', 'tblTempUsageDetail_20' ) start [2025-02-01 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376429', 'tblTempUsageDetail_20' ) end [2025-02-01 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376429', 'tblTempVendorCDR_20' ) start [2025-02-01 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376429', 'tblTempVendorCDR_20' ) end [2025-02-01 06:13:18] Production.INFO: ProcessCDR(1,14376429,1,1,2) [2025-02-01 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376429', 'tblTempUsageDetail_20' ) start [2025-02-01 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376429', 'tblTempUsageDetail_20' ) end [2025-02-01 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:13:21] Production.INFO: ==11193== Releasing lock... [2025-02-01 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:13:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:14:05 [end_date_ymd] => 2025-02-01 06:14:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:14:05' and `end` < '2025-02-01 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-01 06:14:18] Production.INFO: count ==148 [2025-02-01 06:14:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:14:05 - End Time 2025-02-01 06:14:05 [2025-02-01 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376434', 'tblTempUsageDetail_20' ) start [2025-02-01 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376434', 'tblTempUsageDetail_20' ) end [2025-02-01 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376434', 'tblTempVendorCDR_20' ) start [2025-02-01 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376434', 'tblTempVendorCDR_20' ) end [2025-02-01 06:14:18] Production.INFO: ProcessCDR(1,14376434,1,1,2) [2025-02-01 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376434', 'tblTempUsageDetail_20' ) start [2025-02-01 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376434', 'tblTempUsageDetail_20' ) end [2025-02-01 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:14:22] Production.INFO: ==11265== Releasing lock... [2025-02-01 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:14:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:15:05 [end_date_ymd] => 2025-02-01 06:15:05 [RateCDR] => 1 ) [2025-02-01 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:15:05' and `end` < '2025-02-01 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:15:18] Production.INFO: count ==148 [2025-02-01 06:15:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:15:05 - End Time 2025-02-01 06:15:05 [2025-02-01 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376439', 'tblTempUsageDetail_20' ) start [2025-02-01 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376439', 'tblTempUsageDetail_20' ) end [2025-02-01 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376439', 'tblTempVendorCDR_20' ) start [2025-02-01 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376439', 'tblTempVendorCDR_20' ) end [2025-02-01 06:15:18] Production.INFO: ProcessCDR(1,14376439,1,1,2) [2025-02-01 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376439', 'tblTempUsageDetail_20' ) start [2025-02-01 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376439', 'tblTempUsageDetail_20' ) end [2025-02-01 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:15:21] Production.INFO: ==11338== Releasing lock... [2025-02-01 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:16:05 [end_date_ymd] => 2025-02-01 06:16:05 [RateCDR] => 1 ) [2025-02-01 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:16:05' and `end` < '2025-02-01 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:16:17] Production.INFO: count ==148 [2025-02-01 06:16:17] Production.ERROR: pbx CDR StartTime 2025-02-01 03:16:05 - End Time 2025-02-01 06:16:05 [2025-02-01 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376444', 'tblTempUsageDetail_20' ) start [2025-02-01 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376444', 'tblTempUsageDetail_20' ) end [2025-02-01 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376444', 'tblTempVendorCDR_20' ) start [2025-02-01 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376444', 'tblTempVendorCDR_20' ) end [2025-02-01 06:16:17] Production.INFO: ProcessCDR(1,14376444,1,1,2) [2025-02-01 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376444', 'tblTempUsageDetail_20' ) start [2025-02-01 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376444', 'tblTempUsageDetail_20' ) end [2025-02-01 06:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:16:20] Production.INFO: ==11414== Releasing lock... [2025-02-01 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:16:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:17:05 [end_date_ymd] => 2025-02-01 06:17:05 [RateCDR] => 1 ) [2025-02-01 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:17:05' and `end` < '2025-02-01 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:17:18] Production.INFO: count ==148 [2025-02-01 06:17:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:17:05 - End Time 2025-02-01 06:17:05 [2025-02-01 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376449', 'tblTempUsageDetail_20' ) start [2025-02-01 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376449', 'tblTempUsageDetail_20' ) end [2025-02-01 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376449', 'tblTempVendorCDR_20' ) start [2025-02-01 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376449', 'tblTempVendorCDR_20' ) end [2025-02-01 06:17:18] Production.INFO: ProcessCDR(1,14376449,1,1,2) [2025-02-01 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376449', 'tblTempUsageDetail_20' ) start [2025-02-01 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376449', 'tblTempUsageDetail_20' ) end [2025-02-01 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:17:21] Production.INFO: ==11488== Releasing lock... [2025-02-01 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:18:06 [end_date_ymd] => 2025-02-01 06:18:06 [RateCDR] => 1 ) [2025-02-01 06: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-01 03:18:06' and `end` < '2025-02-01 06: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-01 06:18:19] Production.INFO: count ==139 [2025-02-01 06:18:19] Production.ERROR: pbx CDR StartTime 2025-02-01 03:18:06 - End Time 2025-02-01 06:18:06 [2025-02-01 06:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376454', 'tblTempUsageDetail_20' ) start [2025-02-01 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376454', 'tblTempUsageDetail_20' ) end [2025-02-01 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376454', 'tblTempVendorCDR_20' ) start [2025-02-01 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376454', 'tblTempVendorCDR_20' ) end [2025-02-01 06:18:19] Production.INFO: ProcessCDR(1,14376454,1,1,2) [2025-02-01 06:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376454', 'tblTempUsageDetail_20' ) start [2025-02-01 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376454', 'tblTempUsageDetail_20' ) end [2025-02-01 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:18:22] Production.INFO: ==11560== Releasing lock... [2025-02-01 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:18:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:19:05 [end_date_ymd] => 2025-02-01 06:19:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:19:05' and `end` < '2025-02-01 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-01 06:19:18] Production.INFO: count ==139 [2025-02-01 06:19:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:19:05 - End Time 2025-02-01 06:19:05 [2025-02-01 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376459', 'tblTempUsageDetail_20' ) start [2025-02-01 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376459', 'tblTempUsageDetail_20' ) end [2025-02-01 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376459', 'tblTempVendorCDR_20' ) start [2025-02-01 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376459', 'tblTempVendorCDR_20' ) end [2025-02-01 06:19:18] Production.INFO: ProcessCDR(1,14376459,1,1,2) [2025-02-01 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376459', 'tblTempUsageDetail_20' ) start [2025-02-01 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376459', 'tblTempUsageDetail_20' ) end [2025-02-01 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:19:21] Production.INFO: ==11674== Releasing lock... [2025-02-01 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:20:06 [end_date_ymd] => 2025-02-01 06:20:06 [RateCDR] => 1 ) [2025-02-01 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:20:06' and `end` < '2025-02-01 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:20:20] Production.INFO: count ==135 [2025-02-01 06:20:20] Production.ERROR: pbx CDR StartTime 2025-02-01 03:20:06 - End Time 2025-02-01 06:20:06 [2025-02-01 06:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376465', 'tblTempUsageDetail_20' ) start [2025-02-01 06:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376465', 'tblTempUsageDetail_20' ) end [2025-02-01 06:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376465', 'tblTempVendorCDR_20' ) start [2025-02-01 06:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376465', 'tblTempVendorCDR_20' ) end [2025-02-01 06:20:20] Production.INFO: ProcessCDR(1,14376465,1,1,2) [2025-02-01 06:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376465', 'tblTempUsageDetail_20' ) start [2025-02-01 06:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376465', 'tblTempUsageDetail_20' ) end [2025-02-01 06:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:20:23] Production.INFO: ==11748== Releasing lock... [2025-02-01 06:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:20:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:21:05 [end_date_ymd] => 2025-02-01 06:21:05 [RateCDR] => 1 ) [2025-02-01 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:21:05' and `end` < '2025-02-01 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:21:18] Production.INFO: count ==135 [2025-02-01 06:21:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:21:05 - End Time 2025-02-01 06:21:05 [2025-02-01 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376470', 'tblTempUsageDetail_20' ) start [2025-02-01 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376470', 'tblTempUsageDetail_20' ) end [2025-02-01 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376470', 'tblTempVendorCDR_20' ) start [2025-02-01 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376470', 'tblTempVendorCDR_20' ) end [2025-02-01 06:21:18] Production.INFO: ProcessCDR(1,14376470,1,1,2) [2025-02-01 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376470', 'tblTempUsageDetail_20' ) start [2025-02-01 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376470', 'tblTempUsageDetail_20' ) end [2025-02-01 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:21:21] Production.INFO: ==11822== Releasing lock... [2025-02-01 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:22:06 [end_date_ymd] => 2025-02-01 06:22:06 [RateCDR] => 1 ) [2025-02-01 06: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-01 03:22:06' and `end` < '2025-02-01 06: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-01 06:22:19] Production.INFO: count ==135 [2025-02-01 06:22:19] Production.ERROR: pbx CDR StartTime 2025-02-01 03:22:06 - End Time 2025-02-01 06:22:06 [2025-02-01 06:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376475', 'tblTempUsageDetail_20' ) start [2025-02-01 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376475', 'tblTempUsageDetail_20' ) end [2025-02-01 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376475', 'tblTempVendorCDR_20' ) start [2025-02-01 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376475', 'tblTempVendorCDR_20' ) end [2025-02-01 06:22:19] Production.INFO: ProcessCDR(1,14376475,1,1,2) [2025-02-01 06:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376475', 'tblTempUsageDetail_20' ) start [2025-02-01 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376475', 'tblTempUsageDetail_20' ) end [2025-02-01 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:22:22] Production.INFO: ==11896== Releasing lock... [2025-02-01 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:22:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:23:05 [end_date_ymd] => 2025-02-01 06:23:05 [RateCDR] => 1 ) [2025-02-01 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:23:05' and `end` < '2025-02-01 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:23:18] Production.INFO: count ==135 [2025-02-01 06:23:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:23:05 - End Time 2025-02-01 06:23:05 [2025-02-01 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376480', 'tblTempUsageDetail_20' ) start [2025-02-01 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376480', 'tblTempUsageDetail_20' ) end [2025-02-01 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376480', 'tblTempVendorCDR_20' ) start [2025-02-01 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376480', 'tblTempVendorCDR_20' ) end [2025-02-01 06:23:18] Production.INFO: ProcessCDR(1,14376480,1,1,2) [2025-02-01 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376480', 'tblTempUsageDetail_20' ) start [2025-02-01 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376480', 'tblTempUsageDetail_20' ) end [2025-02-01 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:23:21] Production.INFO: ==11968== Releasing lock... [2025-02-01 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:24:05 [end_date_ymd] => 2025-02-01 06:24:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:24:05' and `end` < '2025-02-01 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-01 06:24:18] Production.INFO: count ==135 [2025-02-01 06:24:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:24:05 - End Time 2025-02-01 06:24:05 [2025-02-01 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376485', 'tblTempUsageDetail_20' ) start [2025-02-01 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376485', 'tblTempUsageDetail_20' ) end [2025-02-01 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376485', 'tblTempVendorCDR_20' ) start [2025-02-01 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376485', 'tblTempVendorCDR_20' ) end [2025-02-01 06:24:18] Production.INFO: ProcessCDR(1,14376485,1,1,2) [2025-02-01 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376485', 'tblTempUsageDetail_20' ) start [2025-02-01 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376485', 'tblTempUsageDetail_20' ) end [2025-02-01 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:24:21] Production.INFO: ==12039== Releasing lock... [2025-02-01 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:25:05 [end_date_ymd] => 2025-02-01 06:25:05 [RateCDR] => 1 ) [2025-02-01 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:25:05' and `end` < '2025-02-01 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:25:18] Production.INFO: count ==135 [2025-02-01 06:25:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:25:05 - End Time 2025-02-01 06:25:05 [2025-02-01 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376490', 'tblTempUsageDetail_20' ) start [2025-02-01 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376490', 'tblTempUsageDetail_20' ) end [2025-02-01 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376490', 'tblTempVendorCDR_20' ) start [2025-02-01 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376490', 'tblTempVendorCDR_20' ) end [2025-02-01 06:25:18] Production.INFO: ProcessCDR(1,14376490,1,1,2) [2025-02-01 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376490', 'tblTempUsageDetail_20' ) start [2025-02-01 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376490', 'tblTempUsageDetail_20' ) end [2025-02-01 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:25:21] Production.INFO: ==12115== Releasing lock... [2025-02-01 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:26:06 [end_date_ymd] => 2025-02-01 06:26:06 [RateCDR] => 1 ) [2025-02-01 06:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:26:06' and `end` < '2025-02-01 06:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:26:18] Production.INFO: count ==135 [2025-02-01 06:26:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:26:06 - End Time 2025-02-01 06:26:06 [2025-02-01 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376495', 'tblTempUsageDetail_20' ) start [2025-02-01 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376495', 'tblTempUsageDetail_20' ) end [2025-02-01 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376495', 'tblTempVendorCDR_20' ) start [2025-02-01 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376495', 'tblTempVendorCDR_20' ) end [2025-02-01 06:26:18] Production.INFO: ProcessCDR(1,14376495,1,1,2) [2025-02-01 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376495', 'tblTempUsageDetail_20' ) start [2025-02-01 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376495', 'tblTempUsageDetail_20' ) end [2025-02-01 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:26:21] Production.INFO: ==12189== Releasing lock... [2025-02-01 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:26:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:27:04 [end_date_ymd] => 2025-02-01 06:27:04 [RateCDR] => 1 ) [2025-02-01 06: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-01 03:27:04' and `end` < '2025-02-01 06: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-01 06:27:17] Production.INFO: count ==135 [2025-02-01 06:27:17] Production.ERROR: pbx CDR StartTime 2025-02-01 03:27:04 - End Time 2025-02-01 06:27:04 [2025-02-01 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376500', 'tblTempUsageDetail_20' ) start [2025-02-01 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376500', 'tblTempUsageDetail_20' ) end [2025-02-01 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376500', 'tblTempVendorCDR_20' ) start [2025-02-01 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376500', 'tblTempVendorCDR_20' ) end [2025-02-01 06:27:17] Production.INFO: ProcessCDR(1,14376500,1,1,2) [2025-02-01 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376500', 'tblTempUsageDetail_20' ) start [2025-02-01 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376500', 'tblTempUsageDetail_20' ) end [2025-02-01 06:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:27:20] Production.INFO: ==12264== Releasing lock... [2025-02-01 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:27:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:28:05 [end_date_ymd] => 2025-02-01 06:28:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:28:05' and `end` < '2025-02-01 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-01 06:28:18] Production.INFO: count ==135 [2025-02-01 06:28:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:28:05 - End Time 2025-02-01 06:28:05 [2025-02-01 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376505', 'tblTempUsageDetail_20' ) start [2025-02-01 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376505', 'tblTempUsageDetail_20' ) end [2025-02-01 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376505', 'tblTempVendorCDR_20' ) start [2025-02-01 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376505', 'tblTempVendorCDR_20' ) end [2025-02-01 06:28:18] Production.INFO: ProcessCDR(1,14376505,1,1,2) [2025-02-01 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376505', 'tblTempUsageDetail_20' ) start [2025-02-01 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376505', 'tblTempUsageDetail_20' ) end [2025-02-01 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:28:21] Production.INFO: ==12337== Releasing lock... [2025-02-01 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:29:04 [end_date_ymd] => 2025-02-01 06:29:04 [RateCDR] => 1 ) [2025-02-01 06:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:29:04' and `end` < '2025-02-01 06:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:29:17] Production.INFO: count ==135 [2025-02-01 06:29:17] Production.ERROR: pbx CDR StartTime 2025-02-01 03:29:04 - End Time 2025-02-01 06:29:04 [2025-02-01 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376510', 'tblTempUsageDetail_20' ) start [2025-02-01 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376510', 'tblTempUsageDetail_20' ) end [2025-02-01 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376510', 'tblTempVendorCDR_20' ) start [2025-02-01 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376510', 'tblTempVendorCDR_20' ) end [2025-02-01 06:29:17] Production.INFO: ProcessCDR(1,14376510,1,1,2) [2025-02-01 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376510', 'tblTempUsageDetail_20' ) start [2025-02-01 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376510', 'tblTempUsageDetail_20' ) end [2025-02-01 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:29:20] Production.INFO: ==12414== Releasing lock... [2025-02-01 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:29:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:30:06 [end_date_ymd] => 2025-02-01 06:30:06 [RateCDR] => 1 ) [2025-02-01 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:30:06' and `end` < '2025-02-01 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:30:19] Production.INFO: count ==137 [2025-02-01 06:30:19] Production.ERROR: pbx CDR StartTime 2025-02-01 03:30:06 - End Time 2025-02-01 06:30:06 [2025-02-01 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376516', 'tblTempUsageDetail_20' ) start [2025-02-01 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376516', 'tblTempUsageDetail_20' ) end [2025-02-01 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376516', 'tblTempVendorCDR_20' ) start [2025-02-01 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376516', 'tblTempVendorCDR_20' ) end [2025-02-01 06:30:19] Production.INFO: ProcessCDR(1,14376516,1,1,2) [2025-02-01 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376516', 'tblTempUsageDetail_20' ) start [2025-02-01 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376516', 'tblTempUsageDetail_20' ) end [2025-02-01 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:30:22] Production.INFO: ==12495== Releasing lock... [2025-02-01 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:31:05 [end_date_ymd] => 2025-02-01 06:31:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:31:05' and `end` < '2025-02-01 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-01 06:31:19] Production.INFO: count ==138 [2025-02-01 06:31:19] Production.ERROR: pbx CDR StartTime 2025-02-01 03:31:05 - End Time 2025-02-01 06:31:05 [2025-02-01 06:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376521', 'tblTempUsageDetail_20' ) start [2025-02-01 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376521', 'tblTempUsageDetail_20' ) end [2025-02-01 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376521', 'tblTempVendorCDR_20' ) start [2025-02-01 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376521', 'tblTempVendorCDR_20' ) end [2025-02-01 06:31:19] Production.INFO: ProcessCDR(1,14376521,1,1,2) [2025-02-01 06:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376521', 'tblTempUsageDetail_20' ) start [2025-02-01 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376521', 'tblTempUsageDetail_20' ) end [2025-02-01 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:31:22] Production.INFO: ==12573== Releasing lock... [2025-02-01 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:31:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:32:05 [end_date_ymd] => 2025-02-01 06:32:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:32:05' and `end` < '2025-02-01 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-01 06:32:18] Production.INFO: count ==137 [2025-02-01 06:32:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:32:05 - End Time 2025-02-01 06:32:05 [2025-02-01 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376526', 'tblTempUsageDetail_20' ) start [2025-02-01 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376526', 'tblTempUsageDetail_20' ) end [2025-02-01 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376526', 'tblTempVendorCDR_20' ) start [2025-02-01 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376526', 'tblTempVendorCDR_20' ) end [2025-02-01 06:32:18] Production.INFO: ProcessCDR(1,14376526,1,1,2) [2025-02-01 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376526', 'tblTempUsageDetail_20' ) start [2025-02-01 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376526', 'tblTempUsageDetail_20' ) end [2025-02-01 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:32:21] Production.INFO: ==12647== Releasing lock... [2025-02-01 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:33:05 [end_date_ymd] => 2025-02-01 06:33:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:33:05' and `end` < '2025-02-01 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-01 06:33:18] Production.INFO: count ==137 [2025-02-01 06:33:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:33:05 - End Time 2025-02-01 06:33:05 [2025-02-01 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376531', 'tblTempUsageDetail_20' ) start [2025-02-01 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376531', 'tblTempUsageDetail_20' ) end [2025-02-01 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376531', 'tblTempVendorCDR_20' ) start [2025-02-01 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376531', 'tblTempVendorCDR_20' ) end [2025-02-01 06:33:18] Production.INFO: ProcessCDR(1,14376531,1,1,2) [2025-02-01 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376531', 'tblTempUsageDetail_20' ) start [2025-02-01 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376531', 'tblTempUsageDetail_20' ) end [2025-02-01 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:33:21] Production.INFO: ==12721== Releasing lock... [2025-02-01 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:34:05 [end_date_ymd] => 2025-02-01 06:34:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:34:05' and `end` < '2025-02-01 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-01 06:34:18] Production.INFO: count ==136 [2025-02-01 06:34:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:34:05 - End Time 2025-02-01 06:34:05 [2025-02-01 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376536', 'tblTempUsageDetail_20' ) start [2025-02-01 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376536', 'tblTempUsageDetail_20' ) end [2025-02-01 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376536', 'tblTempVendorCDR_20' ) start [2025-02-01 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376536', 'tblTempVendorCDR_20' ) end [2025-02-01 06:34:18] Production.INFO: ProcessCDR(1,14376536,1,1,2) [2025-02-01 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376536', 'tblTempUsageDetail_20' ) start [2025-02-01 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376536', 'tblTempUsageDetail_20' ) end [2025-02-01 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:34:21] Production.INFO: ==12794== Releasing lock... [2025-02-01 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:35:05 [end_date_ymd] => 2025-02-01 06:35:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:35:05' and `end` < '2025-02-01 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-01 06:35:19] Production.INFO: count ==136 [2025-02-01 06:35:19] Production.ERROR: pbx CDR StartTime 2025-02-01 03:35:05 - End Time 2025-02-01 06:35:05 [2025-02-01 06:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376541', 'tblTempUsageDetail_20' ) start [2025-02-01 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376541', 'tblTempUsageDetail_20' ) end [2025-02-01 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376541', 'tblTempVendorCDR_20' ) start [2025-02-01 06:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376541', 'tblTempVendorCDR_20' ) end [2025-02-01 06:35:19] Production.INFO: ProcessCDR(1,14376541,1,1,2) [2025-02-01 06:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376541', 'tblTempUsageDetail_20' ) start [2025-02-01 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376541', 'tblTempUsageDetail_20' ) end [2025-02-01 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:35:22] Production.INFO: ==12907== Releasing lock... [2025-02-01 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:35:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:36:05 [end_date_ymd] => 2025-02-01 06:36:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:36:05' and `end` < '2025-02-01 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-01 06:36:18] Production.INFO: count ==136 [2025-02-01 06:36:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:36:05 - End Time 2025-02-01 06:36:05 [2025-02-01 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376546', 'tblTempUsageDetail_20' ) start [2025-02-01 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376546', 'tblTempUsageDetail_20' ) end [2025-02-01 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376546', 'tblTempVendorCDR_20' ) start [2025-02-01 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376546', 'tblTempVendorCDR_20' ) end [2025-02-01 06:36:18] Production.INFO: ProcessCDR(1,14376546,1,1,2) [2025-02-01 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376546', 'tblTempUsageDetail_20' ) start [2025-02-01 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376546', 'tblTempUsageDetail_20' ) end [2025-02-01 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:36:21] Production.INFO: ==12982== Releasing lock... [2025-02-01 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:37:05 [end_date_ymd] => 2025-02-01 06:37:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:37:05' and `end` < '2025-02-01 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-01 06:37:18] Production.INFO: count ==136 [2025-02-01 06:37:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:37:05 - End Time 2025-02-01 06:37:05 [2025-02-01 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376551', 'tblTempUsageDetail_20' ) start [2025-02-01 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376551', 'tblTempUsageDetail_20' ) end [2025-02-01 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376551', 'tblTempVendorCDR_20' ) start [2025-02-01 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376551', 'tblTempVendorCDR_20' ) end [2025-02-01 06:37:18] Production.INFO: ProcessCDR(1,14376551,1,1,2) [2025-02-01 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376551', 'tblTempUsageDetail_20' ) start [2025-02-01 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376551', 'tblTempUsageDetail_20' ) end [2025-02-01 06:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:37:22] Production.INFO: ==13056== Releasing lock... [2025-02-01 06:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:37:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:38:05 [end_date_ymd] => 2025-02-01 06:38:05 [RateCDR] => 1 ) [2025-02-01 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:38:05' and `end` < '2025-02-01 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:38:18] Production.INFO: count ==136 [2025-02-01 06:38:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:38:05 - End Time 2025-02-01 06:38:05 [2025-02-01 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376556', 'tblTempUsageDetail_20' ) start [2025-02-01 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376556', 'tblTempUsageDetail_20' ) end [2025-02-01 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376556', 'tblTempVendorCDR_20' ) start [2025-02-01 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376556', 'tblTempVendorCDR_20' ) end [2025-02-01 06:38:18] Production.INFO: ProcessCDR(1,14376556,1,1,2) [2025-02-01 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376556', 'tblTempUsageDetail_20' ) start [2025-02-01 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376556', 'tblTempUsageDetail_20' ) end [2025-02-01 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:38:21] Production.INFO: ==13134== Releasing lock... [2025-02-01 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:39:05 [end_date_ymd] => 2025-02-01 06:39:05 [RateCDR] => 1 ) [2025-02-01 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:39:05' and `end` < '2025-02-01 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:39:18] Production.INFO: count ==136 [2025-02-01 06:39:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:39:05 - End Time 2025-02-01 06:39:05 [2025-02-01 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376561', 'tblTempUsageDetail_20' ) start [2025-02-01 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376561', 'tblTempUsageDetail_20' ) end [2025-02-01 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376561', 'tblTempVendorCDR_20' ) start [2025-02-01 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376561', 'tblTempVendorCDR_20' ) end [2025-02-01 06:39:18] Production.INFO: ProcessCDR(1,14376561,1,1,2) [2025-02-01 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376561', 'tblTempUsageDetail_20' ) start [2025-02-01 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376561', 'tblTempUsageDetail_20' ) end [2025-02-01 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:39:21] Production.INFO: ==13219== Releasing lock... [2025-02-01 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:40:06 [end_date_ymd] => 2025-02-01 06:40:06 [RateCDR] => 1 ) [2025-02-01 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-01 03:40:06' and `end` < '2025-02-01 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-01 06:40:18] Production.INFO: count ==136 [2025-02-01 06:40:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:40:06 - End Time 2025-02-01 06:40:06 [2025-02-01 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376566', 'tblTempUsageDetail_20' ) start [2025-02-01 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376566', 'tblTempUsageDetail_20' ) end [2025-02-01 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376566', 'tblTempVendorCDR_20' ) start [2025-02-01 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376566', 'tblTempVendorCDR_20' ) end [2025-02-01 06:40:19] Production.INFO: ProcessCDR(1,14376566,1,1,2) [2025-02-01 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376566', 'tblTempUsageDetail_20' ) start [2025-02-01 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376566', 'tblTempUsageDetail_20' ) end [2025-02-01 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:40:22] Production.INFO: ==13299== Releasing lock... [2025-02-01 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:40:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:41:05 [end_date_ymd] => 2025-02-01 06:41:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:41:05' and `end` < '2025-02-01 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-01 06:41:18] Production.INFO: count ==136 [2025-02-01 06:41:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:41:05 - End Time 2025-02-01 06:41:05 [2025-02-01 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376572', 'tblTempUsageDetail_20' ) start [2025-02-01 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376572', 'tblTempUsageDetail_20' ) end [2025-02-01 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376572', 'tblTempVendorCDR_20' ) start [2025-02-01 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376572', 'tblTempVendorCDR_20' ) end [2025-02-01 06:41:18] Production.INFO: ProcessCDR(1,14376572,1,1,2) [2025-02-01 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376572', 'tblTempUsageDetail_20' ) start [2025-02-01 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376572', 'tblTempUsageDetail_20' ) end [2025-02-01 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:41:21] Production.INFO: ==13380== Releasing lock... [2025-02-01 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:42:06 [end_date_ymd] => 2025-02-01 06:42:06 [RateCDR] => 1 ) [2025-02-01 06:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:42:06' and `end` < '2025-02-01 06:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:42:18] Production.INFO: count ==136 [2025-02-01 06:42:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:42:06 - End Time 2025-02-01 06:42:06 [2025-02-01 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376577', 'tblTempUsageDetail_20' ) start [2025-02-01 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376577', 'tblTempUsageDetail_20' ) end [2025-02-01 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376577', 'tblTempVendorCDR_20' ) start [2025-02-01 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376577', 'tblTempVendorCDR_20' ) end [2025-02-01 06:42:18] Production.INFO: ProcessCDR(1,14376577,1,1,2) [2025-02-01 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376577', 'tblTempUsageDetail_20' ) start [2025-02-01 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376577', 'tblTempUsageDetail_20' ) end [2025-02-01 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:42:21] Production.INFO: ==13463== Releasing lock... [2025-02-01 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:43:05 [end_date_ymd] => 2025-02-01 06:43:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:43:05' and `end` < '2025-02-01 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-01 06:43:19] Production.INFO: count ==135 [2025-02-01 06:43:19] Production.ERROR: pbx CDR StartTime 2025-02-01 03:43:05 - End Time 2025-02-01 06:43:05 [2025-02-01 06:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376582', 'tblTempUsageDetail_20' ) start [2025-02-01 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376582', 'tblTempUsageDetail_20' ) end [2025-02-01 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376582', 'tblTempVendorCDR_20' ) start [2025-02-01 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376582', 'tblTempVendorCDR_20' ) end [2025-02-01 06:43:19] Production.INFO: ProcessCDR(1,14376582,1,1,2) [2025-02-01 06:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376582', 'tblTempUsageDetail_20' ) start [2025-02-01 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376582', 'tblTempUsageDetail_20' ) end [2025-02-01 06:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:43:22] Production.INFO: ==13541== Releasing lock... [2025-02-01 06:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:43:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:44:05 [end_date_ymd] => 2025-02-01 06:44:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:44:05' and `end` < '2025-02-01 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-01 06:44:18] Production.INFO: count ==135 [2025-02-01 06:44:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:44:05 - End Time 2025-02-01 06:44:05 [2025-02-01 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376587', 'tblTempUsageDetail_20' ) start [2025-02-01 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376587', 'tblTempUsageDetail_20' ) end [2025-02-01 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376587', 'tblTempVendorCDR_20' ) start [2025-02-01 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376587', 'tblTempVendorCDR_20' ) end [2025-02-01 06:44:18] Production.INFO: ProcessCDR(1,14376587,1,1,2) [2025-02-01 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376587', 'tblTempUsageDetail_20' ) start [2025-02-01 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376587', 'tblTempUsageDetail_20' ) end [2025-02-01 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:44:22] Production.INFO: ==13626== Releasing lock... [2025-02-01 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:44:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 06:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:45:04 [end_date_ymd] => 2025-02-01 06:45:04 [RateCDR] => 1 ) [2025-02-01 06: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-01 03:45:04' and `end` < '2025-02-01 06: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-01 06:45:17] Production.INFO: count ==135 [2025-02-01 06:45:17] Production.ERROR: pbx CDR StartTime 2025-02-01 03:45:04 - End Time 2025-02-01 06:45:04 [2025-02-01 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376592', 'tblTempUsageDetail_20' ) start [2025-02-01 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376592', 'tblTempUsageDetail_20' ) end [2025-02-01 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376592', 'tblTempVendorCDR_20' ) start [2025-02-01 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376592', 'tblTempVendorCDR_20' ) end [2025-02-01 06:45:17] Production.INFO: ProcessCDR(1,14376592,1,1,2) [2025-02-01 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376592', 'tblTempUsageDetail_20' ) start [2025-02-01 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376592', 'tblTempUsageDetail_20' ) end [2025-02-01 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:45:20] Production.INFO: ==13706== Releasing lock... [2025-02-01 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:45:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:46:05 [end_date_ymd] => 2025-02-01 06:46:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:46:05' and `end` < '2025-02-01 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-01 06:46:19] Production.INFO: count ==134 [2025-02-01 06:46:19] Production.ERROR: pbx CDR StartTime 2025-02-01 03:46:05 - End Time 2025-02-01 06:46:05 [2025-02-01 06:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376597', 'tblTempUsageDetail_20' ) start [2025-02-01 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376597', 'tblTempUsageDetail_20' ) end [2025-02-01 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376597', 'tblTempVendorCDR_20' ) start [2025-02-01 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376597', 'tblTempVendorCDR_20' ) end [2025-02-01 06:46:19] Production.INFO: ProcessCDR(1,14376597,1,1,2) [2025-02-01 06:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376597', 'tblTempUsageDetail_20' ) start [2025-02-01 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376597', 'tblTempUsageDetail_20' ) end [2025-02-01 06:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:46:22] Production.INFO: ==13790== Releasing lock... [2025-02-01 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:46:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 06:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:47:06 [end_date_ymd] => 2025-02-01 06:47:06 [RateCDR] => 1 ) [2025-02-01 06: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-01 03:47:06' and `end` < '2025-02-01 06: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-01 06:47:18] Production.INFO: count ==134 [2025-02-01 06:47:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:47:06 - End Time 2025-02-01 06:47:06 [2025-02-01 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376602', 'tblTempUsageDetail_20' ) start [2025-02-01 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376602', 'tblTempUsageDetail_20' ) end [2025-02-01 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376602', 'tblTempVendorCDR_20' ) start [2025-02-01 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376602', 'tblTempVendorCDR_20' ) end [2025-02-01 06:47:18] Production.INFO: ProcessCDR(1,14376602,1,1,2) [2025-02-01 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376602', 'tblTempUsageDetail_20' ) start [2025-02-01 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376602', 'tblTempUsageDetail_20' ) end [2025-02-01 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:47:22] Production.INFO: ==13871== Releasing lock... [2025-02-01 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:47:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:48:05 [end_date_ymd] => 2025-02-01 06:48:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:48:05' and `end` < '2025-02-01 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-01 06:48:18] Production.INFO: count ==134 [2025-02-01 06:48:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:48:05 - End Time 2025-02-01 06:48:05 [2025-02-01 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376607', 'tblTempUsageDetail_20' ) start [2025-02-01 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376607', 'tblTempUsageDetail_20' ) end [2025-02-01 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376607', 'tblTempVendorCDR_20' ) start [2025-02-01 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376607', 'tblTempVendorCDR_20' ) end [2025-02-01 06:48:18] Production.INFO: ProcessCDR(1,14376607,1,1,2) [2025-02-01 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376607', 'tblTempUsageDetail_20' ) start [2025-02-01 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376607', 'tblTempUsageDetail_20' ) end [2025-02-01 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:48:21] Production.INFO: ==13945== Releasing lock... [2025-02-01 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:49:05 [end_date_ymd] => 2025-02-01 06:49:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:49:05' and `end` < '2025-02-01 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-01 06:49:18] Production.INFO: count ==134 [2025-02-01 06:49:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:49:05 - End Time 2025-02-01 06:49:05 [2025-02-01 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376612', 'tblTempUsageDetail_20' ) start [2025-02-01 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376612', 'tblTempUsageDetail_20' ) end [2025-02-01 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376612', 'tblTempVendorCDR_20' ) start [2025-02-01 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376612', 'tblTempVendorCDR_20' ) end [2025-02-01 06:49:18] Production.INFO: ProcessCDR(1,14376612,1,1,2) [2025-02-01 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376612', 'tblTempUsageDetail_20' ) start [2025-02-01 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376612', 'tblTempUsageDetail_20' ) end [2025-02-01 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:49:21] Production.INFO: ==14023== Releasing lock... [2025-02-01 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:50:05 [end_date_ymd] => 2025-02-01 06:50:05 [RateCDR] => 1 ) [2025-02-01 06:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:50:05' and `end` < '2025-02-01 06:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:50:18] Production.INFO: count ==134 [2025-02-01 06:50:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:50:05 - End Time 2025-02-01 06:50:05 [2025-02-01 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376618', 'tblTempUsageDetail_20' ) start [2025-02-01 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376618', 'tblTempUsageDetail_20' ) end [2025-02-01 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376618', 'tblTempVendorCDR_20' ) start [2025-02-01 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376618', 'tblTempVendorCDR_20' ) end [2025-02-01 06:50:18] Production.INFO: ProcessCDR(1,14376618,1,1,2) [2025-02-01 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376618', 'tblTempUsageDetail_20' ) start [2025-02-01 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376618', 'tblTempUsageDetail_20' ) end [2025-02-01 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:50:21] Production.INFO: ==14148== Releasing lock... [2025-02-01 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:50:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:51:05 [end_date_ymd] => 2025-02-01 06:51:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:51:05' and `end` < '2025-02-01 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-01 06:51:19] Production.INFO: count ==140 [2025-02-01 06:51:19] Production.ERROR: pbx CDR StartTime 2025-02-01 03:51:05 - End Time 2025-02-01 06:51:05 [2025-02-01 06:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376623', 'tblTempUsageDetail_20' ) start [2025-02-01 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376623', 'tblTempUsageDetail_20' ) end [2025-02-01 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376623', 'tblTempVendorCDR_20' ) start [2025-02-01 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376623', 'tblTempVendorCDR_20' ) end [2025-02-01 06:51:19] Production.INFO: ProcessCDR(1,14376623,1,1,2) [2025-02-01 06:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376623', 'tblTempUsageDetail_20' ) start [2025-02-01 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376623', 'tblTempUsageDetail_20' ) end [2025-02-01 06:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:51:22] Production.INFO: ==14232== Releasing lock... [2025-02-01 06:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:51:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:52:05 [end_date_ymd] => 2025-02-01 06:52:05 [RateCDR] => 1 ) [2025-02-01 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:52:05' and `end` < '2025-02-01 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:52:18] Production.INFO: count ==140 [2025-02-01 06:52:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:52:05 - End Time 2025-02-01 06:52:05 [2025-02-01 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376628', 'tblTempUsageDetail_20' ) start [2025-02-01 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376628', 'tblTempUsageDetail_20' ) end [2025-02-01 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376628', 'tblTempVendorCDR_20' ) start [2025-02-01 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376628', 'tblTempVendorCDR_20' ) end [2025-02-01 06:52:18] Production.INFO: ProcessCDR(1,14376628,1,1,2) [2025-02-01 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376628', 'tblTempUsageDetail_20' ) start [2025-02-01 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376628', 'tblTempUsageDetail_20' ) end [2025-02-01 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:52:21] Production.INFO: ==14309== Releasing lock... [2025-02-01 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:52:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:53:05 [end_date_ymd] => 2025-02-01 06:53:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:53:05' and `end` < '2025-02-01 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-01 06:53:18] Production.INFO: count ==140 [2025-02-01 06:53:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:53:05 - End Time 2025-02-01 06:53:05 [2025-02-01 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376633', 'tblTempUsageDetail_20' ) start [2025-02-01 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376633', 'tblTempUsageDetail_20' ) end [2025-02-01 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376633', 'tblTempVendorCDR_20' ) start [2025-02-01 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376633', 'tblTempVendorCDR_20' ) end [2025-02-01 06:53:18] Production.INFO: ProcessCDR(1,14376633,1,1,2) [2025-02-01 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376633', 'tblTempUsageDetail_20' ) start [2025-02-01 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376633', 'tblTempUsageDetail_20' ) end [2025-02-01 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:53:21] Production.INFO: ==14395== Releasing lock... [2025-02-01 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:54:05 [end_date_ymd] => 2025-02-01 06:54:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:54:05' and `end` < '2025-02-01 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-01 06:54:18] Production.INFO: count ==140 [2025-02-01 06:54:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:54:05 - End Time 2025-02-01 06:54:05 [2025-02-01 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376638', 'tblTempUsageDetail_20' ) start [2025-02-01 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376638', 'tblTempUsageDetail_20' ) end [2025-02-01 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376638', 'tblTempVendorCDR_20' ) start [2025-02-01 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376638', 'tblTempVendorCDR_20' ) end [2025-02-01 06:54:18] Production.INFO: ProcessCDR(1,14376638,1,1,2) [2025-02-01 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376638', 'tblTempUsageDetail_20' ) start [2025-02-01 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376638', 'tblTempUsageDetail_20' ) end [2025-02-01 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:54:21] Production.INFO: ==14482== Releasing lock... [2025-02-01 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:55:05 [end_date_ymd] => 2025-02-01 06:55:05 [RateCDR] => 1 ) [2025-02-01 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 03:55:05' and `end` < '2025-02-01 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 06:55:18] Production.INFO: count ==139 [2025-02-01 06:55:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:55:05 - End Time 2025-02-01 06:55:05 [2025-02-01 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376643', 'tblTempUsageDetail_20' ) start [2025-02-01 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376643', 'tblTempUsageDetail_20' ) end [2025-02-01 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376643', 'tblTempVendorCDR_20' ) start [2025-02-01 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376643', 'tblTempVendorCDR_20' ) end [2025-02-01 06:55:18] Production.INFO: ProcessCDR(1,14376643,1,1,2) [2025-02-01 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376643', 'tblTempUsageDetail_20' ) start [2025-02-01 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376643', 'tblTempUsageDetail_20' ) end [2025-02-01 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:55:21] Production.INFO: ==14558== Releasing lock... [2025-02-01 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:56:05 [end_date_ymd] => 2025-02-01 06:56:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:56:05' and `end` < '2025-02-01 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-01 06:56:18] Production.INFO: count ==139 [2025-02-01 06:56:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:56:05 - End Time 2025-02-01 06:56:05 [2025-02-01 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376648', 'tblTempUsageDetail_20' ) start [2025-02-01 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376648', 'tblTempUsageDetail_20' ) end [2025-02-01 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376648', 'tblTempVendorCDR_20' ) start [2025-02-01 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376648', 'tblTempVendorCDR_20' ) end [2025-02-01 06:56:18] Production.INFO: ProcessCDR(1,14376648,1,1,2) [2025-02-01 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376648', 'tblTempUsageDetail_20' ) start [2025-02-01 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376648', 'tblTempUsageDetail_20' ) end [2025-02-01 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:56:21] Production.INFO: ==14648== Releasing lock... [2025-02-01 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:57:05 [end_date_ymd] => 2025-02-01 06:57:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:57:05' and `end` < '2025-02-01 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-01 06:57:18] Production.INFO: count ==139 [2025-02-01 06:57:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:57:05 - End Time 2025-02-01 06:57:05 [2025-02-01 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376653', 'tblTempUsageDetail_20' ) start [2025-02-01 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376653', 'tblTempUsageDetail_20' ) end [2025-02-01 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376653', 'tblTempVendorCDR_20' ) start [2025-02-01 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376653', 'tblTempVendorCDR_20' ) end [2025-02-01 06:57:18] Production.INFO: ProcessCDR(1,14376653,1,1,2) [2025-02-01 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376653', 'tblTempUsageDetail_20' ) start [2025-02-01 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376653', 'tblTempUsageDetail_20' ) end [2025-02-01 06:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:57:22] Production.INFO: ==14735== Releasing lock... [2025-02-01 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:57:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:58:05 [end_date_ymd] => 2025-02-01 06:58:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:58:05' and `end` < '2025-02-01 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-01 06:58:18] Production.INFO: count ==139 [2025-02-01 06:58:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:58:05 - End Time 2025-02-01 06:58:05 [2025-02-01 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376658', 'tblTempUsageDetail_20' ) start [2025-02-01 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376658', 'tblTempUsageDetail_20' ) end [2025-02-01 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376658', 'tblTempVendorCDR_20' ) start [2025-02-01 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376658', 'tblTempVendorCDR_20' ) end [2025-02-01 06:58:18] Production.INFO: ProcessCDR(1,14376658,1,1,2) [2025-02-01 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376658', 'tblTempUsageDetail_20' ) start [2025-02-01 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376658', 'tblTempUsageDetail_20' ) end [2025-02-01 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:58:21] Production.INFO: ==14818== Releasing lock... [2025-02-01 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:58:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 03:59:05 [end_date_ymd] => 2025-02-01 06:59:05 [RateCDR] => 1 ) [2025-02-01 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-01 03:59:05' and `end` < '2025-02-01 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-01 06:59:18] Production.INFO: count ==139 [2025-02-01 06:59:18] Production.ERROR: pbx CDR StartTime 2025-02-01 03:59:05 - End Time 2025-02-01 06:59:05 [2025-02-01 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376663', 'tblTempUsageDetail_20' ) start [2025-02-01 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376663', 'tblTempUsageDetail_20' ) end [2025-02-01 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376663', 'tblTempVendorCDR_20' ) start [2025-02-01 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376663', 'tblTempVendorCDR_20' ) end [2025-02-01 06:59:18] Production.INFO: ProcessCDR(1,14376663,1,1,2) [2025-02-01 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376663', 'tblTempUsageDetail_20' ) start [2025-02-01 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376663', 'tblTempUsageDetail_20' ) end [2025-02-01 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 06:59:21] Production.INFO: ==14900== Releasing lock... [2025-02-01 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 06:59:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:00:06 [end_date_ymd] => 2025-02-01 07:00:06 [RateCDR] => 1 ) [2025-02-01 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-01 04:00:06' and `end` < '2025-02-01 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-01 07:00:19] Production.INFO: count ==135 [2025-02-01 07:00:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:00:06 - End Time 2025-02-01 07:00:06 [2025-02-01 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376669', 'tblTempUsageDetail_20' ) start [2025-02-01 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376669', 'tblTempUsageDetail_20' ) end [2025-02-01 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376669', 'tblTempVendorCDR_20' ) start [2025-02-01 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376669', 'tblTempVendorCDR_20' ) end [2025-02-01 07:00:19] Production.INFO: ProcessCDR(1,14376669,1,1,2) [2025-02-01 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376669', 'tblTempUsageDetail_20' ) start [2025-02-01 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376669', 'tblTempUsageDetail_20' ) end [2025-02-01 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:00:22] Production.INFO: ==14989== Releasing lock... [2025-02-01 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:00:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:01:05 [end_date_ymd] => 2025-02-01 07:01:05 [RateCDR] => 1 ) [2025-02-01 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:01:05' and `end` < '2025-02-01 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:01:29] Production.INFO: count ==129 [2025-02-01 07:01:29] Production.ERROR: pbx CDR StartTime 2025-02-01 04:01:05 - End Time 2025-02-01 07:01:05 [2025-02-01 07:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376674', 'tblTempUsageDetail_20' ) start [2025-02-01 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376674', 'tblTempUsageDetail_20' ) end [2025-02-01 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376674', 'tblTempVendorCDR_20' ) start [2025-02-01 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376674', 'tblTempVendorCDR_20' ) end [2025-02-01 07:01:29] Production.INFO: ProcessCDR(1,14376674,1,1,2) [2025-02-01 07:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376674', 'tblTempUsageDetail_20' ) start [2025-02-01 07:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376674', 'tblTempUsageDetail_20' ) end [2025-02-01 07:01:32] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:01:32] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:01:32] Production.INFO: ==15125== Releasing lock... [2025-02-01 07:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:01:32] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:02:05 [end_date_ymd] => 2025-02-01 07:02:05 [RateCDR] => 1 ) [2025-02-01 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-01 04:02:05' and `end` < '2025-02-01 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-01 07:02:18] Production.INFO: count ==129 [2025-02-01 07:02:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:02:05 - End Time 2025-02-01 07:02:05 [2025-02-01 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376678', 'tblTempUsageDetail_20' ) start [2025-02-01 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376678', 'tblTempUsageDetail_20' ) end [2025-02-01 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376678', 'tblTempVendorCDR_20' ) start [2025-02-01 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376678', 'tblTempVendorCDR_20' ) end [2025-02-01 07:02:18] Production.INFO: ProcessCDR(1,14376678,1,1,2) [2025-02-01 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376678', 'tblTempUsageDetail_20' ) start [2025-02-01 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376678', 'tblTempUsageDetail_20' ) end [2025-02-01 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:02:22] Production.INFO: ==15248== Releasing lock... [2025-02-01 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:02:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:03:05 [end_date_ymd] => 2025-02-01 07:03:05 [RateCDR] => 1 ) [2025-02-01 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:03:05' and `end` < '2025-02-01 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:03:19] Production.INFO: count ==129 [2025-02-01 07:03:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:03:05 - End Time 2025-02-01 07:03:05 [2025-02-01 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376684', 'tblTempUsageDetail_20' ) start [2025-02-01 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376684', 'tblTempUsageDetail_20' ) end [2025-02-01 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376684', 'tblTempVendorCDR_20' ) start [2025-02-01 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376684', 'tblTempVendorCDR_20' ) end [2025-02-01 07:03:19] Production.INFO: ProcessCDR(1,14376684,1,1,2) [2025-02-01 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376684', 'tblTempUsageDetail_20' ) start [2025-02-01 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376684', 'tblTempUsageDetail_20' ) end [2025-02-01 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:03:22] Production.INFO: ==15331== Releasing lock... [2025-02-01 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:03:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:04:05 [end_date_ymd] => 2025-02-01 07:04:05 [RateCDR] => 1 ) [2025-02-01 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:04:05' and `end` < '2025-02-01 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:04:19] Production.INFO: count ==129 [2025-02-01 07:04:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:04:05 - End Time 2025-02-01 07:04:05 [2025-02-01 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376689', 'tblTempUsageDetail_20' ) start [2025-02-01 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376689', 'tblTempUsageDetail_20' ) end [2025-02-01 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376689', 'tblTempVendorCDR_20' ) start [2025-02-01 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376689', 'tblTempVendorCDR_20' ) end [2025-02-01 07:04:19] Production.INFO: ProcessCDR(1,14376689,1,1,2) [2025-02-01 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376689', 'tblTempUsageDetail_20' ) start [2025-02-01 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376689', 'tblTempUsageDetail_20' ) end [2025-02-01 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:04:22] Production.INFO: ==15413== Releasing lock... [2025-02-01 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:04:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:05:05 [end_date_ymd] => 2025-02-01 07:05:05 [RateCDR] => 1 ) [2025-02-01 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-01 04:05:05' and `end` < '2025-02-01 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-01 07:05:19] Production.INFO: count ==129 [2025-02-01 07:05:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:05:05 - End Time 2025-02-01 07:05:05 [2025-02-01 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376694', 'tblTempUsageDetail_20' ) start [2025-02-01 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376694', 'tblTempUsageDetail_20' ) end [2025-02-01 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376694', 'tblTempVendorCDR_20' ) start [2025-02-01 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376694', 'tblTempVendorCDR_20' ) end [2025-02-01 07:05:19] Production.INFO: ProcessCDR(1,14376694,1,1,2) [2025-02-01 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376694', 'tblTempUsageDetail_20' ) start [2025-02-01 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376694', 'tblTempUsageDetail_20' ) end [2025-02-01 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:05:22] Production.INFO: ==15574== Releasing lock... [2025-02-01 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:05:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:06:06 [end_date_ymd] => 2025-02-01 07:06:06 [RateCDR] => 1 ) [2025-02-01 07:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:06:06' and `end` < '2025-02-01 07:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:06:19] Production.INFO: count ==129 [2025-02-01 07:06:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:06:06 - End Time 2025-02-01 07:06:06 [2025-02-01 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376699', 'tblTempUsageDetail_20' ) start [2025-02-01 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376699', 'tblTempUsageDetail_20' ) end [2025-02-01 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376699', 'tblTempVendorCDR_20' ) start [2025-02-01 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376699', 'tblTempVendorCDR_20' ) end [2025-02-01 07:06:19] Production.INFO: ProcessCDR(1,14376699,1,1,2) [2025-02-01 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376699', 'tblTempUsageDetail_20' ) start [2025-02-01 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376699', 'tblTempUsageDetail_20' ) end [2025-02-01 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:06:22] Production.INFO: ==15694== Releasing lock... [2025-02-01 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:06:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:07:05 [end_date_ymd] => 2025-02-01 07:07:05 [RateCDR] => 1 ) [2025-02-01 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:07:05' and `end` < '2025-02-01 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:07:19] Production.INFO: count ==129 [2025-02-01 07:07:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:07:05 - End Time 2025-02-01 07:07:05 [2025-02-01 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376704', 'tblTempUsageDetail_20' ) start [2025-02-01 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376704', 'tblTempUsageDetail_20' ) end [2025-02-01 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376704', 'tblTempVendorCDR_20' ) start [2025-02-01 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376704', 'tblTempVendorCDR_20' ) end [2025-02-01 07:07:19] Production.INFO: ProcessCDR(1,14376704,1,1,2) [2025-02-01 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376704', 'tblTempUsageDetail_20' ) start [2025-02-01 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376704', 'tblTempUsageDetail_20' ) end [2025-02-01 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:07:22] Production.INFO: ==15772== Releasing lock... [2025-02-01 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:07:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:08:06 [end_date_ymd] => 2025-02-01 07:08:06 [RateCDR] => 1 ) [2025-02-01 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-01 04:08:06' and `end` < '2025-02-01 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-01 07:08:21] Production.INFO: count ==130 [2025-02-01 07:08:21] Production.ERROR: pbx CDR StartTime 2025-02-01 04:08:06 - End Time 2025-02-01 07:08:06 [2025-02-01 07:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376709', 'tblTempUsageDetail_20' ) start [2025-02-01 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376709', 'tblTempUsageDetail_20' ) end [2025-02-01 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376709', 'tblTempVendorCDR_20' ) start [2025-02-01 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376709', 'tblTempVendorCDR_20' ) end [2025-02-01 07:08:21] Production.INFO: ProcessCDR(1,14376709,1,1,2) [2025-02-01 07:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376709', 'tblTempUsageDetail_20' ) start [2025-02-01 07:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376709', 'tblTempUsageDetail_20' ) end [2025-02-01 07:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:08:25] Production.INFO: ==15930== Releasing lock... [2025-02-01 07:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:08:25] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:09:04 [end_date_ymd] => 2025-02-01 07:09:04 [RateCDR] => 1 ) [2025-02-01 07:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:09:04' and `end` < '2025-02-01 07:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:09:18] Production.INFO: count ==130 [2025-02-01 07:09:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:09:04 - End Time 2025-02-01 07:09:04 [2025-02-01 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376712', 'tblTempUsageDetail_20' ) start [2025-02-01 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376712', 'tblTempUsageDetail_20' ) end [2025-02-01 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376712', 'tblTempVendorCDR_20' ) start [2025-02-01 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376712', 'tblTempVendorCDR_20' ) end [2025-02-01 07:09:18] Production.INFO: ProcessCDR(1,14376712,1,1,2) [2025-02-01 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376712', 'tblTempUsageDetail_20' ) start [2025-02-01 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376712', 'tblTempUsageDetail_20' ) end [2025-02-01 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:09:21] Production.INFO: ==16005== Releasing lock... [2025-02-01 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:10:06 [end_date_ymd] => 2025-02-01 07:10:06 [RateCDR] => 1 ) [2025-02-01 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-01 04:10:06' and `end` < '2025-02-01 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-01 07:10:22] Production.INFO: count ==130 [2025-02-01 07:10:22] Production.ERROR: pbx CDR StartTime 2025-02-01 04:10:06 - End Time 2025-02-01 07:10:06 [2025-02-01 07:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376720', 'tblTempUsageDetail_20' ) start [2025-02-01 07:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376720', 'tblTempUsageDetail_20' ) end [2025-02-01 07:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376720', 'tblTempVendorCDR_20' ) start [2025-02-01 07:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376720', 'tblTempVendorCDR_20' ) end [2025-02-01 07:10:22] Production.INFO: ProcessCDR(1,14376720,1,1,2) [2025-02-01 07:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376720', 'tblTempUsageDetail_20' ) start [2025-02-01 07:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376720', 'tblTempUsageDetail_20' ) end [2025-02-01 07:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:10:25] Production.INFO: ==16090== Releasing lock... [2025-02-01 07:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:10:25] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:11:05 [end_date_ymd] => 2025-02-01 07:11:05 [RateCDR] => 1 ) [2025-02-01 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:11:05' and `end` < '2025-02-01 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:11:20] Production.INFO: count ==130 [2025-02-01 07:11:20] Production.ERROR: pbx CDR StartTime 2025-02-01 04:11:05 - End Time 2025-02-01 07:11:05 [2025-02-01 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376725', 'tblTempUsageDetail_20' ) start [2025-02-01 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376725', 'tblTempUsageDetail_20' ) end [2025-02-01 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376725', 'tblTempVendorCDR_20' ) start [2025-02-01 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376725', 'tblTempVendorCDR_20' ) end [2025-02-01 07:11:20] Production.INFO: ProcessCDR(1,14376725,1,1,2) [2025-02-01 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376725', 'tblTempUsageDetail_20' ) start [2025-02-01 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376725', 'tblTempUsageDetail_20' ) end [2025-02-01 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:11:23] Production.INFO: ==16172== Releasing lock... [2025-02-01 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:11:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:12:05 [end_date_ymd] => 2025-02-01 07:12:05 [RateCDR] => 1 ) [2025-02-01 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-01 04:12:05' and `end` < '2025-02-01 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-01 07:12:19] Production.INFO: count ==130 [2025-02-01 07:12:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:12:05 - End Time 2025-02-01 07:12:05 [2025-02-01 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376730', 'tblTempUsageDetail_20' ) start [2025-02-01 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376730', 'tblTempUsageDetail_20' ) end [2025-02-01 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376730', 'tblTempVendorCDR_20' ) start [2025-02-01 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376730', 'tblTempVendorCDR_20' ) end [2025-02-01 07:12:19] Production.INFO: ProcessCDR(1,14376730,1,1,2) [2025-02-01 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376730', 'tblTempUsageDetail_20' ) start [2025-02-01 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376730', 'tblTempUsageDetail_20' ) end [2025-02-01 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:12:22] Production.INFO: ==16332== Releasing lock... [2025-02-01 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:12:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:13:05 [end_date_ymd] => 2025-02-01 07:13:05 [RateCDR] => 1 ) [2025-02-01 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:13:05' and `end` < '2025-02-01 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:13:19] Production.INFO: count ==130 [2025-02-01 07:13:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:13:05 - End Time 2025-02-01 07:13:05 [2025-02-01 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376735', 'tblTempUsageDetail_20' ) start [2025-02-01 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376735', 'tblTempUsageDetail_20' ) end [2025-02-01 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376735', 'tblTempVendorCDR_20' ) start [2025-02-01 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376735', 'tblTempVendorCDR_20' ) end [2025-02-01 07:13:19] Production.INFO: ProcessCDR(1,14376735,1,1,2) [2025-02-01 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376735', 'tblTempUsageDetail_20' ) start [2025-02-01 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376735', 'tblTempUsageDetail_20' ) end [2025-02-01 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:13:22] Production.INFO: ==16407== Releasing lock... [2025-02-01 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:13:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:14:05 [end_date_ymd] => 2025-02-01 07:14:05 [RateCDR] => 1 ) [2025-02-01 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:14:05' and `end` < '2025-02-01 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:14:20] Production.INFO: count ==130 [2025-02-01 07:14:20] Production.ERROR: pbx CDR StartTime 2025-02-01 04:14:05 - End Time 2025-02-01 07:14:05 [2025-02-01 07:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376740', 'tblTempUsageDetail_20' ) start [2025-02-01 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376740', 'tblTempUsageDetail_20' ) end [2025-02-01 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376740', 'tblTempVendorCDR_20' ) start [2025-02-01 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376740', 'tblTempVendorCDR_20' ) end [2025-02-01 07:14:20] Production.INFO: ProcessCDR(1,14376740,1,1,2) [2025-02-01 07:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376740', 'tblTempUsageDetail_20' ) start [2025-02-01 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376740', 'tblTempUsageDetail_20' ) end [2025-02-01 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:14:23] Production.INFO: ==16488== Releasing lock... [2025-02-01 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:14:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:15:04 [end_date_ymd] => 2025-02-01 07:15:04 [RateCDR] => 1 ) [2025-02-01 07: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-01 04:15:04' and `end` < '2025-02-01 07: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-01 07:15:20] Production.INFO: count ==130 [2025-02-01 07:15:20] Production.ERROR: pbx CDR StartTime 2025-02-01 04:15:04 - End Time 2025-02-01 07:15:04 [2025-02-01 07:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376745', 'tblTempUsageDetail_20' ) start [2025-02-01 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376745', 'tblTempUsageDetail_20' ) end [2025-02-01 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376745', 'tblTempVendorCDR_20' ) start [2025-02-01 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376745', 'tblTempVendorCDR_20' ) end [2025-02-01 07:15:20] Production.INFO: ProcessCDR(1,14376745,1,1,2) [2025-02-01 07:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376745', 'tblTempUsageDetail_20' ) start [2025-02-01 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376745', 'tblTempUsageDetail_20' ) end [2025-02-01 07:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:15:23] Production.INFO: ==16646== Releasing lock... [2025-02-01 07:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:15:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:16:05 [end_date_ymd] => 2025-02-01 07:16:05 [RateCDR] => 1 ) [2025-02-01 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-01 04:16:05' and `end` < '2025-02-01 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-01 07:16:21] Production.INFO: count ==131 [2025-02-01 07:16:21] Production.ERROR: pbx CDR StartTime 2025-02-01 04:16:05 - End Time 2025-02-01 07:16:05 [2025-02-01 07:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376750', 'tblTempUsageDetail_20' ) start [2025-02-01 07:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376750', 'tblTempUsageDetail_20' ) end [2025-02-01 07:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376750', 'tblTempVendorCDR_20' ) start [2025-02-01 07:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376750', 'tblTempVendorCDR_20' ) end [2025-02-01 07:16:21] Production.INFO: ProcessCDR(1,14376750,1,1,2) [2025-02-01 07:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376750', 'tblTempUsageDetail_20' ) start [2025-02-01 07:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376750', 'tblTempUsageDetail_20' ) end [2025-02-01 07:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:16:25] Production.INFO: ==16725== Releasing lock... [2025-02-01 07:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:16:25] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:17:06 [end_date_ymd] => 2025-02-01 07:17:06 [RateCDR] => 1 ) [2025-02-01 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-01 04:17:06' and `end` < '2025-02-01 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-01 07:17:20] Production.INFO: count ==130 [2025-02-01 07:17:20] Production.ERROR: pbx CDR StartTime 2025-02-01 04:17:06 - End Time 2025-02-01 07:17:06 [2025-02-01 07:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376755', 'tblTempUsageDetail_20' ) start [2025-02-01 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376755', 'tblTempUsageDetail_20' ) end [2025-02-01 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376755', 'tblTempVendorCDR_20' ) start [2025-02-01 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376755', 'tblTempVendorCDR_20' ) end [2025-02-01 07:17:21] Production.INFO: ProcessCDR(1,14376755,1,1,2) [2025-02-01 07:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376755', 'tblTempUsageDetail_20' ) start [2025-02-01 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376755', 'tblTempUsageDetail_20' ) end [2025-02-01 07:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:17:24] Production.INFO: ==16807== Releasing lock... [2025-02-01 07:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:17:24] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:18:05 [end_date_ymd] => 2025-02-01 07:18:05 [RateCDR] => 1 ) [2025-02-01 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-01 04:18:05' and `end` < '2025-02-01 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-01 07:18:19] Production.INFO: count ==130 [2025-02-01 07:18:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:18:05 - End Time 2025-02-01 07:18:05 [2025-02-01 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376760', 'tblTempUsageDetail_20' ) start [2025-02-01 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376760', 'tblTempUsageDetail_20' ) end [2025-02-01 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376760', 'tblTempVendorCDR_20' ) start [2025-02-01 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376760', 'tblTempVendorCDR_20' ) end [2025-02-01 07:18:19] Production.INFO: ProcessCDR(1,14376760,1,1,2) [2025-02-01 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376760', 'tblTempUsageDetail_20' ) start [2025-02-01 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376760', 'tblTempUsageDetail_20' ) end [2025-02-01 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:18:22] Production.INFO: ==16883== Releasing lock... [2025-02-01 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:18:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:19:06 [end_date_ymd] => 2025-02-01 07:19:06 [RateCDR] => 1 ) [2025-02-01 07: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-01 04:19:06' and `end` < '2025-02-01 07: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-01 07:19:19] Production.INFO: count ==130 [2025-02-01 07:19:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:19:06 - End Time 2025-02-01 07:19:06 [2025-02-01 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376765', 'tblTempUsageDetail_20' ) start [2025-02-01 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376765', 'tblTempUsageDetail_20' ) end [2025-02-01 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376765', 'tblTempVendorCDR_20' ) start [2025-02-01 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376765', 'tblTempVendorCDR_20' ) end [2025-02-01 07:19:19] Production.INFO: ProcessCDR(1,14376765,1,1,2) [2025-02-01 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376765', 'tblTempUsageDetail_20' ) start [2025-02-01 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376765', 'tblTempUsageDetail_20' ) end [2025-02-01 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:19:22] Production.INFO: ==16959== Releasing lock... [2025-02-01 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:19:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:20:06 [end_date_ymd] => 2025-02-01 07:20:06 [RateCDR] => 1 ) [2025-02-01 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-01 04:20:06' and `end` < '2025-02-01 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-01 07:20:19] Production.INFO: count ==124 [2025-02-01 07:20:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:20:06 - End Time 2025-02-01 07:20:06 [2025-02-01 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376771', 'tblTempUsageDetail_20' ) start [2025-02-01 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376771', 'tblTempUsageDetail_20' ) end [2025-02-01 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376771', 'tblTempVendorCDR_20' ) start [2025-02-01 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376771', 'tblTempVendorCDR_20' ) end [2025-02-01 07:20:19] Production.INFO: ProcessCDR(1,14376771,1,1,2) [2025-02-01 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376771', 'tblTempUsageDetail_20' ) start [2025-02-01 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376771', 'tblTempUsageDetail_20' ) end [2025-02-01 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:20:22] Production.INFO: ==17038== Releasing lock... [2025-02-01 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:21:05 [end_date_ymd] => 2025-02-01 07:21:05 [RateCDR] => 1 ) [2025-02-01 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:21:05' and `end` < '2025-02-01 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:21:19] Production.INFO: count ==122 [2025-02-01 07:21:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:21:05 - End Time 2025-02-01 07:21:05 [2025-02-01 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376776', 'tblTempUsageDetail_20' ) start [2025-02-01 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376776', 'tblTempUsageDetail_20' ) end [2025-02-01 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376776', 'tblTempVendorCDR_20' ) start [2025-02-01 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376776', 'tblTempVendorCDR_20' ) end [2025-02-01 07:21:19] Production.INFO: ProcessCDR(1,14376776,1,1,2) [2025-02-01 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376776', 'tblTempUsageDetail_20' ) start [2025-02-01 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376776', 'tblTempUsageDetail_20' ) end [2025-02-01 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:21:22] Production.INFO: ==17156== Releasing lock... [2025-02-01 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:21:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:22:05 [end_date_ymd] => 2025-02-01 07:22:05 [RateCDR] => 1 ) [2025-02-01 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-01 04:22:05' and `end` < '2025-02-01 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-01 07:22:18] Production.INFO: count ==122 [2025-02-01 07:22:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:22:05 - End Time 2025-02-01 07:22:05 [2025-02-01 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376781', 'tblTempUsageDetail_20' ) start [2025-02-01 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376781', 'tblTempUsageDetail_20' ) end [2025-02-01 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376781', 'tblTempVendorCDR_20' ) start [2025-02-01 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376781', 'tblTempVendorCDR_20' ) end [2025-02-01 07:22:18] Production.INFO: ProcessCDR(1,14376781,1,1,2) [2025-02-01 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376781', 'tblTempUsageDetail_20' ) start [2025-02-01 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376781', 'tblTempUsageDetail_20' ) end [2025-02-01 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:22:21] Production.INFO: ==17232== Releasing lock... [2025-02-01 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:23:05 [end_date_ymd] => 2025-02-01 07:23:05 [RateCDR] => 1 ) [2025-02-01 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:23:05' and `end` < '2025-02-01 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:23:19] Production.INFO: count ==122 [2025-02-01 07:23:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:23:05 - End Time 2025-02-01 07:23:05 [2025-02-01 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376786', 'tblTempUsageDetail_20' ) start [2025-02-01 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376786', 'tblTempUsageDetail_20' ) end [2025-02-01 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376786', 'tblTempVendorCDR_20' ) start [2025-02-01 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376786', 'tblTempVendorCDR_20' ) end [2025-02-01 07:23:19] Production.INFO: ProcessCDR(1,14376786,1,1,2) [2025-02-01 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376786', 'tblTempUsageDetail_20' ) start [2025-02-01 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376786', 'tblTempUsageDetail_20' ) end [2025-02-01 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:23:22] Production.INFO: ==17312== Releasing lock... [2025-02-01 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:24:05 [end_date_ymd] => 2025-02-01 07:24:05 [RateCDR] => 1 ) [2025-02-01 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:24:05' and `end` < '2025-02-01 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:24:18] Production.INFO: count ==122 [2025-02-01 07:24:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:24:05 - End Time 2025-02-01 07:24:05 [2025-02-01 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376791', 'tblTempUsageDetail_20' ) start [2025-02-01 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376791', 'tblTempUsageDetail_20' ) end [2025-02-01 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376791', 'tblTempVendorCDR_20' ) start [2025-02-01 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376791', 'tblTempVendorCDR_20' ) end [2025-02-01 07:24:18] Production.INFO: ProcessCDR(1,14376791,1,1,2) [2025-02-01 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376791', 'tblTempUsageDetail_20' ) start [2025-02-01 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376791', 'tblTempUsageDetail_20' ) end [2025-02-01 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:24:21] Production.INFO: ==17385== Releasing lock... [2025-02-01 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:25:05 [end_date_ymd] => 2025-02-01 07:25:05 [RateCDR] => 1 ) [2025-02-01 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:25:05' and `end` < '2025-02-01 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:25:17] Production.INFO: count ==122 [2025-02-01 07:25:17] Production.ERROR: pbx CDR StartTime 2025-02-01 04:25:05 - End Time 2025-02-01 07:25:05 [2025-02-01 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376796', 'tblTempUsageDetail_20' ) start [2025-02-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376796', 'tblTempUsageDetail_20' ) end [2025-02-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376796', 'tblTempVendorCDR_20' ) start [2025-02-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376796', 'tblTempVendorCDR_20' ) end [2025-02-01 07:25:17] Production.INFO: ProcessCDR(1,14376796,1,1,2) [2025-02-01 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376796', 'tblTempUsageDetail_20' ) start [2025-02-01 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376796', 'tblTempUsageDetail_20' ) end [2025-02-01 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:25:20] Production.INFO: ==17459== Releasing lock... [2025-02-01 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:25:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:26:05 [end_date_ymd] => 2025-02-01 07:26:05 [RateCDR] => 1 ) [2025-02-01 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-01 04:26:05' and `end` < '2025-02-01 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-01 07:26:17] Production.INFO: count ==122 [2025-02-01 07:26:17] Production.ERROR: pbx CDR StartTime 2025-02-01 04:26:05 - End Time 2025-02-01 07:26:05 [2025-02-01 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376801', 'tblTempUsageDetail_20' ) start [2025-02-01 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376801', 'tblTempUsageDetail_20' ) end [2025-02-01 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376801', 'tblTempVendorCDR_20' ) start [2025-02-01 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376801', 'tblTempVendorCDR_20' ) end [2025-02-01 07:26:17] Production.INFO: ProcessCDR(1,14376801,1,1,2) [2025-02-01 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376801', 'tblTempUsageDetail_20' ) start [2025-02-01 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376801', 'tblTempUsageDetail_20' ) end [2025-02-01 07:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:26:20] Production.INFO: ==17533== Releasing lock... [2025-02-01 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:26:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:27:05 [end_date_ymd] => 2025-02-01 07:27:05 [RateCDR] => 1 ) [2025-02-01 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:27:05' and `end` < '2025-02-01 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:27:18] Production.INFO: count ==122 [2025-02-01 07:27:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:27:05 - End Time 2025-02-01 07:27:05 [2025-02-01 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376806', 'tblTempUsageDetail_20' ) start [2025-02-01 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376806', 'tblTempUsageDetail_20' ) end [2025-02-01 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376806', 'tblTempVendorCDR_20' ) start [2025-02-01 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376806', 'tblTempVendorCDR_20' ) end [2025-02-01 07:27:18] Production.INFO: ProcessCDR(1,14376806,1,1,2) [2025-02-01 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376806', 'tblTempUsageDetail_20' ) start [2025-02-01 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376806', 'tblTempUsageDetail_20' ) end [2025-02-01 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:27:21] Production.INFO: ==17612== Releasing lock... [2025-02-01 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:28:05 [end_date_ymd] => 2025-02-01 07:28:05 [RateCDR] => 1 ) [2025-02-01 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-01 04:28:05' and `end` < '2025-02-01 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-01 07:28:19] Production.INFO: count ==122 [2025-02-01 07:28:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:28:05 - End Time 2025-02-01 07:28:05 [2025-02-01 07:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376811', 'tblTempUsageDetail_20' ) start [2025-02-01 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376811', 'tblTempUsageDetail_20' ) end [2025-02-01 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376811', 'tblTempVendorCDR_20' ) start [2025-02-01 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376811', 'tblTempVendorCDR_20' ) end [2025-02-01 07:28:19] Production.INFO: ProcessCDR(1,14376811,1,1,2) [2025-02-01 07:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376811', 'tblTempUsageDetail_20' ) start [2025-02-01 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376811', 'tblTempUsageDetail_20' ) end [2025-02-01 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:28:22] Production.INFO: ==17683== Releasing lock... [2025-02-01 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:28:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:29:05 [end_date_ymd] => 2025-02-01 07:29:05 [RateCDR] => 1 ) [2025-02-01 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:29:05' and `end` < '2025-02-01 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:29:18] Production.INFO: count ==122 [2025-02-01 07:29:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:29:05 - End Time 2025-02-01 07:29:05 [2025-02-01 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376816', 'tblTempUsageDetail_20' ) start [2025-02-01 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376816', 'tblTempUsageDetail_20' ) end [2025-02-01 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376816', 'tblTempVendorCDR_20' ) start [2025-02-01 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376816', 'tblTempVendorCDR_20' ) end [2025-02-01 07:29:18] Production.INFO: ProcessCDR(1,14376816,1,1,2) [2025-02-01 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376816', 'tblTempUsageDetail_20' ) start [2025-02-01 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376816', 'tblTempUsageDetail_20' ) end [2025-02-01 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:29:21] Production.INFO: ==17758== Releasing lock... [2025-02-01 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:30:06 [end_date_ymd] => 2025-02-01 07:30:06 [RateCDR] => 1 ) [2025-02-01 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-01 04:30:06' and `end` < '2025-02-01 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-01 07:30:18] Production.INFO: count ==117 [2025-02-01 07:30:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:30:06 - End Time 2025-02-01 07:30:06 [2025-02-01 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376822', 'tblTempUsageDetail_20' ) start [2025-02-01 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376822', 'tblTempUsageDetail_20' ) end [2025-02-01 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376822', 'tblTempVendorCDR_20' ) start [2025-02-01 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376822', 'tblTempVendorCDR_20' ) end [2025-02-01 07:30:18] Production.INFO: ProcessCDR(1,14376822,1,1,2) [2025-02-01 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376822', 'tblTempUsageDetail_20' ) start [2025-02-01 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376822', 'tblTempUsageDetail_20' ) end [2025-02-01 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:30:21] Production.INFO: ==17837== Releasing lock... [2025-02-01 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:30:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:31:05 [end_date_ymd] => 2025-02-01 07:31:05 [RateCDR] => 1 ) [2025-02-01 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:31:05' and `end` < '2025-02-01 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:31:18] Production.INFO: count ==117 [2025-02-01 07:31:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:31:05 - End Time 2025-02-01 07:31:05 [2025-02-01 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376827', 'tblTempUsageDetail_20' ) start [2025-02-01 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376827', 'tblTempUsageDetail_20' ) end [2025-02-01 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376827', 'tblTempVendorCDR_20' ) start [2025-02-01 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376827', 'tblTempVendorCDR_20' ) end [2025-02-01 07:31:18] Production.INFO: ProcessCDR(1,14376827,1,1,2) [2025-02-01 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376827', 'tblTempUsageDetail_20' ) start [2025-02-01 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376827', 'tblTempUsageDetail_20' ) end [2025-02-01 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:31:22] Production.INFO: ==17912== Releasing lock... [2025-02-01 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:31:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:32:05 [end_date_ymd] => 2025-02-01 07:32:05 [RateCDR] => 1 ) [2025-02-01 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-01 04:32:05' and `end` < '2025-02-01 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-01 07:32:18] Production.INFO: count ==116 [2025-02-01 07:32:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:32:05 - End Time 2025-02-01 07:32:05 [2025-02-01 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376832', 'tblTempUsageDetail_20' ) start [2025-02-01 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376832', 'tblTempUsageDetail_20' ) end [2025-02-01 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376832', 'tblTempVendorCDR_20' ) start [2025-02-01 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376832', 'tblTempVendorCDR_20' ) end [2025-02-01 07:32:18] Production.INFO: ProcessCDR(1,14376832,1,1,2) [2025-02-01 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376832', 'tblTempUsageDetail_20' ) start [2025-02-01 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376832', 'tblTempUsageDetail_20' ) end [2025-02-01 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:32:21] Production.INFO: ==17986== Releasing lock... [2025-02-01 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:33:05 [end_date_ymd] => 2025-02-01 07:33:05 [RateCDR] => 1 ) [2025-02-01 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:33:05' and `end` < '2025-02-01 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:33:18] Production.INFO: count ==116 [2025-02-01 07:33:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:33:05 - End Time 2025-02-01 07:33:05 [2025-02-01 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376837', 'tblTempUsageDetail_20' ) start [2025-02-01 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376837', 'tblTempUsageDetail_20' ) end [2025-02-01 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376837', 'tblTempVendorCDR_20' ) start [2025-02-01 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376837', 'tblTempVendorCDR_20' ) end [2025-02-01 07:33:18] Production.INFO: ProcessCDR(1,14376837,1,1,2) [2025-02-01 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376837', 'tblTempUsageDetail_20' ) start [2025-02-01 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376837', 'tblTempUsageDetail_20' ) end [2025-02-01 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:33:21] Production.INFO: ==18060== Releasing lock... [2025-02-01 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:34:06 [end_date_ymd] => 2025-02-01 07:34:06 [RateCDR] => 1 ) [2025-02-01 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-01 04:34:06' and `end` < '2025-02-01 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-01 07:34:19] Production.INFO: count ==116 [2025-02-01 07:34:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:34:06 - End Time 2025-02-01 07:34:06 [2025-02-01 07:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376842', 'tblTempUsageDetail_20' ) start [2025-02-01 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376842', 'tblTempUsageDetail_20' ) end [2025-02-01 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376842', 'tblTempVendorCDR_20' ) start [2025-02-01 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376842', 'tblTempVendorCDR_20' ) end [2025-02-01 07:34:19] Production.INFO: ProcessCDR(1,14376842,1,1,2) [2025-02-01 07:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376842', 'tblTempUsageDetail_20' ) start [2025-02-01 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376842', 'tblTempUsageDetail_20' ) end [2025-02-01 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:34:22] Production.INFO: ==18150== Releasing lock... [2025-02-01 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:34:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:35:05 [end_date_ymd] => 2025-02-01 07:35:05 [RateCDR] => 1 ) [2025-02-01 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:35:05' and `end` < '2025-02-01 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:35:19] Production.INFO: count ==116 [2025-02-01 07:35:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:35:05 - End Time 2025-02-01 07:35:05 [2025-02-01 07:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376847', 'tblTempUsageDetail_20' ) start [2025-02-01 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376847', 'tblTempUsageDetail_20' ) end [2025-02-01 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376847', 'tblTempVendorCDR_20' ) start [2025-02-01 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376847', 'tblTempVendorCDR_20' ) end [2025-02-01 07:35:19] Production.INFO: ProcessCDR(1,14376847,1,1,2) [2025-02-01 07:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376847', 'tblTempUsageDetail_20' ) start [2025-02-01 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376847', 'tblTempUsageDetail_20' ) end [2025-02-01 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:35:22] Production.INFO: ==18227== Releasing lock... [2025-02-01 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:35:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:36:05 [end_date_ymd] => 2025-02-01 07:36:05 [RateCDR] => 1 ) [2025-02-01 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:36:05' and `end` < '2025-02-01 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:36:18] Production.INFO: count ==116 [2025-02-01 07:36:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:36:05 - End Time 2025-02-01 07:36:05 [2025-02-01 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376852', 'tblTempUsageDetail_20' ) start [2025-02-01 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376852', 'tblTempUsageDetail_20' ) end [2025-02-01 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376852', 'tblTempVendorCDR_20' ) start [2025-02-01 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376852', 'tblTempVendorCDR_20' ) end [2025-02-01 07:36:18] Production.INFO: ProcessCDR(1,14376852,1,1,2) [2025-02-01 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376852', 'tblTempUsageDetail_20' ) start [2025-02-01 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376852', 'tblTempUsageDetail_20' ) end [2025-02-01 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:36:21] Production.INFO: ==18299== Releasing lock... [2025-02-01 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:37:05 [end_date_ymd] => 2025-02-01 07:37:05 [RateCDR] => 1 ) [2025-02-01 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:37:05' and `end` < '2025-02-01 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:37:17] Production.INFO: count ==116 [2025-02-01 07:37:17] Production.ERROR: pbx CDR StartTime 2025-02-01 04:37:05 - End Time 2025-02-01 07:37:05 [2025-02-01 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376857', 'tblTempUsageDetail_20' ) start [2025-02-01 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376857', 'tblTempUsageDetail_20' ) end [2025-02-01 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376857', 'tblTempVendorCDR_20' ) start [2025-02-01 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376857', 'tblTempVendorCDR_20' ) end [2025-02-01 07:37:17] Production.INFO: ProcessCDR(1,14376857,1,1,2) [2025-02-01 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376857', 'tblTempUsageDetail_20' ) start [2025-02-01 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376857', 'tblTempUsageDetail_20' ) end [2025-02-01 07:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:37:20] Production.INFO: ==18407== Releasing lock... [2025-02-01 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:38:04 [end_date_ymd] => 2025-02-01 07:38:04 [RateCDR] => 1 ) [2025-02-01 07:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:38:04' and `end` < '2025-02-01 07:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:38:17] Production.INFO: count ==114 [2025-02-01 07:38:17] Production.ERROR: pbx CDR StartTime 2025-02-01 04:38:04 - End Time 2025-02-01 07:38:04 [2025-02-01 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376862', 'tblTempUsageDetail_20' ) start [2025-02-01 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376862', 'tblTempUsageDetail_20' ) end [2025-02-01 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376862', 'tblTempVendorCDR_20' ) start [2025-02-01 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376862', 'tblTempVendorCDR_20' ) end [2025-02-01 07:38:17] Production.INFO: ProcessCDR(1,14376862,1,1,2) [2025-02-01 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376862', 'tblTempUsageDetail_20' ) start [2025-02-01 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376862', 'tblTempUsageDetail_20' ) end [2025-02-01 07:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:38:20] Production.INFO: ==18477== Releasing lock... [2025-02-01 07:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:38:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:39:05 [end_date_ymd] => 2025-02-01 07:39:05 [RateCDR] => 1 ) [2025-02-01 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-01 04:39:05' and `end` < '2025-02-01 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-01 07:39:18] Production.INFO: count ==114 [2025-02-01 07:39:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:39:05 - End Time 2025-02-01 07:39:05 [2025-02-01 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376865', 'tblTempUsageDetail_20' ) start [2025-02-01 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376865', 'tblTempUsageDetail_20' ) end [2025-02-01 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376865', 'tblTempVendorCDR_20' ) start [2025-02-01 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376865', 'tblTempVendorCDR_20' ) end [2025-02-01 07:39:18] Production.INFO: ProcessCDR(1,14376865,1,1,2) [2025-02-01 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376865', 'tblTempUsageDetail_20' ) start [2025-02-01 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376865', 'tblTempUsageDetail_20' ) end [2025-02-01 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:39:21] Production.INFO: ==18572== Releasing lock... [2025-02-01 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:40:06 [end_date_ymd] => 2025-02-01 07:40:06 [RateCDR] => 1 ) [2025-02-01 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-01 04:40:06' and `end` < '2025-02-01 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-01 07:40:18] Production.INFO: count ==110 [2025-02-01 07:40:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:40:06 - End Time 2025-02-01 07:40:06 [2025-02-01 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376873', 'tblTempUsageDetail_20' ) start [2025-02-01 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376873', 'tblTempUsageDetail_20' ) end [2025-02-01 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376873', 'tblTempVendorCDR_20' ) start [2025-02-01 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376873', 'tblTempVendorCDR_20' ) end [2025-02-01 07:40:18] Production.INFO: ProcessCDR(1,14376873,1,1,2) [2025-02-01 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376873', 'tblTempUsageDetail_20' ) start [2025-02-01 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376873', 'tblTempUsageDetail_20' ) end [2025-02-01 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:40:21] Production.INFO: ==18646== Releasing lock... [2025-02-01 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:41:05 [end_date_ymd] => 2025-02-01 07:41:05 [RateCDR] => 1 ) [2025-02-01 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:41:05' and `end` < '2025-02-01 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:41:17] Production.INFO: count ==104 [2025-02-01 07:41:17] Production.ERROR: pbx CDR StartTime 2025-02-01 04:41:05 - End Time 2025-02-01 07:41:05 [2025-02-01 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376878', 'tblTempUsageDetail_20' ) start [2025-02-01 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376878', 'tblTempUsageDetail_20' ) end [2025-02-01 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376878', 'tblTempVendorCDR_20' ) start [2025-02-01 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376878', 'tblTempVendorCDR_20' ) end [2025-02-01 07:41:17] Production.INFO: ProcessCDR(1,14376878,1,1,2) [2025-02-01 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376878', 'tblTempUsageDetail_20' ) start [2025-02-01 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376878', 'tblTempUsageDetail_20' ) end [2025-02-01 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:41:20] Production.INFO: ==18719== Releasing lock... [2025-02-01 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:41:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:42:05 [end_date_ymd] => 2025-02-01 07:42:05 [RateCDR] => 1 ) [2025-02-01 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-01 04:42:05' and `end` < '2025-02-01 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-01 07:42:18] Production.INFO: count ==104 [2025-02-01 07:42:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:42:05 - End Time 2025-02-01 07:42:05 [2025-02-01 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376883', 'tblTempUsageDetail_20' ) start [2025-02-01 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376883', 'tblTempUsageDetail_20' ) end [2025-02-01 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376883', 'tblTempVendorCDR_20' ) start [2025-02-01 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376883', 'tblTempVendorCDR_20' ) end [2025-02-01 07:42:18] Production.INFO: ProcessCDR(1,14376883,1,1,2) [2025-02-01 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376883', 'tblTempUsageDetail_20' ) start [2025-02-01 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376883', 'tblTempUsageDetail_20' ) end [2025-02-01 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:42:21] Production.INFO: ==18802== Releasing lock... [2025-02-01 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:43:04 [end_date_ymd] => 2025-02-01 07:43:04 [RateCDR] => 1 ) [2025-02-01 07:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:43:04' and `end` < '2025-02-01 07:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:43:17] Production.INFO: count ==104 [2025-02-01 07:43:17] Production.ERROR: pbx CDR StartTime 2025-02-01 04:43:04 - End Time 2025-02-01 07:43:04 [2025-02-01 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376888', 'tblTempUsageDetail_20' ) start [2025-02-01 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376888', 'tblTempUsageDetail_20' ) end [2025-02-01 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376888', 'tblTempVendorCDR_20' ) start [2025-02-01 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376888', 'tblTempVendorCDR_20' ) end [2025-02-01 07:43:17] Production.INFO: ProcessCDR(1,14376888,1,1,2) [2025-02-01 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376888', 'tblTempUsageDetail_20' ) start [2025-02-01 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376888', 'tblTempUsageDetail_20' ) end [2025-02-01 07:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:43:20] Production.INFO: ==18871== Releasing lock... [2025-02-01 07:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:43:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:44:05 [end_date_ymd] => 2025-02-01 07:44:05 [RateCDR] => 1 ) [2025-02-01 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-01 04:44:05' and `end` < '2025-02-01 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-01 07:44:19] Production.INFO: count ==104 [2025-02-01 07:44:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:44:05 - End Time 2025-02-01 07:44:05 [2025-02-01 07:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376893', 'tblTempUsageDetail_20' ) start [2025-02-01 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376893', 'tblTempUsageDetail_20' ) end [2025-02-01 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376893', 'tblTempVendorCDR_20' ) start [2025-02-01 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376893', 'tblTempVendorCDR_20' ) end [2025-02-01 07:44:19] Production.INFO: ProcessCDR(1,14376893,1,1,2) [2025-02-01 07:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376893', 'tblTempUsageDetail_20' ) start [2025-02-01 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376893', 'tblTempUsageDetail_20' ) end [2025-02-01 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:44:22] Production.INFO: ==18944== Releasing lock... [2025-02-01 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:44:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:45:06 [end_date_ymd] => 2025-02-01 07:45:06 [RateCDR] => 1 ) [2025-02-01 07: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-01 04:45:06' and `end` < '2025-02-01 07: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-01 07:45:19] Production.INFO: count ==104 [2025-02-01 07:45:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:45:06 - End Time 2025-02-01 07:45:06 [2025-02-01 07:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376898', 'tblTempUsageDetail_20' ) start [2025-02-01 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376898', 'tblTempUsageDetail_20' ) end [2025-02-01 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376898', 'tblTempVendorCDR_20' ) start [2025-02-01 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376898', 'tblTempVendorCDR_20' ) end [2025-02-01 07:45:19] Production.INFO: ProcessCDR(1,14376898,1,1,2) [2025-02-01 07:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376898', 'tblTempUsageDetail_20' ) start [2025-02-01 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376898', 'tblTempUsageDetail_20' ) end [2025-02-01 07:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:45:22] Production.INFO: ==19016== Releasing lock... [2025-02-01 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:45:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:46:05 [end_date_ymd] => 2025-02-01 07:46:05 [RateCDR] => 1 ) [2025-02-01 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:46:05' and `end` < '2025-02-01 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:46:18] Production.INFO: count ==104 [2025-02-01 07:46:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:46:05 - End Time 2025-02-01 07:46:05 [2025-02-01 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376903', 'tblTempUsageDetail_20' ) start [2025-02-01 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376903', 'tblTempUsageDetail_20' ) end [2025-02-01 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376903', 'tblTempVendorCDR_20' ) start [2025-02-01 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376903', 'tblTempVendorCDR_20' ) end [2025-02-01 07:46:18] Production.INFO: ProcessCDR(1,14376903,1,1,2) [2025-02-01 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376903', 'tblTempUsageDetail_20' ) start [2025-02-01 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376903', 'tblTempUsageDetail_20' ) end [2025-02-01 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:46:21] Production.INFO: ==19091== Releasing lock... [2025-02-01 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:47:05 [end_date_ymd] => 2025-02-01 07:47:05 [RateCDR] => 1 ) [2025-02-01 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:47:05' and `end` < '2025-02-01 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:47:17] Production.INFO: count ==104 [2025-02-01 07:47:17] Production.ERROR: pbx CDR StartTime 2025-02-01 04:47:05 - End Time 2025-02-01 07:47:05 [2025-02-01 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376908', 'tblTempUsageDetail_20' ) start [2025-02-01 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376908', 'tblTempUsageDetail_20' ) end [2025-02-01 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376908', 'tblTempVendorCDR_20' ) start [2025-02-01 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376908', 'tblTempVendorCDR_20' ) end [2025-02-01 07:47:17] Production.INFO: ProcessCDR(1,14376908,1,1,2) [2025-02-01 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376908', 'tblTempUsageDetail_20' ) start [2025-02-01 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376908', 'tblTempUsageDetail_20' ) end [2025-02-01 07:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:47:20] Production.INFO: ==19176== Releasing lock... [2025-02-01 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:47:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:48:04 [end_date_ymd] => 2025-02-01 07:48:04 [RateCDR] => 1 ) [2025-02-01 07:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:48:04' and `end` < '2025-02-01 07:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:48:18] Production.INFO: count ==104 [2025-02-01 07:48:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:48:04 - End Time 2025-02-01 07:48:04 [2025-02-01 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376913', 'tblTempUsageDetail_20' ) start [2025-02-01 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376913', 'tblTempUsageDetail_20' ) end [2025-02-01 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376913', 'tblTempVendorCDR_20' ) start [2025-02-01 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376913', 'tblTempVendorCDR_20' ) end [2025-02-01 07:48:18] Production.INFO: ProcessCDR(1,14376913,1,1,2) [2025-02-01 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376913', 'tblTempUsageDetail_20' ) start [2025-02-01 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376913', 'tblTempUsageDetail_20' ) end [2025-02-01 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:48:21] Production.INFO: ==19256== Releasing lock... [2025-02-01 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:49:06 [end_date_ymd] => 2025-02-01 07:49:06 [RateCDR] => 1 ) [2025-02-01 07: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-01 04:49:06' and `end` < '2025-02-01 07: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-01 07:49:20] Production.INFO: count ==104 [2025-02-01 07:49:20] Production.ERROR: pbx CDR StartTime 2025-02-01 04:49:06 - End Time 2025-02-01 07:49:06 [2025-02-01 07:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376918', 'tblTempUsageDetail_20' ) start [2025-02-01 07:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376918', 'tblTempUsageDetail_20' ) end [2025-02-01 07:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376918', 'tblTempVendorCDR_20' ) start [2025-02-01 07:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376918', 'tblTempVendorCDR_20' ) end [2025-02-01 07:49:20] Production.INFO: ProcessCDR(1,14376918,1,1,2) [2025-02-01 07:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376918', 'tblTempUsageDetail_20' ) start [2025-02-01 07:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376918', 'tblTempUsageDetail_20' ) end [2025-02-01 07:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:49:23] Production.INFO: ==19333== Releasing lock... [2025-02-01 07:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:49:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:50:05 [end_date_ymd] => 2025-02-01 07:50:05 [RateCDR] => 1 ) [2025-02-01 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:50:05' and `end` < '2025-02-01 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:50:19] Production.INFO: count ==102 [2025-02-01 07:50:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:50:05 - End Time 2025-02-01 07:50:05 [2025-02-01 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376923', 'tblTempUsageDetail_20' ) start [2025-02-01 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376923', 'tblTempUsageDetail_20' ) end [2025-02-01 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376923', 'tblTempVendorCDR_20' ) start [2025-02-01 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376923', 'tblTempVendorCDR_20' ) end [2025-02-01 07:50:19] Production.INFO: ProcessCDR(1,14376923,1,1,2) [2025-02-01 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376923', 'tblTempUsageDetail_20' ) start [2025-02-01 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376923', 'tblTempUsageDetail_20' ) end [2025-02-01 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:50:22] Production.INFO: ==19413== Releasing lock... [2025-02-01 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:51:06 [end_date_ymd] => 2025-02-01 07:51:06 [RateCDR] => 1 ) [2025-02-01 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-01 04:51:06' and `end` < '2025-02-01 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-01 07:51:18] Production.INFO: count ==102 [2025-02-01 07:51:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:51:06 - End Time 2025-02-01 07:51:06 [2025-02-01 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376929', 'tblTempUsageDetail_20' ) start [2025-02-01 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376929', 'tblTempUsageDetail_20' ) end [2025-02-01 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376929', 'tblTempVendorCDR_20' ) start [2025-02-01 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376929', 'tblTempVendorCDR_20' ) end [2025-02-01 07:51:18] Production.INFO: ProcessCDR(1,14376929,1,1,2) [2025-02-01 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376929', 'tblTempUsageDetail_20' ) start [2025-02-01 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376929', 'tblTempUsageDetail_20' ) end [2025-02-01 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:51:21] Production.INFO: ==19495== Releasing lock... [2025-02-01 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:52:05 [end_date_ymd] => 2025-02-01 07:52:05 [RateCDR] => 1 ) [2025-02-01 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:52:05' and `end` < '2025-02-01 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:52:17] Production.INFO: count ==102 [2025-02-01 07:52:17] Production.ERROR: pbx CDR StartTime 2025-02-01 04:52:05 - End Time 2025-02-01 07:52:05 [2025-02-01 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376934', 'tblTempUsageDetail_20' ) start [2025-02-01 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376934', 'tblTempUsageDetail_20' ) end [2025-02-01 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376934', 'tblTempVendorCDR_20' ) start [2025-02-01 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376934', 'tblTempVendorCDR_20' ) end [2025-02-01 07:52:17] Production.INFO: ProcessCDR(1,14376934,1,1,2) [2025-02-01 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376934', 'tblTempUsageDetail_20' ) start [2025-02-01 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376934', 'tblTempUsageDetail_20' ) end [2025-02-01 07:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:52:20] Production.INFO: ==19608== Releasing lock... [2025-02-01 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:52:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:53:05 [end_date_ymd] => 2025-02-01 07:53:05 [RateCDR] => 1 ) [2025-02-01 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:53:05' and `end` < '2025-02-01 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:53:18] Production.INFO: count ==102 [2025-02-01 07:53:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:53:05 - End Time 2025-02-01 07:53:05 [2025-02-01 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376939', 'tblTempUsageDetail_20' ) start [2025-02-01 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376939', 'tblTempUsageDetail_20' ) end [2025-02-01 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376939', 'tblTempVendorCDR_20' ) start [2025-02-01 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376939', 'tblTempVendorCDR_20' ) end [2025-02-01 07:53:18] Production.INFO: ProcessCDR(1,14376939,1,1,2) [2025-02-01 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376939', 'tblTempUsageDetail_20' ) start [2025-02-01 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376939', 'tblTempUsageDetail_20' ) end [2025-02-01 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:53:21] Production.INFO: ==19690== Releasing lock... [2025-02-01 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:54:05 [end_date_ymd] => 2025-02-01 07:54:05 [RateCDR] => 1 ) [2025-02-01 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:54:05' and `end` < '2025-02-01 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:54:18] Production.INFO: count ==102 [2025-02-01 07:54:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:54:05 - End Time 2025-02-01 07:54:05 [2025-02-01 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376944', 'tblTempUsageDetail_20' ) start [2025-02-01 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376944', 'tblTempUsageDetail_20' ) end [2025-02-01 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376944', 'tblTempVendorCDR_20' ) start [2025-02-01 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376944', 'tblTempVendorCDR_20' ) end [2025-02-01 07:54:18] Production.INFO: ProcessCDR(1,14376944,1,1,2) [2025-02-01 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376944', 'tblTempUsageDetail_20' ) start [2025-02-01 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376944', 'tblTempUsageDetail_20' ) end [2025-02-01 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:54:21] Production.INFO: ==19763== Releasing lock... [2025-02-01 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:55:05 [end_date_ymd] => 2025-02-01 07:55:05 [RateCDR] => 1 ) [2025-02-01 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-01 04:55:05' and `end` < '2025-02-01 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-01 07:55:18] Production.INFO: count ==101 [2025-02-01 07:55:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:55:05 - End Time 2025-02-01 07:55:05 [2025-02-01 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376949', 'tblTempUsageDetail_20' ) start [2025-02-01 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376949', 'tblTempUsageDetail_20' ) end [2025-02-01 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376949', 'tblTempVendorCDR_20' ) start [2025-02-01 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376949', 'tblTempVendorCDR_20' ) end [2025-02-01 07:55:18] Production.INFO: ProcessCDR(1,14376949,1,1,2) [2025-02-01 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376949', 'tblTempUsageDetail_20' ) start [2025-02-01 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376949', 'tblTempUsageDetail_20' ) end [2025-02-01 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:55:21] Production.INFO: ==19842== Releasing lock... [2025-02-01 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:56:05 [end_date_ymd] => 2025-02-01 07:56:05 [RateCDR] => 1 ) [2025-02-01 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 04:56:05' and `end` < '2025-02-01 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 07:56:19] Production.INFO: count ==101 [2025-02-01 07:56:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:56:05 - End Time 2025-02-01 07:56:05 [2025-02-01 07:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376954', 'tblTempUsageDetail_20' ) start [2025-02-01 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376954', 'tblTempUsageDetail_20' ) end [2025-02-01 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376954', 'tblTempVendorCDR_20' ) start [2025-02-01 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376954', 'tblTempVendorCDR_20' ) end [2025-02-01 07:56:19] Production.INFO: ProcessCDR(1,14376954,1,1,2) [2025-02-01 07:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376954', 'tblTempUsageDetail_20' ) start [2025-02-01 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376954', 'tblTempUsageDetail_20' ) end [2025-02-01 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:56:22] Production.INFO: ==19919== Releasing lock... [2025-02-01 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:56:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:57:05 [end_date_ymd] => 2025-02-01 07:57:05 [RateCDR] => 1 ) [2025-02-01 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-01 04:57:05' and `end` < '2025-02-01 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-01 07:57:18] Production.INFO: count ==101 [2025-02-01 07:57:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:57:05 - End Time 2025-02-01 07:57:05 [2025-02-01 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376959', 'tblTempUsageDetail_20' ) start [2025-02-01 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376959', 'tblTempUsageDetail_20' ) end [2025-02-01 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376959', 'tblTempVendorCDR_20' ) start [2025-02-01 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376959', 'tblTempVendorCDR_20' ) end [2025-02-01 07:57:18] Production.INFO: ProcessCDR(1,14376959,1,1,2) [2025-02-01 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376959', 'tblTempUsageDetail_20' ) start [2025-02-01 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376959', 'tblTempUsageDetail_20' ) end [2025-02-01 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:57:21] Production.INFO: ==20000== Releasing lock... [2025-02-01 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:57:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:58:06 [end_date_ymd] => 2025-02-01 07:58:06 [RateCDR] => 1 ) [2025-02-01 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-01 04:58:06' and `end` < '2025-02-01 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-01 07:58:19] Production.INFO: count ==100 [2025-02-01 07:58:19] Production.ERROR: pbx CDR StartTime 2025-02-01 04:58:06 - End Time 2025-02-01 07:58:06 [2025-02-01 07:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376964', 'tblTempUsageDetail_20' ) start [2025-02-01 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376964', 'tblTempUsageDetail_20' ) end [2025-02-01 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376964', 'tblTempVendorCDR_20' ) start [2025-02-01 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376964', 'tblTempVendorCDR_20' ) end [2025-02-01 07:58:19] Production.INFO: ProcessCDR(1,14376964,1,1,2) [2025-02-01 07:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376964', 'tblTempUsageDetail_20' ) start [2025-02-01 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376964', 'tblTempUsageDetail_20' ) end [2025-02-01 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:58:22] Production.INFO: ==20079== Releasing lock... [2025-02-01 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:58:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 04:59:05 [end_date_ymd] => 2025-02-01 07:59:05 [RateCDR] => 1 ) [2025-02-01 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-01 04:59:05' and `end` < '2025-02-01 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-01 07:59:18] Production.INFO: count ==100 [2025-02-01 07:59:18] Production.ERROR: pbx CDR StartTime 2025-02-01 04:59:05 - End Time 2025-02-01 07:59:05 [2025-02-01 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376969', 'tblTempUsageDetail_20' ) start [2025-02-01 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376969', 'tblTempUsageDetail_20' ) end [2025-02-01 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376969', 'tblTempVendorCDR_20' ) start [2025-02-01 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376969', 'tblTempVendorCDR_20' ) end [2025-02-01 07:59:18] Production.INFO: ProcessCDR(1,14376969,1,1,2) [2025-02-01 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376969', 'tblTempUsageDetail_20' ) start [2025-02-01 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376969', 'tblTempUsageDetail_20' ) end [2025-02-01 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 07:59:21] Production.INFO: ==20150== Releasing lock... [2025-02-01 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 07:59:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:00:06 [end_date_ymd] => 2025-02-01 08:00:06 [RateCDR] => 1 ) [2025-02-01 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:00:06' and `end` < '2025-02-01 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-01 08:00:19] Production.INFO: count ==102 [2025-02-01 08:00:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:00:06 - End Time 2025-02-01 08:00:06 [2025-02-01 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376975', 'tblTempUsageDetail_20' ) start [2025-02-01 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376975', 'tblTempUsageDetail_20' ) end [2025-02-01 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376975', 'tblTempVendorCDR_20' ) start [2025-02-01 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376975', 'tblTempVendorCDR_20' ) end [2025-02-01 08:00:19] Production.INFO: ProcessCDR(1,14376975,1,1,2) [2025-02-01 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376975', 'tblTempUsageDetail_20' ) start [2025-02-01 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376975', 'tblTempUsageDetail_20' ) end [2025-02-01 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:00:22] Production.INFO: ==20230== Releasing lock... [2025-02-01 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:00:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:01:05 [end_date_ymd] => 2025-02-01 08:01:05 [RateCDR] => 1 ) [2025-02-01 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-01 05:01:05' and `end` < '2025-02-01 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-01 08:01:18] Production.INFO: count ==109 [2025-02-01 08:01:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:01:05 - End Time 2025-02-01 08:01:05 [2025-02-01 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376980', 'tblTempUsageDetail_20' ) start [2025-02-01 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376980', 'tblTempUsageDetail_20' ) end [2025-02-01 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376980', 'tblTempVendorCDR_20' ) start [2025-02-01 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376980', 'tblTempVendorCDR_20' ) end [2025-02-01 08:01:18] Production.INFO: ProcessCDR(1,14376980,1,1,2) [2025-02-01 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376980', 'tblTempUsageDetail_20' ) start [2025-02-01 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376980', 'tblTempUsageDetail_20' ) end [2025-02-01 08:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:01:23] Production.INFO: ==20325== Releasing lock... [2025-02-01 08:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:01:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:02:05 [end_date_ymd] => 2025-02-01 08:02:05 [RateCDR] => 1 ) [2025-02-01 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:02:05' and `end` < '2025-02-01 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:02:19] Production.INFO: count ==109 [2025-02-01 08:02:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:02:05 - End Time 2025-02-01 08:02:05 [2025-02-01 08:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376985', 'tblTempUsageDetail_20' ) start [2025-02-01 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376985', 'tblTempUsageDetail_20' ) end [2025-02-01 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376985', 'tblTempVendorCDR_20' ) start [2025-02-01 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376985', 'tblTempVendorCDR_20' ) end [2025-02-01 08:02:19] Production.INFO: ProcessCDR(1,14376985,1,1,2) [2025-02-01 08:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376985', 'tblTempUsageDetail_20' ) start [2025-02-01 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376985', 'tblTempUsageDetail_20' ) end [2025-02-01 08:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:02:23] Production.INFO: ==20410== Releasing lock... [2025-02-01 08:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:02:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:03:06 [end_date_ymd] => 2025-02-01 08:03:06 [RateCDR] => 1 ) [2025-02-01 08:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:03:06' and `end` < '2025-02-01 08:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:03:19] Production.INFO: count ==109 [2025-02-01 08:03:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:03:06 - End Time 2025-02-01 08:03:06 [2025-02-01 08:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376990', 'tblTempUsageDetail_20' ) start [2025-02-01 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376990', 'tblTempUsageDetail_20' ) end [2025-02-01 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376990', 'tblTempVendorCDR_20' ) start [2025-02-01 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376990', 'tblTempVendorCDR_20' ) end [2025-02-01 08:03:19] Production.INFO: ProcessCDR(1,14376990,1,1,2) [2025-02-01 08:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376990', 'tblTempUsageDetail_20' ) start [2025-02-01 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376990', 'tblTempUsageDetail_20' ) end [2025-02-01 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:03:22] Production.INFO: ==20489== Releasing lock... [2025-02-01 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:03:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:04:06 [end_date_ymd] => 2025-02-01 08:04:06 [RateCDR] => 1 ) [2025-02-01 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-01 05:04:06' and `end` < '2025-02-01 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-01 08:04:19] Production.INFO: count ==109 [2025-02-01 08:04:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:04:06 - End Time 2025-02-01 08:04:06 [2025-02-01 08:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376995', 'tblTempUsageDetail_20' ) start [2025-02-01 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14376995', 'tblTempUsageDetail_20' ) end [2025-02-01 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376995', 'tblTempVendorCDR_20' ) start [2025-02-01 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14376995', 'tblTempVendorCDR_20' ) end [2025-02-01 08:04:19] Production.INFO: ProcessCDR(1,14376995,1,1,2) [2025-02-01 08:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14376995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14376995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14376995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14376995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376995', 'tblTempUsageDetail_20' ) start [2025-02-01 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14376995', 'tblTempUsageDetail_20' ) end [2025-02-01 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:04:22] Production.INFO: ==20567== Releasing lock... [2025-02-01 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:04:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:05:06 [end_date_ymd] => 2025-02-01 08:05:06 [RateCDR] => 1 ) [2025-02-01 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-01 05:05:06' and `end` < '2025-02-01 08:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:05:19] Production.INFO: count ==110 [2025-02-01 08:05:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:05:06 - End Time 2025-02-01 08:05:06 [2025-02-01 08:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377000', 'tblTempUsageDetail_20' ) start [2025-02-01 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377000', 'tblTempUsageDetail_20' ) end [2025-02-01 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377000', 'tblTempVendorCDR_20' ) start [2025-02-01 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377000', 'tblTempVendorCDR_20' ) end [2025-02-01 08:05:19] Production.INFO: ProcessCDR(1,14377000,1,1,2) [2025-02-01 08:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377000', 'tblTempUsageDetail_20' ) start [2025-02-01 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377000', 'tblTempUsageDetail_20' ) end [2025-02-01 08:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:05:24] Production.INFO: ==20644== Releasing lock... [2025-02-01 08:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:05:24] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:06:05 [end_date_ymd] => 2025-02-01 08:06:05 [RateCDR] => 1 ) [2025-02-01 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-01 05:06:05' and `end` < '2025-02-01 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-01 08:06:17] Production.INFO: count ==110 [2025-02-01 08:06:17] Production.ERROR: pbx CDR StartTime 2025-02-01 05:06:05 - End Time 2025-02-01 08:06:05 [2025-02-01 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377005', 'tblTempUsageDetail_20' ) start [2025-02-01 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377005', 'tblTempUsageDetail_20' ) end [2025-02-01 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377005', 'tblTempVendorCDR_20' ) start [2025-02-01 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377005', 'tblTempVendorCDR_20' ) end [2025-02-01 08:06:17] Production.INFO: ProcessCDR(1,14377005,1,1,2) [2025-02-01 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377005', 'tblTempUsageDetail_20' ) start [2025-02-01 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377005', 'tblTempUsageDetail_20' ) end [2025-02-01 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:06:21] Production.INFO: ==20730== Releasing lock... [2025-02-01 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:07:05 [end_date_ymd] => 2025-02-01 08:07:05 [RateCDR] => 1 ) [2025-02-01 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:07:05' and `end` < '2025-02-01 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:07:18] Production.INFO: count ==110 [2025-02-01 08:07:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:07:05 - End Time 2025-02-01 08:07:05 [2025-02-01 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377010', 'tblTempUsageDetail_20' ) start [2025-02-01 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377010', 'tblTempUsageDetail_20' ) end [2025-02-01 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377010', 'tblTempVendorCDR_20' ) start [2025-02-01 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377010', 'tblTempVendorCDR_20' ) end [2025-02-01 08:07:18] Production.INFO: ProcessCDR(1,14377010,1,1,2) [2025-02-01 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377010', 'tblTempUsageDetail_20' ) start [2025-02-01 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377010', 'tblTempUsageDetail_20' ) end [2025-02-01 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:07:21] Production.INFO: ==20810== Releasing lock... [2025-02-01 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:08:05 [end_date_ymd] => 2025-02-01 08:08:05 [RateCDR] => 1 ) [2025-02-01 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:08:05' and `end` < '2025-02-01 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:08:19] Production.INFO: count ==111 [2025-02-01 08:08:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:08:05 - End Time 2025-02-01 08:08:05 [2025-02-01 08:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377015', 'tblTempUsageDetail_20' ) start [2025-02-01 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377015', 'tblTempUsageDetail_20' ) end [2025-02-01 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377015', 'tblTempVendorCDR_20' ) start [2025-02-01 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377015', 'tblTempVendorCDR_20' ) end [2025-02-01 08:08:19] Production.INFO: ProcessCDR(1,14377015,1,1,2) [2025-02-01 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377015', 'tblTempUsageDetail_20' ) start [2025-02-01 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377015', 'tblTempUsageDetail_20' ) end [2025-02-01 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:08:22] Production.INFO: ==20925== Releasing lock... [2025-02-01 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:08:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:09:05 [end_date_ymd] => 2025-02-01 08:09:05 [RateCDR] => 1 ) [2025-02-01 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-01 05:09:05' and `end` < '2025-02-01 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-01 08:09:17] Production.INFO: count ==111 [2025-02-01 08:09:17] Production.ERROR: pbx CDR StartTime 2025-02-01 05:09:05 - End Time 2025-02-01 08:09:05 [2025-02-01 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377020', 'tblTempUsageDetail_20' ) start [2025-02-01 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377020', 'tblTempUsageDetail_20' ) end [2025-02-01 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377020', 'tblTempVendorCDR_20' ) start [2025-02-01 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377020', 'tblTempVendorCDR_20' ) end [2025-02-01 08:09:18] Production.INFO: ProcessCDR(1,14377020,1,1,2) [2025-02-01 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377020', 'tblTempUsageDetail_20' ) start [2025-02-01 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377020', 'tblTempUsageDetail_20' ) end [2025-02-01 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:09:21] Production.INFO: ==21000== Releasing lock... [2025-02-01 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:10:05 [end_date_ymd] => 2025-02-01 08:10:05 [RateCDR] => 1 ) [2025-02-01 08:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:10:05' and `end` < '2025-02-01 08:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:10:19] Production.INFO: count ==111 [2025-02-01 08:10:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:10:05 - End Time 2025-02-01 08:10:05 [2025-02-01 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377026', 'tblTempUsageDetail_20' ) start [2025-02-01 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377026', 'tblTempUsageDetail_20' ) end [2025-02-01 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377026', 'tblTempVendorCDR_20' ) start [2025-02-01 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377026', 'tblTempVendorCDR_20' ) end [2025-02-01 08:10:19] Production.INFO: ProcessCDR(1,14377026,1,1,2) [2025-02-01 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377026', 'tblTempUsageDetail_20' ) start [2025-02-01 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377026', 'tblTempUsageDetail_20' ) end [2025-02-01 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:10:23] Production.INFO: ==21085== Releasing lock... [2025-02-01 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:10:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:11:05 [end_date_ymd] => 2025-02-01 08:11:05 [RateCDR] => 1 ) [2025-02-01 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-01 05:11:05' and `end` < '2025-02-01 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-01 08:11:19] Production.INFO: count ==111 [2025-02-01 08:11:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:11:05 - End Time 2025-02-01 08:11:05 [2025-02-01 08:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377031', 'tblTempUsageDetail_20' ) start [2025-02-01 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377031', 'tblTempUsageDetail_20' ) end [2025-02-01 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377031', 'tblTempVendorCDR_20' ) start [2025-02-01 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377031', 'tblTempVendorCDR_20' ) end [2025-02-01 08:11:19] Production.INFO: ProcessCDR(1,14377031,1,1,2) [2025-02-01 08:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377031', 'tblTempUsageDetail_20' ) start [2025-02-01 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377031', 'tblTempUsageDetail_20' ) end [2025-02-01 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:11:22] Production.INFO: ==21165== Releasing lock... [2025-02-01 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:11:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:12:05 [end_date_ymd] => 2025-02-01 08:12:05 [RateCDR] => 1 ) [2025-02-01 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-01 05:12:05' and `end` < '2025-02-01 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-01 08:12:18] Production.INFO: count ==111 [2025-02-01 08:12:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:12:05 - End Time 2025-02-01 08:12:05 [2025-02-01 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377036', 'tblTempUsageDetail_20' ) start [2025-02-01 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377036', 'tblTempUsageDetail_20' ) end [2025-02-01 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377036', 'tblTempVendorCDR_20' ) start [2025-02-01 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377036', 'tblTempVendorCDR_20' ) end [2025-02-01 08:12:18] Production.INFO: ProcessCDR(1,14377036,1,1,2) [2025-02-01 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377036', 'tblTempUsageDetail_20' ) start [2025-02-01 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377036', 'tblTempUsageDetail_20' ) end [2025-02-01 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:12:21] Production.INFO: ==21241== Releasing lock... [2025-02-01 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:13:05 [end_date_ymd] => 2025-02-01 08:13:05 [RateCDR] => 1 ) [2025-02-01 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-01 05:13:05' and `end` < '2025-02-01 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-01 08:13:18] Production.INFO: count ==109 [2025-02-01 08:13:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:13:05 - End Time 2025-02-01 08:13:05 [2025-02-01 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377041', 'tblTempUsageDetail_20' ) start [2025-02-01 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377041', 'tblTempUsageDetail_20' ) end [2025-02-01 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377041', 'tblTempVendorCDR_20' ) start [2025-02-01 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377041', 'tblTempVendorCDR_20' ) end [2025-02-01 08:13:18] Production.INFO: ProcessCDR(1,14377041,1,1,2) [2025-02-01 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377041', 'tblTempUsageDetail_20' ) start [2025-02-01 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377041', 'tblTempUsageDetail_20' ) end [2025-02-01 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:13:21] Production.INFO: ==21326== Releasing lock... [2025-02-01 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:14:06 [end_date_ymd] => 2025-02-01 08:14:06 [RateCDR] => 1 ) [2025-02-01 08:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:14:06' and `end` < '2025-02-01 08:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:14:19] Production.INFO: count ==115 [2025-02-01 08:14:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:14:06 - End Time 2025-02-01 08:14:06 [2025-02-01 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377046', 'tblTempUsageDetail_20' ) start [2025-02-01 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377046', 'tblTempUsageDetail_20' ) end [2025-02-01 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377046', 'tblTempVendorCDR_20' ) start [2025-02-01 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377046', 'tblTempVendorCDR_20' ) end [2025-02-01 08:14:19] Production.INFO: ProcessCDR(1,14377046,1,1,2) [2025-02-01 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377046', 'tblTempUsageDetail_20' ) start [2025-02-01 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377046', 'tblTempUsageDetail_20' ) end [2025-02-01 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:14:22] Production.INFO: ==21402== Releasing lock... [2025-02-01 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:14:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:15:05 [end_date_ymd] => 2025-02-01 08:15:05 [RateCDR] => 1 ) [2025-02-01 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-01 05:15:05' and `end` < '2025-02-01 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-01 08:15:18] Production.INFO: count ==116 [2025-02-01 08:15:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:15:05 - End Time 2025-02-01 08:15:05 [2025-02-01 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377051', 'tblTempUsageDetail_20' ) start [2025-02-01 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377051', 'tblTempUsageDetail_20' ) end [2025-02-01 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377051', 'tblTempVendorCDR_20' ) start [2025-02-01 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377051', 'tblTempVendorCDR_20' ) end [2025-02-01 08:15:18] Production.INFO: ProcessCDR(1,14377051,1,1,2) [2025-02-01 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377051', 'tblTempUsageDetail_20' ) start [2025-02-01 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377051', 'tblTempUsageDetail_20' ) end [2025-02-01 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:15:21] Production.INFO: ==21481== Releasing lock... [2025-02-01 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:16:05 [end_date_ymd] => 2025-02-01 08:16:05 [RateCDR] => 1 ) [2025-02-01 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-01 05:16:05' and `end` < '2025-02-01 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-01 08:16:18] Production.INFO: count ==116 [2025-02-01 08:16:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:16:05 - End Time 2025-02-01 08:16:05 [2025-02-01 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377056', 'tblTempUsageDetail_20' ) start [2025-02-01 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377056', 'tblTempUsageDetail_20' ) end [2025-02-01 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377056', 'tblTempVendorCDR_20' ) start [2025-02-01 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377056', 'tblTempVendorCDR_20' ) end [2025-02-01 08:16:18] Production.INFO: ProcessCDR(1,14377056,1,1,2) [2025-02-01 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377056', 'tblTempUsageDetail_20' ) start [2025-02-01 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377056', 'tblTempUsageDetail_20' ) end [2025-02-01 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:16:22] Production.INFO: ==21555== Releasing lock... [2025-02-01 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:16:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:17:04 [end_date_ymd] => 2025-02-01 08:17:04 [RateCDR] => 1 ) [2025-02-01 08: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-01 05:17:04' and `end` < '2025-02-01 08: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-01 08:17:18] Production.INFO: count ==121 [2025-02-01 08:17:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:17:04 - End Time 2025-02-01 08:17:04 [2025-02-01 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377061', 'tblTempUsageDetail_20' ) start [2025-02-01 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377061', 'tblTempUsageDetail_20' ) end [2025-02-01 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377061', 'tblTempVendorCDR_20' ) start [2025-02-01 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377061', 'tblTempVendorCDR_20' ) end [2025-02-01 08:17:18] Production.INFO: ProcessCDR(1,14377061,1,1,2) [2025-02-01 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377061', 'tblTempUsageDetail_20' ) start [2025-02-01 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377061', 'tblTempUsageDetail_20' ) end [2025-02-01 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:17:22] Production.INFO: ==21640== Releasing lock... [2025-02-01 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:17:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:18:05 [end_date_ymd] => 2025-02-01 08:18:05 [RateCDR] => 1 ) [2025-02-01 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:18:05' and `end` < '2025-02-01 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:18:18] Production.INFO: count ==121 [2025-02-01 08:18:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:18:05 - End Time 2025-02-01 08:18:05 [2025-02-01 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377066', 'tblTempUsageDetail_20' ) start [2025-02-01 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377066', 'tblTempUsageDetail_20' ) end [2025-02-01 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377066', 'tblTempVendorCDR_20' ) start [2025-02-01 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377066', 'tblTempVendorCDR_20' ) end [2025-02-01 08:18:18] Production.INFO: ProcessCDR(1,14377066,1,1,2) [2025-02-01 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377066', 'tblTempUsageDetail_20' ) start [2025-02-01 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377066', 'tblTempUsageDetail_20' ) end [2025-02-01 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:18:21] Production.INFO: ==21734== Releasing lock... [2025-02-01 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:19:06 [end_date_ymd] => 2025-02-01 08:19:06 [RateCDR] => 1 ) [2025-02-01 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-01 05:19:06' and `end` < '2025-02-01 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-01 08:19:19] Production.INFO: count ==121 [2025-02-01 08:19:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:19:06 - End Time 2025-02-01 08:19:06 [2025-02-01 08:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377071', 'tblTempUsageDetail_20' ) start [2025-02-01 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377071', 'tblTempUsageDetail_20' ) end [2025-02-01 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377071', 'tblTempVendorCDR_20' ) start [2025-02-01 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377071', 'tblTempVendorCDR_20' ) end [2025-02-01 08:19:19] Production.INFO: ProcessCDR(1,14377071,1,1,2) [2025-02-01 08:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377071', 'tblTempUsageDetail_20' ) start [2025-02-01 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377071', 'tblTempUsageDetail_20' ) end [2025-02-01 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:19:22] Production.INFO: ==21812== Releasing lock... [2025-02-01 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:19:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:20:05 [end_date_ymd] => 2025-02-01 08:20:05 [RateCDR] => 1 ) [2025-02-01 08: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-01 05:20:05' and `end` < '2025-02-01 08: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-01 08:20:19] Production.INFO: count ==121 [2025-02-01 08:20:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:20:05 - End Time 2025-02-01 08:20:05 [2025-02-01 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377077', 'tblTempUsageDetail_20' ) start [2025-02-01 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377077', 'tblTempUsageDetail_20' ) end [2025-02-01 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377077', 'tblTempVendorCDR_20' ) start [2025-02-01 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377077', 'tblTempVendorCDR_20' ) end [2025-02-01 08:20:19] Production.INFO: ProcessCDR(1,14377077,1,1,2) [2025-02-01 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377077', 'tblTempUsageDetail_20' ) start [2025-02-01 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377077', 'tblTempUsageDetail_20' ) end [2025-02-01 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:20:22] Production.INFO: ==21890== Releasing lock... [2025-02-01 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:21:05 [end_date_ymd] => 2025-02-01 08:21:05 [RateCDR] => 1 ) [2025-02-01 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-01 05:21:05' and `end` < '2025-02-01 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-01 08:21:19] Production.INFO: count ==119 [2025-02-01 08:21:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:21:05 - End Time 2025-02-01 08:21:05 [2025-02-01 08:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377082', 'tblTempUsageDetail_20' ) start [2025-02-01 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377082', 'tblTempUsageDetail_20' ) end [2025-02-01 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377082', 'tblTempVendorCDR_20' ) start [2025-02-01 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377082', 'tblTempVendorCDR_20' ) end [2025-02-01 08:21:19] Production.INFO: ProcessCDR(1,14377082,1,1,2) [2025-02-01 08:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377082', 'tblTempUsageDetail_20' ) start [2025-02-01 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377082', 'tblTempUsageDetail_20' ) end [2025-02-01 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:21:22] Production.INFO: ==21973== Releasing lock... [2025-02-01 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:21:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:22:05 [end_date_ymd] => 2025-02-01 08:22:05 [RateCDR] => 1 ) [2025-02-01 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-01 05:22:05' and `end` < '2025-02-01 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-01 08:22:18] Production.INFO: count ==119 [2025-02-01 08:22:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:22:05 - End Time 2025-02-01 08:22:05 [2025-02-01 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377087', 'tblTempUsageDetail_20' ) start [2025-02-01 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377087', 'tblTempUsageDetail_20' ) end [2025-02-01 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377087', 'tblTempVendorCDR_20' ) start [2025-02-01 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377087', 'tblTempVendorCDR_20' ) end [2025-02-01 08:22:18] Production.INFO: ProcessCDR(1,14377087,1,1,2) [2025-02-01 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377087', 'tblTempUsageDetail_20' ) start [2025-02-01 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377087', 'tblTempUsageDetail_20' ) end [2025-02-01 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:22:21] Production.INFO: ==22049== Releasing lock... [2025-02-01 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:23:05 [end_date_ymd] => 2025-02-01 08:23:05 [RateCDR] => 1 ) [2025-02-01 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-01 05:23:05' and `end` < '2025-02-01 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-01 08:23:19] Production.INFO: count ==119 [2025-02-01 08:23:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:23:05 - End Time 2025-02-01 08:23:05 [2025-02-01 08:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377092', 'tblTempUsageDetail_20' ) start [2025-02-01 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377092', 'tblTempUsageDetail_20' ) end [2025-02-01 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377092', 'tblTempVendorCDR_20' ) start [2025-02-01 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377092', 'tblTempVendorCDR_20' ) end [2025-02-01 08:23:19] Production.INFO: ProcessCDR(1,14377092,1,1,2) [2025-02-01 08:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377092', 'tblTempUsageDetail_20' ) start [2025-02-01 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377092', 'tblTempUsageDetail_20' ) end [2025-02-01 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:23:22] Production.INFO: ==22163== Releasing lock... [2025-02-01 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:24:05 [end_date_ymd] => 2025-02-01 08:24:05 [RateCDR] => 1 ) [2025-02-01 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-01 05:24:05' and `end` < '2025-02-01 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-01 08:24:18] Production.INFO: count ==120 [2025-02-01 08:24:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:24:05 - End Time 2025-02-01 08:24:05 [2025-02-01 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377097', 'tblTempUsageDetail_20' ) start [2025-02-01 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377097', 'tblTempUsageDetail_20' ) end [2025-02-01 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377097', 'tblTempVendorCDR_20' ) start [2025-02-01 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377097', 'tblTempVendorCDR_20' ) end [2025-02-01 08:24:18] Production.INFO: ProcessCDR(1,14377097,1,1,2) [2025-02-01 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377097', 'tblTempUsageDetail_20' ) start [2025-02-01 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377097', 'tblTempUsageDetail_20' ) end [2025-02-01 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:24:23] Production.INFO: ==22239== Releasing lock... [2025-02-01 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:24:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:25:05 [end_date_ymd] => 2025-02-01 08:25:05 [RateCDR] => 1 ) [2025-02-01 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-01 05:25:05' and `end` < '2025-02-01 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-01 08:25:19] Production.INFO: count ==120 [2025-02-01 08:25:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:25:05 - End Time 2025-02-01 08:25:05 [2025-02-01 08:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377102', 'tblTempUsageDetail_20' ) start [2025-02-01 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377102', 'tblTempUsageDetail_20' ) end [2025-02-01 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377102', 'tblTempVendorCDR_20' ) start [2025-02-01 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377102', 'tblTempVendorCDR_20' ) end [2025-02-01 08:25:19] Production.INFO: ProcessCDR(1,14377102,1,1,2) [2025-02-01 08:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377102', 'tblTempUsageDetail_20' ) start [2025-02-01 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377102', 'tblTempUsageDetail_20' ) end [2025-02-01 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:25:22] Production.INFO: ==22314== Releasing lock... [2025-02-01 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:25:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:26:05 [end_date_ymd] => 2025-02-01 08:26:05 [RateCDR] => 1 ) [2025-02-01 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-01 05:26:05' and `end` < '2025-02-01 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-01 08:26:19] Production.INFO: count ==120 [2025-02-01 08:26:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:26:05 - End Time 2025-02-01 08:26:05 [2025-02-01 08:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377107', 'tblTempUsageDetail_20' ) start [2025-02-01 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377107', 'tblTempUsageDetail_20' ) end [2025-02-01 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377107', 'tblTempVendorCDR_20' ) start [2025-02-01 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377107', 'tblTempVendorCDR_20' ) end [2025-02-01 08:26:19] Production.INFO: ProcessCDR(1,14377107,1,1,2) [2025-02-01 08:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377107', 'tblTempUsageDetail_20' ) start [2025-02-01 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377107', 'tblTempUsageDetail_20' ) end [2025-02-01 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:26:22] Production.INFO: ==22396== Releasing lock... [2025-02-01 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:26:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:27:05 [end_date_ymd] => 2025-02-01 08:27:05 [RateCDR] => 1 ) [2025-02-01 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-01 05:27:05' and `end` < '2025-02-01 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-01 08:27:18] Production.INFO: count ==120 [2025-02-01 08:27:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:27:05 - End Time 2025-02-01 08:27:05 [2025-02-01 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377112', 'tblTempUsageDetail_20' ) start [2025-02-01 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377112', 'tblTempUsageDetail_20' ) end [2025-02-01 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377112', 'tblTempVendorCDR_20' ) start [2025-02-01 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377112', 'tblTempVendorCDR_20' ) end [2025-02-01 08:27:18] Production.INFO: ProcessCDR(1,14377112,1,1,2) [2025-02-01 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377112', 'tblTempUsageDetail_20' ) start [2025-02-01 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377112', 'tblTempUsageDetail_20' ) end [2025-02-01 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:27:21] Production.INFO: ==22476== Releasing lock... [2025-02-01 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-01 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:28:05 [end_date_ymd] => 2025-02-01 08:28:05 [RateCDR] => 1 ) [2025-02-01 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-01 05:28:05' and `end` < '2025-02-01 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-01 08:28:17] Production.INFO: count ==125 [2025-02-01 08:28:17] Production.ERROR: pbx CDR StartTime 2025-02-01 05:28:05 - End Time 2025-02-01 08:28:05 [2025-02-01 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377117', 'tblTempUsageDetail_20' ) start [2025-02-01 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377117', 'tblTempUsageDetail_20' ) end [2025-02-01 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377117', 'tblTempVendorCDR_20' ) start [2025-02-01 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377117', 'tblTempVendorCDR_20' ) end [2025-02-01 08:28:18] Production.INFO: ProcessCDR(1,14377117,1,1,2) [2025-02-01 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377117', 'tblTempUsageDetail_20' ) start [2025-02-01 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377117', 'tblTempUsageDetail_20' ) end [2025-02-01 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:28:21] Production.INFO: ==22545== Releasing lock... [2025-02-01 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 08:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:29:04 [end_date_ymd] => 2025-02-01 08:29:04 [RateCDR] => 1 ) [2025-02-01 08:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:29:04' and `end` < '2025-02-01 08:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:29:18] Production.INFO: count ==125 [2025-02-01 08:29:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:29:04 - End Time 2025-02-01 08:29:04 [2025-02-01 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377122', 'tblTempUsageDetail_20' ) start [2025-02-01 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377122', 'tblTempUsageDetail_20' ) end [2025-02-01 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377122', 'tblTempVendorCDR_20' ) start [2025-02-01 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377122', 'tblTempVendorCDR_20' ) end [2025-02-01 08:29:18] Production.INFO: ProcessCDR(1,14377122,1,1,2) [2025-02-01 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377122', 'tblTempUsageDetail_20' ) start [2025-02-01 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377122', 'tblTempUsageDetail_20' ) end [2025-02-01 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:29:21] Production.INFO: ==22615== Releasing lock... [2025-02-01 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:30:06 [end_date_ymd] => 2025-02-01 08:30:06 [RateCDR] => 1 ) [2025-02-01 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-01 05:30:06' and `end` < '2025-02-01 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-01 08:30:18] Production.INFO: count ==127 [2025-02-01 08:30:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:30:06 - End Time 2025-02-01 08:30:06 [2025-02-01 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377128', 'tblTempUsageDetail_20' ) start [2025-02-01 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377128', 'tblTempUsageDetail_20' ) end [2025-02-01 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377128', 'tblTempVendorCDR_20' ) start [2025-02-01 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377128', 'tblTempVendorCDR_20' ) end [2025-02-01 08:30:18] Production.INFO: ProcessCDR(1,14377128,1,1,2) [2025-02-01 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377128', 'tblTempUsageDetail_20' ) start [2025-02-01 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377128', 'tblTempUsageDetail_20' ) end [2025-02-01 08:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:30:21] Production.INFO: ==22691== Releasing lock... [2025-02-01 08:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:30:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:31:05 [end_date_ymd] => 2025-02-01 08:31:05 [RateCDR] => 1 ) [2025-02-01 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-01 05:31:05' and `end` < '2025-02-01 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-01 08:31:18] Production.INFO: count ==128 [2025-02-01 08:31:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:31:05 - End Time 2025-02-01 08:31:05 [2025-02-01 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377133', 'tblTempUsageDetail_20' ) start [2025-02-01 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377133', 'tblTempUsageDetail_20' ) end [2025-02-01 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377133', 'tblTempVendorCDR_20' ) start [2025-02-01 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377133', 'tblTempVendorCDR_20' ) end [2025-02-01 08:31:18] Production.INFO: ProcessCDR(1,14377133,1,1,2) [2025-02-01 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377133', 'tblTempUsageDetail_20' ) start [2025-02-01 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377133', 'tblTempUsageDetail_20' ) end [2025-02-01 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:31:21] Production.INFO: ==22765== Releasing lock... [2025-02-01 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:32:05 [end_date_ymd] => 2025-02-01 08:32:05 [RateCDR] => 1 ) [2025-02-01 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:32:05' and `end` < '2025-02-01 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:32:19] Production.INFO: count ==128 [2025-02-01 08:32:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:32:05 - End Time 2025-02-01 08:32:05 [2025-02-01 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377138', 'tblTempUsageDetail_20' ) start [2025-02-01 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377138', 'tblTempUsageDetail_20' ) end [2025-02-01 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377138', 'tblTempVendorCDR_20' ) start [2025-02-01 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377138', 'tblTempVendorCDR_20' ) end [2025-02-01 08:32:19] Production.INFO: ProcessCDR(1,14377138,1,1,2) [2025-02-01 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377138', 'tblTempUsageDetail_20' ) start [2025-02-01 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377138', 'tblTempUsageDetail_20' ) end [2025-02-01 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:32:22] Production.INFO: ==22840== Releasing lock... [2025-02-01 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:32:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:33:05 [end_date_ymd] => 2025-02-01 08:33:05 [RateCDR] => 1 ) [2025-02-01 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:33:05' and `end` < '2025-02-01 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:33:20] Production.INFO: count ==128 [2025-02-01 08:33:20] Production.ERROR: pbx CDR StartTime 2025-02-01 05:33:05 - End Time 2025-02-01 08:33:05 [2025-02-01 08:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377143', 'tblTempUsageDetail_20' ) start [2025-02-01 08:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377143', 'tblTempUsageDetail_20' ) end [2025-02-01 08:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377143', 'tblTempVendorCDR_20' ) start [2025-02-01 08:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377143', 'tblTempVendorCDR_20' ) end [2025-02-01 08:33:20] Production.INFO: ProcessCDR(1,14377143,1,1,2) [2025-02-01 08:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377143', 'tblTempUsageDetail_20' ) start [2025-02-01 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377143', 'tblTempUsageDetail_20' ) end [2025-02-01 08:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:33:23] Production.INFO: ==22915== Releasing lock... [2025-02-01 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:33:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 08:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:34:04 [end_date_ymd] => 2025-02-01 08:34:04 [RateCDR] => 1 ) [2025-02-01 08:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:34:04' and `end` < '2025-02-01 08:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:34:17] Production.INFO: count ==128 [2025-02-01 08:34:17] Production.ERROR: pbx CDR StartTime 2025-02-01 05:34:04 - End Time 2025-02-01 08:34:04 [2025-02-01 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377148', 'tblTempUsageDetail_20' ) start [2025-02-01 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377148', 'tblTempUsageDetail_20' ) end [2025-02-01 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377148', 'tblTempVendorCDR_20' ) start [2025-02-01 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377148', 'tblTempVendorCDR_20' ) end [2025-02-01 08:34:17] Production.INFO: ProcessCDR(1,14377148,1,1,2) [2025-02-01 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377148', 'tblTempUsageDetail_20' ) start [2025-02-01 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377148', 'tblTempUsageDetail_20' ) end [2025-02-01 08:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:34:20] Production.INFO: ==22986== Releasing lock... [2025-02-01 08:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:34:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:35:05 [end_date_ymd] => 2025-02-01 08:35:05 [RateCDR] => 1 ) [2025-02-01 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:35:05' and `end` < '2025-02-01 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:35:19] Production.INFO: count ==130 [2025-02-01 08:35:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:35:05 - End Time 2025-02-01 08:35:05 [2025-02-01 08:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377153', 'tblTempUsageDetail_20' ) start [2025-02-01 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377153', 'tblTempUsageDetail_20' ) end [2025-02-01 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377153', 'tblTempVendorCDR_20' ) start [2025-02-01 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377153', 'tblTempVendorCDR_20' ) end [2025-02-01 08:35:19] Production.INFO: ProcessCDR(1,14377153,1,1,2) [2025-02-01 08:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377153', 'tblTempUsageDetail_20' ) start [2025-02-01 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377153', 'tblTempUsageDetail_20' ) end [2025-02-01 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:35:22] Production.INFO: ==23056== Releasing lock... [2025-02-01 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:35:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:36:05 [end_date_ymd] => 2025-02-01 08:36:05 [RateCDR] => 1 ) [2025-02-01 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:36:05' and `end` < '2025-02-01 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:36:18] Production.INFO: count ==135 [2025-02-01 08:36:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:36:05 - End Time 2025-02-01 08:36:05 [2025-02-01 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377158', 'tblTempUsageDetail_20' ) start [2025-02-01 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377158', 'tblTempUsageDetail_20' ) end [2025-02-01 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377158', 'tblTempVendorCDR_20' ) start [2025-02-01 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377158', 'tblTempVendorCDR_20' ) end [2025-02-01 08:36:18] Production.INFO: ProcessCDR(1,14377158,1,1,2) [2025-02-01 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377158', 'tblTempUsageDetail_20' ) start [2025-02-01 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377158', 'tblTempUsageDetail_20' ) end [2025-02-01 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:36:21] Production.INFO: ==23128== Releasing lock... [2025-02-01 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:37:05 [end_date_ymd] => 2025-02-01 08:37:05 [RateCDR] => 1 ) [2025-02-01 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:37:05' and `end` < '2025-02-01 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:37:17] Production.INFO: count ==140 [2025-02-01 08:37:17] Production.ERROR: pbx CDR StartTime 2025-02-01 05:37:05 - End Time 2025-02-01 08:37:05 [2025-02-01 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377163', 'tblTempUsageDetail_20' ) start [2025-02-01 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377163', 'tblTempUsageDetail_20' ) end [2025-02-01 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377163', 'tblTempVendorCDR_20' ) start [2025-02-01 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377163', 'tblTempVendorCDR_20' ) end [2025-02-01 08:37:17] Production.INFO: ProcessCDR(1,14377163,1,1,2) [2025-02-01 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377163', 'tblTempUsageDetail_20' ) start [2025-02-01 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377163', 'tblTempUsageDetail_20' ) end [2025-02-01 08:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:37:20] Production.INFO: ==23204== Releasing lock... [2025-02-01 08:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:37:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:38:06 [end_date_ymd] => 2025-02-01 08:38:06 [RateCDR] => 1 ) [2025-02-01 08:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:38:06' and `end` < '2025-02-01 08:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:38:18] Production.INFO: count ==138 [2025-02-01 08:38:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:38:06 - End Time 2025-02-01 08:38:06 [2025-02-01 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377168', 'tblTempUsageDetail_20' ) start [2025-02-01 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377168', 'tblTempUsageDetail_20' ) end [2025-02-01 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377168', 'tblTempVendorCDR_20' ) start [2025-02-01 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377168', 'tblTempVendorCDR_20' ) end [2025-02-01 08:38:18] Production.INFO: ProcessCDR(1,14377168,1,1,2) [2025-02-01 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377168', 'tblTempUsageDetail_20' ) start [2025-02-01 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377168', 'tblTempUsageDetail_20' ) end [2025-02-01 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:38:22] Production.INFO: ==23289== Releasing lock... [2025-02-01 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:38:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:39:05 [end_date_ymd] => 2025-02-01 08:39:05 [RateCDR] => 1 ) [2025-02-01 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:39:05' and `end` < '2025-02-01 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:39:18] Production.INFO: count ==138 [2025-02-01 08:39:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:39:05 - End Time 2025-02-01 08:39:05 [2025-02-01 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377173', 'tblTempUsageDetail_20' ) start [2025-02-01 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377173', 'tblTempUsageDetail_20' ) end [2025-02-01 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377173', 'tblTempVendorCDR_20' ) start [2025-02-01 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377173', 'tblTempVendorCDR_20' ) end [2025-02-01 08:39:18] Production.INFO: ProcessCDR(1,14377173,1,1,2) [2025-02-01 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377173', 'tblTempUsageDetail_20' ) start [2025-02-01 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377173', 'tblTempUsageDetail_20' ) end [2025-02-01 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:39:21] Production.INFO: ==23409== Releasing lock... [2025-02-01 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:40:05 [end_date_ymd] => 2025-02-01 08:40:05 [RateCDR] => 1 ) [2025-02-01 08: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-01 05:40:05' and `end` < '2025-02-01 08: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-01 08:40:18] Production.INFO: count ==142 [2025-02-01 08:40:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:40:05 - End Time 2025-02-01 08:40:05 [2025-02-01 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377179', 'tblTempUsageDetail_20' ) start [2025-02-01 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377179', 'tblTempUsageDetail_20' ) end [2025-02-01 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377179', 'tblTempVendorCDR_20' ) start [2025-02-01 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377179', 'tblTempVendorCDR_20' ) end [2025-02-01 08:40:18] Production.INFO: ProcessCDR(1,14377179,1,1,2) [2025-02-01 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377179', 'tblTempUsageDetail_20' ) start [2025-02-01 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377179', 'tblTempUsageDetail_20' ) end [2025-02-01 08:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:40:21] Production.INFO: ==23500== Releasing lock... [2025-02-01 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:40:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-01 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:41:05 [end_date_ymd] => 2025-02-01 08:41:05 [RateCDR] => 1 ) [2025-02-01 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:41:05' and `end` < '2025-02-01 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:41:20] Production.INFO: count ==157 [2025-02-01 08:41:20] Production.ERROR: pbx CDR StartTime 2025-02-01 05:41:05 - End Time 2025-02-01 08:41:05 [2025-02-01 08:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377184', 'tblTempUsageDetail_20' ) start [2025-02-01 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377184', 'tblTempUsageDetail_20' ) end [2025-02-01 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377184', 'tblTempVendorCDR_20' ) start [2025-02-01 08:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377184', 'tblTempVendorCDR_20' ) end [2025-02-01 08:41:20] Production.INFO: ProcessCDR(1,14377184,1,1,2) [2025-02-01 08:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377184', 'tblTempUsageDetail_20' ) start [2025-02-01 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377184', 'tblTempUsageDetail_20' ) end [2025-02-01 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:41:23] Production.INFO: ==23582== Releasing lock... [2025-02-01 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:41:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:42:05 [end_date_ymd] => 2025-02-01 08:42:05 [RateCDR] => 1 ) [2025-02-01 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:42:05' and `end` < '2025-02-01 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:42:19] Production.INFO: count ==163 [2025-02-01 08:42:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:42:05 - End Time 2025-02-01 08:42:05 [2025-02-01 08:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377189', 'tblTempUsageDetail_20' ) start [2025-02-01 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377189', 'tblTempUsageDetail_20' ) end [2025-02-01 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377189', 'tblTempVendorCDR_20' ) start [2025-02-01 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377189', 'tblTempVendorCDR_20' ) end [2025-02-01 08:42:19] Production.INFO: ProcessCDR(1,14377189,1,1,2) [2025-02-01 08:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377189', 'tblTempUsageDetail_20' ) start [2025-02-01 08:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377189', 'tblTempUsageDetail_20' ) end [2025-02-01 08:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:42:24] Production.INFO: ==23661== Releasing lock... [2025-02-01 08:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:42:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:43:05 [end_date_ymd] => 2025-02-01 08:43:05 [RateCDR] => 1 ) [2025-02-01 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:43:05' and `end` < '2025-02-01 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:43:17] Production.INFO: count ==163 [2025-02-01 08:43:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:43:05 - End Time 2025-02-01 08:43:05 [2025-02-01 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377194', 'tblTempUsageDetail_20' ) start [2025-02-01 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377194', 'tblTempUsageDetail_20' ) end [2025-02-01 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377194', 'tblTempVendorCDR_20' ) start [2025-02-01 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377194', 'tblTempVendorCDR_20' ) end [2025-02-01 08:43:18] Production.INFO: ProcessCDR(1,14377194,1,1,2) [2025-02-01 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377194', 'tblTempUsageDetail_20' ) start [2025-02-01 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377194', 'tblTempUsageDetail_20' ) end [2025-02-01 08:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:43:20] Production.INFO: ==23744== Releasing lock... [2025-02-01 08:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:43:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:44:05 [end_date_ymd] => 2025-02-01 08:44:05 [RateCDR] => 1 ) [2025-02-01 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:44:05' and `end` < '2025-02-01 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:44:19] Production.INFO: count ==163 [2025-02-01 08:44:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:44:05 - End Time 2025-02-01 08:44:05 [2025-02-01 08:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377199', 'tblTempUsageDetail_20' ) start [2025-02-01 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377199', 'tblTempUsageDetail_20' ) end [2025-02-01 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377199', 'tblTempVendorCDR_20' ) start [2025-02-01 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377199', 'tblTempVendorCDR_20' ) end [2025-02-01 08:44:19] Production.INFO: ProcessCDR(1,14377199,1,1,2) [2025-02-01 08:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377199', 'tblTempUsageDetail_20' ) start [2025-02-01 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377199', 'tblTempUsageDetail_20' ) end [2025-02-01 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:44:22] Production.INFO: ==23827== Releasing lock... [2025-02-01 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:45:05 [end_date_ymd] => 2025-02-01 08:45:05 [RateCDR] => 1 ) [2025-02-01 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:45:05' and `end` < '2025-02-01 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:45:18] Production.INFO: count ==164 [2025-02-01 08:45:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:45:05 - End Time 2025-02-01 08:45:05 [2025-02-01 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377204', 'tblTempUsageDetail_20' ) start [2025-02-01 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377204', 'tblTempUsageDetail_20' ) end [2025-02-01 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377204', 'tblTempVendorCDR_20' ) start [2025-02-01 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377204', 'tblTempVendorCDR_20' ) end [2025-02-01 08:45:18] Production.INFO: ProcessCDR(1,14377204,1,1,2) [2025-02-01 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377204', 'tblTempUsageDetail_20' ) start [2025-02-01 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377204', 'tblTempUsageDetail_20' ) end [2025-02-01 08:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:45:22] Production.INFO: ==23918== Releasing lock... [2025-02-01 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:45:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:46:05 [end_date_ymd] => 2025-02-01 08:46:05 [RateCDR] => 1 ) [2025-02-01 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:46:05' and `end` < '2025-02-01 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:46:19] Production.INFO: count ==164 [2025-02-01 08:46:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:46:05 - End Time 2025-02-01 08:46:05 [2025-02-01 08:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377209', 'tblTempUsageDetail_20' ) start [2025-02-01 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377209', 'tblTempUsageDetail_20' ) end [2025-02-01 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377209', 'tblTempVendorCDR_20' ) start [2025-02-01 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377209', 'tblTempVendorCDR_20' ) end [2025-02-01 08:46:19] Production.INFO: ProcessCDR(1,14377209,1,1,2) [2025-02-01 08:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377209', 'tblTempUsageDetail_20' ) start [2025-02-01 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377209', 'tblTempUsageDetail_20' ) end [2025-02-01 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:46:22] Production.INFO: ==24003== Releasing lock... [2025-02-01 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:46:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:47:05 [end_date_ymd] => 2025-02-01 08:47:05 [RateCDR] => 1 ) [2025-02-01 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:47:05' and `end` < '2025-02-01 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:47:18] Production.INFO: count ==166 [2025-02-01 08:47:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:47:05 - End Time 2025-02-01 08:47:05 [2025-02-01 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377214', 'tblTempUsageDetail_20' ) start [2025-02-01 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377214', 'tblTempUsageDetail_20' ) end [2025-02-01 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377214', 'tblTempVendorCDR_20' ) start [2025-02-01 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377214', 'tblTempVendorCDR_20' ) end [2025-02-01 08:47:18] Production.INFO: ProcessCDR(1,14377214,1,1,2) [2025-02-01 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377214', 'tblTempUsageDetail_20' ) start [2025-02-01 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377214', 'tblTempUsageDetail_20' ) end [2025-02-01 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:47:21] Production.INFO: ==24089== Releasing lock... [2025-02-01 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:48:05 [end_date_ymd] => 2025-02-01 08:48:05 [RateCDR] => 1 ) [2025-02-01 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:48:05' and `end` < '2025-02-01 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:48:19] Production.INFO: count ==167 [2025-02-01 08:48:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:48:05 - End Time 2025-02-01 08:48:05 [2025-02-01 08:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377219', 'tblTempUsageDetail_20' ) start [2025-02-01 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377219', 'tblTempUsageDetail_20' ) end [2025-02-01 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377219', 'tblTempVendorCDR_20' ) start [2025-02-01 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377219', 'tblTempVendorCDR_20' ) end [2025-02-01 08:48:19] Production.INFO: ProcessCDR(1,14377219,1,1,2) [2025-02-01 08:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377219', 'tblTempUsageDetail_20' ) start [2025-02-01 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377219', 'tblTempUsageDetail_20' ) end [2025-02-01 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:48:23] Production.INFO: ==24174== Releasing lock... [2025-02-01 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:48:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:49:05 [end_date_ymd] => 2025-02-01 08:49:05 [RateCDR] => 1 ) [2025-02-01 08: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-01 05:49:05' and `end` < '2025-02-01 08: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-01 08:49:19] Production.INFO: count ==167 [2025-02-01 08:49:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:49:05 - End Time 2025-02-01 08:49:05 [2025-02-01 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377224', 'tblTempUsageDetail_20' ) start [2025-02-01 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377224', 'tblTempUsageDetail_20' ) end [2025-02-01 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377224', 'tblTempVendorCDR_20' ) start [2025-02-01 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377224', 'tblTempVendorCDR_20' ) end [2025-02-01 08:49:19] Production.INFO: ProcessCDR(1,14377224,1,1,2) [2025-02-01 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377224', 'tblTempUsageDetail_20' ) start [2025-02-01 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377224', 'tblTempUsageDetail_20' ) end [2025-02-01 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:49:22] Production.INFO: ==24251== Releasing lock... [2025-02-01 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:49:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-01 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:50:05 [end_date_ymd] => 2025-02-01 08:50:05 [RateCDR] => 1 ) [2025-02-01 08: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-01 05:50:05' and `end` < '2025-02-01 08: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-01 08:50:19] Production.INFO: count ==174 [2025-02-01 08:50:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:50:05 - End Time 2025-02-01 08:50:05 [2025-02-01 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377230', 'tblTempUsageDetail_20' ) start [2025-02-01 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377230', 'tblTempUsageDetail_20' ) end [2025-02-01 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377230', 'tblTempVendorCDR_20' ) start [2025-02-01 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377230', 'tblTempVendorCDR_20' ) end [2025-02-01 08:50:19] Production.INFO: ProcessCDR(1,14377230,1,1,2) [2025-02-01 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377230', 'tblTempUsageDetail_20' ) start [2025-02-01 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377230', 'tblTempUsageDetail_20' ) end [2025-02-01 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:50:22] Production.INFO: ==24327== Releasing lock... [2025-02-01 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:50:22] Production.INFO: 29 MB #Memory Used# [2025-02-01 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:51:05 [end_date_ymd] => 2025-02-01 08:51:05 [RateCDR] => 1 ) [2025-02-01 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-01 05:51:05' and `end` < '2025-02-01 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-01 08:51:18] Production.INFO: count ==176 [2025-02-01 08:51:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:51:05 - End Time 2025-02-01 08:51:05 [2025-02-01 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377235', 'tblTempUsageDetail_20' ) start [2025-02-01 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377235', 'tblTempUsageDetail_20' ) end [2025-02-01 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377235', 'tblTempVendorCDR_20' ) start [2025-02-01 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377235', 'tblTempVendorCDR_20' ) end [2025-02-01 08:51:18] Production.INFO: ProcessCDR(1,14377235,1,1,2) [2025-02-01 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377235', 'tblTempUsageDetail_20' ) start [2025-02-01 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377235', 'tblTempUsageDetail_20' ) end [2025-02-01 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:51:21] Production.INFO: ==24404== Releasing lock... [2025-02-01 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:51:21] Production.INFO: 29 MB #Memory Used# [2025-02-01 08:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:52:04 [end_date_ymd] => 2025-02-01 08:52:04 [RateCDR] => 1 ) [2025-02-01 08:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:52:04' and `end` < '2025-02-01 08:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:52:19] Production.INFO: count ==176 [2025-02-01 08:52:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:52:04 - End Time 2025-02-01 08:52:04 [2025-02-01 08:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377240', 'tblTempUsageDetail_20' ) start [2025-02-01 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377240', 'tblTempUsageDetail_20' ) end [2025-02-01 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377240', 'tblTempVendorCDR_20' ) start [2025-02-01 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377240', 'tblTempVendorCDR_20' ) end [2025-02-01 08:52:19] Production.INFO: ProcessCDR(1,14377240,1,1,2) [2025-02-01 08:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377240', 'tblTempUsageDetail_20' ) start [2025-02-01 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377240', 'tblTempUsageDetail_20' ) end [2025-02-01 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:52:22] Production.INFO: ==24478== Releasing lock... [2025-02-01 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:52:22] Production.INFO: 29 MB #Memory Used# [2025-02-01 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:53:05 [end_date_ymd] => 2025-02-01 08:53:05 [RateCDR] => 1 ) [2025-02-01 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:53:05' and `end` < '2025-02-01 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:53:18] Production.INFO: count ==178 [2025-02-01 08:53:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:53:05 - End Time 2025-02-01 08:53:05 [2025-02-01 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377245', 'tblTempUsageDetail_20' ) start [2025-02-01 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377245', 'tblTempUsageDetail_20' ) end [2025-02-01 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377245', 'tblTempVendorCDR_20' ) start [2025-02-01 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377245', 'tblTempVendorCDR_20' ) end [2025-02-01 08:53:18] Production.INFO: ProcessCDR(1,14377245,1,1,2) [2025-02-01 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377245', 'tblTempUsageDetail_20' ) start [2025-02-01 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377245', 'tblTempUsageDetail_20' ) end [2025-02-01 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:53:21] Production.INFO: ==24557== Releasing lock... [2025-02-01 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:53:21] Production.INFO: 29 MB #Memory Used# [2025-02-01 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:54:05 [end_date_ymd] => 2025-02-01 08:54:05 [RateCDR] => 1 ) [2025-02-01 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:54:05' and `end` < '2025-02-01 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:54:18] Production.INFO: count ==178 [2025-02-01 08:54:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:54:05 - End Time 2025-02-01 08:54:05 [2025-02-01 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377250', 'tblTempUsageDetail_20' ) start [2025-02-01 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377250', 'tblTempUsageDetail_20' ) end [2025-02-01 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377250', 'tblTempVendorCDR_20' ) start [2025-02-01 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377250', 'tblTempVendorCDR_20' ) end [2025-02-01 08:54:18] Production.INFO: ProcessCDR(1,14377250,1,1,2) [2025-02-01 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377250', 'tblTempUsageDetail_20' ) start [2025-02-01 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377250', 'tblTempUsageDetail_20' ) end [2025-02-01 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:54:21] Production.INFO: ==24667== Releasing lock... [2025-02-01 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:54:21] Production.INFO: 29 MB #Memory Used# [2025-02-01 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:55:05 [end_date_ymd] => 2025-02-01 08:55:05 [RateCDR] => 1 ) [2025-02-01 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-01 05:55:05' and `end` < '2025-02-01 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-01 08:55:18] Production.INFO: count ==178 [2025-02-01 08:55:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:55:05 - End Time 2025-02-01 08:55:05 [2025-02-01 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377255', 'tblTempUsageDetail_20' ) start [2025-02-01 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377255', 'tblTempUsageDetail_20' ) end [2025-02-01 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377255', 'tblTempVendorCDR_20' ) start [2025-02-01 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377255', 'tblTempVendorCDR_20' ) end [2025-02-01 08:55:18] Production.INFO: ProcessCDR(1,14377255,1,1,2) [2025-02-01 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377255', 'tblTempUsageDetail_20' ) start [2025-02-01 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377255', 'tblTempUsageDetail_20' ) end [2025-02-01 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:55:21] Production.INFO: ==24743== Releasing lock... [2025-02-01 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:55:21] Production.INFO: 29 MB #Memory Used# [2025-02-01 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:56:05 [end_date_ymd] => 2025-02-01 08:56:05 [RateCDR] => 1 ) [2025-02-01 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:56:05' and `end` < '2025-02-01 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:56:19] Production.INFO: count ==178 [2025-02-01 08:56:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:56:05 - End Time 2025-02-01 08:56:05 [2025-02-01 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377260', 'tblTempUsageDetail_20' ) start [2025-02-01 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377260', 'tblTempUsageDetail_20' ) end [2025-02-01 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377260', 'tblTempVendorCDR_20' ) start [2025-02-01 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377260', 'tblTempVendorCDR_20' ) end [2025-02-01 08:56:19] Production.INFO: ProcessCDR(1,14377260,1,1,2) [2025-02-01 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377260', 'tblTempUsageDetail_20' ) start [2025-02-01 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377260', 'tblTempUsageDetail_20' ) end [2025-02-01 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:56:22] Production.INFO: ==24819== Releasing lock... [2025-02-01 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:56:22] Production.INFO: 29 MB #Memory Used# [2025-02-01 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:57:05 [end_date_ymd] => 2025-02-01 08:57:05 [RateCDR] => 1 ) [2025-02-01 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-01 05:57:05' and `end` < '2025-02-01 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-01 08:57:18] Production.INFO: count ==178 [2025-02-01 08:57:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:57:05 - End Time 2025-02-01 08:57:05 [2025-02-01 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377265', 'tblTempUsageDetail_20' ) start [2025-02-01 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377265', 'tblTempUsageDetail_20' ) end [2025-02-01 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377265', 'tblTempVendorCDR_20' ) start [2025-02-01 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377265', 'tblTempVendorCDR_20' ) end [2025-02-01 08:57:18] Production.INFO: ProcessCDR(1,14377265,1,1,2) [2025-02-01 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377265', 'tblTempUsageDetail_20' ) start [2025-02-01 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377265', 'tblTempUsageDetail_20' ) end [2025-02-01 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:57:22] Production.INFO: ==24898== Releasing lock... [2025-02-01 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:57:22] Production.INFO: 29 MB #Memory Used# [2025-02-01 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:58:05 [end_date_ymd] => 2025-02-01 08:58:05 [RateCDR] => 1 ) [2025-02-01 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:58:05' and `end` < '2025-02-01 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:58:18] Production.INFO: count ==186 [2025-02-01 08:58:18] Production.ERROR: pbx CDR StartTime 2025-02-01 05:58:05 - End Time 2025-02-01 08:58:05 [2025-02-01 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377270', 'tblTempUsageDetail_20' ) start [2025-02-01 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377270', 'tblTempUsageDetail_20' ) end [2025-02-01 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377270', 'tblTempVendorCDR_20' ) start [2025-02-01 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377270', 'tblTempVendorCDR_20' ) end [2025-02-01 08:58:18] Production.INFO: ProcessCDR(1,14377270,1,1,2) [2025-02-01 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377270', 'tblTempUsageDetail_20' ) start [2025-02-01 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377270', 'tblTempUsageDetail_20' ) end [2025-02-01 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:58:21] Production.INFO: ==24975== Releasing lock... [2025-02-01 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:58:21] Production.INFO: 29 MB #Memory Used# [2025-02-01 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 05:59:05 [end_date_ymd] => 2025-02-01 08:59:05 [RateCDR] => 1 ) [2025-02-01 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 05:59:05' and `end` < '2025-02-01 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 08:59:19] Production.INFO: count ==188 [2025-02-01 08:59:19] Production.ERROR: pbx CDR StartTime 2025-02-01 05:59:05 - End Time 2025-02-01 08:59:05 [2025-02-01 08:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377275', 'tblTempUsageDetail_20' ) start [2025-02-01 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377275', 'tblTempUsageDetail_20' ) end [2025-02-01 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377275', 'tblTempVendorCDR_20' ) start [2025-02-01 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377275', 'tblTempVendorCDR_20' ) end [2025-02-01 08:59:19] Production.INFO: ProcessCDR(1,14377275,1,1,2) [2025-02-01 08:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377275', 'tblTempUsageDetail_20' ) start [2025-02-01 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377275', 'tblTempUsageDetail_20' ) end [2025-02-01 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 08:59:22] Production.INFO: ==25049== Releasing lock... [2025-02-01 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 08:59:22] Production.INFO: 29 MB #Memory Used# [2025-02-01 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:00:06 [end_date_ymd] => 2025-02-01 09:00:06 [RateCDR] => 1 ) [2025-02-01 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-01 06:00:06' and `end` < '2025-02-01 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-01 09:00:19] Production.INFO: count ==192 [2025-02-01 09:00:19] Production.ERROR: pbx CDR StartTime 2025-02-01 06:00:06 - End Time 2025-02-01 09:00:06 [2025-02-01 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377281', 'tblTempUsageDetail_20' ) start [2025-02-01 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377281', 'tblTempUsageDetail_20' ) end [2025-02-01 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377281', 'tblTempVendorCDR_20' ) start [2025-02-01 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377281', 'tblTempVendorCDR_20' ) end [2025-02-01 09:00:19] Production.INFO: ProcessCDR(1,14377281,1,1,2) [2025-02-01 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377281', 'tblTempUsageDetail_20' ) start [2025-02-01 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377281', 'tblTempUsageDetail_20' ) end [2025-02-01 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:00:22] Production.INFO: ==25137== Releasing lock... [2025-02-01 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:00:22] Production.INFO: 29 MB #Memory Used# [2025-02-01 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:01:05 [end_date_ymd] => 2025-02-01 09:01:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:01:05' and `end` < '2025-02-01 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-01 09:01:19] Production.INFO: count ==198 [2025-02-01 09:01:19] Production.ERROR: pbx CDR StartTime 2025-02-01 06:01:05 - End Time 2025-02-01 09:01:05 [2025-02-01 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377286', 'tblTempUsageDetail_20' ) start [2025-02-01 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377286', 'tblTempUsageDetail_20' ) end [2025-02-01 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377286', 'tblTempVendorCDR_20' ) start [2025-02-01 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377286', 'tblTempVendorCDR_20' ) end [2025-02-01 09:01:19] Production.INFO: ProcessCDR(1,14377286,1,1,2) [2025-02-01 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377286', 'tblTempUsageDetail_20' ) start [2025-02-01 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377286', 'tblTempUsageDetail_20' ) end [2025-02-01 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:01:22] Production.INFO: ==25226== Releasing lock... [2025-02-01 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:01:22] Production.INFO: 29 MB #Memory Used# [2025-02-01 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:02:05 [end_date_ymd] => 2025-02-01 09:02:05 [RateCDR] => 1 ) [2025-02-01 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 06:02:05' and `end` < '2025-02-01 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 09:02:20] Production.INFO: count ==202 [2025-02-01 09:02:20] Production.ERROR: pbx CDR StartTime 2025-02-01 06:02:05 - End Time 2025-02-01 09:02:05 [2025-02-01 09:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377291', 'tblTempUsageDetail_20' ) start [2025-02-01 09:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377291', 'tblTempUsageDetail_20' ) end [2025-02-01 09:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377291', 'tblTempVendorCDR_20' ) start [2025-02-01 09:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377291', 'tblTempVendorCDR_20' ) end [2025-02-01 09:02:20] Production.INFO: ProcessCDR(1,14377291,1,1,2) [2025-02-01 09:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377291', 'tblTempUsageDetail_20' ) start [2025-02-01 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377291', 'tblTempUsageDetail_20' ) end [2025-02-01 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:02:23] Production.INFO: ==25304== Releasing lock... [2025-02-01 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:02:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-01 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:03:05 [end_date_ymd] => 2025-02-01 09:03:05 [RateCDR] => 1 ) [2025-02-01 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 06:03:05' and `end` < '2025-02-01 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 09:03:19] Production.INFO: count ==206 [2025-02-01 09:03:19] Production.ERROR: pbx CDR StartTime 2025-02-01 06:03:05 - End Time 2025-02-01 09:03:05 [2025-02-01 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377296', 'tblTempUsageDetail_20' ) start [2025-02-01 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377296', 'tblTempUsageDetail_20' ) end [2025-02-01 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377296', 'tblTempVendorCDR_20' ) start [2025-02-01 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377296', 'tblTempVendorCDR_20' ) end [2025-02-01 09:03:19] Production.INFO: ProcessCDR(1,14377296,1,1,2) [2025-02-01 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377296', 'tblTempUsageDetail_20' ) start [2025-02-01 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377296', 'tblTempUsageDetail_20' ) end [2025-02-01 09:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:03:22] Production.INFO: ==25386== Releasing lock... [2025-02-01 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:03:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-01 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:04:05 [end_date_ymd] => 2025-02-01 09:04:05 [RateCDR] => 1 ) [2025-02-01 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 06:04:05' and `end` < '2025-02-01 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 09:04:19] Production.INFO: count ==208 [2025-02-01 09:04:19] Production.ERROR: pbx CDR StartTime 2025-02-01 06:04:05 - End Time 2025-02-01 09:04:05 [2025-02-01 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377301', 'tblTempUsageDetail_20' ) start [2025-02-01 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377301', 'tblTempUsageDetail_20' ) end [2025-02-01 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377301', 'tblTempVendorCDR_20' ) start [2025-02-01 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377301', 'tblTempVendorCDR_20' ) end [2025-02-01 09:04:19] Production.INFO: ProcessCDR(1,14377301,1,1,2) [2025-02-01 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377301', 'tblTempUsageDetail_20' ) start [2025-02-01 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377301', 'tblTempUsageDetail_20' ) end [2025-02-01 09:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:04:24] Production.INFO: ==25463== Releasing lock... [2025-02-01 09:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:04:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-01 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:05:05 [end_date_ymd] => 2025-02-01 09:05:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:05:05' and `end` < '2025-02-01 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-01 09:05:18] Production.INFO: count ==218 [2025-02-01 09:05:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:05:05 - End Time 2025-02-01 09:05:05 [2025-02-01 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377306', 'tblTempUsageDetail_20' ) start [2025-02-01 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377306', 'tblTempUsageDetail_20' ) end [2025-02-01 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377306', 'tblTempVendorCDR_20' ) start [2025-02-01 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377306', 'tblTempVendorCDR_20' ) end [2025-02-01 09:05:18] Production.INFO: ProcessCDR(1,14377306,1,1,2) [2025-02-01 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377306', 'tblTempUsageDetail_20' ) start [2025-02-01 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377306', 'tblTempUsageDetail_20' ) end [2025-02-01 09:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:05:21] Production.INFO: ==25542== Releasing lock... [2025-02-01 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:05:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-01 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:06:05 [end_date_ymd] => 2025-02-01 09:06:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:06:05' and `end` < '2025-02-01 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-01 09:06:19] Production.INFO: count ==224 [2025-02-01 09:06:19] Production.ERROR: pbx CDR StartTime 2025-02-01 06:06:05 - End Time 2025-02-01 09:06:05 [2025-02-01 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377311', 'tblTempUsageDetail_20' ) start [2025-02-01 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377311', 'tblTempUsageDetail_20' ) end [2025-02-01 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377311', 'tblTempVendorCDR_20' ) start [2025-02-01 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377311', 'tblTempVendorCDR_20' ) end [2025-02-01 09:06:19] Production.INFO: ProcessCDR(1,14377311,1,1,2) [2025-02-01 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377311', 'tblTempUsageDetail_20' ) start [2025-02-01 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377311', 'tblTempUsageDetail_20' ) end [2025-02-01 09:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:06:22] Production.INFO: ==25618== Releasing lock... [2025-02-01 09:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:06:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-01 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:07:05 [end_date_ymd] => 2025-02-01 09:07:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:07:05' and `end` < '2025-02-01 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-01 09:07:19] Production.INFO: count ==224 [2025-02-01 09:07:19] Production.ERROR: pbx CDR StartTime 2025-02-01 06:07:05 - End Time 2025-02-01 09:07:05 [2025-02-01 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377316', 'tblTempUsageDetail_20' ) start [2025-02-01 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377316', 'tblTempUsageDetail_20' ) end [2025-02-01 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377316', 'tblTempVendorCDR_20' ) start [2025-02-01 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377316', 'tblTempVendorCDR_20' ) end [2025-02-01 09:07:19] Production.INFO: ProcessCDR(1,14377316,1,1,2) [2025-02-01 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377316', 'tblTempUsageDetail_20' ) start [2025-02-01 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377316', 'tblTempUsageDetail_20' ) end [2025-02-01 09:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:07:22] Production.INFO: ==25697== Releasing lock... [2025-02-01 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:07:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-01 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:08:05 [end_date_ymd] => 2025-02-01 09:08:05 [RateCDR] => 1 ) [2025-02-01 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 06:08:05' and `end` < '2025-02-01 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 09:08:18] Production.INFO: count ==228 [2025-02-01 09:08:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:08:05 - End Time 2025-02-01 09:08:05 [2025-02-01 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377321', 'tblTempUsageDetail_20' ) start [2025-02-01 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377321', 'tblTempUsageDetail_20' ) end [2025-02-01 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377321', 'tblTempVendorCDR_20' ) start [2025-02-01 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377321', 'tblTempVendorCDR_20' ) end [2025-02-01 09:08:18] Production.INFO: ProcessCDR(1,14377321,1,1,2) [2025-02-01 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377321', 'tblTempUsageDetail_20' ) start [2025-02-01 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377321', 'tblTempUsageDetail_20' ) end [2025-02-01 09:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:08:21] Production.INFO: ==25774== Releasing lock... [2025-02-01 09:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:08:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-01 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:09:05 [end_date_ymd] => 2025-02-01 09:09:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:09:05' and `end` < '2025-02-01 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-01 09:09:18] Production.INFO: count ==240 [2025-02-01 09:09:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:09:05 - End Time 2025-02-01 09:09:05 [2025-02-01 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377325', 'tblTempUsageDetail_20' ) start [2025-02-01 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377325', 'tblTempUsageDetail_20' ) end [2025-02-01 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377325', 'tblTempVendorCDR_20' ) start [2025-02-01 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377325', 'tblTempVendorCDR_20' ) end [2025-02-01 09:09:18] Production.INFO: ProcessCDR(1,14377325,1,1,2) [2025-02-01 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377325', 'tblTempUsageDetail_20' ) start [2025-02-01 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377325', 'tblTempUsageDetail_20' ) end [2025-02-01 09:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:09:21] Production.INFO: ==25889== Releasing lock... [2025-02-01 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:09:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-01 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:10:05 [end_date_ymd] => 2025-02-01 09:10:05 [RateCDR] => 1 ) [2025-02-01 09: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-01 06:10:05' and `end` < '2025-02-01 09: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-01 09:10:18] Production.INFO: count ==252 [2025-02-01 09:10:19] Production.ERROR: pbx CDR StartTime 2025-02-01 06:10:05 - End Time 2025-02-01 09:10:05 [2025-02-01 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377332', 'tblTempUsageDetail_20' ) start [2025-02-01 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377332', 'tblTempUsageDetail_20' ) end [2025-02-01 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377332', 'tblTempVendorCDR_20' ) start [2025-02-01 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377332', 'tblTempVendorCDR_20' ) end [2025-02-01 09:10:19] Production.INFO: ProcessCDR(1,14377332,1,1,2) [2025-02-01 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377332', 'tblTempUsageDetail_20' ) start [2025-02-01 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377332', 'tblTempUsageDetail_20' ) end [2025-02-01 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:10:23] Production.INFO: ==25971== Releasing lock... [2025-02-01 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:10:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-01 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:11:05 [end_date_ymd] => 2025-02-01 09:11:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:11:05' and `end` < '2025-02-01 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-01 09:11:20] Production.INFO: count ==277 [2025-02-01 09:11:20] Production.ERROR: pbx CDR StartTime 2025-02-01 06:11:05 - End Time 2025-02-01 09:11:05 [2025-02-01 09:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377337', 'tblTempUsageDetail_20' ) start [2025-02-01 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377337', 'tblTempUsageDetail_20' ) end [2025-02-01 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377337', 'tblTempVendorCDR_20' ) start [2025-02-01 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377337', 'tblTempVendorCDR_20' ) end [2025-02-01 09:11:20] Production.INFO: ProcessCDR(1,14377337,1,1,2) [2025-02-01 09:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377337', 'tblTempUsageDetail_20' ) start [2025-02-01 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377337', 'tblTempUsageDetail_20' ) end [2025-02-01 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:11:23] Production.INFO: ==26056== Releasing lock... [2025-02-01 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:11:23] Production.INFO: 30 MB #Memory Used# [2025-02-01 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:12:04 [end_date_ymd] => 2025-02-01 09:12:04 [RateCDR] => 1 ) [2025-02-01 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 06:12:04' and `end` < '2025-02-01 09:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 09:12:17] Production.INFO: count ==287 [2025-02-01 09:12:17] Production.ERROR: pbx CDR StartTime 2025-02-01 06:12:04 - End Time 2025-02-01 09:12:04 [2025-02-01 09:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377342', 'tblTempUsageDetail_20' ) start [2025-02-01 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377342', 'tblTempUsageDetail_20' ) end [2025-02-01 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377342', 'tblTempVendorCDR_20' ) start [2025-02-01 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377342', 'tblTempVendorCDR_20' ) end [2025-02-01 09:12:17] Production.INFO: ProcessCDR(1,14377342,1,1,2) [2025-02-01 09:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377342', 'tblTempUsageDetail_20' ) start [2025-02-01 09:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377342', 'tblTempUsageDetail_20' ) end [2025-02-01 09:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:12:21] Production.INFO: ==26130== Releasing lock... [2025-02-01 09:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-01 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:13:05 [end_date_ymd] => 2025-02-01 09:13:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:13:05' and `end` < '2025-02-01 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-01 09:13:17] Production.INFO: count ==289 [2025-02-01 09:13:17] Production.ERROR: pbx CDR StartTime 2025-02-01 06:13:05 - End Time 2025-02-01 09:13:05 [2025-02-01 09:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377347', 'tblTempUsageDetail_20' ) start [2025-02-01 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377347', 'tblTempUsageDetail_20' ) end [2025-02-01 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377347', 'tblTempVendorCDR_20' ) start [2025-02-01 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377347', 'tblTempVendorCDR_20' ) end [2025-02-01 09:13:18] Production.INFO: ProcessCDR(1,14377347,1,1,2) [2025-02-01 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377347', 'tblTempUsageDetail_20' ) start [2025-02-01 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377347', 'tblTempUsageDetail_20' ) end [2025-02-01 09:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:13:21] Production.INFO: ==26209== Releasing lock... [2025-02-01 09:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:13:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-01 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:14:05 [end_date_ymd] => 2025-02-01 09:14:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:14:05' and `end` < '2025-02-01 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-01 09:14:19] Production.INFO: count ==300 [2025-02-01 09:14:19] Production.ERROR: pbx CDR StartTime 2025-02-01 06:14:05 - End Time 2025-02-01 09:14:05 [2025-02-01 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377352', 'tblTempUsageDetail_20' ) start [2025-02-01 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377352', 'tblTempUsageDetail_20' ) end [2025-02-01 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377352', 'tblTempVendorCDR_20' ) start [2025-02-01 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377352', 'tblTempVendorCDR_20' ) end [2025-02-01 09:14:19] Production.INFO: ProcessCDR(1,14377352,1,1,2) [2025-02-01 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377352', 'tblTempUsageDetail_20' ) start [2025-02-01 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377352', 'tblTempUsageDetail_20' ) end [2025-02-01 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:14:23] Production.INFO: ==26288== Releasing lock... [2025-02-01 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:14:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 09:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:15:04 [end_date_ymd] => 2025-02-01 09:15:04 [RateCDR] => 1 ) [2025-02-01 09:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 06:15:04' and `end` < '2025-02-01 09:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 09:15:17] Production.INFO: count ==309 [2025-02-01 09:15:17] Production.ERROR: pbx CDR StartTime 2025-02-01 06:15:04 - End Time 2025-02-01 09:15:04 [2025-02-01 09:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377357', 'tblTempUsageDetail_20' ) start [2025-02-01 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377357', 'tblTempUsageDetail_20' ) end [2025-02-01 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377357', 'tblTempVendorCDR_20' ) start [2025-02-01 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377357', 'tblTempVendorCDR_20' ) end [2025-02-01 09:15:17] Production.INFO: ProcessCDR(1,14377357,1,1,2) [2025-02-01 09:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377357', 'tblTempUsageDetail_20' ) start [2025-02-01 09:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377357', 'tblTempUsageDetail_20' ) end [2025-02-01 09:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:15:20] Production.INFO: ==26367== Releasing lock... [2025-02-01 09:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:15:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-01 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:16:05 [end_date_ymd] => 2025-02-01 09:16:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:16:05' and `end` < '2025-02-01 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-01 09:16:18] Production.INFO: count ==323 [2025-02-01 09:16:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:16:05 - End Time 2025-02-01 09:16:05 [2025-02-01 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377362', 'tblTempUsageDetail_20' ) start [2025-02-01 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377362', 'tblTempUsageDetail_20' ) end [2025-02-01 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377362', 'tblTempVendorCDR_20' ) start [2025-02-01 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377362', 'tblTempVendorCDR_20' ) end [2025-02-01 09:16:18] Production.INFO: ProcessCDR(1,14377362,1,1,2) [2025-02-01 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377362', 'tblTempUsageDetail_20' ) start [2025-02-01 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377362', 'tblTempUsageDetail_20' ) end [2025-02-01 09:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:16:21] Production.INFO: ==26454== Releasing lock... [2025-02-01 09:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:16:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:17:05 [end_date_ymd] => 2025-02-01 09:17:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:17:05' and `end` < '2025-02-01 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-01 09:17:18] Production.INFO: count ==323 [2025-02-01 09:17:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:17:05 - End Time 2025-02-01 09:17:05 [2025-02-01 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377367', 'tblTempUsageDetail_20' ) start [2025-02-01 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377367', 'tblTempUsageDetail_20' ) end [2025-02-01 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377367', 'tblTempVendorCDR_20' ) start [2025-02-01 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377367', 'tblTempVendorCDR_20' ) end [2025-02-01 09:17:18] Production.INFO: ProcessCDR(1,14377367,1,1,2) [2025-02-01 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377367', 'tblTempUsageDetail_20' ) start [2025-02-01 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377367', 'tblTempUsageDetail_20' ) end [2025-02-01 09:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:17:21] Production.INFO: ==26541== Releasing lock... [2025-02-01 09:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:17:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-01 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:18:05 [end_date_ymd] => 2025-02-01 09:18:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:18:05' and `end` < '2025-02-01 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-01 09:18:18] Production.INFO: count ==328 [2025-02-01 09:18:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:18:05 - End Time 2025-02-01 09:18:05 [2025-02-01 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377372', 'tblTempUsageDetail_20' ) start [2025-02-01 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377372', 'tblTempUsageDetail_20' ) end [2025-02-01 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377372', 'tblTempVendorCDR_20' ) start [2025-02-01 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377372', 'tblTempVendorCDR_20' ) end [2025-02-01 09:18:18] Production.INFO: ProcessCDR(1,14377372,1,1,2) [2025-02-01 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377372', 'tblTempUsageDetail_20' ) start [2025-02-01 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377372', 'tblTempUsageDetail_20' ) end [2025-02-01 09:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:18:21] Production.INFO: ==26624== Releasing lock... [2025-02-01 09:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-01 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:19:05 [end_date_ymd] => 2025-02-01 09:19:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:19:05' and `end` < '2025-02-01 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-01 09:19:19] Production.INFO: count ==349 [2025-02-01 09:19:19] Production.ERROR: pbx CDR StartTime 2025-02-01 06:19:05 - End Time 2025-02-01 09:19:05 [2025-02-01 09:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377377', 'tblTempUsageDetail_20' ) start [2025-02-01 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377377', 'tblTempUsageDetail_20' ) end [2025-02-01 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377377', 'tblTempVendorCDR_20' ) start [2025-02-01 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377377', 'tblTempVendorCDR_20' ) end [2025-02-01 09:19:19] Production.INFO: ProcessCDR(1,14377377,1,1,2) [2025-02-01 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377377', 'tblTempUsageDetail_20' ) start [2025-02-01 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377377', 'tblTempUsageDetail_20' ) end [2025-02-01 09:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:19:24] Production.INFO: ==26708== Releasing lock... [2025-02-01 09:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:19:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-01 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:20:05 [end_date_ymd] => 2025-02-01 09:20:05 [RateCDR] => 1 ) [2025-02-01 09: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-01 06:20:05' and `end` < '2025-02-01 09: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-01 09:20:19] Production.INFO: count ==353 [2025-02-01 09:20:20] Production.ERROR: pbx CDR StartTime 2025-02-01 06:20:05 - End Time 2025-02-01 09:20:05 [2025-02-01 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377383', 'tblTempUsageDetail_20' ) start [2025-02-01 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377383', 'tblTempUsageDetail_20' ) end [2025-02-01 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377383', 'tblTempVendorCDR_20' ) start [2025-02-01 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377383', 'tblTempVendorCDR_20' ) end [2025-02-01 09:20:20] Production.INFO: ProcessCDR(1,14377383,1,1,2) [2025-02-01 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377383', 'tblTempUsageDetail_20' ) start [2025-02-01 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377383', 'tblTempUsageDetail_20' ) end [2025-02-01 09:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:20:23] Production.INFO: ==26792== Releasing lock... [2025-02-01 09:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:20:23] Production.INFO: 31 MB #Memory Used# [2025-02-01 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:21:05 [end_date_ymd] => 2025-02-01 09:21:05 [RateCDR] => 1 ) [2025-02-01 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 06:21:05' and `end` < '2025-02-01 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 09:21:19] Production.INFO: count ==368 [2025-02-01 09:21:19] Production.ERROR: pbx CDR StartTime 2025-02-01 06:21:05 - End Time 2025-02-01 09:21:05 [2025-02-01 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377388', 'tblTempUsageDetail_20' ) start [2025-02-01 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377388', 'tblTempUsageDetail_20' ) end [2025-02-01 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377388', 'tblTempVendorCDR_20' ) start [2025-02-01 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377388', 'tblTempVendorCDR_20' ) end [2025-02-01 09:21:19] Production.INFO: ProcessCDR(1,14377388,1,1,2) [2025-02-01 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377388', 'tblTempUsageDetail_20' ) start [2025-02-01 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377388', 'tblTempUsageDetail_20' ) end [2025-02-01 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:21:24] Production.INFO: ==26870== Releasing lock... [2025-02-01 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:21:24] Production.INFO: 31 MB #Memory Used# [2025-02-01 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:22:05 [end_date_ymd] => 2025-02-01 09:22:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:22:05' and `end` < '2025-02-01 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-01 09:22:18] Production.INFO: count ==372 [2025-02-01 09:22:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:22:05 - End Time 2025-02-01 09:22:05 [2025-02-01 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377393', 'tblTempUsageDetail_20' ) start [2025-02-01 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377393', 'tblTempUsageDetail_20' ) end [2025-02-01 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377393', 'tblTempVendorCDR_20' ) start [2025-02-01 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377393', 'tblTempVendorCDR_20' ) end [2025-02-01 09:22:18] Production.INFO: ProcessCDR(1,14377393,1,1,2) [2025-02-01 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377393', 'tblTempUsageDetail_20' ) start [2025-02-01 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377393', 'tblTempUsageDetail_20' ) end [2025-02-01 09:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:22:21] Production.INFO: ==26950== Releasing lock... [2025-02-01 09:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:22:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-01 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:23:05 [end_date_ymd] => 2025-02-01 09:23:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:23:05' and `end` < '2025-02-01 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-01 09:23:20] Production.INFO: count ==379 [2025-02-01 09:23:21] Production.ERROR: pbx CDR StartTime 2025-02-01 06:23:05 - End Time 2025-02-01 09:23:05 [2025-02-01 09:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377398', 'tblTempUsageDetail_20' ) start [2025-02-01 09:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377398', 'tblTempUsageDetail_20' ) end [2025-02-01 09:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377398', 'tblTempVendorCDR_20' ) start [2025-02-01 09:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377398', 'tblTempVendorCDR_20' ) end [2025-02-01 09:23:21] Production.INFO: ProcessCDR(1,14377398,1,1,2) [2025-02-01 09:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377398', 'tblTempUsageDetail_20' ) start [2025-02-01 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377398', 'tblTempUsageDetail_20' ) end [2025-02-01 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:23:24] Production.INFO: ==27031== Releasing lock... [2025-02-01 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:23:24] Production.INFO: 31 MB #Memory Used# [2025-02-01 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:24:05 [end_date_ymd] => 2025-02-01 09:24:05 [RateCDR] => 1 ) [2025-02-01 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 06:24:05' and `end` < '2025-02-01 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 09:24:18] Production.INFO: count ==389 [2025-02-01 09:24:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:24:05 - End Time 2025-02-01 09:24:05 [2025-02-01 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377403', 'tblTempUsageDetail_20' ) start [2025-02-01 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377403', 'tblTempUsageDetail_20' ) end [2025-02-01 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377403', 'tblTempVendorCDR_20' ) start [2025-02-01 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377403', 'tblTempVendorCDR_20' ) end [2025-02-01 09:24:18] Production.INFO: ProcessCDR(1,14377403,1,1,2) [2025-02-01 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377403', 'tblTempUsageDetail_20' ) start [2025-02-01 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377403', 'tblTempUsageDetail_20' ) end [2025-02-01 09:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:24:21] Production.INFO: ==27106== Releasing lock... [2025-02-01 09:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:24:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:25:05 [end_date_ymd] => 2025-02-01 09:25:05 [RateCDR] => 1 ) [2025-02-01 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 06:25:05' and `end` < '2025-02-01 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 09:25:18] Production.INFO: count ==389 [2025-02-01 09:25:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:25:05 - End Time 2025-02-01 09:25:05 [2025-02-01 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377408', 'tblTempUsageDetail_20' ) start [2025-02-01 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377408', 'tblTempUsageDetail_20' ) end [2025-02-01 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377408', 'tblTempVendorCDR_20' ) start [2025-02-01 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377408', 'tblTempVendorCDR_20' ) end [2025-02-01 09:25:18] Production.INFO: ProcessCDR(1,14377408,1,1,2) [2025-02-01 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377408', 'tblTempUsageDetail_20' ) start [2025-02-01 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377408', 'tblTempUsageDetail_20' ) end [2025-02-01 09:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:25:21] Production.INFO: ==27225== Releasing lock... [2025-02-01 09:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:25:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:26:06 [end_date_ymd] => 2025-02-01 09:26:06 [RateCDR] => 1 ) [2025-02-01 09:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 06:26:06' and `end` < '2025-02-01 09:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 09:26:20] Production.INFO: count ==397 [2025-02-01 09:26:20] Production.ERROR: pbx CDR StartTime 2025-02-01 06:26:06 - End Time 2025-02-01 09:26:06 [2025-02-01 09:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377413', 'tblTempUsageDetail_20' ) start [2025-02-01 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377413', 'tblTempUsageDetail_20' ) end [2025-02-01 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377413', 'tblTempVendorCDR_20' ) start [2025-02-01 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377413', 'tblTempVendorCDR_20' ) end [2025-02-01 09:26:20] Production.INFO: ProcessCDR(1,14377413,1,1,2) [2025-02-01 09:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377413', 'tblTempUsageDetail_20' ) start [2025-02-01 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377413', 'tblTempUsageDetail_20' ) end [2025-02-01 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:26:23] Production.INFO: ==27309== Releasing lock... [2025-02-01 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:26:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-01 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:27:05 [end_date_ymd] => 2025-02-01 09:27:05 [RateCDR] => 1 ) [2025-02-01 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 06:27:05' and `end` < '2025-02-01 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 09:27:18] Production.INFO: count ==406 [2025-02-01 09:27:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:27:05 - End Time 2025-02-01 09:27:05 [2025-02-01 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377418', 'tblTempUsageDetail_20' ) start [2025-02-01 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377418', 'tblTempUsageDetail_20' ) end [2025-02-01 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377418', 'tblTempVendorCDR_20' ) start [2025-02-01 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377418', 'tblTempVendorCDR_20' ) end [2025-02-01 09:27:18] Production.INFO: ProcessCDR(1,14377418,1,1,2) [2025-02-01 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377418', 'tblTempUsageDetail_20' ) start [2025-02-01 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377418', 'tblTempUsageDetail_20' ) end [2025-02-01 09:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:27:22] Production.INFO: ==27385== Releasing lock... [2025-02-01 09:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:27:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:28:05 [end_date_ymd] => 2025-02-01 09:28:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:28:05' and `end` < '2025-02-01 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-01 09:28:18] Production.INFO: count ==413 [2025-02-01 09:28:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:28:05 - End Time 2025-02-01 09:28:05 [2025-02-01 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377423', 'tblTempUsageDetail_20' ) start [2025-02-01 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377423', 'tblTempUsageDetail_20' ) end [2025-02-01 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377423', 'tblTempVendorCDR_20' ) start [2025-02-01 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377423', 'tblTempVendorCDR_20' ) end [2025-02-01 09:28:18] Production.INFO: ProcessCDR(1,14377423,1,1,2) [2025-02-01 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377423', 'tblTempUsageDetail_20' ) start [2025-02-01 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377423', 'tblTempUsageDetail_20' ) end [2025-02-01 09:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:28:23] Production.INFO: ==27464== Releasing lock... [2025-02-01 09:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:28:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:29:05 [end_date_ymd] => 2025-02-01 09:29:05 [RateCDR] => 1 ) [2025-02-01 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 06:29:05' and `end` < '2025-02-01 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 09:29:18] Production.INFO: count ==413 [2025-02-01 09:29:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:29:05 - End Time 2025-02-01 09:29:05 [2025-02-01 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377428', 'tblTempUsageDetail_20' ) start [2025-02-01 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377428', 'tblTempUsageDetail_20' ) end [2025-02-01 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377428', 'tblTempVendorCDR_20' ) start [2025-02-01 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377428', 'tblTempVendorCDR_20' ) end [2025-02-01 09:29:18] Production.INFO: ProcessCDR(1,14377428,1,1,2) [2025-02-01 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377428', 'tblTempUsageDetail_20' ) start [2025-02-01 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377428', 'tblTempUsageDetail_20' ) end [2025-02-01 09:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:29:21] Production.INFO: ==27545== Releasing lock... [2025-02-01 09:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:29:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:30:06 [end_date_ymd] => 2025-02-01 09:30:06 [RateCDR] => 1 ) [2025-02-01 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-01 06:30:06' and `end` < '2025-02-01 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-01 09:30:19] Production.INFO: count ==419 [2025-02-01 09:30:19] Production.ERROR: pbx CDR StartTime 2025-02-01 06:30:06 - End Time 2025-02-01 09:30:06 [2025-02-01 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377434', 'tblTempUsageDetail_20' ) start [2025-02-01 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377434', 'tblTempUsageDetail_20' ) end [2025-02-01 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377434', 'tblTempVendorCDR_20' ) start [2025-02-01 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377434', 'tblTempVendorCDR_20' ) end [2025-02-01 09:30:19] Production.INFO: ProcessCDR(1,14377434,1,1,2) [2025-02-01 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377434', 'tblTempUsageDetail_20' ) start [2025-02-01 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377434', 'tblTempUsageDetail_20' ) end [2025-02-01 09:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:30:22] Production.INFO: ==27627== Releasing lock... [2025-02-01 09:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:30:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:31:05 [end_date_ymd] => 2025-02-01 09:31:05 [RateCDR] => 1 ) [2025-02-01 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 06:31:05' and `end` < '2025-02-01 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 09:31:17] Production.INFO: count ==438 [2025-02-01 09:31:17] Production.ERROR: pbx CDR StartTime 2025-02-01 06:31:05 - End Time 2025-02-01 09:31:05 [2025-02-01 09:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377439', 'tblTempUsageDetail_20' ) start [2025-02-01 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377439', 'tblTempUsageDetail_20' ) end [2025-02-01 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377439', 'tblTempVendorCDR_20' ) start [2025-02-01 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377439', 'tblTempVendorCDR_20' ) end [2025-02-01 09:31:17] Production.INFO: ProcessCDR(1,14377439,1,1,2) [2025-02-01 09:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377439', 'tblTempUsageDetail_20' ) start [2025-02-01 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377439', 'tblTempUsageDetail_20' ) end [2025-02-01 09:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:31:22] Production.INFO: ==27706== Releasing lock... [2025-02-01 09:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:31:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:32:05 [end_date_ymd] => 2025-02-01 09:32:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:32:05' and `end` < '2025-02-01 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-01 09:32:18] Production.INFO: count ==438 [2025-02-01 09:32:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:32:05 - End Time 2025-02-01 09:32:05 [2025-02-01 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377444', 'tblTempUsageDetail_20' ) start [2025-02-01 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377444', 'tblTempUsageDetail_20' ) end [2025-02-01 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377444', 'tblTempVendorCDR_20' ) start [2025-02-01 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377444', 'tblTempVendorCDR_20' ) end [2025-02-01 09:32:18] Production.INFO: ProcessCDR(1,14377444,1,1,2) [2025-02-01 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377444', 'tblTempUsageDetail_20' ) start [2025-02-01 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377444', 'tblTempUsageDetail_20' ) end [2025-02-01 09:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:32:22] Production.INFO: ==27785== Releasing lock... [2025-02-01 09:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:32:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-01 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:33:05 [end_date_ymd] => 2025-02-01 09:33:05 [RateCDR] => 1 ) [2025-02-01 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 06:33:05' and `end` < '2025-02-01 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 09:33:18] Production.INFO: count ==450 [2025-02-01 09:33:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:33:05 - End Time 2025-02-01 09:33:05 [2025-02-01 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377449', 'tblTempUsageDetail_20' ) start [2025-02-01 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377449', 'tblTempUsageDetail_20' ) end [2025-02-01 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377449', 'tblTempVendorCDR_20' ) start [2025-02-01 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377449', 'tblTempVendorCDR_20' ) end [2025-02-01 09:33:18] Production.INFO: ProcessCDR(1,14377449,1,1,2) [2025-02-01 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377449', 'tblTempUsageDetail_20' ) start [2025-02-01 09:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377449', 'tblTempUsageDetail_20' ) end [2025-02-01 09:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:33:22] Production.INFO: ==27868== Releasing lock... [2025-02-01 09:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:33:22] Production.INFO: 32 MB #Memory Used# [2025-02-01 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:34:05 [end_date_ymd] => 2025-02-01 09:34:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:34:05' and `end` < '2025-02-01 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-01 09:34:18] Production.INFO: count ==452 [2025-02-01 09:34:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:34:05 - End Time 2025-02-01 09:34:05 [2025-02-01 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377454', 'tblTempUsageDetail_20' ) start [2025-02-01 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377454', 'tblTempUsageDetail_20' ) end [2025-02-01 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377454', 'tblTempVendorCDR_20' ) start [2025-02-01 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377454', 'tblTempVendorCDR_20' ) end [2025-02-01 09:34:18] Production.INFO: ProcessCDR(1,14377454,1,1,2) [2025-02-01 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377454', 'tblTempUsageDetail_20' ) start [2025-02-01 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377454', 'tblTempUsageDetail_20' ) end [2025-02-01 09:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:34:23] Production.INFO: ==27947== Releasing lock... [2025-02-01 09:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:34:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:35:05 [end_date_ymd] => 2025-02-01 09:35:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:35:05' and `end` < '2025-02-01 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-01 09:35:18] Production.INFO: count ==465 [2025-02-01 09:35:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:35:05 - End Time 2025-02-01 09:35:05 [2025-02-01 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377459', 'tblTempUsageDetail_20' ) start [2025-02-01 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377459', 'tblTempUsageDetail_20' ) end [2025-02-01 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377459', 'tblTempVendorCDR_20' ) start [2025-02-01 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377459', 'tblTempVendorCDR_20' ) end [2025-02-01 09:35:18] Production.INFO: ProcessCDR(1,14377459,1,1,2) [2025-02-01 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377459', 'tblTempUsageDetail_20' ) start [2025-02-01 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377459', 'tblTempUsageDetail_20' ) end [2025-02-01 09:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:35:23] Production.INFO: ==28022== Releasing lock... [2025-02-01 09:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:35:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:36:05 [end_date_ymd] => 2025-02-01 09:36:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:36:05' and `end` < '2025-02-01 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-01 09:36:19] Production.INFO: count ==465 [2025-02-01 09:36:19] Production.ERROR: pbx CDR StartTime 2025-02-01 06:36:05 - End Time 2025-02-01 09:36:05 [2025-02-01 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377464', 'tblTempUsageDetail_20' ) start [2025-02-01 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377464', 'tblTempUsageDetail_20' ) end [2025-02-01 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377464', 'tblTempVendorCDR_20' ) start [2025-02-01 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377464', 'tblTempVendorCDR_20' ) end [2025-02-01 09:36:19] Production.INFO: ProcessCDR(1,14377464,1,1,2) [2025-02-01 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377464', 'tblTempUsageDetail_20' ) start [2025-02-01 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377464', 'tblTempUsageDetail_20' ) end [2025-02-01 09:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:36:22] Production.INFO: ==28103== Releasing lock... [2025-02-01 09:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:36:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:37:06 [end_date_ymd] => 2025-02-01 09:37:06 [RateCDR] => 1 ) [2025-02-01 09: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-01 06:37:06' and `end` < '2025-02-01 09: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-01 09:37:18] Production.INFO: count ==485 [2025-02-01 09:37:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:37:06 - End Time 2025-02-01 09:37:06 [2025-02-01 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377469', 'tblTempUsageDetail_20' ) start [2025-02-01 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377469', 'tblTempUsageDetail_20' ) end [2025-02-01 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377469', 'tblTempVendorCDR_20' ) start [2025-02-01 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377469', 'tblTempVendorCDR_20' ) end [2025-02-01 09:37:19] Production.INFO: ProcessCDR(1,14377469,1,1,2) [2025-02-01 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377469', 'tblTempUsageDetail_20' ) start [2025-02-01 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377469', 'tblTempUsageDetail_20' ) end [2025-02-01 09:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:37:22] Production.INFO: ==28177== Releasing lock... [2025-02-01 09:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:37:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:38:05 [end_date_ymd] => 2025-02-01 09:38:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:38:05' and `end` < '2025-02-01 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-01 09:38:19] Production.INFO: count ==485 [2025-02-01 09:38:19] Production.ERROR: pbx CDR StartTime 2025-02-01 06:38:05 - End Time 2025-02-01 09:38:05 [2025-02-01 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377474', 'tblTempUsageDetail_20' ) start [2025-02-01 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377474', 'tblTempUsageDetail_20' ) end [2025-02-01 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377474', 'tblTempVendorCDR_20' ) start [2025-02-01 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377474', 'tblTempVendorCDR_20' ) end [2025-02-01 09:38:19] Production.INFO: ProcessCDR(1,14377474,1,1,2) [2025-02-01 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377474', 'tblTempUsageDetail_20' ) start [2025-02-01 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377474', 'tblTempUsageDetail_20' ) end [2025-02-01 09:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:38:22] Production.INFO: ==28250== Releasing lock... [2025-02-01 09:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:38:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:39:06 [end_date_ymd] => 2025-02-01 09:39:06 [RateCDR] => 1 ) [2025-02-01 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-01 06:39:06' and `end` < '2025-02-01 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-01 09:39:18] Production.INFO: count ==491 [2025-02-01 09:39:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:39:06 - End Time 2025-02-01 09:39:06 [2025-02-01 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377479', 'tblTempUsageDetail_20' ) start [2025-02-01 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377479', 'tblTempUsageDetail_20' ) end [2025-02-01 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377479', 'tblTempVendorCDR_20' ) start [2025-02-01 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377479', 'tblTempVendorCDR_20' ) end [2025-02-01 09:39:18] Production.INFO: ProcessCDR(1,14377479,1,1,2) [2025-02-01 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377479', 'tblTempUsageDetail_20' ) start [2025-02-01 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377479', 'tblTempUsageDetail_20' ) end [2025-02-01 09:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:39:23] Production.INFO: ==28334== Releasing lock... [2025-02-01 09:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:39:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-01 09:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:40:05 [end_date_ymd] => 2025-02-01 09:40:05 [RateCDR] => 1 ) [2025-02-01 09: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-01 06:40:05' and `end` < '2025-02-01 09: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-01 09:40:18] Production.INFO: count ==496 [2025-02-01 09:40:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:40:05 - End Time 2025-02-01 09:40:05 [2025-02-01 09:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377485', 'tblTempUsageDetail_20' ) start [2025-02-01 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377485', 'tblTempUsageDetail_20' ) end [2025-02-01 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377485', 'tblTempVendorCDR_20' ) start [2025-02-01 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377485', 'tblTempVendorCDR_20' ) end [2025-02-01 09:40:18] Production.INFO: ProcessCDR(1,14377485,1,1,2) [2025-02-01 09:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377485', 'tblTempUsageDetail_20' ) start [2025-02-01 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377485', 'tblTempUsageDetail_20' ) end [2025-02-01 09:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:40:23] Production.INFO: ==28448== Releasing lock... [2025-02-01 09:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:40:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-01 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:41:05 [end_date_ymd] => 2025-02-01 09:41:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:41:05' and `end` < '2025-02-01 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-01 09:41:18] Production.INFO: count ==520 [2025-02-01 09:41:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:41:05 - End Time 2025-02-01 09:41:05 [2025-02-01 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377490', 'tblTempUsageDetail_20' ) start [2025-02-01 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377490', 'tblTempUsageDetail_20' ) end [2025-02-01 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377490', 'tblTempVendorCDR_20' ) start [2025-02-01 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377490', 'tblTempVendorCDR_20' ) end [2025-02-01 09:41:18] Production.INFO: ProcessCDR(1,14377490,1,1,2) [2025-02-01 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377490', 'tblTempUsageDetail_20' ) start [2025-02-01 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377490', 'tblTempUsageDetail_20' ) end [2025-02-01 09:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:41:21] Production.INFO: ==28524== Releasing lock... [2025-02-01 09:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:41:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-01 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:42:05 [end_date_ymd] => 2025-02-01 09:42:05 [RateCDR] => 1 ) [2025-02-01 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 06:42:05' and `end` < '2025-02-01 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 09:42:19] Production.INFO: count ==520 [2025-02-01 09:42:19] Production.ERROR: pbx CDR StartTime 2025-02-01 06:42:05 - End Time 2025-02-01 09:42:05 [2025-02-01 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377495', 'tblTempUsageDetail_20' ) start [2025-02-01 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377495', 'tblTempUsageDetail_20' ) end [2025-02-01 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377495', 'tblTempVendorCDR_20' ) start [2025-02-01 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377495', 'tblTempVendorCDR_20' ) end [2025-02-01 09:42:19] Production.INFO: ProcessCDR(1,14377495,1,1,2) [2025-02-01 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377495', 'tblTempUsageDetail_20' ) start [2025-02-01 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377495', 'tblTempUsageDetail_20' ) end [2025-02-01 09:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:42:22] Production.INFO: ==28605== Releasing lock... [2025-02-01 09:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:42:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-01 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:43:05 [end_date_ymd] => 2025-02-01 09:43:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:43:05' and `end` < '2025-02-01 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-01 09:43:20] Production.INFO: count ==525 [2025-02-01 09:43:21] Production.ERROR: pbx CDR StartTime 2025-02-01 06:43:05 - End Time 2025-02-01 09:43:05 [2025-02-01 09:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377500', 'tblTempUsageDetail_20' ) start [2025-02-01 09:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377500', 'tblTempUsageDetail_20' ) end [2025-02-01 09:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377500', 'tblTempVendorCDR_20' ) start [2025-02-01 09:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377500', 'tblTempVendorCDR_20' ) end [2025-02-01 09:43:21] Production.INFO: ProcessCDR(1,14377500,1,1,2) [2025-02-01 09:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377500', 'tblTempUsageDetail_20' ) start [2025-02-01 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377500', 'tblTempUsageDetail_20' ) end [2025-02-01 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:43:24] Production.INFO: ==28679== Releasing lock... [2025-02-01 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:43:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-01 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:44:06 [end_date_ymd] => 2025-02-01 09:44:06 [RateCDR] => 1 ) [2025-02-01 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-01 06:44:06' and `end` < '2025-02-01 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-01 09:44:20] Production.INFO: count ==560 [2025-02-01 09:44:20] Production.ERROR: pbx CDR StartTime 2025-02-01 06:44:06 - End Time 2025-02-01 09:44:06 [2025-02-01 09:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377505', 'tblTempUsageDetail_20' ) start [2025-02-01 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377505', 'tblTempUsageDetail_20' ) end [2025-02-01 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377505', 'tblTempVendorCDR_20' ) start [2025-02-01 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377505', 'tblTempVendorCDR_20' ) end [2025-02-01 09:44:20] Production.INFO: ProcessCDR(1,14377505,1,1,2) [2025-02-01 09:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377505', 'tblTempUsageDetail_20' ) start [2025-02-01 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377505', 'tblTempUsageDetail_20' ) end [2025-02-01 09:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:44:23] Production.INFO: ==28751== Releasing lock... [2025-02-01 09:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:44:23] Production.INFO: 33 MB #Memory Used# [2025-02-01 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:45:05 [end_date_ymd] => 2025-02-01 09:45:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:45:05' and `end` < '2025-02-01 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-01 09:45:18] Production.INFO: count ==565 [2025-02-01 09:45:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:45:05 - End Time 2025-02-01 09:45:05 [2025-02-01 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377510', 'tblTempUsageDetail_20' ) start [2025-02-01 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377510', 'tblTempUsageDetail_20' ) end [2025-02-01 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377510', 'tblTempVendorCDR_20' ) start [2025-02-01 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377510', 'tblTempVendorCDR_20' ) end [2025-02-01 09:45:18] Production.INFO: ProcessCDR(1,14377510,1,1,2) [2025-02-01 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377510', 'tblTempUsageDetail_20' ) start [2025-02-01 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377510', 'tblTempUsageDetail_20' ) end [2025-02-01 09:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:45:22] Production.INFO: ==28833== Releasing lock... [2025-02-01 09:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:45:22] Production.INFO: 33 MB #Memory Used# [2025-02-01 09:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:46:06 [end_date_ymd] => 2025-02-01 09:46:06 [RateCDR] => 1 ) [2025-02-01 09:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 06:46:06' and `end` < '2025-02-01 09:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 09:46:18] Production.INFO: count ==566 [2025-02-01 09:46:19] Production.ERROR: pbx CDR StartTime 2025-02-01 06:46:06 - End Time 2025-02-01 09:46:06 [2025-02-01 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377515', 'tblTempUsageDetail_20' ) start [2025-02-01 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377515', 'tblTempUsageDetail_20' ) end [2025-02-01 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377515', 'tblTempVendorCDR_20' ) start [2025-02-01 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377515', 'tblTempVendorCDR_20' ) end [2025-02-01 09:46:19] Production.INFO: ProcessCDR(1,14377515,1,1,2) [2025-02-01 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377515', 'tblTempUsageDetail_20' ) start [2025-02-01 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377515', 'tblTempUsageDetail_20' ) end [2025-02-01 09:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:46:23] Production.INFO: ==28908== Releasing lock... [2025-02-01 09:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:46:23] Production.INFO: 33 MB #Memory Used# [2025-02-01 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:47:06 [end_date_ymd] => 2025-02-01 09:47:06 [RateCDR] => 1 ) [2025-02-01 09:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 06:47:06' and `end` < '2025-02-01 09:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 09:47:21] Production.INFO: count ==566 [2025-02-01 09:47:21] Production.ERROR: pbx CDR StartTime 2025-02-01 06:47:06 - End Time 2025-02-01 09:47:06 [2025-02-01 09:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377520', 'tblTempUsageDetail_20' ) start [2025-02-01 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377520', 'tblTempUsageDetail_20' ) end [2025-02-01 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377520', 'tblTempVendorCDR_20' ) start [2025-02-01 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377520', 'tblTempVendorCDR_20' ) end [2025-02-01 09:47:21] Production.INFO: ProcessCDR(1,14377520,1,1,2) [2025-02-01 09:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377520', 'tblTempUsageDetail_20' ) start [2025-02-01 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377520', 'tblTempUsageDetail_20' ) end [2025-02-01 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:47:24] Production.INFO: ==28990== Releasing lock... [2025-02-01 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:47:24] Production.INFO: 33 MB #Memory Used# [2025-02-01 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:48:05 [end_date_ymd] => 2025-02-01 09:48:05 [RateCDR] => 1 ) [2025-02-01 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 06:48:05' and `end` < '2025-02-01 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 09:48:18] Production.INFO: count ==567 [2025-02-01 09:48:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:48:05 - End Time 2025-02-01 09:48:05 [2025-02-01 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377525', 'tblTempUsageDetail_20' ) start [2025-02-01 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377525', 'tblTempUsageDetail_20' ) end [2025-02-01 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377525', 'tblTempVendorCDR_20' ) start [2025-02-01 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377525', 'tblTempVendorCDR_20' ) end [2025-02-01 09:48:18] Production.INFO: ProcessCDR(1,14377525,1,1,2) [2025-02-01 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377525', 'tblTempUsageDetail_20' ) start [2025-02-01 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377525', 'tblTempUsageDetail_20' ) end [2025-02-01 09:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:48:23] Production.INFO: ==29072== Releasing lock... [2025-02-01 09:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:48:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-01 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:49:05 [end_date_ymd] => 2025-02-01 09:49:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:49:05' and `end` < '2025-02-01 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-01 09:49:18] Production.INFO: count ==575 [2025-02-01 09:49:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:49:05 - End Time 2025-02-01 09:49:05 [2025-02-01 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377530', 'tblTempUsageDetail_20' ) start [2025-02-01 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377530', 'tblTempUsageDetail_20' ) end [2025-02-01 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377530', 'tblTempVendorCDR_20' ) start [2025-02-01 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377530', 'tblTempVendorCDR_20' ) end [2025-02-01 09:49:18] Production.INFO: ProcessCDR(1,14377530,1,1,2) [2025-02-01 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377530', 'tblTempUsageDetail_20' ) start [2025-02-01 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377530', 'tblTempUsageDetail_20' ) end [2025-02-01 09:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:49:21] Production.INFO: ==29149== Releasing lock... [2025-02-01 09:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:49:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-01 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:50:06 [end_date_ymd] => 2025-02-01 09:50:06 [RateCDR] => 1 ) [2025-02-01 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-01 06:50:06' and `end` < '2025-02-01 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-01 09:50:21] Production.INFO: count ==583 [2025-02-01 09:50:21] Production.ERROR: pbx CDR StartTime 2025-02-01 06:50:06 - End Time 2025-02-01 09:50:06 [2025-02-01 09:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377536', 'tblTempUsageDetail_20' ) start [2025-02-01 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377536', 'tblTempUsageDetail_20' ) end [2025-02-01 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377536', 'tblTempVendorCDR_20' ) start [2025-02-01 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377536', 'tblTempVendorCDR_20' ) end [2025-02-01 09:50:21] Production.INFO: ProcessCDR(1,14377536,1,1,2) [2025-02-01 09:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377536', 'tblTempUsageDetail_20' ) start [2025-02-01 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377536', 'tblTempUsageDetail_20' ) end [2025-02-01 09:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:50:24] Production.INFO: ==29227== Releasing lock... [2025-02-01 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:50:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-01 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:51:05 [end_date_ymd] => 2025-02-01 09:51:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:51:05' and `end` < '2025-02-01 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-01 09:51:19] Production.INFO: count ==581 [2025-02-01 09:51:19] Production.ERROR: pbx CDR StartTime 2025-02-01 06:51:05 - End Time 2025-02-01 09:51:05 [2025-02-01 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377541', 'tblTempUsageDetail_20' ) start [2025-02-01 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377541', 'tblTempUsageDetail_20' ) end [2025-02-01 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377541', 'tblTempVendorCDR_20' ) start [2025-02-01 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377541', 'tblTempVendorCDR_20' ) end [2025-02-01 09:51:19] Production.INFO: ProcessCDR(1,14377541,1,1,2) [2025-02-01 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377541', 'tblTempUsageDetail_20' ) start [2025-02-01 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377541', 'tblTempUsageDetail_20' ) end [2025-02-01 09:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:51:22] Production.INFO: ==29302== Releasing lock... [2025-02-01 09:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:51:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-01 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:52:05 [end_date_ymd] => 2025-02-01 09:52:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:52:05' and `end` < '2025-02-01 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-01 09:52:18] Production.INFO: count ==581 [2025-02-01 09:52:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:52:05 - End Time 2025-02-01 09:52:05 [2025-02-01 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377546', 'tblTempUsageDetail_20' ) start [2025-02-01 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377546', 'tblTempUsageDetail_20' ) end [2025-02-01 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377546', 'tblTempVendorCDR_20' ) start [2025-02-01 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377546', 'tblTempVendorCDR_20' ) end [2025-02-01 09:52:18] Production.INFO: ProcessCDR(1,14377546,1,1,2) [2025-02-01 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377546', 'tblTempUsageDetail_20' ) start [2025-02-01 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377546', 'tblTempUsageDetail_20' ) end [2025-02-01 09:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:52:21] Production.INFO: ==29380== Releasing lock... [2025-02-01 09:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:52:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-01 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:53:05 [end_date_ymd] => 2025-02-01 09:53:05 [RateCDR] => 1 ) [2025-02-01 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 06:53:05' and `end` < '2025-02-01 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 09:53:18] Production.INFO: count ==594 [2025-02-01 09:53:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:53:05 - End Time 2025-02-01 09:53:05 [2025-02-01 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377551', 'tblTempUsageDetail_20' ) start [2025-02-01 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377551', 'tblTempUsageDetail_20' ) end [2025-02-01 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377551', 'tblTempVendorCDR_20' ) start [2025-02-01 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377551', 'tblTempVendorCDR_20' ) end [2025-02-01 09:53:18] Production.INFO: ProcessCDR(1,14377551,1,1,2) [2025-02-01 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377551', 'tblTempUsageDetail_20' ) start [2025-02-01 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377551', 'tblTempUsageDetail_20' ) end [2025-02-01 09:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:53:22] Production.INFO: ==29457== Releasing lock... [2025-02-01 09:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:53:22] Production.INFO: 33 MB #Memory Used# [2025-02-01 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:54:05 [end_date_ymd] => 2025-02-01 09:54:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:54:05' and `end` < '2025-02-01 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-01 09:54:21] Production.INFO: count ==594 [2025-02-01 09:54:21] Production.ERROR: pbx CDR StartTime 2025-02-01 06:54:05 - End Time 2025-02-01 09:54:05 [2025-02-01 09:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377556', 'tblTempUsageDetail_20' ) start [2025-02-01 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377556', 'tblTempUsageDetail_20' ) end [2025-02-01 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377556', 'tblTempVendorCDR_20' ) start [2025-02-01 09:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377556', 'tblTempVendorCDR_20' ) end [2025-02-01 09:54:21] Production.INFO: ProcessCDR(1,14377556,1,1,2) [2025-02-01 09:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377556', 'tblTempUsageDetail_20' ) start [2025-02-01 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377556', 'tblTempUsageDetail_20' ) end [2025-02-01 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:54:25] Production.INFO: ==29536== Releasing lock... [2025-02-01 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:54:25] Production.INFO: 33 MB #Memory Used# [2025-02-01 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:55:05 [end_date_ymd] => 2025-02-01 09:55:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:55:05' and `end` < '2025-02-01 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-01 09:55:18] Production.INFO: count ==594 [2025-02-01 09:55:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:55:05 - End Time 2025-02-01 09:55:05 [2025-02-01 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377561', 'tblTempUsageDetail_20' ) start [2025-02-01 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377561', 'tblTempUsageDetail_20' ) end [2025-02-01 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377561', 'tblTempVendorCDR_20' ) start [2025-02-01 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377561', 'tblTempVendorCDR_20' ) end [2025-02-01 09:55:18] Production.INFO: ProcessCDR(1,14377561,1,1,2) [2025-02-01 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377561', 'tblTempUsageDetail_20' ) start [2025-02-01 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377561', 'tblTempUsageDetail_20' ) end [2025-02-01 09:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:55:21] Production.INFO: ==29615== Releasing lock... [2025-02-01 09:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:55:21] Production.INFO: 33 MB #Memory Used# [2025-02-01 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:56:05 [end_date_ymd] => 2025-02-01 09:56:05 [RateCDR] => 1 ) [2025-02-01 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 06:56:05' and `end` < '2025-02-01 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 09:56:17] Production.INFO: count ==603 [2025-02-01 09:56:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:56:05 - End Time 2025-02-01 09:56:05 [2025-02-01 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377566', 'tblTempUsageDetail_20' ) start [2025-02-01 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377566', 'tblTempUsageDetail_20' ) end [2025-02-01 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377566', 'tblTempVendorCDR_20' ) start [2025-02-01 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377566', 'tblTempVendorCDR_20' ) end [2025-02-01 09:56:18] Production.INFO: ProcessCDR(1,14377566,1,1,2) [2025-02-01 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377566', 'tblTempUsageDetail_20' ) start [2025-02-01 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377566', 'tblTempUsageDetail_20' ) end [2025-02-01 09:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:56:21] Production.INFO: ==29728== Releasing lock... [2025-02-01 09:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:56:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-01 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:57:05 [end_date_ymd] => 2025-02-01 09:57:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:57:05' and `end` < '2025-02-01 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-01 09:57:19] Production.INFO: count ==613 [2025-02-01 09:57:19] Production.ERROR: pbx CDR StartTime 2025-02-01 06:57:05 - End Time 2025-02-01 09:57:05 [2025-02-01 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377571', 'tblTempUsageDetail_20' ) start [2025-02-01 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377571', 'tblTempUsageDetail_20' ) end [2025-02-01 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377571', 'tblTempVendorCDR_20' ) start [2025-02-01 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377571', 'tblTempVendorCDR_20' ) end [2025-02-01 09:57:19] Production.INFO: ProcessCDR(1,14377571,1,1,2) [2025-02-01 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377571', 'tblTempUsageDetail_20' ) start [2025-02-01 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377571', 'tblTempUsageDetail_20' ) end [2025-02-01 09:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:57:23] Production.INFO: ==29811== Releasing lock... [2025-02-01 09:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:57:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-01 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:58:05 [end_date_ymd] => 2025-02-01 09:58:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:58:05' and `end` < '2025-02-01 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-01 09:58:18] Production.INFO: count ==613 [2025-02-01 09:58:18] Production.ERROR: pbx CDR StartTime 2025-02-01 06:58:05 - End Time 2025-02-01 09:58:05 [2025-02-01 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377576', 'tblTempUsageDetail_20' ) start [2025-02-01 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377576', 'tblTempUsageDetail_20' ) end [2025-02-01 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377576', 'tblTempVendorCDR_20' ) start [2025-02-01 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377576', 'tblTempVendorCDR_20' ) end [2025-02-01 09:58:18] Production.INFO: ProcessCDR(1,14377576,1,1,2) [2025-02-01 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377576', 'tblTempUsageDetail_20' ) start [2025-02-01 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377576', 'tblTempUsageDetail_20' ) end [2025-02-01 09:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:58:21] Production.INFO: ==29896== Releasing lock... [2025-02-01 09:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:58:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-01 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 06:59:05 [end_date_ymd] => 2025-02-01 09:59:05 [RateCDR] => 1 ) [2025-02-01 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-01 06:59:05' and `end` < '2025-02-01 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-01 09:59:19] Production.INFO: count ==613 [2025-02-01 09:59:19] Production.ERROR: pbx CDR StartTime 2025-02-01 06:59:05 - End Time 2025-02-01 09:59:05 [2025-02-01 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377581', 'tblTempUsageDetail_20' ) start [2025-02-01 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377581', 'tblTempUsageDetail_20' ) end [2025-02-01 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377581', 'tblTempVendorCDR_20' ) start [2025-02-01 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377581', 'tblTempVendorCDR_20' ) end [2025-02-01 09:59:19] Production.INFO: ProcessCDR(1,14377581,1,1,2) [2025-02-01 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 09:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377581', 'tblTempUsageDetail_20' ) start [2025-02-01 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377581', 'tblTempUsageDetail_20' ) end [2025-02-01 09:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 09:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 09:59:22] Production.INFO: ==29975== Releasing lock... [2025-02-01 09:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 09:59:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-01 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:00:06 [end_date_ymd] => 2025-02-01 10:00:06 [RateCDR] => 1 ) [2025-02-01 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:00:06' and `end` < '2025-02-01 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:00:18] Production.INFO: count ==617 [2025-02-01 10:00:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:00:06 - End Time 2025-02-01 10:00:06 [2025-02-01 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377587', 'tblTempUsageDetail_20' ) start [2025-02-01 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377587', 'tblTempUsageDetail_20' ) end [2025-02-01 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377587', 'tblTempVendorCDR_20' ) start [2025-02-01 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377587', 'tblTempVendorCDR_20' ) end [2025-02-01 10:00:19] Production.INFO: ProcessCDR(1,14377587,1,1,2) [2025-02-01 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377587', 'tblTempUsageDetail_20' ) start [2025-02-01 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377587', 'tblTempUsageDetail_20' ) end [2025-02-01 10:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:00:22] Production.INFO: ==30060== Releasing lock... [2025-02-01 10:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:00:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-01 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:01:05 [end_date_ymd] => 2025-02-01 10:01:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:01:05' and `end` < '2025-02-01 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-01 10:01:18] Production.INFO: count ==617 [2025-02-01 10:01:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:01:05 - End Time 2025-02-01 10:01:05 [2025-02-01 10:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377592', 'tblTempUsageDetail_20' ) start [2025-02-01 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377592', 'tblTempUsageDetail_20' ) end [2025-02-01 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377592', 'tblTempVendorCDR_20' ) start [2025-02-01 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377592', 'tblTempVendorCDR_20' ) end [2025-02-01 10:01:18] Production.INFO: ProcessCDR(1,14377592,1,1,2) [2025-02-01 10:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377592', 'tblTempUsageDetail_20' ) start [2025-02-01 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377592', 'tblTempUsageDetail_20' ) end [2025-02-01 10:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:01:22] Production.INFO: ==30164== Releasing lock... [2025-02-01 10:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:01:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-01 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:02:05 [end_date_ymd] => 2025-02-01 10:02:05 [RateCDR] => 1 ) [2025-02-01 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:02:05' and `end` < '2025-02-01 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:02:19] Production.INFO: count ==629 [2025-02-01 10:02:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:02:05 - End Time 2025-02-01 10:02:05 [2025-02-01 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377597', 'tblTempUsageDetail_20' ) start [2025-02-01 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377597', 'tblTempUsageDetail_20' ) end [2025-02-01 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377597', 'tblTempVendorCDR_20' ) start [2025-02-01 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377597', 'tblTempVendorCDR_20' ) end [2025-02-01 10:02:19] Production.INFO: ProcessCDR(1,14377597,1,1,2) [2025-02-01 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377597', 'tblTempUsageDetail_20' ) start [2025-02-01 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377597', 'tblTempUsageDetail_20' ) end [2025-02-01 10:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:02:22] Production.INFO: ==30244== Releasing lock... [2025-02-01 10:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:02:22] Production.INFO: 33 MB #Memory Used# [2025-02-01 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:03:05 [end_date_ymd] => 2025-02-01 10:03:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:03:05' and `end` < '2025-02-01 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-01 10:03:19] Production.INFO: count ==644 [2025-02-01 10:03:20] Production.ERROR: pbx CDR StartTime 2025-02-01 07:03:05 - End Time 2025-02-01 10:03:05 [2025-02-01 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377602', 'tblTempUsageDetail_20' ) start [2025-02-01 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377602', 'tblTempUsageDetail_20' ) end [2025-02-01 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377602', 'tblTempVendorCDR_20' ) start [2025-02-01 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377602', 'tblTempVendorCDR_20' ) end [2025-02-01 10:03:20] Production.INFO: ProcessCDR(1,14377602,1,1,2) [2025-02-01 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377602', 'tblTempUsageDetail_20' ) start [2025-02-01 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377602', 'tblTempUsageDetail_20' ) end [2025-02-01 10:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:03:24] Production.INFO: ==30323== Releasing lock... [2025-02-01 10:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:03:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-01 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:04:06 [end_date_ymd] => 2025-02-01 10:04:06 [RateCDR] => 1 ) [2025-02-01 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-01 07:04:06' and `end` < '2025-02-01 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-01 10:04:19] Production.INFO: count ==644 [2025-02-01 10:04:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:04:06 - End Time 2025-02-01 10:04:06 [2025-02-01 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377607', 'tblTempUsageDetail_20' ) start [2025-02-01 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377607', 'tblTempUsageDetail_20' ) end [2025-02-01 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377607', 'tblTempVendorCDR_20' ) start [2025-02-01 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377607', 'tblTempVendorCDR_20' ) end [2025-02-01 10:04:19] Production.INFO: ProcessCDR(1,14377607,1,1,2) [2025-02-01 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377607', 'tblTempUsageDetail_20' ) start [2025-02-01 10:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377607', 'tblTempUsageDetail_20' ) end [2025-02-01 10:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:04:22] Production.INFO: ==30403== Releasing lock... [2025-02-01 10:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:04:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-01 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:05:05 [end_date_ymd] => 2025-02-01 10:05:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:05:05' and `end` < '2025-02-01 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-01 10:05:18] Production.INFO: count ==644 [2025-02-01 10:05:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:05:05 - End Time 2025-02-01 10:05:05 [2025-02-01 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377612', 'tblTempUsageDetail_20' ) start [2025-02-01 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377612', 'tblTempUsageDetail_20' ) end [2025-02-01 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377612', 'tblTempVendorCDR_20' ) start [2025-02-01 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377612', 'tblTempVendorCDR_20' ) end [2025-02-01 10:05:18] Production.INFO: ProcessCDR(1,14377612,1,1,2) [2025-02-01 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377612', 'tblTempUsageDetail_20' ) start [2025-02-01 10:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377612', 'tblTempUsageDetail_20' ) end [2025-02-01 10:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:05:21] Production.INFO: ==30483== Releasing lock... [2025-02-01 10:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:05:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-01 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:06:05 [end_date_ymd] => 2025-02-01 10:06:05 [RateCDR] => 1 ) [2025-02-01 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:06:05' and `end` < '2025-02-01 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:06:18] Production.INFO: count ==674 [2025-02-01 10:06:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:06:05 - End Time 2025-02-01 10:06:05 [2025-02-01 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377617', 'tblTempUsageDetail_20' ) start [2025-02-01 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377617', 'tblTempUsageDetail_20' ) end [2025-02-01 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377617', 'tblTempVendorCDR_20' ) start [2025-02-01 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377617', 'tblTempVendorCDR_20' ) end [2025-02-01 10:06:19] Production.INFO: ProcessCDR(1,14377617,1,1,2) [2025-02-01 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377617', 'tblTempUsageDetail_20' ) start [2025-02-01 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377617', 'tblTempUsageDetail_20' ) end [2025-02-01 10:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:06:22] Production.INFO: ==30563== Releasing lock... [2025-02-01 10:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:06:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-01 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:07:05 [end_date_ymd] => 2025-02-01 10:07:05 [RateCDR] => 1 ) [2025-02-01 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:07:05' and `end` < '2025-02-01 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:07:17] Production.INFO: count ==678 [2025-02-01 10:07:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:07:05 - End Time 2025-02-01 10:07:05 [2025-02-01 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377622', 'tblTempUsageDetail_20' ) start [2025-02-01 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377622', 'tblTempUsageDetail_20' ) end [2025-02-01 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377622', 'tblTempVendorCDR_20' ) start [2025-02-01 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377622', 'tblTempVendorCDR_20' ) end [2025-02-01 10:07:18] Production.INFO: ProcessCDR(1,14377622,1,1,2) [2025-02-01 10:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377622', 'tblTempUsageDetail_20' ) start [2025-02-01 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377622', 'tblTempUsageDetail_20' ) end [2025-02-01 10:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:07:21] Production.INFO: ==30645== Releasing lock... [2025-02-01 10:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:07:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-01 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:08:06 [end_date_ymd] => 2025-02-01 10:08:06 [RateCDR] => 1 ) [2025-02-01 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-01 07:08:06' and `end` < '2025-02-01 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-01 10:08:19] Production.INFO: count ==683 [2025-02-01 10:08:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:08:06 - End Time 2025-02-01 10:08:06 [2025-02-01 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377627', 'tblTempUsageDetail_20' ) start [2025-02-01 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377627', 'tblTempUsageDetail_20' ) end [2025-02-01 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377627', 'tblTempVendorCDR_20' ) start [2025-02-01 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377627', 'tblTempVendorCDR_20' ) end [2025-02-01 10:08:19] Production.INFO: ProcessCDR(1,14377627,1,1,2) [2025-02-01 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377627', 'tblTempUsageDetail_20' ) start [2025-02-01 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377627', 'tblTempUsageDetail_20' ) end [2025-02-01 10:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:08:22] Production.INFO: ==30726== Releasing lock... [2025-02-01 10:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:08:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-01 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:09:05 [end_date_ymd] => 2025-02-01 10:09:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:09:05' and `end` < '2025-02-01 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-01 10:09:19] Production.INFO: count ==683 [2025-02-01 10:09:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:09:05 - End Time 2025-02-01 10:09:05 [2025-02-01 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377632', 'tblTempUsageDetail_20' ) start [2025-02-01 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377632', 'tblTempUsageDetail_20' ) end [2025-02-01 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377632', 'tblTempVendorCDR_20' ) start [2025-02-01 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377632', 'tblTempVendorCDR_20' ) end [2025-02-01 10:09:19] Production.INFO: ProcessCDR(1,14377632,1,1,2) [2025-02-01 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377632', 'tblTempUsageDetail_20' ) start [2025-02-01 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377632', 'tblTempUsageDetail_20' ) end [2025-02-01 10:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:09:23] Production.INFO: ==30814== Releasing lock... [2025-02-01 10:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:09:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-01 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:10:06 [end_date_ymd] => 2025-02-01 10:10:06 [RateCDR] => 1 ) [2025-02-01 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:10:06' and `end` < '2025-02-01 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:10:19] Production.INFO: count ==693 [2025-02-01 10:10:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:10:06 - End Time 2025-02-01 10:10:06 [2025-02-01 10:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377638', 'tblTempUsageDetail_20' ) start [2025-02-01 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377638', 'tblTempUsageDetail_20' ) end [2025-02-01 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377638', 'tblTempVendorCDR_20' ) start [2025-02-01 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377638', 'tblTempVendorCDR_20' ) end [2025-02-01 10:10:19] Production.INFO: ProcessCDR(1,14377638,1,1,2) [2025-02-01 10:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377638', 'tblTempUsageDetail_20' ) start [2025-02-01 10:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377638', 'tblTempUsageDetail_20' ) end [2025-02-01 10:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:10:22] Production.INFO: ==30895== Releasing lock... [2025-02-01 10:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:10:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-01 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:11:05 [end_date_ymd] => 2025-02-01 10:11:05 [RateCDR] => 1 ) [2025-02-01 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:11:05' and `end` < '2025-02-01 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:11:19] Production.INFO: count ==713 [2025-02-01 10:11:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:11:05 - End Time 2025-02-01 10:11:05 [2025-02-01 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377643', 'tblTempUsageDetail_20' ) start [2025-02-01 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377643', 'tblTempUsageDetail_20' ) end [2025-02-01 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377643', 'tblTempVendorCDR_20' ) start [2025-02-01 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377643', 'tblTempVendorCDR_20' ) end [2025-02-01 10:11:19] Production.INFO: ProcessCDR(1,14377643,1,1,2) [2025-02-01 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377643', 'tblTempUsageDetail_20' ) start [2025-02-01 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377643', 'tblTempUsageDetail_20' ) end [2025-02-01 10:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:11:23] Production.INFO: ==31019== Releasing lock... [2025-02-01 10:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:11:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-01 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:12:05 [end_date_ymd] => 2025-02-01 10:12:05 [RateCDR] => 1 ) [2025-02-01 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:12:05' and `end` < '2025-02-01 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:12:20] Production.INFO: count ==713 [2025-02-01 10:12:20] Production.ERROR: pbx CDR StartTime 2025-02-01 07:12:05 - End Time 2025-02-01 10:12:05 [2025-02-01 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377648', 'tblTempUsageDetail_20' ) start [2025-02-01 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377648', 'tblTempUsageDetail_20' ) end [2025-02-01 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377648', 'tblTempVendorCDR_20' ) start [2025-02-01 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377648', 'tblTempVendorCDR_20' ) end [2025-02-01 10:12:20] Production.INFO: ProcessCDR(1,14377648,1,1,2) [2025-02-01 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377648', 'tblTempUsageDetail_20' ) start [2025-02-01 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377648', 'tblTempUsageDetail_20' ) end [2025-02-01 10:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:12:23] Production.INFO: ==31104== Releasing lock... [2025-02-01 10:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:12:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-01 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:13:05 [end_date_ymd] => 2025-02-01 10:13:05 [RateCDR] => 1 ) [2025-02-01 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:13:05' and `end` < '2025-02-01 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:13:18] Production.INFO: count ==713 [2025-02-01 10:13:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:13:05 - End Time 2025-02-01 10:13:05 [2025-02-01 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377653', 'tblTempUsageDetail_20' ) start [2025-02-01 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377653', 'tblTempUsageDetail_20' ) end [2025-02-01 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377653', 'tblTempVendorCDR_20' ) start [2025-02-01 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377653', 'tblTempVendorCDR_20' ) end [2025-02-01 10:13:19] Production.INFO: ProcessCDR(1,14377653,1,1,2) [2025-02-01 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377653', 'tblTempUsageDetail_20' ) start [2025-02-01 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377653', 'tblTempUsageDetail_20' ) end [2025-02-01 10:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:13:22] Production.INFO: ==31210== Releasing lock... [2025-02-01 10:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:13:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-01 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:14:05 [end_date_ymd] => 2025-02-01 10:14:05 [RateCDR] => 1 ) [2025-02-01 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:14:05' and `end` < '2025-02-01 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:14:19] Production.INFO: count ==713 [2025-02-01 10:14:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:14:05 - End Time 2025-02-01 10:14:05 [2025-02-01 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377658', 'tblTempUsageDetail_20' ) start [2025-02-01 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377658', 'tblTempUsageDetail_20' ) end [2025-02-01 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377658', 'tblTempVendorCDR_20' ) start [2025-02-01 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377658', 'tblTempVendorCDR_20' ) end [2025-02-01 10:14:19] Production.INFO: ProcessCDR(1,14377658,1,1,2) [2025-02-01 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377658', 'tblTempUsageDetail_20' ) start [2025-02-01 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377658', 'tblTempUsageDetail_20' ) end [2025-02-01 10:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:14:22] Production.INFO: ==31305== Releasing lock... [2025-02-01 10:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:14:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-01 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:15:05 [end_date_ymd] => 2025-02-01 10:15:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:15:05' and `end` < '2025-02-01 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-01 10:15:18] Production.INFO: count ==713 [2025-02-01 10:15:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:15:05 - End Time 2025-02-01 10:15:05 [2025-02-01 10:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377663', 'tblTempUsageDetail_20' ) start [2025-02-01 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377663', 'tblTempUsageDetail_20' ) end [2025-02-01 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377663', 'tblTempVendorCDR_20' ) start [2025-02-01 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377663', 'tblTempVendorCDR_20' ) end [2025-02-01 10:15:18] Production.INFO: ProcessCDR(1,14377663,1,1,2) [2025-02-01 10:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377663', 'tblTempUsageDetail_20' ) start [2025-02-01 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377663', 'tblTempUsageDetail_20' ) end [2025-02-01 10:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:15:21] Production.INFO: ==31393== Releasing lock... [2025-02-01 10:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:15:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-01 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:16:04 [end_date_ymd] => 2025-02-01 10:16:04 [RateCDR] => 1 ) [2025-02-01 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-01 07:16:04' and `end` < '2025-02-01 10:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:16:19] Production.INFO: count ==714 [2025-02-01 10:16:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:16:04 - End Time 2025-02-01 10:16:04 [2025-02-01 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377668', 'tblTempUsageDetail_20' ) start [2025-02-01 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377668', 'tblTempUsageDetail_20' ) end [2025-02-01 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377668', 'tblTempVendorCDR_20' ) start [2025-02-01 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377668', 'tblTempVendorCDR_20' ) end [2025-02-01 10:16:19] Production.INFO: ProcessCDR(1,14377668,1,1,2) [2025-02-01 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377668', 'tblTempUsageDetail_20' ) start [2025-02-01 10:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377668', 'tblTempUsageDetail_20' ) end [2025-02-01 10:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:16:22] Production.INFO: ==31491== Releasing lock... [2025-02-01 10:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:16:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-01 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:17:06 [end_date_ymd] => 2025-02-01 10:17:06 [RateCDR] => 1 ) [2025-02-01 10:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:17:06' and `end` < '2025-02-01 10:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:17:19] Production.INFO: count ==722 [2025-02-01 10:17:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:17:06 - End Time 2025-02-01 10:17:06 [2025-02-01 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377673', 'tblTempUsageDetail_20' ) start [2025-02-01 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377673', 'tblTempUsageDetail_20' ) end [2025-02-01 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377673', 'tblTempVendorCDR_20' ) start [2025-02-01 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377673', 'tblTempVendorCDR_20' ) end [2025-02-01 10:17:19] Production.INFO: ProcessCDR(1,14377673,1,1,2) [2025-02-01 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377673', 'tblTempUsageDetail_20' ) start [2025-02-01 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377673', 'tblTempUsageDetail_20' ) end [2025-02-01 10:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:17:23] Production.INFO: ==31583== Releasing lock... [2025-02-01 10:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:17:23] Production.INFO: 34 MB #Memory Used# [2025-02-01 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:18:05 [end_date_ymd] => 2025-02-01 10:18:05 [RateCDR] => 1 ) [2025-02-01 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:18:05' and `end` < '2025-02-01 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:18:18] Production.INFO: count ==724 [2025-02-01 10:18:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:18:05 - End Time 2025-02-01 10:18:05 [2025-02-01 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377678', 'tblTempUsageDetail_20' ) start [2025-02-01 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377678', 'tblTempUsageDetail_20' ) end [2025-02-01 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377678', 'tblTempVendorCDR_20' ) start [2025-02-01 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377678', 'tblTempVendorCDR_20' ) end [2025-02-01 10:18:18] Production.INFO: ProcessCDR(1,14377678,1,1,2) [2025-02-01 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377678', 'tblTempUsageDetail_20' ) start [2025-02-01 10:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377678', 'tblTempUsageDetail_20' ) end [2025-02-01 10:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:18:22] Production.INFO: ==31677== Releasing lock... [2025-02-01 10:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:18:22] Production.INFO: 34 MB #Memory Used# [2025-02-01 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:19:05 [end_date_ymd] => 2025-02-01 10:19:05 [RateCDR] => 1 ) [2025-02-01 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:19:05' and `end` < '2025-02-01 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:19:18] Production.INFO: count ==732 [2025-02-01 10:19:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:19:05 - End Time 2025-02-01 10:19:05 [2025-02-01 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377683', 'tblTempUsageDetail_20' ) start [2025-02-01 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377683', 'tblTempUsageDetail_20' ) end [2025-02-01 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377683', 'tblTempVendorCDR_20' ) start [2025-02-01 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377683', 'tblTempVendorCDR_20' ) end [2025-02-01 10:19:18] Production.INFO: ProcessCDR(1,14377683,1,1,2) [2025-02-01 10:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377683', 'tblTempUsageDetail_20' ) start [2025-02-01 10:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377683', 'tblTempUsageDetail_20' ) end [2025-02-01 10:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:19:22] Production.INFO: ==31771== Releasing lock... [2025-02-01 10:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:19:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-01 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:20:05 [end_date_ymd] => 2025-02-01 10:20:05 [RateCDR] => 1 ) [2025-02-01 10: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-01 07:20:05' and `end` < '2025-02-01 10: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-01 10:20:18] Production.INFO: count ==734 [2025-02-01 10:20:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:20:05 - End Time 2025-02-01 10:20:05 [2025-02-01 10:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377689', 'tblTempUsageDetail_20' ) start [2025-02-01 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377689', 'tblTempUsageDetail_20' ) end [2025-02-01 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377689', 'tblTempVendorCDR_20' ) start [2025-02-01 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377689', 'tblTempVendorCDR_20' ) end [2025-02-01 10:20:18] Production.INFO: ProcessCDR(1,14377689,1,1,2) [2025-02-01 10:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377689', 'tblTempUsageDetail_20' ) start [2025-02-01 10:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377689', 'tblTempUsageDetail_20' ) end [2025-02-01 10:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:20:21] Production.INFO: ==31859== Releasing lock... [2025-02-01 10:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:20:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-01 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:21:05 [end_date_ymd] => 2025-02-01 10:21:05 [RateCDR] => 1 ) [2025-02-01 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:21:05' and `end` < '2025-02-01 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:21:18] Production.INFO: count ==761 [2025-02-01 10:21:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:21:05 - End Time 2025-02-01 10:21:05 [2025-02-01 10:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377694', 'tblTempUsageDetail_20' ) start [2025-02-01 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377694', 'tblTempUsageDetail_20' ) end [2025-02-01 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377694', 'tblTempVendorCDR_20' ) start [2025-02-01 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377694', 'tblTempVendorCDR_20' ) end [2025-02-01 10:21:18] Production.INFO: ProcessCDR(1,14377694,1,1,2) [2025-02-01 10:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377694', 'tblTempUsageDetail_20' ) start [2025-02-01 10:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377694', 'tblTempUsageDetail_20' ) end [2025-02-01 10:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:21:21] Production.INFO: ==31952== Releasing lock... [2025-02-01 10:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:21:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-01 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:22:05 [end_date_ymd] => 2025-02-01 10:22:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:22:05' and `end` < '2025-02-01 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-01 10:22:19] Production.INFO: count ==762 [2025-02-01 10:22:20] Production.ERROR: pbx CDR StartTime 2025-02-01 07:22:05 - End Time 2025-02-01 10:22:05 [2025-02-01 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377699', 'tblTempUsageDetail_20' ) start [2025-02-01 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377699', 'tblTempUsageDetail_20' ) end [2025-02-01 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377699', 'tblTempVendorCDR_20' ) start [2025-02-01 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377699', 'tblTempVendorCDR_20' ) end [2025-02-01 10:22:20] Production.INFO: ProcessCDR(1,14377699,1,1,2) [2025-02-01 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377699', 'tblTempUsageDetail_20' ) start [2025-02-01 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377699', 'tblTempUsageDetail_20' ) end [2025-02-01 10:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:22:24] Production.INFO: ==32043== Releasing lock... [2025-02-01 10:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:22:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-01 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:23:05 [end_date_ymd] => 2025-02-01 10:23:05 [RateCDR] => 1 ) [2025-02-01 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:23:05' and `end` < '2025-02-01 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:23:19] Production.INFO: count ==770 [2025-02-01 10:23:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:23:05 - End Time 2025-02-01 10:23:05 [2025-02-01 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377704', 'tblTempUsageDetail_20' ) start [2025-02-01 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377704', 'tblTempUsageDetail_20' ) end [2025-02-01 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377704', 'tblTempVendorCDR_20' ) start [2025-02-01 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377704', 'tblTempVendorCDR_20' ) end [2025-02-01 10:23:19] Production.INFO: ProcessCDR(1,14377704,1,1,2) [2025-02-01 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377704', 'tblTempUsageDetail_20' ) start [2025-02-01 10:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377704', 'tblTempUsageDetail_20' ) end [2025-02-01 10:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:23:22] Production.INFO: ==32128== Releasing lock... [2025-02-01 10:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:23:22] Production.INFO: 34 MB #Memory Used# [2025-02-01 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:24:05 [end_date_ymd] => 2025-02-01 10:24:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:24:05' and `end` < '2025-02-01 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-01 10:24:18] Production.INFO: count ==771 [2025-02-01 10:24:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:24:05 - End Time 2025-02-01 10:24:05 [2025-02-01 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377709', 'tblTempUsageDetail_20' ) start [2025-02-01 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377709', 'tblTempUsageDetail_20' ) end [2025-02-01 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377709', 'tblTempVendorCDR_20' ) start [2025-02-01 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377709', 'tblTempVendorCDR_20' ) end [2025-02-01 10:24:19] Production.INFO: ProcessCDR(1,14377709,1,1,2) [2025-02-01 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377709', 'tblTempUsageDetail_20' ) start [2025-02-01 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377709', 'tblTempUsageDetail_20' ) end [2025-02-01 10:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:24:23] Production.INFO: ==32217== Releasing lock... [2025-02-01 10:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:24:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-01 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:25:05 [end_date_ymd] => 2025-02-01 10:25:05 [RateCDR] => 1 ) [2025-02-01 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:25:05' and `end` < '2025-02-01 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:25:17] Production.INFO: count ==772 [2025-02-01 10:25:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:25:05 - End Time 2025-02-01 10:25:05 [2025-02-01 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377714', 'tblTempUsageDetail_20' ) start [2025-02-01 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377714', 'tblTempUsageDetail_20' ) end [2025-02-01 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377714', 'tblTempVendorCDR_20' ) start [2025-02-01 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377714', 'tblTempVendorCDR_20' ) end [2025-02-01 10:25:18] Production.INFO: ProcessCDR(1,14377714,1,1,2) [2025-02-01 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377714', 'tblTempUsageDetail_20' ) start [2025-02-01 10:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377714', 'tblTempUsageDetail_20' ) end [2025-02-01 10:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:25:22] Production.INFO: ==32299== Releasing lock... [2025-02-01 10:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:25:22] Production.INFO: 34 MB #Memory Used# [2025-02-01 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:26:05 [end_date_ymd] => 2025-02-01 10:26:05 [RateCDR] => 1 ) [2025-02-01 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:26:05' and `end` < '2025-02-01 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:26:18] Production.INFO: count ==787 [2025-02-01 10:26:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:26:05 - End Time 2025-02-01 10:26:05 [2025-02-01 10:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377719', 'tblTempUsageDetail_20' ) start [2025-02-01 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377719', 'tblTempUsageDetail_20' ) end [2025-02-01 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377719', 'tblTempVendorCDR_20' ) start [2025-02-01 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377719', 'tblTempVendorCDR_20' ) end [2025-02-01 10:26:18] Production.INFO: ProcessCDR(1,14377719,1,1,2) [2025-02-01 10:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377719', 'tblTempUsageDetail_20' ) start [2025-02-01 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377719', 'tblTempUsageDetail_20' ) end [2025-02-01 10:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:26:22] Production.INFO: ==32390== Releasing lock... [2025-02-01 10:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:26:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-01 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:27:05 [end_date_ymd] => 2025-02-01 10:27:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:27:05' and `end` < '2025-02-01 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-01 10:27:19] Production.INFO: count ==787 [2025-02-01 10:27:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:27:05 - End Time 2025-02-01 10:27:05 [2025-02-01 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377724', 'tblTempUsageDetail_20' ) start [2025-02-01 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377724', 'tblTempUsageDetail_20' ) end [2025-02-01 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377724', 'tblTempVendorCDR_20' ) start [2025-02-01 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377724', 'tblTempVendorCDR_20' ) end [2025-02-01 10:27:19] Production.INFO: ProcessCDR(1,14377724,1,1,2) [2025-02-01 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377724', 'tblTempUsageDetail_20' ) start [2025-02-01 10:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377724', 'tblTempUsageDetail_20' ) end [2025-02-01 10:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:27:22] Production.INFO: ==32522== Releasing lock... [2025-02-01 10:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:27:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-01 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:28:05 [end_date_ymd] => 2025-02-01 10:28:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:28:05' and `end` < '2025-02-01 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-01 10:28:18] Production.INFO: count ==787 [2025-02-01 10:28:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:28:05 - End Time 2025-02-01 10:28:05 [2025-02-01 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377729', 'tblTempUsageDetail_20' ) start [2025-02-01 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377729', 'tblTempUsageDetail_20' ) end [2025-02-01 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377729', 'tblTempVendorCDR_20' ) start [2025-02-01 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377729', 'tblTempVendorCDR_20' ) end [2025-02-01 10:28:19] Production.INFO: ProcessCDR(1,14377729,1,1,2) [2025-02-01 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377729', 'tblTempUsageDetail_20' ) start [2025-02-01 10:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377729', 'tblTempUsageDetail_20' ) end [2025-02-01 10:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:28:22] Production.INFO: ==32610== Releasing lock... [2025-02-01 10:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:28:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-01 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:29:05 [end_date_ymd] => 2025-02-01 10:29:05 [RateCDR] => 1 ) [2025-02-01 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:29:05' and `end` < '2025-02-01 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:29:18] Production.INFO: count ==791 [2025-02-01 10:29:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:29:05 - End Time 2025-02-01 10:29:05 [2025-02-01 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377734', 'tblTempUsageDetail_20' ) start [2025-02-01 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377734', 'tblTempUsageDetail_20' ) end [2025-02-01 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377734', 'tblTempVendorCDR_20' ) start [2025-02-01 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377734', 'tblTempVendorCDR_20' ) end [2025-02-01 10:29:18] Production.INFO: ProcessCDR(1,14377734,1,1,2) [2025-02-01 10:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377734', 'tblTempUsageDetail_20' ) start [2025-02-01 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377734', 'tblTempUsageDetail_20' ) end [2025-02-01 10:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:29:23] Production.INFO: ==32700== Releasing lock... [2025-02-01 10:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:29:23] Production.INFO: 34 MB #Memory Used# [2025-02-01 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:30:05 [end_date_ymd] => 2025-02-01 10:30:05 [RateCDR] => 1 ) [2025-02-01 10: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-01 07:30:05' and `end` < '2025-02-01 10: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-01 10:30:18] Production.INFO: count ==795 [2025-02-01 10:30:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:30:05 - End Time 2025-02-01 10:30:05 [2025-02-01 10:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377740', 'tblTempUsageDetail_20' ) start [2025-02-01 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377740', 'tblTempUsageDetail_20' ) end [2025-02-01 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377740', 'tblTempVendorCDR_20' ) start [2025-02-01 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377740', 'tblTempVendorCDR_20' ) end [2025-02-01 10:30:18] Production.INFO: ProcessCDR(1,14377740,1,1,2) [2025-02-01 10:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377740', 'tblTempUsageDetail_20' ) start [2025-02-01 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377740', 'tblTempUsageDetail_20' ) end [2025-02-01 10:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:30:23] Production.INFO: ==328== Releasing lock... [2025-02-01 10:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:30:23] Production.INFO: 34 MB #Memory Used# [2025-02-01 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:31:06 [end_date_ymd] => 2025-02-01 10:31:06 [RateCDR] => 1 ) [2025-02-01 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-01 07:31:06' and `end` < '2025-02-01 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-01 10:31:19] Production.INFO: count ==816 [2025-02-01 10:31:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:31:06 - End Time 2025-02-01 10:31:06 [2025-02-01 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377745', 'tblTempUsageDetail_20' ) start [2025-02-01 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377745', 'tblTempUsageDetail_20' ) end [2025-02-01 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377745', 'tblTempVendorCDR_20' ) start [2025-02-01 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377745', 'tblTempVendorCDR_20' ) end [2025-02-01 10:31:19] Production.INFO: ProcessCDR(1,14377745,1,1,2) [2025-02-01 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377745', 'tblTempUsageDetail_20' ) start [2025-02-01 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377745', 'tblTempUsageDetail_20' ) end [2025-02-01 10:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:31:24] Production.INFO: ==440== Releasing lock... [2025-02-01 10:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:31:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-01 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:32:05 [end_date_ymd] => 2025-02-01 10:32:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:32:05' and `end` < '2025-02-01 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-01 10:32:19] Production.INFO: count ==823 [2025-02-01 10:32:20] Production.ERROR: pbx CDR StartTime 2025-02-01 07:32:05 - End Time 2025-02-01 10:32:05 [2025-02-01 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377750', 'tblTempUsageDetail_20' ) start [2025-02-01 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377750', 'tblTempUsageDetail_20' ) end [2025-02-01 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377750', 'tblTempVendorCDR_20' ) start [2025-02-01 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377750', 'tblTempVendorCDR_20' ) end [2025-02-01 10:32:20] Production.INFO: ProcessCDR(1,14377750,1,1,2) [2025-02-01 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377750', 'tblTempUsageDetail_20' ) start [2025-02-01 10:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377750', 'tblTempUsageDetail_20' ) end [2025-02-01 10:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:32:23] Production.INFO: ==532== Releasing lock... [2025-02-01 10:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:32:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-01 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:33:05 [end_date_ymd] => 2025-02-01 10:33:05 [RateCDR] => 1 ) [2025-02-01 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:33:05' and `end` < '2025-02-01 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:33:19] Production.INFO: count ==824 [2025-02-01 10:33:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:33:05 - End Time 2025-02-01 10:33:05 [2025-02-01 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377755', 'tblTempUsageDetail_20' ) start [2025-02-01 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377755', 'tblTempUsageDetail_20' ) end [2025-02-01 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377755', 'tblTempVendorCDR_20' ) start [2025-02-01 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377755', 'tblTempVendorCDR_20' ) end [2025-02-01 10:33:19] Production.INFO: ProcessCDR(1,14377755,1,1,2) [2025-02-01 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377755', 'tblTempUsageDetail_20' ) start [2025-02-01 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377755', 'tblTempUsageDetail_20' ) end [2025-02-01 10:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:33:24] Production.INFO: ==623== Releasing lock... [2025-02-01 10:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:33:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-01 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:34:05 [end_date_ymd] => 2025-02-01 10:34:05 [RateCDR] => 1 ) [2025-02-01 10: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-01 07:34:05' and `end` < '2025-02-01 10: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-01 10:34:19] Production.INFO: count ==825 [2025-02-01 10:34:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:34:05 - End Time 2025-02-01 10:34:05 [2025-02-01 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377760', 'tblTempUsageDetail_20' ) start [2025-02-01 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377760', 'tblTempUsageDetail_20' ) end [2025-02-01 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377760', 'tblTempVendorCDR_20' ) start [2025-02-01 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377760', 'tblTempVendorCDR_20' ) end [2025-02-01 10:34:19] Production.INFO: ProcessCDR(1,14377760,1,1,2) [2025-02-01 10:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377760', 'tblTempUsageDetail_20' ) start [2025-02-01 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377760', 'tblTempUsageDetail_20' ) end [2025-02-01 10:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:34:24] Production.INFO: ==737== Releasing lock... [2025-02-01 10:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:34:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-01 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:35:05 [end_date_ymd] => 2025-02-01 10:35:05 [RateCDR] => 1 ) [2025-02-01 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:35:05' and `end` < '2025-02-01 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:35:19] Production.INFO: count ==826 [2025-02-01 10:35:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:35:05 - End Time 2025-02-01 10:35:05 [2025-02-01 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377765', 'tblTempUsageDetail_20' ) start [2025-02-01 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377765', 'tblTempUsageDetail_20' ) end [2025-02-01 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377765', 'tblTempVendorCDR_20' ) start [2025-02-01 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377765', 'tblTempVendorCDR_20' ) end [2025-02-01 10:35:19] Production.INFO: ProcessCDR(1,14377765,1,1,2) [2025-02-01 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377765', 'tblTempUsageDetail_20' ) start [2025-02-01 10:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377765', 'tblTempUsageDetail_20' ) end [2025-02-01 10:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:35:23] Production.INFO: ==833== Releasing lock... [2025-02-01 10:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:35:23] Production.INFO: 34 MB #Memory Used# [2025-02-01 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:36:05 [end_date_ymd] => 2025-02-01 10:36:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:36:05' and `end` < '2025-02-01 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-01 10:36:19] Production.INFO: count ==827 [2025-02-01 10:36:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:36:05 - End Time 2025-02-01 10:36:05 [2025-02-01 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377770', 'tblTempUsageDetail_20' ) start [2025-02-01 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377770', 'tblTempUsageDetail_20' ) end [2025-02-01 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377770', 'tblTempVendorCDR_20' ) start [2025-02-01 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377770', 'tblTempVendorCDR_20' ) end [2025-02-01 10:36:19] Production.INFO: ProcessCDR(1,14377770,1,1,2) [2025-02-01 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377770', 'tblTempUsageDetail_20' ) start [2025-02-01 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377770', 'tblTempUsageDetail_20' ) end [2025-02-01 10:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:36:24] Production.INFO: ==918== Releasing lock... [2025-02-01 10:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:36:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-01 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:37:05 [end_date_ymd] => 2025-02-01 10:37:05 [RateCDR] => 1 ) [2025-02-01 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:37:05' and `end` < '2025-02-01 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:37:18] Production.INFO: count ==836 [2025-02-01 10:37:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:37:05 - End Time 2025-02-01 10:37:05 [2025-02-01 10:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377775', 'tblTempUsageDetail_20' ) start [2025-02-01 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377775', 'tblTempUsageDetail_20' ) end [2025-02-01 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377775', 'tblTempVendorCDR_20' ) start [2025-02-01 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377775', 'tblTempVendorCDR_20' ) end [2025-02-01 10:37:18] Production.INFO: ProcessCDR(1,14377775,1,1,2) [2025-02-01 10:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377775', 'tblTempUsageDetail_20' ) start [2025-02-01 10:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377775', 'tblTempUsageDetail_20' ) end [2025-02-01 10:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:37:23] Production.INFO: ==1007== Releasing lock... [2025-02-01 10:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:37:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-01 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:38:05 [end_date_ymd] => 2025-02-01 10:38:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:38:05' and `end` < '2025-02-01 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-01 10:38:18] Production.INFO: count ==837 [2025-02-01 10:38:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:38:05 - End Time 2025-02-01 10:38:05 [2025-02-01 10:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377780', 'tblTempUsageDetail_20' ) start [2025-02-01 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377780', 'tblTempUsageDetail_20' ) end [2025-02-01 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377780', 'tblTempVendorCDR_20' ) start [2025-02-01 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377780', 'tblTempVendorCDR_20' ) end [2025-02-01 10:38:18] Production.INFO: ProcessCDR(1,14377780,1,1,2) [2025-02-01 10:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377780', 'tblTempUsageDetail_20' ) start [2025-02-01 10:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377780', 'tblTempUsageDetail_20' ) end [2025-02-01 10:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:38:22] Production.INFO: ==1099== Releasing lock... [2025-02-01 10:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:38:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-01 10:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:39:04 [end_date_ymd] => 2025-02-01 10:39:04 [RateCDR] => 1 ) [2025-02-01 10: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-01 07:39:04' and `end` < '2025-02-01 10: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-01 10:39:17] Production.INFO: count ==846 [2025-02-01 10:39:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:39:04 - End Time 2025-02-01 10:39:04 [2025-02-01 10:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377785', 'tblTempUsageDetail_20' ) start [2025-02-01 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377785', 'tblTempUsageDetail_20' ) end [2025-02-01 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377785', 'tblTempVendorCDR_20' ) start [2025-02-01 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377785', 'tblTempVendorCDR_20' ) end [2025-02-01 10:39:18] Production.INFO: ProcessCDR(1,14377785,1,1,2) [2025-02-01 10:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377785', 'tblTempUsageDetail_20' ) start [2025-02-01 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377785', 'tblTempUsageDetail_20' ) end [2025-02-01 10:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:39:22] Production.INFO: ==1190== Releasing lock... [2025-02-01 10:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:39:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-01 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:40:06 [end_date_ymd] => 2025-02-01 10:40:06 [RateCDR] => 1 ) [2025-02-01 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-01 07:40:06' and `end` < '2025-02-01 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-01 10:40:18] Production.INFO: count ==851 [2025-02-01 10:40:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:40:06 - End Time 2025-02-01 10:40:06 [2025-02-01 10:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377790', 'tblTempUsageDetail_20' ) start [2025-02-01 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377790', 'tblTempUsageDetail_20' ) end [2025-02-01 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377790', 'tblTempVendorCDR_20' ) start [2025-02-01 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377790', 'tblTempVendorCDR_20' ) end [2025-02-01 10:40:19] Production.INFO: ProcessCDR(1,14377790,1,1,2) [2025-02-01 10:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377790', 'tblTempUsageDetail_20' ) start [2025-02-01 10:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377790', 'tblTempUsageDetail_20' ) end [2025-02-01 10:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:40:23] Production.INFO: ==1288== Releasing lock... [2025-02-01 10:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:40:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-01 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:41:05 [end_date_ymd] => 2025-02-01 10:41:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:41:05' and `end` < '2025-02-01 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-01 10:41:18] Production.INFO: count ==876 [2025-02-01 10:41:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:41:05 - End Time 2025-02-01 10:41:05 [2025-02-01 10:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377796', 'tblTempUsageDetail_20' ) start [2025-02-01 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377796', 'tblTempUsageDetail_20' ) end [2025-02-01 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377796', 'tblTempVendorCDR_20' ) start [2025-02-01 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377796', 'tblTempVendorCDR_20' ) end [2025-02-01 10:41:18] Production.INFO: ProcessCDR(1,14377796,1,1,2) [2025-02-01 10:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377796', 'tblTempUsageDetail_20' ) start [2025-02-01 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377796', 'tblTempUsageDetail_20' ) end [2025-02-01 10:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:41:21] Production.INFO: ==1379== Releasing lock... [2025-02-01 10:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:41:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-01 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:42:05 [end_date_ymd] => 2025-02-01 10:42:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:42:05' and `end` < '2025-02-01 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-01 10:42:17] Production.INFO: count ==882 [2025-02-01 10:42:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:42:05 - End Time 2025-02-01 10:42:05 [2025-02-01 10:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377801', 'tblTempUsageDetail_20' ) start [2025-02-01 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377801', 'tblTempUsageDetail_20' ) end [2025-02-01 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377801', 'tblTempVendorCDR_20' ) start [2025-02-01 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377801', 'tblTempVendorCDR_20' ) end [2025-02-01 10:42:18] Production.INFO: ProcessCDR(1,14377801,1,1,2) [2025-02-01 10:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377801', 'tblTempUsageDetail_20' ) start [2025-02-01 10:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377801', 'tblTempUsageDetail_20' ) end [2025-02-01 10:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:42:21] Production.INFO: ==1537== Releasing lock... [2025-02-01 10:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:42:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:43:05 [end_date_ymd] => 2025-02-01 10:43:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:43:05' and `end` < '2025-02-01 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-01 10:43:18] Production.INFO: count ==895 [2025-02-01 10:43:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:43:05 - End Time 2025-02-01 10:43:05 [2025-02-01 10:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377806', 'tblTempUsageDetail_20' ) start [2025-02-01 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377806', 'tblTempUsageDetail_20' ) end [2025-02-01 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377806', 'tblTempVendorCDR_20' ) start [2025-02-01 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377806', 'tblTempVendorCDR_20' ) end [2025-02-01 10:43:18] Production.INFO: ProcessCDR(1,14377806,1,1,2) [2025-02-01 10:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377806', 'tblTempUsageDetail_20' ) start [2025-02-01 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377806', 'tblTempUsageDetail_20' ) end [2025-02-01 10:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:43:23] Production.INFO: ==1622== Releasing lock... [2025-02-01 10:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:43:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-01 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:44:05 [end_date_ymd] => 2025-02-01 10:44:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:44:05' and `end` < '2025-02-01 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-01 10:44:21] Production.INFO: count ==902 [2025-02-01 10:44:21] Production.ERROR: pbx CDR StartTime 2025-02-01 07:44:05 - End Time 2025-02-01 10:44:05 [2025-02-01 10:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377811', 'tblTempUsageDetail_20' ) start [2025-02-01 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377811', 'tblTempUsageDetail_20' ) end [2025-02-01 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377811', 'tblTempVendorCDR_20' ) start [2025-02-01 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377811', 'tblTempVendorCDR_20' ) end [2025-02-01 10:44:21] Production.INFO: ProcessCDR(1,14377811,1,1,2) [2025-02-01 10:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377811', 'tblTempUsageDetail_20' ) start [2025-02-01 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377811', 'tblTempUsageDetail_20' ) end [2025-02-01 10:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:44:26] Production.INFO: ==1707== Releasing lock... [2025-02-01 10:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:44:26] Production.INFO: 34.75 MB #Memory Used# [2025-02-01 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:45:05 [end_date_ymd] => 2025-02-01 10:45:05 [RateCDR] => 1 ) [2025-02-01 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:45:05' and `end` < '2025-02-01 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:45:18] Production.INFO: count ==908 [2025-02-01 10:45:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:45:05 - End Time 2025-02-01 10:45:05 [2025-02-01 10:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377816', 'tblTempUsageDetail_20' ) start [2025-02-01 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377816', 'tblTempUsageDetail_20' ) end [2025-02-01 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377816', 'tblTempVendorCDR_20' ) start [2025-02-01 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377816', 'tblTempVendorCDR_20' ) end [2025-02-01 10:45:18] Production.INFO: ProcessCDR(1,14377816,1,1,2) [2025-02-01 10:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377816', 'tblTempUsageDetail_20' ) start [2025-02-01 10:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377816', 'tblTempUsageDetail_20' ) end [2025-02-01 10:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:45:22] Production.INFO: ==1788== Releasing lock... [2025-02-01 10:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:45:22] Production.INFO: 35 MB #Memory Used# [2025-02-01 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:46:06 [end_date_ymd] => 2025-02-01 10:46:06 [RateCDR] => 1 ) [2025-02-01 10: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-01 07:46:06' and `end` < '2025-02-01 10: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-01 10:46:19] Production.INFO: count ==912 [2025-02-01 10:46:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:46:06 - End Time 2025-02-01 10:46:06 [2025-02-01 10:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377821', 'tblTempUsageDetail_20' ) start [2025-02-01 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377821', 'tblTempUsageDetail_20' ) end [2025-02-01 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377821', 'tblTempVendorCDR_20' ) start [2025-02-01 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377821', 'tblTempVendorCDR_20' ) end [2025-02-01 10:46:19] Production.INFO: ProcessCDR(1,14377821,1,1,2) [2025-02-01 10:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377821', 'tblTempUsageDetail_20' ) start [2025-02-01 10:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377821', 'tblTempUsageDetail_20' ) end [2025-02-01 10:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:46:22] Production.INFO: ==1871== Releasing lock... [2025-02-01 10:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:46:22] Production.INFO: 35 MB #Memory Used# [2025-02-01 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:47:05 [end_date_ymd] => 2025-02-01 10:47:05 [RateCDR] => 1 ) [2025-02-01 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:47:05' and `end` < '2025-02-01 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:47:20] Production.INFO: count ==913 [2025-02-01 10:47:20] Production.ERROR: pbx CDR StartTime 2025-02-01 07:47:05 - End Time 2025-02-01 10:47:05 [2025-02-01 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377826', 'tblTempUsageDetail_20' ) start [2025-02-01 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377826', 'tblTempUsageDetail_20' ) end [2025-02-01 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377826', 'tblTempVendorCDR_20' ) start [2025-02-01 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377826', 'tblTempVendorCDR_20' ) end [2025-02-01 10:47:20] Production.INFO: ProcessCDR(1,14377826,1,1,2) [2025-02-01 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377826', 'tblTempUsageDetail_20' ) start [2025-02-01 10:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377826', 'tblTempUsageDetail_20' ) end [2025-02-01 10:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:47:23] Production.INFO: ==1953== Releasing lock... [2025-02-01 10:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:47:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:48:05 [end_date_ymd] => 2025-02-01 10:48:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:48:05' and `end` < '2025-02-01 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-01 10:48:18] Production.INFO: count ==915 [2025-02-01 10:48:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:48:05 - End Time 2025-02-01 10:48:05 [2025-02-01 10:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377831', 'tblTempUsageDetail_20' ) start [2025-02-01 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377831', 'tblTempUsageDetail_20' ) end [2025-02-01 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377831', 'tblTempVendorCDR_20' ) start [2025-02-01 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377831', 'tblTempVendorCDR_20' ) end [2025-02-01 10:48:18] Production.INFO: ProcessCDR(1,14377831,1,1,2) [2025-02-01 10:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377831', 'tblTempUsageDetail_20' ) start [2025-02-01 10:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377831', 'tblTempUsageDetail_20' ) end [2025-02-01 10:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:48:23] Production.INFO: ==2030== Releasing lock... [2025-02-01 10:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:48:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-01 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:49:05 [end_date_ymd] => 2025-02-01 10:49:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:49:05' and `end` < '2025-02-01 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-01 10:49:18] Production.INFO: count ==917 [2025-02-01 10:49:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:49:05 - End Time 2025-02-01 10:49:05 [2025-02-01 10:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377836', 'tblTempUsageDetail_20' ) start [2025-02-01 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377836', 'tblTempUsageDetail_20' ) end [2025-02-01 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377836', 'tblTempVendorCDR_20' ) start [2025-02-01 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377836', 'tblTempVendorCDR_20' ) end [2025-02-01 10:49:19] Production.INFO: ProcessCDR(1,14377836,1,1,2) [2025-02-01 10:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377836', 'tblTempUsageDetail_20' ) start [2025-02-01 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377836', 'tblTempUsageDetail_20' ) end [2025-02-01 10:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:49:22] Production.INFO: ==2115== Releasing lock... [2025-02-01 10:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:49:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:50:06 [end_date_ymd] => 2025-02-01 10:50:06 [RateCDR] => 1 ) [2025-02-01 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:50:06' and `end` < '2025-02-01 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:50:19] Production.INFO: count ==923 [2025-02-01 10:50:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:50:06 - End Time 2025-02-01 10:50:06 [2025-02-01 10:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377842', 'tblTempUsageDetail_20' ) start [2025-02-01 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377842', 'tblTempUsageDetail_20' ) end [2025-02-01 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377842', 'tblTempVendorCDR_20' ) start [2025-02-01 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377842', 'tblTempVendorCDR_20' ) end [2025-02-01 10:50:19] Production.INFO: ProcessCDR(1,14377842,1,1,2) [2025-02-01 10:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377842', 'tblTempUsageDetail_20' ) start [2025-02-01 10:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377842', 'tblTempUsageDetail_20' ) end [2025-02-01 10:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:50:23] Production.INFO: ==2198== Releasing lock... [2025-02-01 10:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:50:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-01 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:51:05 [end_date_ymd] => 2025-02-01 10:51:05 [RateCDR] => 1 ) [2025-02-01 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:51:05' and `end` < '2025-02-01 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:51:19] Production.INFO: count ==967 [2025-02-01 10:51:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:51:05 - End Time 2025-02-01 10:51:05 [2025-02-01 10:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377847', 'tblTempUsageDetail_20' ) start [2025-02-01 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377847', 'tblTempUsageDetail_20' ) end [2025-02-01 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377847', 'tblTempVendorCDR_20' ) start [2025-02-01 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377847', 'tblTempVendorCDR_20' ) end [2025-02-01 10:51:19] Production.INFO: ProcessCDR(1,14377847,1,1,2) [2025-02-01 10:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377847', 'tblTempUsageDetail_20' ) start [2025-02-01 10:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377847', 'tblTempUsageDetail_20' ) end [2025-02-01 10:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:51:23] Production.INFO: ==2281== Releasing lock... [2025-02-01 10:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:51:23] Production.INFO: 35 MB #Memory Used# [2025-02-01 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:52:05 [end_date_ymd] => 2025-02-01 10:52:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:52:05' and `end` < '2025-02-01 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-01 10:52:18] Production.INFO: count ==969 [2025-02-01 10:52:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:52:05 - End Time 2025-02-01 10:52:05 [2025-02-01 10:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377852', 'tblTempUsageDetail_20' ) start [2025-02-01 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377852', 'tblTempUsageDetail_20' ) end [2025-02-01 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377852', 'tblTempVendorCDR_20' ) start [2025-02-01 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377852', 'tblTempVendorCDR_20' ) end [2025-02-01 10:52:18] Production.INFO: ProcessCDR(1,14377852,1,1,2) [2025-02-01 10:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377852', 'tblTempUsageDetail_20' ) start [2025-02-01 10:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377852', 'tblTempUsageDetail_20' ) end [2025-02-01 10:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:52:23] Production.INFO: ==2360== Releasing lock... [2025-02-01 10:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:52:23] Production.INFO: 36 MB #Memory Used# [2025-02-01 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:53:05 [end_date_ymd] => 2025-02-01 10:53:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:53:05' and `end` < '2025-02-01 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-01 10:53:18] Production.INFO: count ==970 [2025-02-01 10:53:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:53:05 - End Time 2025-02-01 10:53:05 [2025-02-01 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377857', 'tblTempUsageDetail_20' ) start [2025-02-01 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377857', 'tblTempUsageDetail_20' ) end [2025-02-01 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377857', 'tblTempVendorCDR_20' ) start [2025-02-01 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377857', 'tblTempVendorCDR_20' ) end [2025-02-01 10:53:19] Production.INFO: ProcessCDR(1,14377857,1,1,2) [2025-02-01 10:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377857', 'tblTempUsageDetail_20' ) start [2025-02-01 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377857', 'tblTempUsageDetail_20' ) end [2025-02-01 10:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:53:22] Production.INFO: ==2440== Releasing lock... [2025-02-01 10:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:53:22] Production.INFO: 36 MB #Memory Used# [2025-02-01 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:54:05 [end_date_ymd] => 2025-02-01 10:54:05 [RateCDR] => 1 ) [2025-02-01 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:54:05' and `end` < '2025-02-01 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:54:19] Production.INFO: count ==972 [2025-02-01 10:54:20] Production.ERROR: pbx CDR StartTime 2025-02-01 07:54:05 - End Time 2025-02-01 10:54:05 [2025-02-01 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377862', 'tblTempUsageDetail_20' ) start [2025-02-01 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377862', 'tblTempUsageDetail_20' ) end [2025-02-01 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377862', 'tblTempVendorCDR_20' ) start [2025-02-01 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377862', 'tblTempVendorCDR_20' ) end [2025-02-01 10:54:20] Production.INFO: ProcessCDR(1,14377862,1,1,2) [2025-02-01 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377862', 'tblTempUsageDetail_20' ) start [2025-02-01 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377862', 'tblTempUsageDetail_20' ) end [2025-02-01 10:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:54:23] Production.INFO: ==2519== Releasing lock... [2025-02-01 10:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:54:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-01 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:55:05 [end_date_ymd] => 2025-02-01 10:55:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:55:05' and `end` < '2025-02-01 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-01 10:55:18] Production.INFO: count ==974 [2025-02-01 10:55:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:55:05 - End Time 2025-02-01 10:55:05 [2025-02-01 10:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377867', 'tblTempUsageDetail_20' ) start [2025-02-01 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377867', 'tblTempUsageDetail_20' ) end [2025-02-01 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377867', 'tblTempVendorCDR_20' ) start [2025-02-01 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377867', 'tblTempVendorCDR_20' ) end [2025-02-01 10:55:18] Production.INFO: ProcessCDR(1,14377867,1,1,2) [2025-02-01 10:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377867', 'tblTempUsageDetail_20' ) start [2025-02-01 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377867', 'tblTempUsageDetail_20' ) end [2025-02-01 10:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:55:21] Production.INFO: ==2600== Releasing lock... [2025-02-01 10:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:55:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-01 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:56:05 [end_date_ymd] => 2025-02-01 10:56:05 [RateCDR] => 1 ) [2025-02-01 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 07:56:05' and `end` < '2025-02-01 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 10:56:18] Production.INFO: count ==976 [2025-02-01 10:56:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:56:05 - End Time 2025-02-01 10:56:05 [2025-02-01 10:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377872', 'tblTempUsageDetail_20' ) start [2025-02-01 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377872', 'tblTempUsageDetail_20' ) end [2025-02-01 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377872', 'tblTempVendorCDR_20' ) start [2025-02-01 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377872', 'tblTempVendorCDR_20' ) end [2025-02-01 10:56:18] Production.INFO: ProcessCDR(1,14377872,1,1,2) [2025-02-01 10:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377872', 'tblTempUsageDetail_20' ) start [2025-02-01 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377872', 'tblTempUsageDetail_20' ) end [2025-02-01 10:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:56:23] Production.INFO: ==2686== Releasing lock... [2025-02-01 10:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:56:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-01 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:57:05 [end_date_ymd] => 2025-02-01 10:57:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:57:05' and `end` < '2025-02-01 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-01 10:57:19] Production.INFO: count ==983 [2025-02-01 10:57:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:57:05 - End Time 2025-02-01 10:57:05 [2025-02-01 10:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377877', 'tblTempUsageDetail_20' ) start [2025-02-01 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377877', 'tblTempUsageDetail_20' ) end [2025-02-01 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377877', 'tblTempVendorCDR_20' ) start [2025-02-01 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377877', 'tblTempVendorCDR_20' ) end [2025-02-01 10:57:19] Production.INFO: ProcessCDR(1,14377877,1,1,2) [2025-02-01 10:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377877', 'tblTempUsageDetail_20' ) start [2025-02-01 10:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377877', 'tblTempUsageDetail_20' ) end [2025-02-01 10:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:57:23] Production.INFO: ==2761== Releasing lock... [2025-02-01 10:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:57:23] Production.INFO: 36 MB #Memory Used# [2025-02-01 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:58:05 [end_date_ymd] => 2025-02-01 10:58:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:58:05' and `end` < '2025-02-01 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-01 10:58:18] Production.INFO: count ==995 [2025-02-01 10:58:18] Production.ERROR: pbx CDR StartTime 2025-02-01 07:58:05 - End Time 2025-02-01 10:58:05 [2025-02-01 10:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377882', 'tblTempUsageDetail_20' ) start [2025-02-01 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377882', 'tblTempUsageDetail_20' ) end [2025-02-01 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377882', 'tblTempVendorCDR_20' ) start [2025-02-01 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377882', 'tblTempVendorCDR_20' ) end [2025-02-01 10:58:18] Production.INFO: ProcessCDR(1,14377882,1,1,2) [2025-02-01 10:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377882', 'tblTempUsageDetail_20' ) start [2025-02-01 10:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377882', 'tblTempUsageDetail_20' ) end [2025-02-01 10:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:58:23] Production.INFO: ==2878== Releasing lock... [2025-02-01 10:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:58:23] Production.INFO: 36 MB #Memory Used# [2025-02-01 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 07:59:05 [end_date_ymd] => 2025-02-01 10:59:05 [RateCDR] => 1 ) [2025-02-01 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-01 07:59:05' and `end` < '2025-02-01 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-01 10:59:19] Production.INFO: count ==995 [2025-02-01 10:59:19] Production.ERROR: pbx CDR StartTime 2025-02-01 07:59:05 - End Time 2025-02-01 10:59:05 [2025-02-01 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377887', 'tblTempUsageDetail_20' ) start [2025-02-01 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377887', 'tblTempUsageDetail_20' ) end [2025-02-01 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377887', 'tblTempVendorCDR_20' ) start [2025-02-01 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377887', 'tblTempVendorCDR_20' ) end [2025-02-01 10:59:19] Production.INFO: ProcessCDR(1,14377887,1,1,2) [2025-02-01 10:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 10:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 10:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377887', 'tblTempUsageDetail_20' ) start [2025-02-01 10:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377887', 'tblTempUsageDetail_20' ) end [2025-02-01 10:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 10:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 10:59:23] Production.INFO: ==2957== Releasing lock... [2025-02-01 10:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 10:59:23] Production.INFO: 36 MB #Memory Used# [2025-02-01 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:00:05 [end_date_ymd] => 2025-02-01 11:00:05 [RateCDR] => 1 ) [2025-02-01 11: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-01 08:00:05' and `end` < '2025-02-01 11: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-01 11:00:18] Production.INFO: count ==996 [2025-02-01 11:00:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:00:05 - End Time 2025-02-01 11:00:05 [2025-02-01 11:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377892', 'tblTempUsageDetail_20' ) start [2025-02-01 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377892', 'tblTempUsageDetail_20' ) end [2025-02-01 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377892', 'tblTempVendorCDR_20' ) start [2025-02-01 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377892', 'tblTempVendorCDR_20' ) end [2025-02-01 11:00:18] Production.INFO: ProcessCDR(1,14377892,1,1,2) [2025-02-01 11:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377892', 'tblTempUsageDetail_20' ) start [2025-02-01 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377892', 'tblTempUsageDetail_20' ) end [2025-02-01 11:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:00:23] Production.INFO: ==3036== Releasing lock... [2025-02-01 11:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:00:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-01 11:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:01:04 [end_date_ymd] => 2025-02-01 11:01:04 [RateCDR] => 1 ) [2025-02-01 11:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:01:04' and `end` < '2025-02-01 11:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:01:17] Production.INFO: count ==1038 [2025-02-01 11:01:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:01:04 - End Time 2025-02-01 11:01:04 [2025-02-01 11:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377898', 'tblTempUsageDetail_20' ) start [2025-02-01 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377898', 'tblTempUsageDetail_20' ) end [2025-02-01 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377898', 'tblTempVendorCDR_20' ) start [2025-02-01 11:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377898', 'tblTempVendorCDR_20' ) end [2025-02-01 11:01:18] Production.INFO: ProcessCDR(1,14377898,1,1,2) [2025-02-01 11:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377898', 'tblTempUsageDetail_20' ) start [2025-02-01 11:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377898', 'tblTempUsageDetail_20' ) end [2025-02-01 11:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:01:22] Production.INFO: ==3129== Releasing lock... [2025-02-01 11:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:01:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-01 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:02:05 [end_date_ymd] => 2025-02-01 11:02:05 [RateCDR] => 1 ) [2025-02-01 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:02:05' and `end` < '2025-02-01 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:02:18] Production.INFO: count ==1039 [2025-02-01 11:02:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:02:05 - End Time 2025-02-01 11:02:05 [2025-02-01 11:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377903', 'tblTempUsageDetail_20' ) start [2025-02-01 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377903', 'tblTempUsageDetail_20' ) end [2025-02-01 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377903', 'tblTempVendorCDR_20' ) start [2025-02-01 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377903', 'tblTempVendorCDR_20' ) end [2025-02-01 11:02:19] Production.INFO: ProcessCDR(1,14377903,1,1,2) [2025-02-01 11:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377903', 'tblTempUsageDetail_20' ) start [2025-02-01 11:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377903', 'tblTempUsageDetail_20' ) end [2025-02-01 11:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:02:23] Production.INFO: ==3283== Releasing lock... [2025-02-01 11:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:02:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-01 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:03:05 [end_date_ymd] => 2025-02-01 11:03:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:03:05' and `end` < '2025-02-01 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-01 11:03:19] Production.INFO: count ==1039 [2025-02-01 11:03:20] Production.ERROR: pbx CDR StartTime 2025-02-01 08:03:05 - End Time 2025-02-01 11:03:05 [2025-02-01 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377908', 'tblTempUsageDetail_20' ) start [2025-02-01 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377908', 'tblTempUsageDetail_20' ) end [2025-02-01 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377908', 'tblTempVendorCDR_20' ) start [2025-02-01 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377908', 'tblTempVendorCDR_20' ) end [2025-02-01 11:03:20] Production.INFO: ProcessCDR(1,14377908,1,1,2) [2025-02-01 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377908', 'tblTempUsageDetail_20' ) start [2025-02-01 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377908', 'tblTempUsageDetail_20' ) end [2025-02-01 11:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:03:23] Production.INFO: ==3359== Releasing lock... [2025-02-01 11:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:03:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-01 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:04:05 [end_date_ymd] => 2025-02-01 11:04:05 [RateCDR] => 1 ) [2025-02-01 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:04:05' and `end` < '2025-02-01 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:04:18] Production.INFO: count ==1041 [2025-02-01 11:04:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:04:05 - End Time 2025-02-01 11:04:05 [2025-02-01 11:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377913', 'tblTempUsageDetail_20' ) start [2025-02-01 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377913', 'tblTempUsageDetail_20' ) end [2025-02-01 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377913', 'tblTempVendorCDR_20' ) start [2025-02-01 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377913', 'tblTempVendorCDR_20' ) end [2025-02-01 11:04:19] Production.INFO: ProcessCDR(1,14377913,1,1,2) [2025-02-01 11:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377913', 'tblTempUsageDetail_20' ) start [2025-02-01 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377913', 'tblTempUsageDetail_20' ) end [2025-02-01 11:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:04:24] Production.INFO: ==3433== Releasing lock... [2025-02-01 11:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:04:24] Production.INFO: 36 MB #Memory Used# [2025-02-01 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:05:05 [end_date_ymd] => 2025-02-01 11:05:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:05:05' and `end` < '2025-02-01 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-01 11:05:17] Production.INFO: count ==1043 [2025-02-01 11:05:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:05:05 - End Time 2025-02-01 11:05:05 [2025-02-01 11:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377918', 'tblTempUsageDetail_20' ) start [2025-02-01 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377918', 'tblTempUsageDetail_20' ) end [2025-02-01 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377918', 'tblTempVendorCDR_20' ) start [2025-02-01 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377918', 'tblTempVendorCDR_20' ) end [2025-02-01 11:05:18] Production.INFO: ProcessCDR(1,14377918,1,1,2) [2025-02-01 11:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377918', 'tblTempUsageDetail_20' ) start [2025-02-01 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377918', 'tblTempUsageDetail_20' ) end [2025-02-01 11:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:05:22] Production.INFO: ==3585== Releasing lock... [2025-02-01 11:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:05:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-01 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:06:05 [end_date_ymd] => 2025-02-01 11:06:05 [RateCDR] => 1 ) [2025-02-01 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:06:05' and `end` < '2025-02-01 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:06:21] Production.INFO: count ==1045 [2025-02-01 11:06:21] Production.ERROR: pbx CDR StartTime 2025-02-01 08:06:05 - End Time 2025-02-01 11:06:05 [2025-02-01 11:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377923', 'tblTempUsageDetail_20' ) start [2025-02-01 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377923', 'tblTempUsageDetail_20' ) end [2025-02-01 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377923', 'tblTempVendorCDR_20' ) start [2025-02-01 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377923', 'tblTempVendorCDR_20' ) end [2025-02-01 11:06:21] Production.INFO: ProcessCDR(1,14377923,1,1,2) [2025-02-01 11:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377923', 'tblTempUsageDetail_20' ) start [2025-02-01 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377923', 'tblTempUsageDetail_20' ) end [2025-02-01 11:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:06:26] Production.INFO: ==3655== Releasing lock... [2025-02-01 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:06:26] Production.INFO: 36 MB #Memory Used# [2025-02-01 11:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:07:04 [end_date_ymd] => 2025-02-01 11:07:04 [RateCDR] => 1 ) [2025-02-01 11:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:07:04' and `end` < '2025-02-01 11:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:07:17] Production.INFO: count ==1045 [2025-02-01 11:07:17] Production.ERROR: pbx CDR StartTime 2025-02-01 08:07:04 - End Time 2025-02-01 11:07:04 [2025-02-01 11:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377928', 'tblTempUsageDetail_20' ) start [2025-02-01 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377928', 'tblTempUsageDetail_20' ) end [2025-02-01 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377928', 'tblTempVendorCDR_20' ) start [2025-02-01 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377928', 'tblTempVendorCDR_20' ) end [2025-02-01 11:07:17] Production.INFO: ProcessCDR(1,14377928,1,1,2) [2025-02-01 11:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377928', 'tblTempUsageDetail_20' ) start [2025-02-01 11:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377928', 'tblTempUsageDetail_20' ) end [2025-02-01 11:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:07:20] Production.INFO: ==3727== Releasing lock... [2025-02-01 11:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:07:20] Production.INFO: 36 MB #Memory Used# [2025-02-01 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:08:05 [end_date_ymd] => 2025-02-01 11:08:05 [RateCDR] => 1 ) [2025-02-01 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:08:05' and `end` < '2025-02-01 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:08:18] Production.INFO: count ==1046 [2025-02-01 11:08:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:08:05 - End Time 2025-02-01 11:08:05 [2025-02-01 11:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377933', 'tblTempUsageDetail_20' ) start [2025-02-01 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377933', 'tblTempUsageDetail_20' ) end [2025-02-01 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377933', 'tblTempVendorCDR_20' ) start [2025-02-01 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377933', 'tblTempVendorCDR_20' ) end [2025-02-01 11:08:18] Production.INFO: ProcessCDR(1,14377933,1,1,2) [2025-02-01 11:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377933', 'tblTempUsageDetail_20' ) start [2025-02-01 11:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377933', 'tblTempUsageDetail_20' ) end [2025-02-01 11:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:08:23] Production.INFO: ==3876== Releasing lock... [2025-02-01 11:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:08:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-01 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:09:06 [end_date_ymd] => 2025-02-01 11:09:06 [RateCDR] => 1 ) [2025-02-01 11:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:09:06' and `end` < '2025-02-01 11:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:09:20] Production.INFO: count ==1047 [2025-02-01 11:09:20] Production.ERROR: pbx CDR StartTime 2025-02-01 08:09:06 - End Time 2025-02-01 11:09:06 [2025-02-01 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377938', 'tblTempUsageDetail_20' ) start [2025-02-01 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377938', 'tblTempUsageDetail_20' ) end [2025-02-01 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377938', 'tblTempVendorCDR_20' ) start [2025-02-01 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377938', 'tblTempVendorCDR_20' ) end [2025-02-01 11:09:20] Production.INFO: ProcessCDR(1,14377938,1,1,2) [2025-02-01 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377938', 'tblTempUsageDetail_20' ) start [2025-02-01 11:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377938', 'tblTempUsageDetail_20' ) end [2025-02-01 11:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:09:24] Production.INFO: ==3950== Releasing lock... [2025-02-01 11:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:09:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-01 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:10:05 [end_date_ymd] => 2025-02-01 11:10:05 [RateCDR] => 1 ) [2025-02-01 11: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-01 08:10:05' and `end` < '2025-02-01 11: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-01 11:10:18] Production.INFO: count ==1063 [2025-02-01 11:10:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:10:05 - End Time 2025-02-01 11:10:05 [2025-02-01 11:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377943', 'tblTempUsageDetail_20' ) start [2025-02-01 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377943', 'tblTempUsageDetail_20' ) end [2025-02-01 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377943', 'tblTempVendorCDR_20' ) start [2025-02-01 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377943', 'tblTempVendorCDR_20' ) end [2025-02-01 11:10:19] Production.INFO: ProcessCDR(1,14377943,1,1,2) [2025-02-01 11:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377943', 'tblTempUsageDetail_20' ) start [2025-02-01 11:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377943', 'tblTempUsageDetail_20' ) end [2025-02-01 11:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:10:22] Production.INFO: ==4024== Releasing lock... [2025-02-01 11:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:10:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-01 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:11:05 [end_date_ymd] => 2025-02-01 11:11:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:11:05' and `end` < '2025-02-01 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-01 11:11:22] Production.INFO: count ==1126 [2025-02-01 11:11:22] Production.ERROR: pbx CDR StartTime 2025-02-01 08:11:05 - End Time 2025-02-01 11:11:05 [2025-02-01 11:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377949', 'tblTempUsageDetail_20' ) start [2025-02-01 11:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377949', 'tblTempUsageDetail_20' ) end [2025-02-01 11:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377949', 'tblTempVendorCDR_20' ) start [2025-02-01 11:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377949', 'tblTempVendorCDR_20' ) end [2025-02-01 11:11:22] Production.INFO: ProcessCDR(1,14377949,1,1,2) [2025-02-01 11:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377949', 'tblTempUsageDetail_20' ) start [2025-02-01 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377949', 'tblTempUsageDetail_20' ) end [2025-02-01 11:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:11:26] Production.INFO: ==4105== Releasing lock... [2025-02-01 11:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:11:26] Production.INFO: 37 MB #Memory Used# [2025-02-01 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:12:05 [end_date_ymd] => 2025-02-01 11:12:05 [RateCDR] => 1 ) [2025-02-01 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:12:05' and `end` < '2025-02-01 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:12:17] Production.INFO: count ==1133 [2025-02-01 11:12:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:12:05 - End Time 2025-02-01 11:12:05 [2025-02-01 11:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377954', 'tblTempUsageDetail_20' ) start [2025-02-01 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377954', 'tblTempUsageDetail_20' ) end [2025-02-01 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377954', 'tblTempVendorCDR_20' ) start [2025-02-01 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377954', 'tblTempVendorCDR_20' ) end [2025-02-01 11:12:18] Production.INFO: ProcessCDR(1,14377954,1,1,2) [2025-02-01 11:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377954', 'tblTempUsageDetail_20' ) start [2025-02-01 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377954', 'tblTempUsageDetail_20' ) end [2025-02-01 11:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:12:22] Production.INFO: ==4256== Releasing lock... [2025-02-01 11:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:12:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-01 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:13:05 [end_date_ymd] => 2025-02-01 11:13:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:13:05' and `end` < '2025-02-01 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-01 11:13:18] Production.INFO: count ==1136 [2025-02-01 11:13:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:13:05 - End Time 2025-02-01 11:13:05 [2025-02-01 11:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377959', 'tblTempUsageDetail_20' ) start [2025-02-01 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377959', 'tblTempUsageDetail_20' ) end [2025-02-01 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377959', 'tblTempVendorCDR_20' ) start [2025-02-01 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377959', 'tblTempVendorCDR_20' ) end [2025-02-01 11:13:18] Production.INFO: ProcessCDR(1,14377959,1,1,2) [2025-02-01 11:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377959', 'tblTempUsageDetail_20' ) start [2025-02-01 11:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377959', 'tblTempUsageDetail_20' ) end [2025-02-01 11:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:13:23] Production.INFO: ==4364== Releasing lock... [2025-02-01 11:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:13:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-01 11:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:14:06 [end_date_ymd] => 2025-02-01 11:14:06 [RateCDR] => 1 ) [2025-02-01 11:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:14:06' and `end` < '2025-02-01 11:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:14:20] Production.INFO: count ==1139 [2025-02-01 11:14:21] Production.ERROR: pbx CDR StartTime 2025-02-01 08:14:06 - End Time 2025-02-01 11:14:06 [2025-02-01 11:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377964', 'tblTempUsageDetail_20' ) start [2025-02-01 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377964', 'tblTempUsageDetail_20' ) end [2025-02-01 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377964', 'tblTempVendorCDR_20' ) start [2025-02-01 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377964', 'tblTempVendorCDR_20' ) end [2025-02-01 11:14:21] Production.INFO: ProcessCDR(1,14377964,1,1,2) [2025-02-01 11:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377964', 'tblTempUsageDetail_20' ) start [2025-02-01 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377964', 'tblTempUsageDetail_20' ) end [2025-02-01 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:14:25] Production.INFO: ==4440== Releasing lock... [2025-02-01 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:14:25] Production.INFO: 36.75 MB #Memory Used# [2025-02-01 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:15:05 [end_date_ymd] => 2025-02-01 11:15:05 [RateCDR] => 1 ) [2025-02-01 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:15:05' and `end` < '2025-02-01 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:15:18] Production.INFO: count ==1134 [2025-02-01 11:15:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:15:05 - End Time 2025-02-01 11:15:05 [2025-02-01 11:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377969', 'tblTempUsageDetail_20' ) start [2025-02-01 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377969', 'tblTempUsageDetail_20' ) end [2025-02-01 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377969', 'tblTempVendorCDR_20' ) start [2025-02-01 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377969', 'tblTempVendorCDR_20' ) end [2025-02-01 11:15:19] Production.INFO: ProcessCDR(1,14377969,1,1,2) [2025-02-01 11:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377969', 'tblTempUsageDetail_20' ) start [2025-02-01 11:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377969', 'tblTempUsageDetail_20' ) end [2025-02-01 11:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:15:22] Production.INFO: ==4602== Releasing lock... [2025-02-01 11:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:15:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-01 11:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:16:06 [end_date_ymd] => 2025-02-01 11:16:06 [RateCDR] => 1 ) [2025-02-01 11:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:16:06' and `end` < '2025-02-01 11:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:16:19] Production.INFO: count ==1140 [2025-02-01 11:16:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:16:06 - End Time 2025-02-01 11:16:06 [2025-02-01 11:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377974', 'tblTempUsageDetail_20' ) start [2025-02-01 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377974', 'tblTempUsageDetail_20' ) end [2025-02-01 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377974', 'tblTempVendorCDR_20' ) start [2025-02-01 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377974', 'tblTempVendorCDR_20' ) end [2025-02-01 11:16:19] Production.INFO: ProcessCDR(1,14377974,1,1,2) [2025-02-01 11:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377974', 'tblTempUsageDetail_20' ) start [2025-02-01 11:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377974', 'tblTempUsageDetail_20' ) end [2025-02-01 11:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:16:24] Production.INFO: ==4677== Releasing lock... [2025-02-01 11:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:16:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-01 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:17:05 [end_date_ymd] => 2025-02-01 11:17:05 [RateCDR] => 1 ) [2025-02-01 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:17:05' and `end` < '2025-02-01 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:17:18] Production.INFO: count ==1143 [2025-02-01 11:17:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:17:05 - End Time 2025-02-01 11:17:05 [2025-02-01 11:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377979', 'tblTempUsageDetail_20' ) start [2025-02-01 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377979', 'tblTempUsageDetail_20' ) end [2025-02-01 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377979', 'tblTempVendorCDR_20' ) start [2025-02-01 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377979', 'tblTempVendorCDR_20' ) end [2025-02-01 11:17:19] Production.INFO: ProcessCDR(1,14377979,1,1,2) [2025-02-01 11:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377979', 'tblTempUsageDetail_20' ) start [2025-02-01 11:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377979', 'tblTempUsageDetail_20' ) end [2025-02-01 11:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:17:22] Production.INFO: ==4749== Releasing lock... [2025-02-01 11:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:17:22] Production.INFO: 37 MB #Memory Used# [2025-02-01 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:18:06 [end_date_ymd] => 2025-02-01 11:18:06 [RateCDR] => 1 ) [2025-02-01 11:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:18:06' and `end` < '2025-02-01 11:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:18:19] Production.INFO: count ==1160 [2025-02-01 11:18:20] Production.ERROR: pbx CDR StartTime 2025-02-01 08:18:06 - End Time 2025-02-01 11:18:06 [2025-02-01 11:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377984', 'tblTempUsageDetail_20' ) start [2025-02-01 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377984', 'tblTempUsageDetail_20' ) end [2025-02-01 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377984', 'tblTempVendorCDR_20' ) start [2025-02-01 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377984', 'tblTempVendorCDR_20' ) end [2025-02-01 11:18:20] Production.INFO: ProcessCDR(1,14377984,1,1,2) [2025-02-01 11:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377984', 'tblTempUsageDetail_20' ) start [2025-02-01 11:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377984', 'tblTempUsageDetail_20' ) end [2025-02-01 11:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:18:24] Production.INFO: ==4824== Releasing lock... [2025-02-01 11:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:18:24] Production.INFO: 37 MB #Memory Used# [2025-02-01 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:19:05 [end_date_ymd] => 2025-02-01 11:19:05 [RateCDR] => 1 ) [2025-02-01 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:19:05' and `end` < '2025-02-01 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:19:19] Production.INFO: count ==1163 [2025-02-01 11:19:20] Production.ERROR: pbx CDR StartTime 2025-02-01 08:19:05 - End Time 2025-02-01 11:19:05 [2025-02-01 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377989', 'tblTempUsageDetail_20' ) start [2025-02-01 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377989', 'tblTempUsageDetail_20' ) end [2025-02-01 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377989', 'tblTempVendorCDR_20' ) start [2025-02-01 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377989', 'tblTempVendorCDR_20' ) end [2025-02-01 11:19:20] Production.INFO: ProcessCDR(1,14377989,1,1,2) [2025-02-01 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377989', 'tblTempUsageDetail_20' ) start [2025-02-01 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377989', 'tblTempUsageDetail_20' ) end [2025-02-01 11:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:19:25] Production.INFO: ==4896== Releasing lock... [2025-02-01 11:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:19:25] Production.INFO: 37.25 MB #Memory Used# [2025-02-01 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:20:06 [end_date_ymd] => 2025-02-01 11:20:06 [RateCDR] => 1 ) [2025-02-01 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-01 08:20:06' and `end` < '2025-02-01 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-01 11:20:19] Production.INFO: count ==1181 [2025-02-01 11:20:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:20:06 - End Time 2025-02-01 11:20:06 [2025-02-01 11:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377994', 'tblTempUsageDetail_20' ) start [2025-02-01 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14377994', 'tblTempUsageDetail_20' ) end [2025-02-01 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377994', 'tblTempVendorCDR_20' ) start [2025-02-01 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14377994', 'tblTempVendorCDR_20' ) end [2025-02-01 11:20:19] Production.INFO: ProcessCDR(1,14377994,1,1,2) [2025-02-01 11:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14377994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14377994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14377994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14377994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377994', 'tblTempUsageDetail_20' ) start [2025-02-01 11:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14377994', 'tblTempUsageDetail_20' ) end [2025-02-01 11:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:20:24] Production.INFO: ==4970== Releasing lock... [2025-02-01 11:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:20:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-01 11:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:21:04 [end_date_ymd] => 2025-02-01 11:21:04 [RateCDR] => 1 ) [2025-02-01 11:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:21:04' and `end` < '2025-02-01 11:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:21:18] Production.INFO: count ==1253 [2025-02-01 11:21:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:21:04 - End Time 2025-02-01 11:21:04 [2025-02-01 11:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378000', 'tblTempUsageDetail_20' ) start [2025-02-01 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378000', 'tblTempUsageDetail_20' ) end [2025-02-01 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378000', 'tblTempVendorCDR_20' ) start [2025-02-01 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378000', 'tblTempVendorCDR_20' ) end [2025-02-01 11:21:19] Production.INFO: ProcessCDR(1,14378000,1,1,2) [2025-02-01 11:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378000', 'tblTempUsageDetail_20' ) start [2025-02-01 11:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378000', 'tblTempUsageDetail_20' ) end [2025-02-01 11:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:21:22] Production.INFO: ==5045== Releasing lock... [2025-02-01 11:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:21:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-01 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:22:05 [end_date_ymd] => 2025-02-01 11:22:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:22:05' and `end` < '2025-02-01 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-01 11:22:18] Production.INFO: count ==1258 [2025-02-01 11:22:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:22:05 - End Time 2025-02-01 11:22:05 [2025-02-01 11:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378005', 'tblTempUsageDetail_20' ) start [2025-02-01 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378005', 'tblTempUsageDetail_20' ) end [2025-02-01 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378005', 'tblTempVendorCDR_20' ) start [2025-02-01 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378005', 'tblTempVendorCDR_20' ) end [2025-02-01 11:22:18] Production.INFO: ProcessCDR(1,14378005,1,1,2) [2025-02-01 11:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378005', 'tblTempUsageDetail_20' ) start [2025-02-01 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378005', 'tblTempUsageDetail_20' ) end [2025-02-01 11:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:22:23] Production.INFO: ==5118== Releasing lock... [2025-02-01 11:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:22:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-01 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:23:05 [end_date_ymd] => 2025-02-01 11:23:05 [RateCDR] => 1 ) [2025-02-01 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:23:05' and `end` < '2025-02-01 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:23:19] Production.INFO: count ==1260 [2025-02-01 11:23:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:23:05 - End Time 2025-02-01 11:23:05 [2025-02-01 11:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378010', 'tblTempUsageDetail_20' ) start [2025-02-01 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378010', 'tblTempUsageDetail_20' ) end [2025-02-01 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378010', 'tblTempVendorCDR_20' ) start [2025-02-01 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378010', 'tblTempVendorCDR_20' ) end [2025-02-01 11:23:19] Production.INFO: ProcessCDR(1,14378010,1,1,2) [2025-02-01 11:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378010', 'tblTempUsageDetail_20' ) start [2025-02-01 11:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378010', 'tblTempUsageDetail_20' ) end [2025-02-01 11:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:23:22] Production.INFO: ==5189== Releasing lock... [2025-02-01 11:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:23:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-01 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:24:05 [end_date_ymd] => 2025-02-01 11:24:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:24:05' and `end` < '2025-02-01 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-01 11:24:21] Production.INFO: count ==1271 [2025-02-01 11:24:21] Production.ERROR: pbx CDR StartTime 2025-02-01 08:24:05 - End Time 2025-02-01 11:24:05 [2025-02-01 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378015', 'tblTempUsageDetail_20' ) start [2025-02-01 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378015', 'tblTempUsageDetail_20' ) end [2025-02-01 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378015', 'tblTempVendorCDR_20' ) start [2025-02-01 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378015', 'tblTempVendorCDR_20' ) end [2025-02-01 11:24:21] Production.INFO: ProcessCDR(1,14378015,1,1,2) [2025-02-01 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378015', 'tblTempUsageDetail_20' ) start [2025-02-01 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378015', 'tblTempUsageDetail_20' ) end [2025-02-01 11:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:24:25] Production.INFO: ==5264== Releasing lock... [2025-02-01 11:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:24:25] Production.INFO: 37.5 MB #Memory Used# [2025-02-01 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:25:05 [end_date_ymd] => 2025-02-01 11:25:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:25:05' and `end` < '2025-02-01 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-01 11:25:18] Production.INFO: count ==1293 [2025-02-01 11:25:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:25:05 - End Time 2025-02-01 11:25:05 [2025-02-01 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378020', 'tblTempUsageDetail_20' ) start [2025-02-01 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378020', 'tblTempUsageDetail_20' ) end [2025-02-01 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378020', 'tblTempVendorCDR_20' ) start [2025-02-01 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378020', 'tblTempVendorCDR_20' ) end [2025-02-01 11:25:18] Production.INFO: ProcessCDR(1,14378020,1,1,2) [2025-02-01 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378020', 'tblTempUsageDetail_20' ) start [2025-02-01 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378020', 'tblTempUsageDetail_20' ) end [2025-02-01 11:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:25:23] Production.INFO: ==5337== Releasing lock... [2025-02-01 11:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:25:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-01 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:26:05 [end_date_ymd] => 2025-02-01 11:26:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:26:05' and `end` < '2025-02-01 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-01 11:26:19] Production.INFO: count ==1297 [2025-02-01 11:26:20] Production.ERROR: pbx CDR StartTime 2025-02-01 08:26:05 - End Time 2025-02-01 11:26:05 [2025-02-01 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378025', 'tblTempUsageDetail_20' ) start [2025-02-01 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378025', 'tblTempUsageDetail_20' ) end [2025-02-01 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378025', 'tblTempVendorCDR_20' ) start [2025-02-01 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378025', 'tblTempVendorCDR_20' ) end [2025-02-01 11:26:20] Production.INFO: ProcessCDR(1,14378025,1,1,2) [2025-02-01 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378025', 'tblTempUsageDetail_20' ) start [2025-02-01 11:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378025', 'tblTempUsageDetail_20' ) end [2025-02-01 11:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:26:24] Production.INFO: ==5411== Releasing lock... [2025-02-01 11:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:26:24] Production.INFO: 38 MB #Memory Used# [2025-02-01 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:27:06 [end_date_ymd] => 2025-02-01 11:27:06 [RateCDR] => 1 ) [2025-02-01 11:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:27:06' and `end` < '2025-02-01 11: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-01 11:27:19] Production.INFO: count ==1321 [2025-02-01 11:27:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:27:06 - End Time 2025-02-01 11:27:06 [2025-02-01 11:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378030', 'tblTempUsageDetail_20' ) start [2025-02-01 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378030', 'tblTempUsageDetail_20' ) end [2025-02-01 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378030', 'tblTempVendorCDR_20' ) start [2025-02-01 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378030', 'tblTempVendorCDR_20' ) end [2025-02-01 11:27:19] Production.INFO: ProcessCDR(1,14378030,1,1,2) [2025-02-01 11:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378030', 'tblTempUsageDetail_20' ) start [2025-02-01 11:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378030', 'tblTempUsageDetail_20' ) end [2025-02-01 11:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:27:24] Production.INFO: ==5485== Releasing lock... [2025-02-01 11:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:27:24] Production.INFO: 38 MB #Memory Used# [2025-02-01 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:28:05 [end_date_ymd] => 2025-02-01 11:28:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:28:05' and `end` < '2025-02-01 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-01 11:28:17] Production.INFO: count ==1343 [2025-02-01 11:28:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:28:05 - End Time 2025-02-01 11:28:05 [2025-02-01 11:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378035', 'tblTempUsageDetail_20' ) start [2025-02-01 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378035', 'tblTempUsageDetail_20' ) end [2025-02-01 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378035', 'tblTempVendorCDR_20' ) start [2025-02-01 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378035', 'tblTempVendorCDR_20' ) end [2025-02-01 11:28:18] Production.INFO: ProcessCDR(1,14378035,1,1,2) [2025-02-01 11:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378035', 'tblTempUsageDetail_20' ) start [2025-02-01 11:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378035', 'tblTempUsageDetail_20' ) end [2025-02-01 11:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:28:21] Production.INFO: ==5554== Releasing lock... [2025-02-01 11:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:28:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-01 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:29:05 [end_date_ymd] => 2025-02-01 11:29:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:29:05' and `end` < '2025-02-01 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-01 11:29:20] Production.INFO: count ==1354 [2025-02-01 11:29:20] Production.ERROR: pbx CDR StartTime 2025-02-01 08:29:05 - End Time 2025-02-01 11:29:05 [2025-02-01 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378040', 'tblTempUsageDetail_20' ) start [2025-02-01 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378040', 'tblTempUsageDetail_20' ) end [2025-02-01 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378040', 'tblTempVendorCDR_20' ) start [2025-02-01 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378040', 'tblTempVendorCDR_20' ) end [2025-02-01 11:29:20] Production.INFO: ProcessCDR(1,14378040,1,1,2) [2025-02-01 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378040', 'tblTempUsageDetail_20' ) start [2025-02-01 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378040', 'tblTempUsageDetail_20' ) end [2025-02-01 11:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:29:25] Production.INFO: ==5665== Releasing lock... [2025-02-01 11:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:29:25] Production.INFO: 38.25 MB #Memory Used# [2025-02-01 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:30:05 [end_date_ymd] => 2025-02-01 11:30:05 [RateCDR] => 1 ) [2025-02-01 11: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-01 08:30:05' and `end` < '2025-02-01 11: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-01 11:30:18] Production.INFO: count ==1363 [2025-02-01 11:30:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:30:05 - End Time 2025-02-01 11:30:05 [2025-02-01 11:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378045', 'tblTempUsageDetail_20' ) start [2025-02-01 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378045', 'tblTempUsageDetail_20' ) end [2025-02-01 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378045', 'tblTempVendorCDR_20' ) start [2025-02-01 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378045', 'tblTempVendorCDR_20' ) end [2025-02-01 11:30:19] Production.INFO: ProcessCDR(1,14378045,1,1,2) [2025-02-01 11:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378045', 'tblTempUsageDetail_20' ) start [2025-02-01 11:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378045', 'tblTempUsageDetail_20' ) end [2025-02-01 11:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:30:24] Production.INFO: ==5741== Releasing lock... [2025-02-01 11:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:30:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:31:05 [end_date_ymd] => 2025-02-01 11:31:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:31:05' and `end` < '2025-02-01 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-01 11:31:19] Production.INFO: count ==1422 [2025-02-01 11:31:20] Production.ERROR: pbx CDR StartTime 2025-02-01 08:31:05 - End Time 2025-02-01 11:31:05 [2025-02-01 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378051', 'tblTempUsageDetail_20' ) start [2025-02-01 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378051', 'tblTempUsageDetail_20' ) end [2025-02-01 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378051', 'tblTempVendorCDR_20' ) start [2025-02-01 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378051', 'tblTempVendorCDR_20' ) end [2025-02-01 11:31:20] Production.INFO: ProcessCDR(1,14378051,1,1,2) [2025-02-01 11:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378051', 'tblTempUsageDetail_20' ) start [2025-02-01 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378051', 'tblTempUsageDetail_20' ) end [2025-02-01 11:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:31:23] Production.INFO: ==5820== Releasing lock... [2025-02-01 11:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:31:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:32:05 [end_date_ymd] => 2025-02-01 11:32:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:32:05' and `end` < '2025-02-01 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-01 11:32:18] Production.INFO: count ==1423 [2025-02-01 11:32:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:32:05 - End Time 2025-02-01 11:32:05 [2025-02-01 11:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378056', 'tblTempUsageDetail_20' ) start [2025-02-01 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378056', 'tblTempUsageDetail_20' ) end [2025-02-01 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378056', 'tblTempVendorCDR_20' ) start [2025-02-01 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378056', 'tblTempVendorCDR_20' ) end [2025-02-01 11:32:18] Production.INFO: ProcessCDR(1,14378056,1,1,2) [2025-02-01 11:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378056', 'tblTempUsageDetail_20' ) start [2025-02-01 11:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378056', 'tblTempUsageDetail_20' ) end [2025-02-01 11:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:32:21] Production.INFO: ==5896== Releasing lock... [2025-02-01 11:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:32:21] Production.INFO: 39 MB #Memory Used# [2025-02-01 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:33:05 [end_date_ymd] => 2025-02-01 11:33:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:33:05' and `end` < '2025-02-01 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-01 11:33:18] Production.INFO: count ==1438 [2025-02-01 11:33:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:33:05 - End Time 2025-02-01 11:33:05 [2025-02-01 11:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378061', 'tblTempUsageDetail_20' ) start [2025-02-01 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378061', 'tblTempUsageDetail_20' ) end [2025-02-01 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378061', 'tblTempVendorCDR_20' ) start [2025-02-01 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378061', 'tblTempVendorCDR_20' ) end [2025-02-01 11:33:19] Production.INFO: ProcessCDR(1,14378061,1,1,2) [2025-02-01 11:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378061', 'tblTempUsageDetail_20' ) start [2025-02-01 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378061', 'tblTempUsageDetail_20' ) end [2025-02-01 11:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:33:22] Production.INFO: ==5969== Releasing lock... [2025-02-01 11:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:33:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:34:05 [end_date_ymd] => 2025-02-01 11:34:05 [RateCDR] => 1 ) [2025-02-01 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:34:05' and `end` < '2025-02-01 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:34:18] Production.INFO: count ==1437 [2025-02-01 11:34:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:34:05 - End Time 2025-02-01 11:34:05 [2025-02-01 11:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378066', 'tblTempUsageDetail_20' ) start [2025-02-01 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378066', 'tblTempUsageDetail_20' ) end [2025-02-01 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378066', 'tblTempVendorCDR_20' ) start [2025-02-01 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378066', 'tblTempVendorCDR_20' ) end [2025-02-01 11:34:18] Production.INFO: ProcessCDR(1,14378066,1,1,2) [2025-02-01 11:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378066', 'tblTempUsageDetail_20' ) start [2025-02-01 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378066', 'tblTempUsageDetail_20' ) end [2025-02-01 11:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:34:23] Production.INFO: ==6042== Releasing lock... [2025-02-01 11:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:34:23] Production.INFO: 39 MB #Memory Used# [2025-02-01 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:35:05 [end_date_ymd] => 2025-02-01 11:35:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:35:05' and `end` < '2025-02-01 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-01 11:35:18] Production.INFO: count ==1436 [2025-02-01 11:35:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:35:05 - End Time 2025-02-01 11:35:05 [2025-02-01 11:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378071', 'tblTempUsageDetail_20' ) start [2025-02-01 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378071', 'tblTempUsageDetail_20' ) end [2025-02-01 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378071', 'tblTempVendorCDR_20' ) start [2025-02-01 11:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378071', 'tblTempVendorCDR_20' ) end [2025-02-01 11:35:19] Production.INFO: ProcessCDR(1,14378071,1,1,2) [2025-02-01 11:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378071', 'tblTempUsageDetail_20' ) start [2025-02-01 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378071', 'tblTempUsageDetail_20' ) end [2025-02-01 11:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:35:23] Production.INFO: ==6118== Releasing lock... [2025-02-01 11:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:35:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:36:05 [end_date_ymd] => 2025-02-01 11:36:05 [RateCDR] => 1 ) [2025-02-01 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:36:05' and `end` < '2025-02-01 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:36:19] Production.INFO: count ==1435 [2025-02-01 11:36:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:36:05 - End Time 2025-02-01 11:36:05 [2025-02-01 11:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378076', 'tblTempUsageDetail_20' ) start [2025-02-01 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378076', 'tblTempUsageDetail_20' ) end [2025-02-01 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378076', 'tblTempVendorCDR_20' ) start [2025-02-01 11:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378076', 'tblTempVendorCDR_20' ) end [2025-02-01 11:36:19] Production.INFO: ProcessCDR(1,14378076,1,1,2) [2025-02-01 11:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378076', 'tblTempUsageDetail_20' ) start [2025-02-01 11:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378076', 'tblTempUsageDetail_20' ) end [2025-02-01 11:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:36:22] Production.INFO: ==6190== Releasing lock... [2025-02-01 11:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:36:22] Production.INFO: 39 MB #Memory Used# [2025-02-01 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:37:05 [end_date_ymd] => 2025-02-01 11:37:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:37:05' and `end` < '2025-02-01 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-01 11:37:18] Production.INFO: count ==1466 [2025-02-01 11:37:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:37:05 - End Time 2025-02-01 11:37:05 [2025-02-01 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378081', 'tblTempUsageDetail_20' ) start [2025-02-01 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378081', 'tblTempUsageDetail_20' ) end [2025-02-01 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378081', 'tblTempVendorCDR_20' ) start [2025-02-01 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378081', 'tblTempVendorCDR_20' ) end [2025-02-01 11:37:18] Production.INFO: ProcessCDR(1,14378081,1,1,2) [2025-02-01 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378081', 'tblTempUsageDetail_20' ) start [2025-02-01 11:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378081', 'tblTempUsageDetail_20' ) end [2025-02-01 11:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:37:21] Production.INFO: ==6262== Releasing lock... [2025-02-01 11:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:37:21] Production.INFO: 39 MB #Memory Used# [2025-02-01 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:38:05 [end_date_ymd] => 2025-02-01 11:38:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:38:05' and `end` < '2025-02-01 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-01 11:38:18] Production.INFO: count ==1497 [2025-02-01 11:38:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:38:05 - End Time 2025-02-01 11:38:05 [2025-02-01 11:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378086', 'tblTempUsageDetail_20' ) start [2025-02-01 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378086', 'tblTempUsageDetail_20' ) end [2025-02-01 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378086', 'tblTempVendorCDR_20' ) start [2025-02-01 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378086', 'tblTempVendorCDR_20' ) end [2025-02-01 11:38:19] Production.INFO: ProcessCDR(1,14378086,1,1,2) [2025-02-01 11:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378086', 'tblTempUsageDetail_20' ) start [2025-02-01 11:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378086', 'tblTempUsageDetail_20' ) end [2025-02-01 11:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:38:23] Production.INFO: ==6336== Releasing lock... [2025-02-01 11:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:38:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:39:05 [end_date_ymd] => 2025-02-01 11:39:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:39:05' and `end` < '2025-02-01 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-01 11:39:17] Production.INFO: count ==1501 [2025-02-01 11:39:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:39:05 - End Time 2025-02-01 11:39:05 [2025-02-01 11:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378091', 'tblTempUsageDetail_20' ) start [2025-02-01 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378091', 'tblTempUsageDetail_20' ) end [2025-02-01 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378091', 'tblTempVendorCDR_20' ) start [2025-02-01 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378091', 'tblTempVendorCDR_20' ) end [2025-02-01 11:39:18] Production.INFO: ProcessCDR(1,14378091,1,1,2) [2025-02-01 11:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378091', 'tblTempUsageDetail_20' ) start [2025-02-01 11:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378091', 'tblTempUsageDetail_20' ) end [2025-02-01 11:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:39:21] Production.INFO: ==6407== Releasing lock... [2025-02-01 11:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:39:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:40:05 [end_date_ymd] => 2025-02-01 11:40:05 [RateCDR] => 1 ) [2025-02-01 11: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-01 08:40:05' and `end` < '2025-02-01 11: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-01 11:40:18] Production.INFO: count ==1494 [2025-02-01 11:40:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:40:05 - End Time 2025-02-01 11:40:05 [2025-02-01 11:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378097', 'tblTempUsageDetail_20' ) start [2025-02-01 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378097', 'tblTempUsageDetail_20' ) end [2025-02-01 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378097', 'tblTempVendorCDR_20' ) start [2025-02-01 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378097', 'tblTempVendorCDR_20' ) end [2025-02-01 11:40:19] Production.INFO: ProcessCDR(1,14378097,1,1,2) [2025-02-01 11:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378097', 'tblTempUsageDetail_20' ) start [2025-02-01 11:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378097', 'tblTempUsageDetail_20' ) end [2025-02-01 11:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:40:22] Production.INFO: ==6483== Releasing lock... [2025-02-01 11:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:40:22] Production.INFO: 39 MB #Memory Used# [2025-02-01 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:41:04 [end_date_ymd] => 2025-02-01 11:41:04 [RateCDR] => 1 ) [2025-02-01 11: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-01 08:41:04' and `end` < '2025-02-01 11: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-01 11:41:17] Production.INFO: count ==1522 [2025-02-01 11:41:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:41:04 - End Time 2025-02-01 11:41:04 [2025-02-01 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378102', 'tblTempUsageDetail_20' ) start [2025-02-01 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378102', 'tblTempUsageDetail_20' ) end [2025-02-01 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378102', 'tblTempVendorCDR_20' ) start [2025-02-01 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378102', 'tblTempVendorCDR_20' ) end [2025-02-01 11:41:18] Production.INFO: ProcessCDR(1,14378102,1,1,2) [2025-02-01 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378102', 'tblTempUsageDetail_20' ) start [2025-02-01 11:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378102', 'tblTempUsageDetail_20' ) end [2025-02-01 11:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:41:21] Production.INFO: ==6557== Releasing lock... [2025-02-01 11:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:41:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-01 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:42:05 [end_date_ymd] => 2025-02-01 11:42:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:42:05' and `end` < '2025-02-01 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-01 11:42:18] Production.INFO: count ==1520 [2025-02-01 11:42:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:42:05 - End Time 2025-02-01 11:42:05 [2025-02-01 11:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378107', 'tblTempUsageDetail_20' ) start [2025-02-01 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378107', 'tblTempUsageDetail_20' ) end [2025-02-01 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378107', 'tblTempVendorCDR_20' ) start [2025-02-01 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378107', 'tblTempVendorCDR_20' ) end [2025-02-01 11:42:19] Production.INFO: ProcessCDR(1,14378107,1,1,2) [2025-02-01 11:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378107', 'tblTempUsageDetail_20' ) start [2025-02-01 11:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378107', 'tblTempUsageDetail_20' ) end [2025-02-01 11:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:42:22] Production.INFO: ==6631== Releasing lock... [2025-02-01 11:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:42:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-01 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:43:06 [end_date_ymd] => 2025-02-01 11:43:06 [RateCDR] => 1 ) [2025-02-01 11:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:43:06' and `end` < '2025-02-01 11:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:43:19] Production.INFO: count ==1521 [2025-02-01 11:43:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:43:06 - End Time 2025-02-01 11:43:06 [2025-02-01 11:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378112', 'tblTempUsageDetail_20' ) start [2025-02-01 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378112', 'tblTempUsageDetail_20' ) end [2025-02-01 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378112', 'tblTempVendorCDR_20' ) start [2025-02-01 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378112', 'tblTempVendorCDR_20' ) end [2025-02-01 11:43:19] Production.INFO: ProcessCDR(1,14378112,1,1,2) [2025-02-01 11:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378112', 'tblTempUsageDetail_20' ) start [2025-02-01 11:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378112', 'tblTempUsageDetail_20' ) end [2025-02-01 11:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:43:23] Production.INFO: ==6702== Releasing lock... [2025-02-01 11:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:43:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-01 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:44:05 [end_date_ymd] => 2025-02-01 11:44:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:44:05' and `end` < '2025-02-01 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-01 11:44:19] Production.INFO: count ==1535 [2025-02-01 11:44:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:44:05 - End Time 2025-02-01 11:44:05 [2025-02-01 11:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378117', 'tblTempUsageDetail_20' ) start [2025-02-01 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378117', 'tblTempUsageDetail_20' ) end [2025-02-01 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378117', 'tblTempVendorCDR_20' ) start [2025-02-01 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378117', 'tblTempVendorCDR_20' ) end [2025-02-01 11:44:19] Production.INFO: ProcessCDR(1,14378117,1,1,2) [2025-02-01 11:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378117', 'tblTempUsageDetail_20' ) start [2025-02-01 11:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378117', 'tblTempUsageDetail_20' ) end [2025-02-01 11:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:44:24] Production.INFO: ==6813== Releasing lock... [2025-02-01 11:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:44:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-01 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:45:05 [end_date_ymd] => 2025-02-01 11:45:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:45:05' and `end` < '2025-02-01 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-01 11:45:18] Production.INFO: count ==1540 [2025-02-01 11:45:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:45:05 - End Time 2025-02-01 11:45:05 [2025-02-01 11:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378122', 'tblTempUsageDetail_20' ) start [2025-02-01 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378122', 'tblTempUsageDetail_20' ) end [2025-02-01 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378122', 'tblTempVendorCDR_20' ) start [2025-02-01 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378122', 'tblTempVendorCDR_20' ) end [2025-02-01 11:45:19] Production.INFO: ProcessCDR(1,14378122,1,1,2) [2025-02-01 11:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378122', 'tblTempUsageDetail_20' ) start [2025-02-01 11:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378122', 'tblTempUsageDetail_20' ) end [2025-02-01 11:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:45:22] Production.INFO: ==6888== Releasing lock... [2025-02-01 11:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:45:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-01 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:46:05 [end_date_ymd] => 2025-02-01 11:46:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:46:05' and `end` < '2025-02-01 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-01 11:46:18] Production.INFO: count ==1540 [2025-02-01 11:46:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:46:05 - End Time 2025-02-01 11:46:05 [2025-02-01 11:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378127', 'tblTempUsageDetail_20' ) start [2025-02-01 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378127', 'tblTempUsageDetail_20' ) end [2025-02-01 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378127', 'tblTempVendorCDR_20' ) start [2025-02-01 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378127', 'tblTempVendorCDR_20' ) end [2025-02-01 11:46:18] Production.INFO: ProcessCDR(1,14378127,1,1,2) [2025-02-01 11:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378127', 'tblTempUsageDetail_20' ) start [2025-02-01 11:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378127', 'tblTempUsageDetail_20' ) end [2025-02-01 11:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:46:21] Production.INFO: ==6960== Releasing lock... [2025-02-01 11:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:46:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-01 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:47:05 [end_date_ymd] => 2025-02-01 11:47:05 [RateCDR] => 1 ) [2025-02-01 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:47:05' and `end` < '2025-02-01 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:47:20] Production.INFO: count ==1554 [2025-02-01 11:47:21] Production.ERROR: pbx CDR StartTime 2025-02-01 08:47:05 - End Time 2025-02-01 11:47:05 [2025-02-01 11:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378132', 'tblTempUsageDetail_20' ) start [2025-02-01 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378132', 'tblTempUsageDetail_20' ) end [2025-02-01 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378132', 'tblTempVendorCDR_20' ) start [2025-02-01 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378132', 'tblTempVendorCDR_20' ) end [2025-02-01 11:47:21] Production.INFO: ProcessCDR(1,14378132,1,1,2) [2025-02-01 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378132', 'tblTempUsageDetail_20' ) start [2025-02-01 11:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378132', 'tblTempUsageDetail_20' ) end [2025-02-01 11:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:47:24] Production.INFO: ==7033== Releasing lock... [2025-02-01 11:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:47:24] Production.INFO: 40 MB #Memory Used# [2025-02-01 11:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:48:04 [end_date_ymd] => 2025-02-01 11:48:04 [RateCDR] => 1 ) [2025-02-01 11:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:48:04' and `end` < '2025-02-01 11:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:48:17] Production.INFO: count ==1549 [2025-02-01 11:48:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:48:04 - End Time 2025-02-01 11:48:04 [2025-02-01 11:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378137', 'tblTempUsageDetail_20' ) start [2025-02-01 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378137', 'tblTempUsageDetail_20' ) end [2025-02-01 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378137', 'tblTempVendorCDR_20' ) start [2025-02-01 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378137', 'tblTempVendorCDR_20' ) end [2025-02-01 11:48:18] Production.INFO: ProcessCDR(1,14378137,1,1,2) [2025-02-01 11:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378137', 'tblTempUsageDetail_20' ) start [2025-02-01 11:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378137', 'tblTempUsageDetail_20' ) end [2025-02-01 11:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:48:21] Production.INFO: ==7106== Releasing lock... [2025-02-01 11:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:48:21] Production.INFO: 40 MB #Memory Used# [2025-02-01 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:49:05 [end_date_ymd] => 2025-02-01 11:49:05 [RateCDR] => 1 ) [2025-02-01 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:49:05' and `end` < '2025-02-01 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:49:18] Production.INFO: count ==1567 [2025-02-01 11:49:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:49:05 - End Time 2025-02-01 11:49:05 [2025-02-01 11:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378142', 'tblTempUsageDetail_20' ) start [2025-02-01 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378142', 'tblTempUsageDetail_20' ) end [2025-02-01 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378142', 'tblTempVendorCDR_20' ) start [2025-02-01 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378142', 'tblTempVendorCDR_20' ) end [2025-02-01 11:49:19] Production.INFO: ProcessCDR(1,14378142,1,1,2) [2025-02-01 11:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378142', 'tblTempUsageDetail_20' ) start [2025-02-01 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378142', 'tblTempUsageDetail_20' ) end [2025-02-01 11:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:49:23] Production.INFO: ==7182== Releasing lock... [2025-02-01 11:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:49:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-01 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:50:06 [end_date_ymd] => 2025-02-01 11:50:06 [RateCDR] => 1 ) [2025-02-01 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-01 08:50:06' and `end` < '2025-02-01 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-01 11:50:19] Production.INFO: count ==1569 [2025-02-01 11:50:20] Production.ERROR: pbx CDR StartTime 2025-02-01 08:50:06 - End Time 2025-02-01 11:50:06 [2025-02-01 11:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378148', 'tblTempUsageDetail_20' ) start [2025-02-01 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378148', 'tblTempUsageDetail_20' ) end [2025-02-01 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378148', 'tblTempVendorCDR_20' ) start [2025-02-01 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378148', 'tblTempVendorCDR_20' ) end [2025-02-01 11:50:20] Production.INFO: ProcessCDR(1,14378148,1,1,2) [2025-02-01 11:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378148', 'tblTempUsageDetail_20' ) start [2025-02-01 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378148', 'tblTempUsageDetail_20' ) end [2025-02-01 11:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:50:23] Production.INFO: ==7254== Releasing lock... [2025-02-01 11:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:50:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-01 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:51:05 [end_date_ymd] => 2025-02-01 11:51:05 [RateCDR] => 1 ) [2025-02-01 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:51:05' and `end` < '2025-02-01 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:51:19] Production.INFO: count ==1626 [2025-02-01 11:51:20] Production.ERROR: pbx CDR StartTime 2025-02-01 08:51:05 - End Time 2025-02-01 11:51:05 [2025-02-01 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378153', 'tblTempUsageDetail_20' ) start [2025-02-01 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378153', 'tblTempUsageDetail_20' ) end [2025-02-01 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378153', 'tblTempVendorCDR_20' ) start [2025-02-01 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378153', 'tblTempVendorCDR_20' ) end [2025-02-01 11:51:20] Production.INFO: ProcessCDR(1,14378153,1,1,2) [2025-02-01 11:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378153', 'tblTempUsageDetail_20' ) start [2025-02-01 11:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378153', 'tblTempUsageDetail_20' ) end [2025-02-01 11:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:51:24] Production.INFO: ==7328== Releasing lock... [2025-02-01 11:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:51:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:52:05 [end_date_ymd] => 2025-02-01 11:52:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:52:05' and `end` < '2025-02-01 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-01 11:52:18] Production.INFO: count ==1627 [2025-02-01 11:52:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:52:05 - End Time 2025-02-01 11:52:05 [2025-02-01 11:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378158', 'tblTempUsageDetail_20' ) start [2025-02-01 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378158', 'tblTempUsageDetail_20' ) end [2025-02-01 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378158', 'tblTempVendorCDR_20' ) start [2025-02-01 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378158', 'tblTempVendorCDR_20' ) end [2025-02-01 11:52:18] Production.INFO: ProcessCDR(1,14378158,1,1,2) [2025-02-01 11:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378158', 'tblTempUsageDetail_20' ) start [2025-02-01 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378158', 'tblTempUsageDetail_20' ) end [2025-02-01 11:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:52:23] Production.INFO: ==7402== Releasing lock... [2025-02-01 11:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:52:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:53:05 [end_date_ymd] => 2025-02-01 11:53:05 [RateCDR] => 1 ) [2025-02-01 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:53:05' and `end` < '2025-02-01 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:53:19] Production.INFO: count ==1633 [2025-02-01 11:53:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:53:05 - End Time 2025-02-01 11:53:05 [2025-02-01 11:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378163', 'tblTempUsageDetail_20' ) start [2025-02-01 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378163', 'tblTempUsageDetail_20' ) end [2025-02-01 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378163', 'tblTempVendorCDR_20' ) start [2025-02-01 11:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378163', 'tblTempVendorCDR_20' ) end [2025-02-01 11:53:19] Production.INFO: ProcessCDR(1,14378163,1,1,2) [2025-02-01 11:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378163', 'tblTempUsageDetail_20' ) start [2025-02-01 11:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378163', 'tblTempUsageDetail_20' ) end [2025-02-01 11:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:53:24] Production.INFO: ==7474== Releasing lock... [2025-02-01 11:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:53:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:54:06 [end_date_ymd] => 2025-02-01 11:54:06 [RateCDR] => 1 ) [2025-02-01 11:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:54:06' and `end` < '2025-02-01 11:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:54:19] Production.INFO: count ==1652 [2025-02-01 11:54:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:54:06 - End Time 2025-02-01 11:54:06 [2025-02-01 11:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378168', 'tblTempUsageDetail_20' ) start [2025-02-01 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378168', 'tblTempUsageDetail_20' ) end [2025-02-01 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378168', 'tblTempVendorCDR_20' ) start [2025-02-01 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378168', 'tblTempVendorCDR_20' ) end [2025-02-01 11:54:19] Production.INFO: ProcessCDR(1,14378168,1,1,2) [2025-02-01 11:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378168', 'tblTempUsageDetail_20' ) start [2025-02-01 11:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378168', 'tblTempUsageDetail_20' ) end [2025-02-01 11:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:54:24] Production.INFO: ==7550== Releasing lock... [2025-02-01 11:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:54:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 11:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:55:04 [end_date_ymd] => 2025-02-01 11:55:04 [RateCDR] => 1 ) [2025-02-01 11:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:55:04' and `end` < '2025-02-01 11:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:55:17] Production.INFO: count ==1653 [2025-02-01 11:55:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:55:04 - End Time 2025-02-01 11:55:04 [2025-02-01 11:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378173', 'tblTempUsageDetail_20' ) start [2025-02-01 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378173', 'tblTempUsageDetail_20' ) end [2025-02-01 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378173', 'tblTempVendorCDR_20' ) start [2025-02-01 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378173', 'tblTempVendorCDR_20' ) end [2025-02-01 11:55:18] Production.INFO: ProcessCDR(1,14378173,1,1,2) [2025-02-01 11:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378173', 'tblTempUsageDetail_20' ) start [2025-02-01 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378173', 'tblTempUsageDetail_20' ) end [2025-02-01 11:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:55:22] Production.INFO: ==7621== Releasing lock... [2025-02-01 11:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:55:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:56:06 [end_date_ymd] => 2025-02-01 11:56:06 [RateCDR] => 1 ) [2025-02-01 11:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:56:06' and `end` < '2025-02-01 11:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:56:20] Production.INFO: count ==1653 [2025-02-01 11:56:21] Production.ERROR: pbx CDR StartTime 2025-02-01 08:56:06 - End Time 2025-02-01 11:56:06 [2025-02-01 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378178', 'tblTempUsageDetail_20' ) start [2025-02-01 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378178', 'tblTempUsageDetail_20' ) end [2025-02-01 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378178', 'tblTempVendorCDR_20' ) start [2025-02-01 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378178', 'tblTempVendorCDR_20' ) end [2025-02-01 11:56:21] Production.INFO: ProcessCDR(1,14378178,1,1,2) [2025-02-01 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378178', 'tblTempUsageDetail_20' ) start [2025-02-01 11:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378178', 'tblTempUsageDetail_20' ) end [2025-02-01 11:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:56:24] Production.INFO: ==7696== Releasing lock... [2025-02-01 11:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:56:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:57:05 [end_date_ymd] => 2025-02-01 11:57:05 [RateCDR] => 1 ) [2025-02-01 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:57:05' and `end` < '2025-02-01 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:57:18] Production.INFO: count ==1650 [2025-02-01 11:57:18] Production.ERROR: pbx CDR StartTime 2025-02-01 08:57:05 - End Time 2025-02-01 11:57:05 [2025-02-01 11:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378183', 'tblTempUsageDetail_20' ) start [2025-02-01 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378183', 'tblTempUsageDetail_20' ) end [2025-02-01 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378183', 'tblTempVendorCDR_20' ) start [2025-02-01 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378183', 'tblTempVendorCDR_20' ) end [2025-02-01 11:57:18] Production.INFO: ProcessCDR(1,14378183,1,1,2) [2025-02-01 11:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378183', 'tblTempUsageDetail_20' ) start [2025-02-01 11:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378183', 'tblTempUsageDetail_20' ) end [2025-02-01 11:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:57:21] Production.INFO: ==7767== Releasing lock... [2025-02-01 11:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:57:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:58:05 [end_date_ymd] => 2025-02-01 11:58:05 [RateCDR] => 1 ) [2025-02-01 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 08:58:05' and `end` < '2025-02-01 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 11:58:19] Production.INFO: count ==1650 [2025-02-01 11:58:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:58:05 - End Time 2025-02-01 11:58:05 [2025-02-01 11:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378188', 'tblTempUsageDetail_20' ) start [2025-02-01 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378188', 'tblTempUsageDetail_20' ) end [2025-02-01 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378188', 'tblTempVendorCDR_20' ) start [2025-02-01 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378188', 'tblTempVendorCDR_20' ) end [2025-02-01 11:58:19] Production.INFO: ProcessCDR(1,14378188,1,1,2) [2025-02-01 11:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378188', 'tblTempUsageDetail_20' ) start [2025-02-01 11:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378188', 'tblTempUsageDetail_20' ) end [2025-02-01 11:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:58:22] Production.INFO: ==7841== Releasing lock... [2025-02-01 11:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:58:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 08:59:05 [end_date_ymd] => 2025-02-01 11:59:05 [RateCDR] => 1 ) [2025-02-01 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-01 08:59:05' and `end` < '2025-02-01 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-01 11:59:19] Production.INFO: count ==1654 [2025-02-01 11:59:19] Production.ERROR: pbx CDR StartTime 2025-02-01 08:59:05 - End Time 2025-02-01 11:59:05 [2025-02-01 11:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378193', 'tblTempUsageDetail_20' ) start [2025-02-01 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378193', 'tblTempUsageDetail_20' ) end [2025-02-01 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378193', 'tblTempVendorCDR_20' ) start [2025-02-01 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378193', 'tblTempVendorCDR_20' ) end [2025-02-01 11:59:19] Production.INFO: ProcessCDR(1,14378193,1,1,2) [2025-02-01 11:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 11:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 11:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378193', 'tblTempUsageDetail_20' ) start [2025-02-01 11:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378193', 'tblTempUsageDetail_20' ) end [2025-02-01 11:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 11:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 11:59:23] Production.INFO: ==7952== Releasing lock... [2025-02-01 11:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 11:59:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:00:06 [end_date_ymd] => 2025-02-01 12:00:06 [RateCDR] => 1 ) [2025-02-01 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-01 09:00:06' and `end` < '2025-02-01 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-01 12:00:19] Production.INFO: count ==1655 [2025-02-01 12:00:20] Production.ERROR: pbx CDR StartTime 2025-02-01 09:00:06 - End Time 2025-02-01 12:00:06 [2025-02-01 12:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378199', 'tblTempUsageDetail_20' ) start [2025-02-01 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378199', 'tblTempUsageDetail_20' ) end [2025-02-01 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378199', 'tblTempVendorCDR_20' ) start [2025-02-01 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378199', 'tblTempVendorCDR_20' ) end [2025-02-01 12:00:20] Production.INFO: ProcessCDR(1,14378199,1,1,2) [2025-02-01 12:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378199', 'tblTempUsageDetail_20' ) start [2025-02-01 12:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378199', 'tblTempUsageDetail_20' ) end [2025-02-01 12:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:00:25] Production.INFO: ==8027== Releasing lock... [2025-02-01 12:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:00:25] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:01:05 [end_date_ymd] => 2025-02-01 12:01:05 [RateCDR] => 1 ) [2025-02-01 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:01:05' and `end` < '2025-02-01 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:01:18] Production.INFO: count ==1719 [2025-02-01 12:01:18] Production.ERROR: pbx CDR StartTime 2025-02-01 09:01:05 - End Time 2025-02-01 12:01:05 [2025-02-01 12:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378204', 'tblTempUsageDetail_20' ) start [2025-02-01 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378204', 'tblTempUsageDetail_20' ) end [2025-02-01 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378204', 'tblTempVendorCDR_20' ) start [2025-02-01 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378204', 'tblTempVendorCDR_20' ) end [2025-02-01 12:01:18] Production.INFO: ProcessCDR(1,14378204,1,1,2) [2025-02-01 12:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378204', 'tblTempUsageDetail_20' ) start [2025-02-01 12:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378204', 'tblTempUsageDetail_20' ) end [2025-02-01 12:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:01:23] Production.INFO: ==8117== Releasing lock... [2025-02-01 12:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:01:23] Production.INFO: 41 MB #Memory Used# [2025-02-01 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:02:05 [end_date_ymd] => 2025-02-01 12:02:05 [RateCDR] => 1 ) [2025-02-01 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-01 09:02:05' and `end` < '2025-02-01 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-01 12:02:19] Production.INFO: count ==1712 [2025-02-01 12:02:20] Production.ERROR: pbx CDR StartTime 2025-02-01 09:02:05 - End Time 2025-02-01 12:02:05 [2025-02-01 12:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378209', 'tblTempUsageDetail_20' ) start [2025-02-01 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378209', 'tblTempUsageDetail_20' ) end [2025-02-01 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378209', 'tblTempVendorCDR_20' ) start [2025-02-01 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378209', 'tblTempVendorCDR_20' ) end [2025-02-01 12:02:20] Production.INFO: ProcessCDR(1,14378209,1,1,2) [2025-02-01 12:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378209', 'tblTempUsageDetail_20' ) start [2025-02-01 12:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378209', 'tblTempUsageDetail_20' ) end [2025-02-01 12:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:02:23] Production.INFO: ==8194== Releasing lock... [2025-02-01 12:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:02:23] Production.INFO: 41 MB #Memory Used# [2025-02-01 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:03:05 [end_date_ymd] => 2025-02-01 12:03:05 [RateCDR] => 1 ) [2025-02-01 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:03:05' and `end` < '2025-02-01 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:03:18] Production.INFO: count ==1730 [2025-02-01 12:03:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:03:05 - End Time 2025-02-01 12:03:05 [2025-02-01 12:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378213', 'tblTempUsageDetail_20' ) start [2025-02-01 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378213', 'tblTempUsageDetail_20' ) end [2025-02-01 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378213', 'tblTempVendorCDR_20' ) start [2025-02-01 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378213', 'tblTempVendorCDR_20' ) end [2025-02-01 12:03:19] Production.INFO: ProcessCDR(1,14378213,1,1,2) [2025-02-01 12:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378213', 'tblTempUsageDetail_20' ) start [2025-02-01 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378213', 'tblTempUsageDetail_20' ) end [2025-02-01 12:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:03:23] Production.INFO: ==8264== Releasing lock... [2025-02-01 12:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:03:23] Production.INFO: 41 MB #Memory Used# [2025-02-01 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:04:05 [end_date_ymd] => 2025-02-01 12:04:05 [RateCDR] => 1 ) [2025-02-01 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-01 09:04:05' and `end` < '2025-02-01 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-01 12:04:18] Production.INFO: count ==1730 [2025-02-01 12:04:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:04:05 - End Time 2025-02-01 12:04:05 [2025-02-01 12:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378219', 'tblTempUsageDetail_20' ) start [2025-02-01 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378219', 'tblTempUsageDetail_20' ) end [2025-02-01 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378219', 'tblTempVendorCDR_20' ) start [2025-02-01 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378219', 'tblTempVendorCDR_20' ) end [2025-02-01 12:04:19] Production.INFO: ProcessCDR(1,14378219,1,1,2) [2025-02-01 12:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378219', 'tblTempUsageDetail_20' ) start [2025-02-01 12:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378219', 'tblTempUsageDetail_20' ) end [2025-02-01 12:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:04:22] Production.INFO: ==8335== Releasing lock... [2025-02-01 12:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:04:22] Production.INFO: 41 MB #Memory Used# [2025-02-01 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:05:05 [end_date_ymd] => 2025-02-01 12:05:05 [RateCDR] => 1 ) [2025-02-01 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-01 09:05:05' and `end` < '2025-02-01 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-01 12:05:19] Production.INFO: count ==1726 [2025-02-01 12:05:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:05:05 - End Time 2025-02-01 12:05:05 [2025-02-01 12:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378224', 'tblTempUsageDetail_20' ) start [2025-02-01 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378224', 'tblTempUsageDetail_20' ) end [2025-02-01 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378224', 'tblTempVendorCDR_20' ) start [2025-02-01 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378224', 'tblTempVendorCDR_20' ) end [2025-02-01 12:05:19] Production.INFO: ProcessCDR(1,14378224,1,1,2) [2025-02-01 12:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378224', 'tblTempUsageDetail_20' ) start [2025-02-01 12:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378224', 'tblTempUsageDetail_20' ) end [2025-02-01 12:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:05:24] Production.INFO: ==8408== Releasing lock... [2025-02-01 12:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:05:24] Production.INFO: 41 MB #Memory Used# [2025-02-01 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:06:05 [end_date_ymd] => 2025-02-01 12:06:05 [RateCDR] => 1 ) [2025-02-01 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-01 09:06:05' and `end` < '2025-02-01 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-01 12:06:18] Production.INFO: count ==1740 [2025-02-01 12:06:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:06:05 - End Time 2025-02-01 12:06:05 [2025-02-01 12:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378229', 'tblTempUsageDetail_20' ) start [2025-02-01 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378229', 'tblTempUsageDetail_20' ) end [2025-02-01 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378229', 'tblTempVendorCDR_20' ) start [2025-02-01 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378229', 'tblTempVendorCDR_20' ) end [2025-02-01 12:06:19] Production.INFO: ProcessCDR(1,14378229,1,1,2) [2025-02-01 12:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378229', 'tblTempUsageDetail_20' ) start [2025-02-01 12:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378229', 'tblTempUsageDetail_20' ) end [2025-02-01 12:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:06:22] Production.INFO: ==8482== Releasing lock... [2025-02-01 12:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:06:22] Production.INFO: 41 MB #Memory Used# [2025-02-01 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:07:05 [end_date_ymd] => 2025-02-01 12:07:05 [RateCDR] => 1 ) [2025-02-01 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:07:05' and `end` < '2025-02-01 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:07:18] Production.INFO: count ==1752 [2025-02-01 12:07:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:07:05 - End Time 2025-02-01 12:07:05 [2025-02-01 12:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378234', 'tblTempUsageDetail_20' ) start [2025-02-01 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378234', 'tblTempUsageDetail_20' ) end [2025-02-01 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378234', 'tblTempVendorCDR_20' ) start [2025-02-01 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378234', 'tblTempVendorCDR_20' ) end [2025-02-01 12:07:19] Production.INFO: ProcessCDR(1,14378234,1,1,2) [2025-02-01 12:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378234', 'tblTempUsageDetail_20' ) start [2025-02-01 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378234', 'tblTempUsageDetail_20' ) end [2025-02-01 12:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:07:23] Production.INFO: ==8553== Releasing lock... [2025-02-01 12:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:07:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:08:05 [end_date_ymd] => 2025-02-01 12:08:05 [RateCDR] => 1 ) [2025-02-01 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:08:05' and `end` < '2025-02-01 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:08:19] Production.INFO: count ==1740 [2025-02-01 12:08:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:08:05 - End Time 2025-02-01 12:08:05 [2025-02-01 12:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378239', 'tblTempUsageDetail_20' ) start [2025-02-01 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378239', 'tblTempUsageDetail_20' ) end [2025-02-01 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378239', 'tblTempVendorCDR_20' ) start [2025-02-01 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378239', 'tblTempVendorCDR_20' ) end [2025-02-01 12:08:19] Production.INFO: ProcessCDR(1,14378239,1,1,2) [2025-02-01 12:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378239', 'tblTempUsageDetail_20' ) start [2025-02-01 12:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378239', 'tblTempUsageDetail_20' ) end [2025-02-01 12:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:08:24] Production.INFO: ==8626== Releasing lock... [2025-02-01 12:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:08:24] Production.INFO: 41 MB #Memory Used# [2025-02-01 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:09:05 [end_date_ymd] => 2025-02-01 12:09:05 [RateCDR] => 1 ) [2025-02-01 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:09:05' and `end` < '2025-02-01 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:09:19] Production.INFO: count ==1738 [2025-02-01 12:09:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:09:05 - End Time 2025-02-01 12:09:05 [2025-02-01 12:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378244', 'tblTempUsageDetail_20' ) start [2025-02-01 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378244', 'tblTempUsageDetail_20' ) end [2025-02-01 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378244', 'tblTempVendorCDR_20' ) start [2025-02-01 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378244', 'tblTempVendorCDR_20' ) end [2025-02-01 12:09:19] Production.INFO: ProcessCDR(1,14378244,1,1,2) [2025-02-01 12:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378244', 'tblTempUsageDetail_20' ) start [2025-02-01 12:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378244', 'tblTempUsageDetail_20' ) end [2025-02-01 12:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:09:24] Production.INFO: ==8695== Releasing lock... [2025-02-01 12:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:09:24] Production.INFO: 41 MB #Memory Used# [2025-02-01 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:10:05 [end_date_ymd] => 2025-02-01 12:10:05 [RateCDR] => 1 ) [2025-02-01 12: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-01 09:10:05' and `end` < '2025-02-01 12: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-01 12:10:18] Production.INFO: count ==1739 [2025-02-01 12:10:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:10:05 - End Time 2025-02-01 12:10:05 [2025-02-01 12:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378249', 'tblTempUsageDetail_20' ) start [2025-02-01 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378249', 'tblTempUsageDetail_20' ) end [2025-02-01 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378249', 'tblTempVendorCDR_20' ) start [2025-02-01 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378249', 'tblTempVendorCDR_20' ) end [2025-02-01 12:10:19] Production.INFO: ProcessCDR(1,14378249,1,1,2) [2025-02-01 12:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378249', 'tblTempUsageDetail_20' ) start [2025-02-01 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378249', 'tblTempUsageDetail_20' ) end [2025-02-01 12:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:10:23] Production.INFO: ==8768== Releasing lock... [2025-02-01 12:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:10:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:11:05 [end_date_ymd] => 2025-02-01 12:11:05 [RateCDR] => 1 ) [2025-02-01 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-01 09:11:05' and `end` < '2025-02-01 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-01 12:11:18] Production.INFO: count ==1728 [2025-02-01 12:11:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:11:05 - End Time 2025-02-01 12:11:05 [2025-02-01 12:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378255', 'tblTempUsageDetail_20' ) start [2025-02-01 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378255', 'tblTempUsageDetail_20' ) end [2025-02-01 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378255', 'tblTempVendorCDR_20' ) start [2025-02-01 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378255', 'tblTempVendorCDR_20' ) end [2025-02-01 12:11:19] Production.INFO: ProcessCDR(1,14378255,1,1,2) [2025-02-01 12:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378255', 'tblTempUsageDetail_20' ) start [2025-02-01 12:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378255', 'tblTempUsageDetail_20' ) end [2025-02-01 12:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:11:22] Production.INFO: ==8843== Releasing lock... [2025-02-01 12:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:11:22] Production.INFO: 41 MB #Memory Used# [2025-02-01 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:12:06 [end_date_ymd] => 2025-02-01 12:12:06 [RateCDR] => 1 ) [2025-02-01 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-01 09:12:06' and `end` < '2025-02-01 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-01 12:12:19] Production.INFO: count ==1722 [2025-02-01 12:12:20] Production.ERROR: pbx CDR StartTime 2025-02-01 09:12:06 - End Time 2025-02-01 12:12:06 [2025-02-01 12:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378260', 'tblTempUsageDetail_20' ) start [2025-02-01 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378260', 'tblTempUsageDetail_20' ) end [2025-02-01 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378260', 'tblTempVendorCDR_20' ) start [2025-02-01 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378260', 'tblTempVendorCDR_20' ) end [2025-02-01 12:12:20] Production.INFO: ProcessCDR(1,14378260,1,1,2) [2025-02-01 12:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378260', 'tblTempUsageDetail_20' ) start [2025-02-01 12:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378260', 'tblTempUsageDetail_20' ) end [2025-02-01 12:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:12:24] Production.INFO: ==8914== Releasing lock... [2025-02-01 12:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:12:24] Production.INFO: 41 MB #Memory Used# [2025-02-01 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:13:05 [end_date_ymd] => 2025-02-01 12:13:05 [RateCDR] => 1 ) [2025-02-01 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-01 09:13:05' and `end` < '2025-02-01 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-01 12:13:18] Production.INFO: count ==1722 [2025-02-01 12:13:18] Production.ERROR: pbx CDR StartTime 2025-02-01 09:13:05 - End Time 2025-02-01 12:13:05 [2025-02-01 12:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378265', 'tblTempUsageDetail_20' ) start [2025-02-01 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378265', 'tblTempUsageDetail_20' ) end [2025-02-01 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378265', 'tblTempVendorCDR_20' ) start [2025-02-01 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378265', 'tblTempVendorCDR_20' ) end [2025-02-01 12:13:18] Production.INFO: ProcessCDR(1,14378265,1,1,2) [2025-02-01 12:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378265', 'tblTempUsageDetail_20' ) start [2025-02-01 12:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378265', 'tblTempUsageDetail_20' ) end [2025-02-01 12:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:13:22] Production.INFO: ==8984== Releasing lock... [2025-02-01 12:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:13:22] Production.INFO: 41 MB #Memory Used# [2025-02-01 12:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:14:04 [end_date_ymd] => 2025-02-01 12:14:04 [RateCDR] => 1 ) [2025-02-01 12:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:14:04' and `end` < '2025-02-01 12:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:14:18] Production.INFO: count ==1722 [2025-02-01 12:14:18] Production.ERROR: pbx CDR StartTime 2025-02-01 09:14:04 - End Time 2025-02-01 12:14:04 [2025-02-01 12:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378270', 'tblTempUsageDetail_20' ) start [2025-02-01 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378270', 'tblTempUsageDetail_20' ) end [2025-02-01 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378270', 'tblTempVendorCDR_20' ) start [2025-02-01 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378270', 'tblTempVendorCDR_20' ) end [2025-02-01 12:14:18] Production.INFO: ProcessCDR(1,14378270,1,1,2) [2025-02-01 12:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378270', 'tblTempUsageDetail_20' ) start [2025-02-01 12:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378270', 'tblTempUsageDetail_20' ) end [2025-02-01 12:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:14:23] Production.INFO: ==9060== Releasing lock... [2025-02-01 12:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:14:23] Production.INFO: 41 MB #Memory Used# [2025-02-01 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:15:05 [end_date_ymd] => 2025-02-01 12:15:05 [RateCDR] => 1 ) [2025-02-01 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:15:05' and `end` < '2025-02-01 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:15:18] Production.INFO: count ==1718 [2025-02-01 12:15:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:15:05 - End Time 2025-02-01 12:15:05 [2025-02-01 12:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378275', 'tblTempUsageDetail_20' ) start [2025-02-01 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378275', 'tblTempUsageDetail_20' ) end [2025-02-01 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378275', 'tblTempVendorCDR_20' ) start [2025-02-01 12:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378275', 'tblTempVendorCDR_20' ) end [2025-02-01 12:15:19] Production.INFO: ProcessCDR(1,14378275,1,1,2) [2025-02-01 12:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378275', 'tblTempUsageDetail_20' ) start [2025-02-01 12:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378275', 'tblTempUsageDetail_20' ) end [2025-02-01 12:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:15:22] Production.INFO: ==9173== Releasing lock... [2025-02-01 12:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:15:22] Production.INFO: 41 MB #Memory Used# [2025-02-01 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:16:05 [end_date_ymd] => 2025-02-01 12:16:05 [RateCDR] => 1 ) [2025-02-01 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:16:05' and `end` < '2025-02-01 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:16:19] Production.INFO: count ==1712 [2025-02-01 12:16:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:16:05 - End Time 2025-02-01 12:16:05 [2025-02-01 12:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378280', 'tblTempUsageDetail_20' ) start [2025-02-01 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378280', 'tblTempUsageDetail_20' ) end [2025-02-01 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378280', 'tblTempVendorCDR_20' ) start [2025-02-01 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378280', 'tblTempVendorCDR_20' ) end [2025-02-01 12:16:19] Production.INFO: ProcessCDR(1,14378280,1,1,2) [2025-02-01 12:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378280', 'tblTempUsageDetail_20' ) start [2025-02-01 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378280', 'tblTempUsageDetail_20' ) end [2025-02-01 12:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:16:24] Production.INFO: ==9249== Releasing lock... [2025-02-01 12:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:16:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:17:05 [end_date_ymd] => 2025-02-01 12:17:05 [RateCDR] => 1 ) [2025-02-01 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-01 09:17:05' and `end` < '2025-02-01 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-01 12:17:18] Production.INFO: count ==1709 [2025-02-01 12:17:18] Production.ERROR: pbx CDR StartTime 2025-02-01 09:17:05 - End Time 2025-02-01 12:17:05 [2025-02-01 12:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378285', 'tblTempUsageDetail_20' ) start [2025-02-01 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378285', 'tblTempUsageDetail_20' ) end [2025-02-01 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378285', 'tblTempVendorCDR_20' ) start [2025-02-01 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378285', 'tblTempVendorCDR_20' ) end [2025-02-01 12:17:18] Production.INFO: ProcessCDR(1,14378285,1,1,2) [2025-02-01 12:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378285', 'tblTempUsageDetail_20' ) start [2025-02-01 12:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378285', 'tblTempUsageDetail_20' ) end [2025-02-01 12:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:17:23] Production.INFO: ==9319== Releasing lock... [2025-02-01 12:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:17:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:18:05 [end_date_ymd] => 2025-02-01 12:18:05 [RateCDR] => 1 ) [2025-02-01 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:18:05' and `end` < '2025-02-01 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:18:18] Production.INFO: count ==1712 [2025-02-01 12:18:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:18:05 - End Time 2025-02-01 12:18:05 [2025-02-01 12:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378290', 'tblTempUsageDetail_20' ) start [2025-02-01 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378290', 'tblTempUsageDetail_20' ) end [2025-02-01 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378290', 'tblTempVendorCDR_20' ) start [2025-02-01 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378290', 'tblTempVendorCDR_20' ) end [2025-02-01 12:18:19] Production.INFO: ProcessCDR(1,14378290,1,1,2) [2025-02-01 12:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378290', 'tblTempUsageDetail_20' ) start [2025-02-01 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378290', 'tblTempUsageDetail_20' ) end [2025-02-01 12:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:18:22] Production.INFO: ==9401== Releasing lock... [2025-02-01 12:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:18:22] Production.INFO: 41 MB #Memory Used# [2025-02-01 12:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:19:06 [end_date_ymd] => 2025-02-01 12:19:06 [RateCDR] => 1 ) [2025-02-01 12: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-01 09:19:06' and `end` < '2025-02-01 12: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-01 12:19:19] Production.INFO: count ==1707 [2025-02-01 12:19:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:19:06 - End Time 2025-02-01 12:19:06 [2025-02-01 12:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378295', 'tblTempUsageDetail_20' ) start [2025-02-01 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378295', 'tblTempUsageDetail_20' ) end [2025-02-01 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378295', 'tblTempVendorCDR_20' ) start [2025-02-01 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378295', 'tblTempVendorCDR_20' ) end [2025-02-01 12:19:19] Production.INFO: ProcessCDR(1,14378295,1,1,2) [2025-02-01 12:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378295', 'tblTempUsageDetail_20' ) start [2025-02-01 12:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378295', 'tblTempUsageDetail_20' ) end [2025-02-01 12:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:19:23] Production.INFO: ==9474== Releasing lock... [2025-02-01 12:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:19:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:20:06 [end_date_ymd] => 2025-02-01 12:20:06 [RateCDR] => 1 ) [2025-02-01 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-01 09:20:06' and `end` < '2025-02-01 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-01 12:20:19] Production.INFO: count ==1708 [2025-02-01 12:20:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:20:06 - End Time 2025-02-01 12:20:06 [2025-02-01 12:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378300', 'tblTempUsageDetail_20' ) start [2025-02-01 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378300', 'tblTempUsageDetail_20' ) end [2025-02-01 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378300', 'tblTempVendorCDR_20' ) start [2025-02-01 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378300', 'tblTempVendorCDR_20' ) end [2025-02-01 12:20:19] Production.INFO: ProcessCDR(1,14378300,1,1,2) [2025-02-01 12:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378300', 'tblTempUsageDetail_20' ) start [2025-02-01 12:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378300', 'tblTempUsageDetail_20' ) end [2025-02-01 12:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:20:24] Production.INFO: ==9546== Releasing lock... [2025-02-01 12:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:20:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:21:05 [end_date_ymd] => 2025-02-01 12:21:05 [RateCDR] => 1 ) [2025-02-01 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-01 09:21:05' and `end` < '2025-02-01 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-01 12:21:18] Production.INFO: count ==1750 [2025-02-01 12:21:18] Production.ERROR: pbx CDR StartTime 2025-02-01 09:21:05 - End Time 2025-02-01 12:21:05 [2025-02-01 12:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378306', 'tblTempUsageDetail_20' ) start [2025-02-01 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378306', 'tblTempUsageDetail_20' ) end [2025-02-01 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378306', 'tblTempVendorCDR_20' ) start [2025-02-01 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378306', 'tblTempVendorCDR_20' ) end [2025-02-01 12:21:19] Production.INFO: ProcessCDR(1,14378306,1,1,2) [2025-02-01 12:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378306', 'tblTempUsageDetail_20' ) start [2025-02-01 12:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378306', 'tblTempUsageDetail_20' ) end [2025-02-01 12:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:21:23] Production.INFO: ==9617== Releasing lock... [2025-02-01 12:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:21:23] Production.INFO: 41 MB #Memory Used# [2025-02-01 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:22:05 [end_date_ymd] => 2025-02-01 12:22:05 [RateCDR] => 1 ) [2025-02-01 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:22:05' and `end` < '2025-02-01 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:22:18] Production.INFO: count ==1753 [2025-02-01 12:22:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:22:05 - End Time 2025-02-01 12:22:05 [2025-02-01 12:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378311', 'tblTempUsageDetail_20' ) start [2025-02-01 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378311', 'tblTempUsageDetail_20' ) end [2025-02-01 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378311', 'tblTempVendorCDR_20' ) start [2025-02-01 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378311', 'tblTempVendorCDR_20' ) end [2025-02-01 12:22:19] Production.INFO: ProcessCDR(1,14378311,1,1,2) [2025-02-01 12:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378311', 'tblTempUsageDetail_20' ) start [2025-02-01 12:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378311', 'tblTempUsageDetail_20' ) end [2025-02-01 12:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:22:23] Production.INFO: ==9689== Releasing lock... [2025-02-01 12:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:22:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:23:05 [end_date_ymd] => 2025-02-01 12:23:05 [RateCDR] => 1 ) [2025-02-01 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-01 09:23:05' and `end` < '2025-02-01 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-01 12:23:18] Production.INFO: count ==1760 [2025-02-01 12:23:18] Production.ERROR: pbx CDR StartTime 2025-02-01 09:23:05 - End Time 2025-02-01 12:23:05 [2025-02-01 12:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378316', 'tblTempUsageDetail_20' ) start [2025-02-01 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378316', 'tblTempUsageDetail_20' ) end [2025-02-01 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378316', 'tblTempVendorCDR_20' ) start [2025-02-01 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378316', 'tblTempVendorCDR_20' ) end [2025-02-01 12:23:18] Production.INFO: ProcessCDR(1,14378316,1,1,2) [2025-02-01 12:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378316', 'tblTempUsageDetail_20' ) start [2025-02-01 12:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378316', 'tblTempUsageDetail_20' ) end [2025-02-01 12:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:23:23] Production.INFO: ==9760== Releasing lock... [2025-02-01 12:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:23:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:24:05 [end_date_ymd] => 2025-02-01 12:24:05 [RateCDR] => 1 ) [2025-02-01 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-01 09:24:05' and `end` < '2025-02-01 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-01 12:24:19] Production.INFO: count ==1771 [2025-02-01 12:24:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:24:05 - End Time 2025-02-01 12:24:05 [2025-02-01 12:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378321', 'tblTempUsageDetail_20' ) start [2025-02-01 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378321', 'tblTempUsageDetail_20' ) end [2025-02-01 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378321', 'tblTempVendorCDR_20' ) start [2025-02-01 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378321', 'tblTempVendorCDR_20' ) end [2025-02-01 12:24:19] Production.INFO: ProcessCDR(1,14378321,1,1,2) [2025-02-01 12:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378321', 'tblTempUsageDetail_20' ) start [2025-02-01 12:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378321', 'tblTempUsageDetail_20' ) end [2025-02-01 12:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:24:22] Production.INFO: ==9830== Releasing lock... [2025-02-01 12:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:24:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:25:06 [end_date_ymd] => 2025-02-01 12:25:06 [RateCDR] => 1 ) [2025-02-01 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:25:06' and `end` < '2025-02-01 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:25:19] Production.INFO: count ==1773 [2025-02-01 12:25:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:25:06 - End Time 2025-02-01 12:25:06 [2025-02-01 12:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378326', 'tblTempUsageDetail_20' ) start [2025-02-01 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378326', 'tblTempUsageDetail_20' ) end [2025-02-01 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378326', 'tblTempVendorCDR_20' ) start [2025-02-01 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378326', 'tblTempVendorCDR_20' ) end [2025-02-01 12:25:19] Production.INFO: ProcessCDR(1,14378326,1,1,2) [2025-02-01 12:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378326', 'tblTempUsageDetail_20' ) start [2025-02-01 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378326', 'tblTempUsageDetail_20' ) end [2025-02-01 12:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:25:24] Production.INFO: ==9904== Releasing lock... [2025-02-01 12:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:25:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 12:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:26:04 [end_date_ymd] => 2025-02-01 12:26:04 [RateCDR] => 1 ) [2025-02-01 12:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:26:04' and `end` < '2025-02-01 12:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:26:18] Production.INFO: count ==1777 [2025-02-01 12:26:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:26:04 - End Time 2025-02-01 12:26:04 [2025-02-01 12:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378331', 'tblTempUsageDetail_20' ) start [2025-02-01 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378331', 'tblTempUsageDetail_20' ) end [2025-02-01 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378331', 'tblTempVendorCDR_20' ) start [2025-02-01 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378331', 'tblTempVendorCDR_20' ) end [2025-02-01 12:26:19] Production.INFO: ProcessCDR(1,14378331,1,1,2) [2025-02-01 12:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378331', 'tblTempUsageDetail_20' ) start [2025-02-01 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378331', 'tblTempUsageDetail_20' ) end [2025-02-01 12:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:26:23] Production.INFO: ==9974== Releasing lock... [2025-02-01 12:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:26:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:27:05 [end_date_ymd] => 2025-02-01 12:27:05 [RateCDR] => 1 ) [2025-02-01 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:27:05' and `end` < '2025-02-01 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:27:19] Production.INFO: count ==1781 [2025-02-01 12:27:20] Production.ERROR: pbx CDR StartTime 2025-02-01 09:27:05 - End Time 2025-02-01 12:27:05 [2025-02-01 12:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378336', 'tblTempUsageDetail_20' ) start [2025-02-01 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378336', 'tblTempUsageDetail_20' ) end [2025-02-01 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378336', 'tblTempVendorCDR_20' ) start [2025-02-01 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378336', 'tblTempVendorCDR_20' ) end [2025-02-01 12:27:20] Production.INFO: ProcessCDR(1,14378336,1,1,2) [2025-02-01 12:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378336', 'tblTempUsageDetail_20' ) start [2025-02-01 12:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378336', 'tblTempUsageDetail_20' ) end [2025-02-01 12:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:27:24] Production.INFO: ==10044== Releasing lock... [2025-02-01 12:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:27:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 12:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:28:04 [end_date_ymd] => 2025-02-01 12:28:04 [RateCDR] => 1 ) [2025-02-01 12:28: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-01 09:28:04' and `end` < '2025-02-01 12:28: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-01 12:28:18] Production.INFO: count ==1777 [2025-02-01 12:28:18] Production.ERROR: pbx CDR StartTime 2025-02-01 09:28:04 - End Time 2025-02-01 12:28:04 [2025-02-01 12:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378341', 'tblTempUsageDetail_20' ) start [2025-02-01 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378341', 'tblTempUsageDetail_20' ) end [2025-02-01 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378341', 'tblTempVendorCDR_20' ) start [2025-02-01 12:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378341', 'tblTempVendorCDR_20' ) end [2025-02-01 12:28:18] Production.INFO: ProcessCDR(1,14378341,1,1,2) [2025-02-01 12:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378341', 'tblTempUsageDetail_20' ) start [2025-02-01 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378341', 'tblTempUsageDetail_20' ) end [2025-02-01 12:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:28:23] Production.INFO: ==10115== Releasing lock... [2025-02-01 12:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:28:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:29:05 [end_date_ymd] => 2025-02-01 12:29:05 [RateCDR] => 1 ) [2025-02-01 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:29:05' and `end` < '2025-02-01 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:29:18] Production.INFO: count ==1773 [2025-02-01 12:29:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:29:05 - End Time 2025-02-01 12:29:05 [2025-02-01 12:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378346', 'tblTempUsageDetail_20' ) start [2025-02-01 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378346', 'tblTempUsageDetail_20' ) end [2025-02-01 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378346', 'tblTempVendorCDR_20' ) start [2025-02-01 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378346', 'tblTempVendorCDR_20' ) end [2025-02-01 12:29:19] Production.INFO: ProcessCDR(1,14378346,1,1,2) [2025-02-01 12:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378346', 'tblTempUsageDetail_20' ) start [2025-02-01 12:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378346', 'tblTempUsageDetail_20' ) end [2025-02-01 12:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:29:22] Production.INFO: ==10186== Releasing lock... [2025-02-01 12:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:29:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:30:05 [end_date_ymd] => 2025-02-01 12:30:05 [RateCDR] => 1 ) [2025-02-01 12:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:30:05' and `end` < '2025-02-01 12:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:30:18] Production.INFO: count ==1772 [2025-02-01 12:30:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:30:05 - End Time 2025-02-01 12:30:05 [2025-02-01 12:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378352', 'tblTempUsageDetail_20' ) start [2025-02-01 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378352', 'tblTempUsageDetail_20' ) end [2025-02-01 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378352', 'tblTempVendorCDR_20' ) start [2025-02-01 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378352', 'tblTempVendorCDR_20' ) end [2025-02-01 12:30:19] Production.INFO: ProcessCDR(1,14378352,1,1,2) [2025-02-01 12:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378352', 'tblTempUsageDetail_20' ) start [2025-02-01 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378352', 'tblTempUsageDetail_20' ) end [2025-02-01 12:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:30:23] Production.INFO: ==10299== Releasing lock... [2025-02-01 12:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:30:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:31:05 [end_date_ymd] => 2025-02-01 12:31:05 [RateCDR] => 1 ) [2025-02-01 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:31:05' and `end` < '2025-02-01 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:31:19] Production.INFO: count ==1801 [2025-02-01 12:31:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:31:05 - End Time 2025-02-01 12:31:05 [2025-02-01 12:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378357', 'tblTempUsageDetail_20' ) start [2025-02-01 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378357', 'tblTempUsageDetail_20' ) end [2025-02-01 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378357', 'tblTempVendorCDR_20' ) start [2025-02-01 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378357', 'tblTempVendorCDR_20' ) end [2025-02-01 12:31:19] Production.INFO: ProcessCDR(1,14378357,1,1,2) [2025-02-01 12:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378357', 'tblTempUsageDetail_20' ) start [2025-02-01 12:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378357', 'tblTempUsageDetail_20' ) end [2025-02-01 12:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:31:24] Production.INFO: ==10371== Releasing lock... [2025-02-01 12:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:31:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:32:05 [end_date_ymd] => 2025-02-01 12:32:05 [RateCDR] => 1 ) [2025-02-01 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-01 09:32:05' and `end` < '2025-02-01 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-01 12:32:18] Production.INFO: count ==1797 [2025-02-01 12:32:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:32:05 - End Time 2025-02-01 12:32:05 [2025-02-01 12:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378362', 'tblTempUsageDetail_20' ) start [2025-02-01 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378362', 'tblTempUsageDetail_20' ) end [2025-02-01 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378362', 'tblTempVendorCDR_20' ) start [2025-02-01 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378362', 'tblTempVendorCDR_20' ) end [2025-02-01 12:32:19] Production.INFO: ProcessCDR(1,14378362,1,1,2) [2025-02-01 12:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378362', 'tblTempUsageDetail_20' ) start [2025-02-01 12:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378362', 'tblTempUsageDetail_20' ) end [2025-02-01 12:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:32:23] Production.INFO: ==10441== Releasing lock... [2025-02-01 12:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:32:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:33:05 [end_date_ymd] => 2025-02-01 12:33:05 [RateCDR] => 1 ) [2025-02-01 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:33:05' and `end` < '2025-02-01 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:33:18] Production.INFO: count ==1791 [2025-02-01 12:33:18] Production.ERROR: pbx CDR StartTime 2025-02-01 09:33:05 - End Time 2025-02-01 12:33:05 [2025-02-01 12:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378367', 'tblTempUsageDetail_20' ) start [2025-02-01 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378367', 'tblTempUsageDetail_20' ) end [2025-02-01 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378367', 'tblTempVendorCDR_20' ) start [2025-02-01 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378367', 'tblTempVendorCDR_20' ) end [2025-02-01 12:33:18] Production.INFO: ProcessCDR(1,14378367,1,1,2) [2025-02-01 12:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378367', 'tblTempUsageDetail_20' ) start [2025-02-01 12:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378367', 'tblTempUsageDetail_20' ) end [2025-02-01 12:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:33:23] Production.INFO: ==10516== Releasing lock... [2025-02-01 12:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:33:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:34:05 [end_date_ymd] => 2025-02-01 12:34:05 [RateCDR] => 1 ) [2025-02-01 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-01 09:34:05' and `end` < '2025-02-01 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-01 12:34:19] Production.INFO: count ==1784 [2025-02-01 12:34:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:34:05 - End Time 2025-02-01 12:34:05 [2025-02-01 12:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378372', 'tblTempUsageDetail_20' ) start [2025-02-01 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378372', 'tblTempUsageDetail_20' ) end [2025-02-01 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378372', 'tblTempVendorCDR_20' ) start [2025-02-01 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378372', 'tblTempVendorCDR_20' ) end [2025-02-01 12:34:19] Production.INFO: ProcessCDR(1,14378372,1,1,2) [2025-02-01 12:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378372', 'tblTempUsageDetail_20' ) start [2025-02-01 12:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378372', 'tblTempUsageDetail_20' ) end [2025-02-01 12:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:34:24] Production.INFO: ==10590== Releasing lock... [2025-02-01 12:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:34:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:35:05 [end_date_ymd] => 2025-02-01 12:35:05 [RateCDR] => 1 ) [2025-02-01 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:35:05' and `end` < '2025-02-01 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:35:17] Production.INFO: count ==1784 [2025-02-01 12:35:18] Production.ERROR: pbx CDR StartTime 2025-02-01 09:35:05 - End Time 2025-02-01 12:35:05 [2025-02-01 12:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378377', 'tblTempUsageDetail_20' ) start [2025-02-01 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378377', 'tblTempUsageDetail_20' ) end [2025-02-01 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378377', 'tblTempVendorCDR_20' ) start [2025-02-01 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378377', 'tblTempVendorCDR_20' ) end [2025-02-01 12:35:18] Production.INFO: ProcessCDR(1,14378377,1,1,2) [2025-02-01 12:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378377', 'tblTempUsageDetail_20' ) start [2025-02-01 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378377', 'tblTempUsageDetail_20' ) end [2025-02-01 12:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:35:22] Production.INFO: ==10660== Releasing lock... [2025-02-01 12:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:35:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:36:05 [end_date_ymd] => 2025-02-01 12:36:05 [RateCDR] => 1 ) [2025-02-01 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:36:05' and `end` < '2025-02-01 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:36:19] Production.INFO: count ==1779 [2025-02-01 12:36:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:36:05 - End Time 2025-02-01 12:36:05 [2025-02-01 12:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378382', 'tblTempUsageDetail_20' ) start [2025-02-01 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378382', 'tblTempUsageDetail_20' ) end [2025-02-01 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378382', 'tblTempVendorCDR_20' ) start [2025-02-01 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378382', 'tblTempVendorCDR_20' ) end [2025-02-01 12:36:19] Production.INFO: ProcessCDR(1,14378382,1,1,2) [2025-02-01 12:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378382', 'tblTempUsageDetail_20' ) start [2025-02-01 12:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378382', 'tblTempUsageDetail_20' ) end [2025-02-01 12:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:36:24] Production.INFO: ==10732== Releasing lock... [2025-02-01 12:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:36:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:37:06 [end_date_ymd] => 2025-02-01 12:37:06 [RateCDR] => 1 ) [2025-02-01 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-01 09:37:06' and `end` < '2025-02-01 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-01 12:37:19] Production.INFO: count ==1794 [2025-02-01 12:37:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:37:06 - End Time 2025-02-01 12:37:06 [2025-02-01 12:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378387', 'tblTempUsageDetail_20' ) start [2025-02-01 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378387', 'tblTempUsageDetail_20' ) end [2025-02-01 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378387', 'tblTempVendorCDR_20' ) start [2025-02-01 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378387', 'tblTempVendorCDR_20' ) end [2025-02-01 12:37:19] Production.INFO: ProcessCDR(1,14378387,1,1,2) [2025-02-01 12:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378387', 'tblTempUsageDetail_20' ) start [2025-02-01 12:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378387', 'tblTempUsageDetail_20' ) end [2025-02-01 12:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:37:24] Production.INFO: ==10806== Releasing lock... [2025-02-01 12:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:37:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:38:05 [end_date_ymd] => 2025-02-01 12:38:05 [RateCDR] => 1 ) [2025-02-01 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-01 09:38:05' and `end` < '2025-02-01 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-01 12:38:19] Production.INFO: count ==1800 [2025-02-01 12:38:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:38:05 - End Time 2025-02-01 12:38:05 [2025-02-01 12:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378392', 'tblTempUsageDetail_20' ) start [2025-02-01 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378392', 'tblTempUsageDetail_20' ) end [2025-02-01 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378392', 'tblTempVendorCDR_20' ) start [2025-02-01 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378392', 'tblTempVendorCDR_20' ) end [2025-02-01 12:38:19] Production.INFO: ProcessCDR(1,14378392,1,1,2) [2025-02-01 12:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378392', 'tblTempUsageDetail_20' ) start [2025-02-01 12:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378392', 'tblTempUsageDetail_20' ) end [2025-02-01 12:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:38:24] Production.INFO: ==10876== Releasing lock... [2025-02-01 12:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:38:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 12:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:39:04 [end_date_ymd] => 2025-02-01 12:39:04 [RateCDR] => 1 ) [2025-02-01 12: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-01 09:39:04' and `end` < '2025-02-01 12: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-01 12:39:18] Production.INFO: count ==1799 [2025-02-01 12:39:18] Production.ERROR: pbx CDR StartTime 2025-02-01 09:39:04 - End Time 2025-02-01 12:39:04 [2025-02-01 12:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378397', 'tblTempUsageDetail_20' ) start [2025-02-01 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378397', 'tblTempUsageDetail_20' ) end [2025-02-01 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378397', 'tblTempVendorCDR_20' ) start [2025-02-01 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378397', 'tblTempVendorCDR_20' ) end [2025-02-01 12:39:18] Production.INFO: ProcessCDR(1,14378397,1,1,2) [2025-02-01 12:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378397', 'tblTempUsageDetail_20' ) start [2025-02-01 12:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378397', 'tblTempUsageDetail_20' ) end [2025-02-01 12:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:39:23] Production.INFO: ==10945== Releasing lock... [2025-02-01 12:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:39:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:40:06 [end_date_ymd] => 2025-02-01 12:40:06 [RateCDR] => 1 ) [2025-02-01 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-01 09:40:06' and `end` < '2025-02-01 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-01 12:40:19] Production.INFO: count ==1791 [2025-02-01 12:40:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:40:06 - End Time 2025-02-01 12:40:06 [2025-02-01 12:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378402', 'tblTempUsageDetail_20' ) start [2025-02-01 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378402', 'tblTempUsageDetail_20' ) end [2025-02-01 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378402', 'tblTempVendorCDR_20' ) start [2025-02-01 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378402', 'tblTempVendorCDR_20' ) end [2025-02-01 12:40:19] Production.INFO: ProcessCDR(1,14378402,1,1,2) [2025-02-01 12:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378402', 'tblTempUsageDetail_20' ) start [2025-02-01 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378402', 'tblTempUsageDetail_20' ) end [2025-02-01 12:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:40:22] Production.INFO: ==11019== Releasing lock... [2025-02-01 12:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:40:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:41:05 [end_date_ymd] => 2025-02-01 12:41:05 [RateCDR] => 1 ) [2025-02-01 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-01 09:41:05' and `end` < '2025-02-01 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-01 12:41:18] Production.INFO: count ==1777 [2025-02-01 12:41:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:41:05 - End Time 2025-02-01 12:41:05 [2025-02-01 12:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378408', 'tblTempUsageDetail_20' ) start [2025-02-01 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378408', 'tblTempUsageDetail_20' ) end [2025-02-01 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378408', 'tblTempVendorCDR_20' ) start [2025-02-01 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378408', 'tblTempVendorCDR_20' ) end [2025-02-01 12:41:19] Production.INFO: ProcessCDR(1,14378408,1,1,2) [2025-02-01 12:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378408', 'tblTempUsageDetail_20' ) start [2025-02-01 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378408', 'tblTempUsageDetail_20' ) end [2025-02-01 12:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:41:22] Production.INFO: ==11093== Releasing lock... [2025-02-01 12:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:41:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 12:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:42:04 [end_date_ymd] => 2025-02-01 12:42:04 [RateCDR] => 1 ) [2025-02-01 12: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-01 09:42:04' and `end` < '2025-02-01 12: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-01 12:42:17] Production.INFO: count ==1775 [2025-02-01 12:42:18] Production.ERROR: pbx CDR StartTime 2025-02-01 09:42:04 - End Time 2025-02-01 12:42:04 [2025-02-01 12:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378413', 'tblTempUsageDetail_20' ) start [2025-02-01 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378413', 'tblTempUsageDetail_20' ) end [2025-02-01 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378413', 'tblTempVendorCDR_20' ) start [2025-02-01 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378413', 'tblTempVendorCDR_20' ) end [2025-02-01 12:42:18] Production.INFO: ProcessCDR(1,14378413,1,1,2) [2025-02-01 12:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378413', 'tblTempUsageDetail_20' ) start [2025-02-01 12:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378413', 'tblTempUsageDetail_20' ) end [2025-02-01 12:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:42:22] Production.INFO: ==11163== Releasing lock... [2025-02-01 12:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:42:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:43:05 [end_date_ymd] => 2025-02-01 12:43:05 [RateCDR] => 1 ) [2025-02-01 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-01 09:43:05' and `end` < '2025-02-01 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-01 12:43:18] Production.INFO: count ==1772 [2025-02-01 12:43:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:43:05 - End Time 2025-02-01 12:43:05 [2025-02-01 12:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378418', 'tblTempUsageDetail_20' ) start [2025-02-01 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378418', 'tblTempUsageDetail_20' ) end [2025-02-01 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378418', 'tblTempVendorCDR_20' ) start [2025-02-01 12:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378418', 'tblTempVendorCDR_20' ) end [2025-02-01 12:43:19] Production.INFO: ProcessCDR(1,14378418,1,1,2) [2025-02-01 12:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378418', 'tblTempUsageDetail_20' ) start [2025-02-01 12:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378418', 'tblTempUsageDetail_20' ) end [2025-02-01 12:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:43:24] Production.INFO: ==11233== Releasing lock... [2025-02-01 12:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:43:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:44:05 [end_date_ymd] => 2025-02-01 12:44:05 [RateCDR] => 1 ) [2025-02-01 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-01 09:44:05' and `end` < '2025-02-01 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-01 12:44:18] Production.INFO: count ==1757 [2025-02-01 12:44:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:44:05 - End Time 2025-02-01 12:44:05 [2025-02-01 12:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378423', 'tblTempUsageDetail_20' ) start [2025-02-01 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378423', 'tblTempUsageDetail_20' ) end [2025-02-01 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378423', 'tblTempVendorCDR_20' ) start [2025-02-01 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378423', 'tblTempVendorCDR_20' ) end [2025-02-01 12:44:19] Production.INFO: ProcessCDR(1,14378423,1,1,2) [2025-02-01 12:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378423', 'tblTempUsageDetail_20' ) start [2025-02-01 12:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378423', 'tblTempUsageDetail_20' ) end [2025-02-01 12:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:44:24] Production.INFO: ==11302== Releasing lock... [2025-02-01 12:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:44:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:45:05 [end_date_ymd] => 2025-02-01 12:45:05 [RateCDR] => 1 ) [2025-02-01 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:45:05' and `end` < '2025-02-01 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:45:18] Production.INFO: count ==1758 [2025-02-01 12:45:18] Production.ERROR: pbx CDR StartTime 2025-02-01 09:45:05 - End Time 2025-02-01 12:45:05 [2025-02-01 12:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378428', 'tblTempUsageDetail_20' ) start [2025-02-01 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378428', 'tblTempUsageDetail_20' ) end [2025-02-01 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378428', 'tblTempVendorCDR_20' ) start [2025-02-01 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378428', 'tblTempVendorCDR_20' ) end [2025-02-01 12:45:18] Production.INFO: ProcessCDR(1,14378428,1,1,2) [2025-02-01 12:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378428', 'tblTempUsageDetail_20' ) start [2025-02-01 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378428', 'tblTempUsageDetail_20' ) end [2025-02-01 12:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:45:23] Production.INFO: ==11373== Releasing lock... [2025-02-01 12:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:45:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:46:06 [end_date_ymd] => 2025-02-01 12:46:06 [RateCDR] => 1 ) [2025-02-01 12:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:46:06' and `end` < '2025-02-01 12:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:46:19] Production.INFO: count ==1752 [2025-02-01 12:46:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:46:06 - End Time 2025-02-01 12:46:06 [2025-02-01 12:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378433', 'tblTempUsageDetail_20' ) start [2025-02-01 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378433', 'tblTempUsageDetail_20' ) end [2025-02-01 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378433', 'tblTempVendorCDR_20' ) start [2025-02-01 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378433', 'tblTempVendorCDR_20' ) end [2025-02-01 12:46:19] Production.INFO: ProcessCDR(1,14378433,1,1,2) [2025-02-01 12:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378433', 'tblTempUsageDetail_20' ) start [2025-02-01 12:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378433', 'tblTempUsageDetail_20' ) end [2025-02-01 12:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:46:24] Production.INFO: ==11482== Releasing lock... [2025-02-01 12:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:46:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:47:05 [end_date_ymd] => 2025-02-01 12:47:05 [RateCDR] => 1 ) [2025-02-01 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:47:05' and `end` < '2025-02-01 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:47:18] Production.INFO: count ==1754 [2025-02-01 12:47:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:47:05 - End Time 2025-02-01 12:47:05 [2025-02-01 12:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378438', 'tblTempUsageDetail_20' ) start [2025-02-01 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378438', 'tblTempUsageDetail_20' ) end [2025-02-01 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378438', 'tblTempVendorCDR_20' ) start [2025-02-01 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378438', 'tblTempVendorCDR_20' ) end [2025-02-01 12:47:19] Production.INFO: ProcessCDR(1,14378438,1,1,2) [2025-02-01 12:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378438', 'tblTempUsageDetail_20' ) start [2025-02-01 12:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378438', 'tblTempUsageDetail_20' ) end [2025-02-01 12:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:47:23] Production.INFO: ==11554== Releasing lock... [2025-02-01 12:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:47:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:48:06 [end_date_ymd] => 2025-02-01 12:48:06 [RateCDR] => 1 ) [2025-02-01 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:48:06' and `end` < '2025-02-01 12:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:48:19] Production.INFO: count ==1770 [2025-02-01 12:48:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:48:06 - End Time 2025-02-01 12:48:06 [2025-02-01 12:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378443', 'tblTempUsageDetail_20' ) start [2025-02-01 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378443', 'tblTempUsageDetail_20' ) end [2025-02-01 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378443', 'tblTempVendorCDR_20' ) start [2025-02-01 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378443', 'tblTempVendorCDR_20' ) end [2025-02-01 12:48:19] Production.INFO: ProcessCDR(1,14378443,1,1,2) [2025-02-01 12:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378443', 'tblTempUsageDetail_20' ) start [2025-02-01 12:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378443', 'tblTempUsageDetail_20' ) end [2025-02-01 12:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:48:22] Production.INFO: ==11625== Releasing lock... [2025-02-01 12:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:48:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:49:05 [end_date_ymd] => 2025-02-01 12:49:05 [RateCDR] => 1 ) [2025-02-01 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-01 09:49:05' and `end` < '2025-02-01 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-01 12:49:17] Production.INFO: count ==1770 [2025-02-01 12:49:18] Production.ERROR: pbx CDR StartTime 2025-02-01 09:49:05 - End Time 2025-02-01 12:49:05 [2025-02-01 12:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378448', 'tblTempUsageDetail_20' ) start [2025-02-01 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378448', 'tblTempUsageDetail_20' ) end [2025-02-01 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378448', 'tblTempVendorCDR_20' ) start [2025-02-01 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378448', 'tblTempVendorCDR_20' ) end [2025-02-01 12:49:18] Production.INFO: ProcessCDR(1,14378448,1,1,2) [2025-02-01 12:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378448', 'tblTempUsageDetail_20' ) start [2025-02-01 12:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378448', 'tblTempUsageDetail_20' ) end [2025-02-01 12:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:49:21] Production.INFO: ==11698== Releasing lock... [2025-02-01 12:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:49:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:50:06 [end_date_ymd] => 2025-02-01 12:50:06 [RateCDR] => 1 ) [2025-02-01 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-01 09:50:06' and `end` < '2025-02-01 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-01 12:50:19] Production.INFO: count ==1769 [2025-02-01 12:50:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:50:06 - End Time 2025-02-01 12:50:06 [2025-02-01 12:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378454', 'tblTempUsageDetail_20' ) start [2025-02-01 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378454', 'tblTempUsageDetail_20' ) end [2025-02-01 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378454', 'tblTempVendorCDR_20' ) start [2025-02-01 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378454', 'tblTempVendorCDR_20' ) end [2025-02-01 12:50:19] Production.INFO: ProcessCDR(1,14378454,1,1,2) [2025-02-01 12:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378454', 'tblTempUsageDetail_20' ) start [2025-02-01 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378454', 'tblTempUsageDetail_20' ) end [2025-02-01 12:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:50:24] Production.INFO: ==11773== Releasing lock... [2025-02-01 12:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:50:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 12:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:51:04 [end_date_ymd] => 2025-02-01 12:51:04 [RateCDR] => 1 ) [2025-02-01 12:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:51:04' and `end` < '2025-02-01 12:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:51:17] Production.INFO: count ==1816 [2025-02-01 12:51:18] Production.ERROR: pbx CDR StartTime 2025-02-01 09:51:04 - End Time 2025-02-01 12:51:04 [2025-02-01 12:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378459', 'tblTempUsageDetail_20' ) start [2025-02-01 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378459', 'tblTempUsageDetail_20' ) end [2025-02-01 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378459', 'tblTempVendorCDR_20' ) start [2025-02-01 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378459', 'tblTempVendorCDR_20' ) end [2025-02-01 12:51:18] Production.INFO: ProcessCDR(1,14378459,1,1,2) [2025-02-01 12:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378459', 'tblTempUsageDetail_20' ) start [2025-02-01 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378459', 'tblTempUsageDetail_20' ) end [2025-02-01 12:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:51:22] Production.INFO: ==11844== Releasing lock... [2025-02-01 12:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:51:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:52:05 [end_date_ymd] => 2025-02-01 12:52:05 [RateCDR] => 1 ) [2025-02-01 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-01 09:52:05' and `end` < '2025-02-01 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-01 12:52:18] Production.INFO: count ==1839 [2025-02-01 12:52:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:52:05 - End Time 2025-02-01 12:52:05 [2025-02-01 12:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378464', 'tblTempUsageDetail_20' ) start [2025-02-01 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378464', 'tblTempUsageDetail_20' ) end [2025-02-01 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378464', 'tblTempVendorCDR_20' ) start [2025-02-01 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378464', 'tblTempVendorCDR_20' ) end [2025-02-01 12:52:19] Production.INFO: ProcessCDR(1,14378464,1,1,2) [2025-02-01 12:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378464', 'tblTempUsageDetail_20' ) start [2025-02-01 12:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378464', 'tblTempUsageDetail_20' ) end [2025-02-01 12:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:52:24] Production.INFO: ==11920== Releasing lock... [2025-02-01 12:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:52:24] Production.INFO: 42 MB #Memory Used# [2025-02-01 12:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:53:04 [end_date_ymd] => 2025-02-01 12:53:04 [RateCDR] => 1 ) [2025-02-01 12:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:53:04' and `end` < '2025-02-01 12:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:53:18] Production.INFO: count ==1841 [2025-02-01 12:53:18] Production.ERROR: pbx CDR StartTime 2025-02-01 09:53:04 - End Time 2025-02-01 12:53:04 [2025-02-01 12:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378469', 'tblTempUsageDetail_20' ) start [2025-02-01 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378469', 'tblTempUsageDetail_20' ) end [2025-02-01 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378469', 'tblTempVendorCDR_20' ) start [2025-02-01 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378469', 'tblTempVendorCDR_20' ) end [2025-02-01 12:53:18] Production.INFO: ProcessCDR(1,14378469,1,1,2) [2025-02-01 12:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378469', 'tblTempUsageDetail_20' ) start [2025-02-01 12:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378469', 'tblTempUsageDetail_20' ) end [2025-02-01 12:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:53:23] Production.INFO: ==11991== Releasing lock... [2025-02-01 12:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:53:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:54:05 [end_date_ymd] => 2025-02-01 12:54:05 [RateCDR] => 1 ) [2025-02-01 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:54:05' and `end` < '2025-02-01 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:54:18] Production.INFO: count ==1845 [2025-02-01 12:54:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:54:05 - End Time 2025-02-01 12:54:05 [2025-02-01 12:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378474', 'tblTempUsageDetail_20' ) start [2025-02-01 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378474', 'tblTempUsageDetail_20' ) end [2025-02-01 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378474', 'tblTempVendorCDR_20' ) start [2025-02-01 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378474', 'tblTempVendorCDR_20' ) end [2025-02-01 12:54:19] Production.INFO: ProcessCDR(1,14378474,1,1,2) [2025-02-01 12:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378474', 'tblTempUsageDetail_20' ) start [2025-02-01 12:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378474', 'tblTempUsageDetail_20' ) end [2025-02-01 12:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:54:23] Production.INFO: ==12083== Releasing lock... [2025-02-01 12:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:54:23] Production.INFO: 42 MB #Memory Used# [2025-02-01 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:55:06 [end_date_ymd] => 2025-02-01 12:55:06 [RateCDR] => 1 ) [2025-02-01 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-01 09:55:06' and `end` < '2025-02-01 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-01 12:55:18] Production.INFO: count ==1843 [2025-02-01 12:55:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:55:06 - End Time 2025-02-01 12:55:06 [2025-02-01 12:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378479', 'tblTempUsageDetail_20' ) start [2025-02-01 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378479', 'tblTempUsageDetail_20' ) end [2025-02-01 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378479', 'tblTempVendorCDR_20' ) start [2025-02-01 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378479', 'tblTempVendorCDR_20' ) end [2025-02-01 12:55:19] Production.INFO: ProcessCDR(1,14378479,1,1,2) [2025-02-01 12:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378479', 'tblTempUsageDetail_20' ) start [2025-02-01 12:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378479', 'tblTempUsageDetail_20' ) end [2025-02-01 12:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:55:23] Production.INFO: ==12154== Releasing lock... [2025-02-01 12:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:55:23] Production.INFO: 42 MB #Memory Used# [2025-02-01 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:56:05 [end_date_ymd] => 2025-02-01 12:56:05 [RateCDR] => 1 ) [2025-02-01 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:56:05' and `end` < '2025-02-01 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:56:18] Production.INFO: count ==1849 [2025-02-01 12:56:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:56:05 - End Time 2025-02-01 12:56:05 [2025-02-01 12:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378484', 'tblTempUsageDetail_20' ) start [2025-02-01 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378484', 'tblTempUsageDetail_20' ) end [2025-02-01 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378484', 'tblTempVendorCDR_20' ) start [2025-02-01 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378484', 'tblTempVendorCDR_20' ) end [2025-02-01 12:56:19] Production.INFO: ProcessCDR(1,14378484,1,1,2) [2025-02-01 12:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378484', 'tblTempUsageDetail_20' ) start [2025-02-01 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378484', 'tblTempUsageDetail_20' ) end [2025-02-01 12:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:56:23] Production.INFO: ==12224== Releasing lock... [2025-02-01 12:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:56:23] Production.INFO: 42 MB #Memory Used# [2025-02-01 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:57:05 [end_date_ymd] => 2025-02-01 12:57:05 [RateCDR] => 1 ) [2025-02-01 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:57:05' and `end` < '2025-02-01 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:57:19] Production.INFO: count ==1852 [2025-02-01 12:57:20] Production.ERROR: pbx CDR StartTime 2025-02-01 09:57:05 - End Time 2025-02-01 12:57:05 [2025-02-01 12:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378489', 'tblTempUsageDetail_20' ) start [2025-02-01 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378489', 'tblTempUsageDetail_20' ) end [2025-02-01 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378489', 'tblTempVendorCDR_20' ) start [2025-02-01 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378489', 'tblTempVendorCDR_20' ) end [2025-02-01 12:57:20] Production.INFO: ProcessCDR(1,14378489,1,1,2) [2025-02-01 12:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378489', 'tblTempUsageDetail_20' ) start [2025-02-01 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378489', 'tblTempUsageDetail_20' ) end [2025-02-01 12:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:57:23] Production.INFO: ==12295== Releasing lock... [2025-02-01 12:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:57:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-01 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:58:05 [end_date_ymd] => 2025-02-01 12:58:05 [RateCDR] => 1 ) [2025-02-01 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-01 09:58:05' and `end` < '2025-02-01 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-01 12:58:18] Production.INFO: count ==1858 [2025-02-01 12:58:18] Production.ERROR: pbx CDR StartTime 2025-02-01 09:58:05 - End Time 2025-02-01 12:58:05 [2025-02-01 12:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378494', 'tblTempUsageDetail_20' ) start [2025-02-01 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378494', 'tblTempUsageDetail_20' ) end [2025-02-01 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378494', 'tblTempVendorCDR_20' ) start [2025-02-01 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378494', 'tblTempVendorCDR_20' ) end [2025-02-01 12:58:18] Production.INFO: ProcessCDR(1,14378494,1,1,2) [2025-02-01 12:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378494', 'tblTempUsageDetail_20' ) start [2025-02-01 12:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378494', 'tblTempUsageDetail_20' ) end [2025-02-01 12:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:58:23] Production.INFO: ==12365== Releasing lock... [2025-02-01 12:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:58:23] Production.INFO: 42 MB #Memory Used# [2025-02-01 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 09:59:05 [end_date_ymd] => 2025-02-01 12:59:05 [RateCDR] => 1 ) [2025-02-01 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 09:59:05' and `end` < '2025-02-01 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 12:59:19] Production.INFO: count ==1865 [2025-02-01 12:59:19] Production.ERROR: pbx CDR StartTime 2025-02-01 09:59:05 - End Time 2025-02-01 12:59:05 [2025-02-01 12:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 12:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378499', 'tblTempUsageDetail_20' ) start [2025-02-01 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378499', 'tblTempUsageDetail_20' ) end [2025-02-01 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378499', 'tblTempVendorCDR_20' ) start [2025-02-01 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378499', 'tblTempVendorCDR_20' ) end [2025-02-01 12:59:20] Production.INFO: ProcessCDR(1,14378499,1,1,2) [2025-02-01 12:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 12:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 12:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378499', 'tblTempUsageDetail_20' ) start [2025-02-01 12:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378499', 'tblTempUsageDetail_20' ) end [2025-02-01 12:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 12:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 12:59:24] Production.INFO: ==12435== Releasing lock... [2025-02-01 12:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 12:59:24] Production.INFO: 42 MB #Memory Used# [2025-02-01 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:00:05 [end_date_ymd] => 2025-02-01 13:00:05 [RateCDR] => 1 ) [2025-02-01 13: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-01 10:00:05' and `end` < '2025-02-01 13: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-01 13:00:19] Production.INFO: count ==1871 [2025-02-01 13:00:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:00:05 - End Time 2025-02-01 13:00:05 [2025-02-01 13:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378505', 'tblTempUsageDetail_20' ) start [2025-02-01 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378505', 'tblTempUsageDetail_20' ) end [2025-02-01 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378505', 'tblTempVendorCDR_20' ) start [2025-02-01 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378505', 'tblTempVendorCDR_20' ) end [2025-02-01 13:00:19] Production.INFO: ProcessCDR(1,14378505,1,1,2) [2025-02-01 13:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378505', 'tblTempUsageDetail_20' ) start [2025-02-01 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378505', 'tblTempUsageDetail_20' ) end [2025-02-01 13:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:00:23] Production.INFO: ==12508== Releasing lock... [2025-02-01 13:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:00:23] Production.INFO: 42 MB #Memory Used# [2025-02-01 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:01:05 [end_date_ymd] => 2025-02-01 13:01:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:01:05' and `end` < '2025-02-01 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-01 13:01:19] Production.INFO: count ==1917 [2025-02-01 13:01:20] Production.ERROR: pbx CDR StartTime 2025-02-01 10:01:05 - End Time 2025-02-01 13:01:05 [2025-02-01 13:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378510', 'tblTempUsageDetail_20' ) start [2025-02-01 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378510', 'tblTempUsageDetail_20' ) end [2025-02-01 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378510', 'tblTempVendorCDR_20' ) start [2025-02-01 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378510', 'tblTempVendorCDR_20' ) end [2025-02-01 13:01:20] Production.INFO: ProcessCDR(1,14378510,1,1,2) [2025-02-01 13:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378510', 'tblTempUsageDetail_20' ) start [2025-02-01 13:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378510', 'tblTempUsageDetail_20' ) end [2025-02-01 13:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:01:25] Production.INFO: ==12631== Releasing lock... [2025-02-01 13:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:01:25] Production.INFO: 42.75 MB #Memory Used# [2025-02-01 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:02:06 [end_date_ymd] => 2025-02-01 13:02:06 [RateCDR] => 1 ) [2025-02-01 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:02:06' and `end` < '2025-02-01 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:02:19] Production.INFO: count ==1910 [2025-02-01 13:02:20] Production.ERROR: pbx CDR StartTime 2025-02-01 10:02:06 - End Time 2025-02-01 13:02:06 [2025-02-01 13:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378515', 'tblTempUsageDetail_20' ) start [2025-02-01 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378515', 'tblTempUsageDetail_20' ) end [2025-02-01 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378515', 'tblTempVendorCDR_20' ) start [2025-02-01 13:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378515', 'tblTempVendorCDR_20' ) end [2025-02-01 13:02:20] Production.INFO: ProcessCDR(1,14378515,1,1,2) [2025-02-01 13:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378515', 'tblTempUsageDetail_20' ) start [2025-02-01 13:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378515', 'tblTempUsageDetail_20' ) end [2025-02-01 13:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:02:25] Production.INFO: ==12709== Releasing lock... [2025-02-01 13:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:02:25] Production.INFO: 42.5 MB #Memory Used# [2025-02-01 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:03:05 [end_date_ymd] => 2025-02-01 13:03:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:03:05' and `end` < '2025-02-01 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-01 13:03:18] Production.INFO: count ==1904 [2025-02-01 13:03:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:03:05 - End Time 2025-02-01 13:03:05 [2025-02-01 13:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378520', 'tblTempUsageDetail_20' ) start [2025-02-01 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378520', 'tblTempUsageDetail_20' ) end [2025-02-01 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378520', 'tblTempVendorCDR_20' ) start [2025-02-01 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378520', 'tblTempVendorCDR_20' ) end [2025-02-01 13:03:19] Production.INFO: ProcessCDR(1,14378520,1,1,2) [2025-02-01 13:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378520', 'tblTempUsageDetail_20' ) start [2025-02-01 13:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378520', 'tblTempUsageDetail_20' ) end [2025-02-01 13:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:03:22] Production.INFO: ==12781== Releasing lock... [2025-02-01 13:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:03:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-01 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:04:06 [end_date_ymd] => 2025-02-01 13:04:06 [RateCDR] => 1 ) [2025-02-01 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-01 10:04:06' and `end` < '2025-02-01 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-01 13:04:20] Production.INFO: count ==1904 [2025-02-01 13:04:20] Production.ERROR: pbx CDR StartTime 2025-02-01 10:04:06 - End Time 2025-02-01 13:04:06 [2025-02-01 13:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378525', 'tblTempUsageDetail_20' ) start [2025-02-01 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378525', 'tblTempUsageDetail_20' ) end [2025-02-01 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378525', 'tblTempVendorCDR_20' ) start [2025-02-01 13:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378525', 'tblTempVendorCDR_20' ) end [2025-02-01 13:04:20] Production.INFO: ProcessCDR(1,14378525,1,1,2) [2025-02-01 13:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378525', 'tblTempUsageDetail_20' ) start [2025-02-01 13:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378525', 'tblTempUsageDetail_20' ) end [2025-02-01 13:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:04:24] Production.INFO: ==12855== Releasing lock... [2025-02-01 13:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:04:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-01 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:05:05 [end_date_ymd] => 2025-02-01 13:05:05 [RateCDR] => 1 ) [2025-02-01 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:05:05' and `end` < '2025-02-01 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:05:19] Production.INFO: count ==1914 [2025-02-01 13:05:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:05:05 - End Time 2025-02-01 13:05:05 [2025-02-01 13:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378530', 'tblTempUsageDetail_20' ) start [2025-02-01 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378530', 'tblTempUsageDetail_20' ) end [2025-02-01 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378530', 'tblTempVendorCDR_20' ) start [2025-02-01 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378530', 'tblTempVendorCDR_20' ) end [2025-02-01 13:05:19] Production.INFO: ProcessCDR(1,14378530,1,1,2) [2025-02-01 13:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378530', 'tblTempUsageDetail_20' ) start [2025-02-01 13:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378530', 'tblTempUsageDetail_20' ) end [2025-02-01 13:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:05:24] Production.INFO: ==12925== Releasing lock... [2025-02-01 13:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:05:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-01 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:06:05 [end_date_ymd] => 2025-02-01 13:06:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:06:05' and `end` < '2025-02-01 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-01 13:06:18] Production.INFO: count ==1897 [2025-02-01 13:06:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:06:05 - End Time 2025-02-01 13:06:05 [2025-02-01 13:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378535', 'tblTempUsageDetail_20' ) start [2025-02-01 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378535', 'tblTempUsageDetail_20' ) end [2025-02-01 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378535', 'tblTempVendorCDR_20' ) start [2025-02-01 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378535', 'tblTempVendorCDR_20' ) end [2025-02-01 13:06:19] Production.INFO: ProcessCDR(1,14378535,1,1,2) [2025-02-01 13:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378535', 'tblTempUsageDetail_20' ) start [2025-02-01 13:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378535', 'tblTempUsageDetail_20' ) end [2025-02-01 13:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:06:22] Production.INFO: ==12994== Releasing lock... [2025-02-01 13:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:06:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-01 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:07:05 [end_date_ymd] => 2025-02-01 13:07:05 [RateCDR] => 1 ) [2025-02-01 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:07:05' and `end` < '2025-02-01 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:07:18] Production.INFO: count ==1889 [2025-02-01 13:07:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:07:05 - End Time 2025-02-01 13:07:05 [2025-02-01 13:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378540', 'tblTempUsageDetail_20' ) start [2025-02-01 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378540', 'tblTempUsageDetail_20' ) end [2025-02-01 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378540', 'tblTempVendorCDR_20' ) start [2025-02-01 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378540', 'tblTempVendorCDR_20' ) end [2025-02-01 13:07:19] Production.INFO: ProcessCDR(1,14378540,1,1,2) [2025-02-01 13:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378540', 'tblTempUsageDetail_20' ) start [2025-02-01 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378540', 'tblTempUsageDetail_20' ) end [2025-02-01 13:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:07:23] Production.INFO: ==13065== Releasing lock... [2025-02-01 13:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:07:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-01 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:08:06 [end_date_ymd] => 2025-02-01 13:08:06 [RateCDR] => 1 ) [2025-02-01 13:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:08:06' and `end` < '2025-02-01 13:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:08:19] Production.INFO: count ==1893 [2025-02-01 13:08:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:08:06 - End Time 2025-02-01 13:08:06 [2025-02-01 13:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378545', 'tblTempUsageDetail_20' ) start [2025-02-01 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378545', 'tblTempUsageDetail_20' ) end [2025-02-01 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378545', 'tblTempVendorCDR_20' ) start [2025-02-01 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378545', 'tblTempVendorCDR_20' ) end [2025-02-01 13:08:19] Production.INFO: ProcessCDR(1,14378545,1,1,2) [2025-02-01 13:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378545', 'tblTempUsageDetail_20' ) start [2025-02-01 13:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378545', 'tblTempUsageDetail_20' ) end [2025-02-01 13:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:08:24] Production.INFO: ==13145== Releasing lock... [2025-02-01 13:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:08:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-01 13:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:09:04 [end_date_ymd] => 2025-02-01 13:09:04 [RateCDR] => 1 ) [2025-02-01 13:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:09:04' and `end` < '2025-02-01 13:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:09:17] Production.INFO: count ==1901 [2025-02-01 13:09:18] Production.ERROR: pbx CDR StartTime 2025-02-01 10:09:04 - End Time 2025-02-01 13:09:04 [2025-02-01 13:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378550', 'tblTempUsageDetail_20' ) start [2025-02-01 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378550', 'tblTempUsageDetail_20' ) end [2025-02-01 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378550', 'tblTempVendorCDR_20' ) start [2025-02-01 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378550', 'tblTempVendorCDR_20' ) end [2025-02-01 13:09:18] Production.INFO: ProcessCDR(1,14378550,1,1,2) [2025-02-01 13:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378550', 'tblTempUsageDetail_20' ) start [2025-02-01 13:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378550', 'tblTempUsageDetail_20' ) end [2025-02-01 13:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:09:22] Production.INFO: ==13215== Releasing lock... [2025-02-01 13:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:09:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-01 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:10:06 [end_date_ymd] => 2025-02-01 13:10:06 [RateCDR] => 1 ) [2025-02-01 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-01 10:10:06' and `end` < '2025-02-01 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-01 13:10:19] Production.INFO: count ==1905 [2025-02-01 13:10:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:10:06 - End Time 2025-02-01 13:10:06 [2025-02-01 13:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378556', 'tblTempUsageDetail_20' ) start [2025-02-01 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378556', 'tblTempUsageDetail_20' ) end [2025-02-01 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378556', 'tblTempVendorCDR_20' ) start [2025-02-01 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378556', 'tblTempVendorCDR_20' ) end [2025-02-01 13:10:19] Production.INFO: ProcessCDR(1,14378556,1,1,2) [2025-02-01 13:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378556', 'tblTempUsageDetail_20' ) start [2025-02-01 13:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378556', 'tblTempUsageDetail_20' ) end [2025-02-01 13:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:10:24] Production.INFO: ==13288== Releasing lock... [2025-02-01 13:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:10:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-01 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:11:06 [end_date_ymd] => 2025-02-01 13:11:06 [RateCDR] => 1 ) [2025-02-01 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-01 10:11:06' and `end` < '2025-02-01 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-01 13:11:19] Production.INFO: count ==1930 [2025-02-01 13:11:20] Production.ERROR: pbx CDR StartTime 2025-02-01 10:11:06 - End Time 2025-02-01 13:11:06 [2025-02-01 13:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378561', 'tblTempUsageDetail_20' ) start [2025-02-01 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378561', 'tblTempUsageDetail_20' ) end [2025-02-01 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378561', 'tblTempVendorCDR_20' ) start [2025-02-01 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378561', 'tblTempVendorCDR_20' ) end [2025-02-01 13:11:20] Production.INFO: ProcessCDR(1,14378561,1,1,2) [2025-02-01 13:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378561', 'tblTempUsageDetail_20' ) start [2025-02-01 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378561', 'tblTempUsageDetail_20' ) end [2025-02-01 13:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:11:24] Production.INFO: ==13365== Releasing lock... [2025-02-01 13:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:11:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-01 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:12:05 [end_date_ymd] => 2025-02-01 13:12:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:12:05' and `end` < '2025-02-01 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-01 13:12:20] Production.INFO: count ==1932 [2025-02-01 13:12:21] Production.ERROR: pbx CDR StartTime 2025-02-01 10:12:05 - End Time 2025-02-01 13:12:05 [2025-02-01 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378566', 'tblTempUsageDetail_20' ) start [2025-02-01 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378566', 'tblTempUsageDetail_20' ) end [2025-02-01 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378566', 'tblTempVendorCDR_20' ) start [2025-02-01 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378566', 'tblTempVendorCDR_20' ) end [2025-02-01 13:12:21] Production.INFO: ProcessCDR(1,14378566,1,1,2) [2025-02-01 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378566', 'tblTempUsageDetail_20' ) start [2025-02-01 13:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378566', 'tblTempUsageDetail_20' ) end [2025-02-01 13:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:12:25] Production.INFO: ==13440== Releasing lock... [2025-02-01 13:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:12:25] Production.INFO: 42.5 MB #Memory Used# [2025-02-01 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:13:05 [end_date_ymd] => 2025-02-01 13:13:05 [RateCDR] => 1 ) [2025-02-01 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:13:05' and `end` < '2025-02-01 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:13:20] Production.INFO: count ==1933 [2025-02-01 13:13:21] Production.ERROR: pbx CDR StartTime 2025-02-01 10:13:05 - End Time 2025-02-01 13:13:05 [2025-02-01 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378571', 'tblTempUsageDetail_20' ) start [2025-02-01 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378571', 'tblTempUsageDetail_20' ) end [2025-02-01 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378571', 'tblTempVendorCDR_20' ) start [2025-02-01 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378571', 'tblTempVendorCDR_20' ) end [2025-02-01 13:13:21] Production.INFO: ProcessCDR(1,14378571,1,1,2) [2025-02-01 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378571', 'tblTempUsageDetail_20' ) start [2025-02-01 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378571', 'tblTempUsageDetail_20' ) end [2025-02-01 13:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:13:25] Production.INFO: ==13515== Releasing lock... [2025-02-01 13:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:13:25] Production.INFO: 42.5 MB #Memory Used# [2025-02-01 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:14:05 [end_date_ymd] => 2025-02-01 13:14:05 [RateCDR] => 1 ) [2025-02-01 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:14:05' and `end` < '2025-02-01 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:14:18] Production.INFO: count ==1935 [2025-02-01 13:14:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:14:05 - End Time 2025-02-01 13:14:05 [2025-02-01 13:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378576', 'tblTempUsageDetail_20' ) start [2025-02-01 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378576', 'tblTempUsageDetail_20' ) end [2025-02-01 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378576', 'tblTempVendorCDR_20' ) start [2025-02-01 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378576', 'tblTempVendorCDR_20' ) end [2025-02-01 13:14:19] Production.INFO: ProcessCDR(1,14378576,1,1,2) [2025-02-01 13:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378576', 'tblTempUsageDetail_20' ) start [2025-02-01 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378576', 'tblTempUsageDetail_20' ) end [2025-02-01 13:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:14:23] Production.INFO: ==13587== Releasing lock... [2025-02-01 13:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:14:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-01 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:15:05 [end_date_ymd] => 2025-02-01 13:15:05 [RateCDR] => 1 ) [2025-02-01 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:15:05' and `end` < '2025-02-01 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:15:19] Production.INFO: count ==1944 [2025-02-01 13:15:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:15:05 - End Time 2025-02-01 13:15:05 [2025-02-01 13:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378581', 'tblTempUsageDetail_20' ) start [2025-02-01 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378581', 'tblTempUsageDetail_20' ) end [2025-02-01 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378581', 'tblTempVendorCDR_20' ) start [2025-02-01 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378581', 'tblTempVendorCDR_20' ) end [2025-02-01 13:15:19] Production.INFO: ProcessCDR(1,14378581,1,1,2) [2025-02-01 13:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378581', 'tblTempUsageDetail_20' ) start [2025-02-01 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378581', 'tblTempUsageDetail_20' ) end [2025-02-01 13:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:15:24] Production.INFO: ==13660== Releasing lock... [2025-02-01 13:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:15:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:16:05 [end_date_ymd] => 2025-02-01 13:16:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:16:05' and `end` < '2025-02-01 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-01 13:16:18] Production.INFO: count ==1942 [2025-02-01 13:16:18] Production.ERROR: pbx CDR StartTime 2025-02-01 10:16:05 - End Time 2025-02-01 13:16:05 [2025-02-01 13:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378586', 'tblTempUsageDetail_20' ) start [2025-02-01 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378586', 'tblTempUsageDetail_20' ) end [2025-02-01 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378586', 'tblTempVendorCDR_20' ) start [2025-02-01 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378586', 'tblTempVendorCDR_20' ) end [2025-02-01 13:16:18] Production.INFO: ProcessCDR(1,14378586,1,1,2) [2025-02-01 13:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378586', 'tblTempUsageDetail_20' ) start [2025-02-01 13:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378586', 'tblTempUsageDetail_20' ) end [2025-02-01 13:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:16:23] Production.INFO: ==13730== Releasing lock... [2025-02-01 13:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:16:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-01 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:17:05 [end_date_ymd] => 2025-02-01 13:17:05 [RateCDR] => 1 ) [2025-02-01 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:17:05' and `end` < '2025-02-01 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:17:21] Production.INFO: count ==1940 [2025-02-01 13:17:21] Production.ERROR: pbx CDR StartTime 2025-02-01 10:17:05 - End Time 2025-02-01 13:17:05 [2025-02-01 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378591', 'tblTempUsageDetail_20' ) start [2025-02-01 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378591', 'tblTempUsageDetail_20' ) end [2025-02-01 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378591', 'tblTempVendorCDR_20' ) start [2025-02-01 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378591', 'tblTempVendorCDR_20' ) end [2025-02-01 13:17:21] Production.INFO: ProcessCDR(1,14378591,1,1,2) [2025-02-01 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378591', 'tblTempUsageDetail_20' ) start [2025-02-01 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378591', 'tblTempUsageDetail_20' ) end [2025-02-01 13:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:17:26] Production.INFO: ==13839== Releasing lock... [2025-02-01 13:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:17:26] Production.INFO: 42.75 MB #Memory Used# [2025-02-01 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:18:05 [end_date_ymd] => 2025-02-01 13:18:05 [RateCDR] => 1 ) [2025-02-01 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:18:05' and `end` < '2025-02-01 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:18:18] Production.INFO: count ==1937 [2025-02-01 13:18:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:18:05 - End Time 2025-02-01 13:18:05 [2025-02-01 13:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378596', 'tblTempUsageDetail_20' ) start [2025-02-01 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378596', 'tblTempUsageDetail_20' ) end [2025-02-01 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378596', 'tblTempVendorCDR_20' ) start [2025-02-01 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378596', 'tblTempVendorCDR_20' ) end [2025-02-01 13:18:19] Production.INFO: ProcessCDR(1,14378596,1,1,2) [2025-02-01 13:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378596', 'tblTempUsageDetail_20' ) start [2025-02-01 13:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378596', 'tblTempUsageDetail_20' ) end [2025-02-01 13:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:18:23] Production.INFO: ==13910== Releasing lock... [2025-02-01 13:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:18:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-01 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:19:05 [end_date_ymd] => 2025-02-01 13:19:05 [RateCDR] => 1 ) [2025-02-01 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:19:05' and `end` < '2025-02-01 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:19:19] Production.INFO: count ==1940 [2025-02-01 13:19:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:19:05 - End Time 2025-02-01 13:19:05 [2025-02-01 13:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378601', 'tblTempUsageDetail_20' ) start [2025-02-01 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378601', 'tblTempUsageDetail_20' ) end [2025-02-01 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378601', 'tblTempVendorCDR_20' ) start [2025-02-01 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378601', 'tblTempVendorCDR_20' ) end [2025-02-01 13:19:19] Production.INFO: ProcessCDR(1,14378601,1,1,2) [2025-02-01 13:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378601', 'tblTempUsageDetail_20' ) start [2025-02-01 13:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378601', 'tblTempUsageDetail_20' ) end [2025-02-01 13:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:19:24] Production.INFO: ==13985== Releasing lock... [2025-02-01 13:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:19:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-01 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:20:06 [end_date_ymd] => 2025-02-01 13:20:06 [RateCDR] => 1 ) [2025-02-01 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-01 10:20:06' and `end` < '2025-02-01 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-01 13:20:19] Production.INFO: count ==1939 [2025-02-01 13:20:20] Production.ERROR: pbx CDR StartTime 2025-02-01 10:20:06 - End Time 2025-02-01 13:20:06 [2025-02-01 13:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378607', 'tblTempUsageDetail_20' ) start [2025-02-01 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378607', 'tblTempUsageDetail_20' ) end [2025-02-01 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378607', 'tblTempVendorCDR_20' ) start [2025-02-01 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378607', 'tblTempVendorCDR_20' ) end [2025-02-01 13:20:20] Production.INFO: ProcessCDR(1,14378607,1,1,2) [2025-02-01 13:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378607', 'tblTempUsageDetail_20' ) start [2025-02-01 13:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378607', 'tblTempUsageDetail_20' ) end [2025-02-01 13:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:20:24] Production.INFO: ==14059== Releasing lock... [2025-02-01 13:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:20:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-01 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:21:05 [end_date_ymd] => 2025-02-01 13:21:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:21:05' and `end` < '2025-02-01 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-01 13:21:18] Production.INFO: count ==1982 [2025-02-01 13:21:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:21:05 - End Time 2025-02-01 13:21:05 [2025-02-01 13:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378612', 'tblTempUsageDetail_20' ) start [2025-02-01 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378612', 'tblTempUsageDetail_20' ) end [2025-02-01 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378612', 'tblTempVendorCDR_20' ) start [2025-02-01 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378612', 'tblTempVendorCDR_20' ) end [2025-02-01 13:21:19] Production.INFO: ProcessCDR(1,14378612,1,1,2) [2025-02-01 13:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378612', 'tblTempUsageDetail_20' ) start [2025-02-01 13:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378612', 'tblTempUsageDetail_20' ) end [2025-02-01 13:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:21:24] Production.INFO: ==14131== Releasing lock... [2025-02-01 13:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:21:24] Production.INFO: 43 MB #Memory Used# [2025-02-01 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:22:06 [end_date_ymd] => 2025-02-01 13:22:06 [RateCDR] => 1 ) [2025-02-01 13:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:22:06' and `end` < '2025-02-01 13:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:22:20] Production.INFO: count ==1987 [2025-02-01 13:22:20] Production.ERROR: pbx CDR StartTime 2025-02-01 10:22:06 - End Time 2025-02-01 13:22:06 [2025-02-01 13:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378617', 'tblTempUsageDetail_20' ) start [2025-02-01 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378617', 'tblTempUsageDetail_20' ) end [2025-02-01 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378617', 'tblTempVendorCDR_20' ) start [2025-02-01 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378617', 'tblTempVendorCDR_20' ) end [2025-02-01 13:22:20] Production.INFO: ProcessCDR(1,14378617,1,1,2) [2025-02-01 13:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378617', 'tblTempUsageDetail_20' ) start [2025-02-01 13:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378617', 'tblTempUsageDetail_20' ) end [2025-02-01 13:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:22:25] Production.INFO: ==14202== Releasing lock... [2025-02-01 13:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:22:25] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:23:05 [end_date_ymd] => 2025-02-01 13:23:05 [RateCDR] => 1 ) [2025-02-01 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:23:05' and `end` < '2025-02-01 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:23:18] Production.INFO: count ==1987 [2025-02-01 13:23:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:23:05 - End Time 2025-02-01 13:23:05 [2025-02-01 13:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378622', 'tblTempUsageDetail_20' ) start [2025-02-01 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378622', 'tblTempUsageDetail_20' ) end [2025-02-01 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378622', 'tblTempVendorCDR_20' ) start [2025-02-01 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378622', 'tblTempVendorCDR_20' ) end [2025-02-01 13:23:19] Production.INFO: ProcessCDR(1,14378622,1,1,2) [2025-02-01 13:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378622', 'tblTempUsageDetail_20' ) start [2025-02-01 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378622', 'tblTempUsageDetail_20' ) end [2025-02-01 13:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:23:23] Production.INFO: ==14278== Releasing lock... [2025-02-01 13:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:23:23] Production.INFO: 43 MB #Memory Used# [2025-02-01 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:24:06 [end_date_ymd] => 2025-02-01 13:24:06 [RateCDR] => 1 ) [2025-02-01 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-01 10:24:06' and `end` < '2025-02-01 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-01 13:24:19] Production.INFO: count ==1987 [2025-02-01 13:24:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:24:06 - End Time 2025-02-01 13:24:06 [2025-02-01 13:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378627', 'tblTempUsageDetail_20' ) start [2025-02-01 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378627', 'tblTempUsageDetail_20' ) end [2025-02-01 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378627', 'tblTempVendorCDR_20' ) start [2025-02-01 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378627', 'tblTempVendorCDR_20' ) end [2025-02-01 13:24:20] Production.INFO: ProcessCDR(1,14378627,1,1,2) [2025-02-01 13:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378627', 'tblTempUsageDetail_20' ) start [2025-02-01 13:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378627', 'tblTempUsageDetail_20' ) end [2025-02-01 13:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:24:23] Production.INFO: ==14350== Releasing lock... [2025-02-01 13:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:24:23] Production.INFO: 43 MB #Memory Used# [2025-02-01 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:25:05 [end_date_ymd] => 2025-02-01 13:25:05 [RateCDR] => 1 ) [2025-02-01 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:25:05' and `end` < '2025-02-01 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:25:18] Production.INFO: count ==1991 [2025-02-01 13:25:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:25:05 - End Time 2025-02-01 13:25:05 [2025-02-01 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378632', 'tblTempUsageDetail_20' ) start [2025-02-01 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378632', 'tblTempUsageDetail_20' ) end [2025-02-01 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378632', 'tblTempVendorCDR_20' ) start [2025-02-01 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378632', 'tblTempVendorCDR_20' ) end [2025-02-01 13:25:19] Production.INFO: ProcessCDR(1,14378632,1,1,2) [2025-02-01 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378632', 'tblTempUsageDetail_20' ) start [2025-02-01 13:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378632', 'tblTempUsageDetail_20' ) end [2025-02-01 13:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:25:23] Production.INFO: ==14421== Releasing lock... [2025-02-01 13:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:25:23] Production.INFO: 43 MB #Memory Used# [2025-02-01 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:26:05 [end_date_ymd] => 2025-02-01 13:26:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:26:05' and `end` < '2025-02-01 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-01 13:26:18] Production.INFO: count ==1978 [2025-02-01 13:26:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:26:05 - End Time 2025-02-01 13:26:05 [2025-02-01 13:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378637', 'tblTempUsageDetail_20' ) start [2025-02-01 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378637', 'tblTempUsageDetail_20' ) end [2025-02-01 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378637', 'tblTempVendorCDR_20' ) start [2025-02-01 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378637', 'tblTempVendorCDR_20' ) end [2025-02-01 13:26:19] Production.INFO: ProcessCDR(1,14378637,1,1,2) [2025-02-01 13:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378637', 'tblTempUsageDetail_20' ) start [2025-02-01 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378637', 'tblTempUsageDetail_20' ) end [2025-02-01 13:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:26:22] Production.INFO: ==14495== Releasing lock... [2025-02-01 13:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:26:22] Production.INFO: 43 MB #Memory Used# [2025-02-01 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:27:05 [end_date_ymd] => 2025-02-01 13:27:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:27:05' and `end` < '2025-02-01 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-01 13:27:19] Production.INFO: count ==1980 [2025-02-01 13:27:20] Production.ERROR: pbx CDR StartTime 2025-02-01 10:27:05 - End Time 2025-02-01 13:27:05 [2025-02-01 13:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378642', 'tblTempUsageDetail_20' ) start [2025-02-01 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378642', 'tblTempUsageDetail_20' ) end [2025-02-01 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378642', 'tblTempVendorCDR_20' ) start [2025-02-01 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378642', 'tblTempVendorCDR_20' ) end [2025-02-01 13:27:20] Production.INFO: ProcessCDR(1,14378642,1,1,2) [2025-02-01 13:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378642', 'tblTempUsageDetail_20' ) start [2025-02-01 13:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378642', 'tblTempUsageDetail_20' ) end [2025-02-01 13:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:27:23] Production.INFO: ==14567== Releasing lock... [2025-02-01 13:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:27:23] Production.INFO: 43 MB #Memory Used# [2025-02-01 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:28:05 [end_date_ymd] => 2025-02-01 13:28:05 [RateCDR] => 1 ) [2025-02-01 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:28:05' and `end` < '2025-02-01 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:28:18] Production.INFO: count ==1987 [2025-02-01 13:28:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:28:05 - End Time 2025-02-01 13:28:05 [2025-02-01 13:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378647', 'tblTempUsageDetail_20' ) start [2025-02-01 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378647', 'tblTempUsageDetail_20' ) end [2025-02-01 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378647', 'tblTempVendorCDR_20' ) start [2025-02-01 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378647', 'tblTempVendorCDR_20' ) end [2025-02-01 13:28:19] Production.INFO: ProcessCDR(1,14378647,1,1,2) [2025-02-01 13:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378647', 'tblTempUsageDetail_20' ) start [2025-02-01 13:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378647', 'tblTempUsageDetail_20' ) end [2025-02-01 13:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:28:22] Production.INFO: ==14639== Releasing lock... [2025-02-01 13:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:28:22] Production.INFO: 43 MB #Memory Used# [2025-02-01 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:29:05 [end_date_ymd] => 2025-02-01 13:29:05 [RateCDR] => 1 ) [2025-02-01 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:29:05' and `end` < '2025-02-01 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:29:17] Production.INFO: count ==1985 [2025-02-01 13:29:18] Production.ERROR: pbx CDR StartTime 2025-02-01 10:29:05 - End Time 2025-02-01 13:29:05 [2025-02-01 13:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378652', 'tblTempUsageDetail_20' ) start [2025-02-01 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378652', 'tblTempUsageDetail_20' ) end [2025-02-01 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378652', 'tblTempVendorCDR_20' ) start [2025-02-01 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378652', 'tblTempVendorCDR_20' ) end [2025-02-01 13:29:18] Production.INFO: ProcessCDR(1,14378652,1,1,2) [2025-02-01 13:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378652', 'tblTempUsageDetail_20' ) start [2025-02-01 13:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378652', 'tblTempUsageDetail_20' ) end [2025-02-01 13:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:29:23] Production.INFO: ==14710== Releasing lock... [2025-02-01 13:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:29:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:30:06 [end_date_ymd] => 2025-02-01 13:30:06 [RateCDR] => 1 ) [2025-02-01 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-01 10:30:06' and `end` < '2025-02-01 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-01 13:30:18] Production.INFO: count ==1984 [2025-02-01 13:30:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:30:06 - End Time 2025-02-01 13:30:06 [2025-02-01 13:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378657', 'tblTempUsageDetail_20' ) start [2025-02-01 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378657', 'tblTempUsageDetail_20' ) end [2025-02-01 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378657', 'tblTempVendorCDR_20' ) start [2025-02-01 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378657', 'tblTempVendorCDR_20' ) end [2025-02-01 13:30:19] Production.INFO: ProcessCDR(1,14378657,1,1,2) [2025-02-01 13:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378657', 'tblTempUsageDetail_20' ) start [2025-02-01 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378657', 'tblTempUsageDetail_20' ) end [2025-02-01 13:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:30:23] Production.INFO: ==14785== Releasing lock... [2025-02-01 13:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:30:23] Production.INFO: 43 MB #Memory Used# [2025-02-01 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:31:05 [end_date_ymd] => 2025-02-01 13:31:05 [RateCDR] => 1 ) [2025-02-01 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:31:05' and `end` < '2025-02-01 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:31:18] Production.INFO: count ==2000 [2025-02-01 13:31:18] Production.ERROR: pbx CDR StartTime 2025-02-01 10:31:05 - End Time 2025-02-01 13:31:05 [2025-02-01 13:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378663', 'tblTempUsageDetail_20' ) start [2025-02-01 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378663', 'tblTempUsageDetail_20' ) end [2025-02-01 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378663', 'tblTempVendorCDR_20' ) start [2025-02-01 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378663', 'tblTempVendorCDR_20' ) end [2025-02-01 13:31:18] Production.INFO: ProcessCDR(1,14378663,1,1,2) [2025-02-01 13:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378663', 'tblTempUsageDetail_20' ) start [2025-02-01 13:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378663', 'tblTempUsageDetail_20' ) end [2025-02-01 13:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:31:23] Production.INFO: ==14867== Releasing lock... [2025-02-01 13:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:31:23] Production.INFO: 43 MB #Memory Used# [2025-02-01 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:32:05 [end_date_ymd] => 2025-02-01 13:32:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:32:05' and `end` < '2025-02-01 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-01 13:32:18] Production.INFO: count ==2001 [2025-02-01 13:32:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:32:05 - End Time 2025-02-01 13:32:05 [2025-02-01 13:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378668', 'tblTempUsageDetail_20' ) start [2025-02-01 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378668', 'tblTempUsageDetail_20' ) end [2025-02-01 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378668', 'tblTempVendorCDR_20' ) start [2025-02-01 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378668', 'tblTempVendorCDR_20' ) end [2025-02-01 13:32:19] Production.INFO: ProcessCDR(1,14378668,1,1,2) [2025-02-01 13:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378668', 'tblTempUsageDetail_20' ) start [2025-02-01 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378668', 'tblTempUsageDetail_20' ) end [2025-02-01 13:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:32:22] Production.INFO: ==14978== Releasing lock... [2025-02-01 13:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:32:22] Production.INFO: 43 MB #Memory Used# [2025-02-01 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:33:06 [end_date_ymd] => 2025-02-01 13:33:06 [RateCDR] => 1 ) [2025-02-01 13:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:33:06' and `end` < '2025-02-01 13:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:33:19] Production.INFO: count ==2000 [2025-02-01 13:33:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:33:06 - End Time 2025-02-01 13:33:06 [2025-02-01 13:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378673', 'tblTempUsageDetail_20' ) start [2025-02-01 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378673', 'tblTempUsageDetail_20' ) end [2025-02-01 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378673', 'tblTempVendorCDR_20' ) start [2025-02-01 13:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378673', 'tblTempVendorCDR_20' ) end [2025-02-01 13:33:19] Production.INFO: ProcessCDR(1,14378673,1,1,2) [2025-02-01 13:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378673', 'tblTempUsageDetail_20' ) start [2025-02-01 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378673', 'tblTempUsageDetail_20' ) end [2025-02-01 13:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:33:22] Production.INFO: ==15057== Releasing lock... [2025-02-01 13:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:33:22] Production.INFO: 43 MB #Memory Used# [2025-02-01 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:34:05 [end_date_ymd] => 2025-02-01 13:34:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:34:05' and `end` < '2025-02-01 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-01 13:34:18] Production.INFO: count ==2001 [2025-02-01 13:34:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:34:05 - End Time 2025-02-01 13:34:05 [2025-02-01 13:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378678', 'tblTempUsageDetail_20' ) start [2025-02-01 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378678', 'tblTempUsageDetail_20' ) end [2025-02-01 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378678', 'tblTempVendorCDR_20' ) start [2025-02-01 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378678', 'tblTempVendorCDR_20' ) end [2025-02-01 13:34:19] Production.INFO: ProcessCDR(1,14378678,1,1,2) [2025-02-01 13:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378678', 'tblTempUsageDetail_20' ) start [2025-02-01 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378678', 'tblTempUsageDetail_20' ) end [2025-02-01 13:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:34:23] Production.INFO: ==15136== Releasing lock... [2025-02-01 13:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:34:23] Production.INFO: 43 MB #Memory Used# [2025-02-01 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:35:05 [end_date_ymd] => 2025-02-01 13:35:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:35:05' and `end` < '2025-02-01 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-01 13:35:21] Production.INFO: count ==2000 [2025-02-01 13:35:22] Production.ERROR: pbx CDR StartTime 2025-02-01 10:35:05 - End Time 2025-02-01 13:35:05 [2025-02-01 13:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378683', 'tblTempUsageDetail_20' ) start [2025-02-01 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378683', 'tblTempUsageDetail_20' ) end [2025-02-01 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378683', 'tblTempVendorCDR_20' ) start [2025-02-01 13:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378683', 'tblTempVendorCDR_20' ) end [2025-02-01 13:35:22] Production.INFO: ProcessCDR(1,14378683,1,1,2) [2025-02-01 13:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378683', 'tblTempUsageDetail_20' ) start [2025-02-01 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378683', 'tblTempUsageDetail_20' ) end [2025-02-01 13:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:35:25] Production.INFO: ==15210== Releasing lock... [2025-02-01 13:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:35:25] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:36:05 [end_date_ymd] => 2025-02-01 13:36:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:36:05' and `end` < '2025-02-01 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-01 13:36:18] Production.INFO: count ==2007 [2025-02-01 13:36:18] Production.ERROR: pbx CDR StartTime 2025-02-01 10:36:05 - End Time 2025-02-01 13:36:05 [2025-02-01 13:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378688', 'tblTempUsageDetail_20' ) start [2025-02-01 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378688', 'tblTempUsageDetail_20' ) end [2025-02-01 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378688', 'tblTempVendorCDR_20' ) start [2025-02-01 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378688', 'tblTempVendorCDR_20' ) end [2025-02-01 13:36:18] Production.INFO: ProcessCDR(1,14378688,1,1,2) [2025-02-01 13:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378688', 'tblTempUsageDetail_20' ) start [2025-02-01 13:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378688', 'tblTempUsageDetail_20' ) end [2025-02-01 13:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:36:21] Production.INFO: ==15286== Releasing lock... [2025-02-01 13:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:36:21] Production.INFO: 43 MB #Memory Used# [2025-02-01 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:37:05 [end_date_ymd] => 2025-02-01 13:37:05 [RateCDR] => 1 ) [2025-02-01 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:37:05' and `end` < '2025-02-01 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:37:18] Production.INFO: count ==1999 [2025-02-01 13:37:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:37:05 - End Time 2025-02-01 13:37:05 [2025-02-01 13:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378693', 'tblTempUsageDetail_20' ) start [2025-02-01 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378693', 'tblTempUsageDetail_20' ) end [2025-02-01 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378693', 'tblTempVendorCDR_20' ) start [2025-02-01 13:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378693', 'tblTempVendorCDR_20' ) end [2025-02-01 13:37:19] Production.INFO: ProcessCDR(1,14378693,1,1,2) [2025-02-01 13:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378693', 'tblTempUsageDetail_20' ) start [2025-02-01 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378693', 'tblTempUsageDetail_20' ) end [2025-02-01 13:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:37:23] Production.INFO: ==15359== Releasing lock... [2025-02-01 13:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:37:23] Production.INFO: 43 MB #Memory Used# [2025-02-01 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:38:05 [end_date_ymd] => 2025-02-01 13:38:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:38:05' and `end` < '2025-02-01 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-01 13:38:19] Production.INFO: count ==1999 [2025-02-01 13:38:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:38:05 - End Time 2025-02-01 13:38:05 [2025-02-01 13:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378698', 'tblTempUsageDetail_20' ) start [2025-02-01 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378698', 'tblTempUsageDetail_20' ) end [2025-02-01 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378698', 'tblTempVendorCDR_20' ) start [2025-02-01 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378698', 'tblTempVendorCDR_20' ) end [2025-02-01 13:38:19] Production.INFO: ProcessCDR(1,14378698,1,1,2) [2025-02-01 13:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378698', 'tblTempUsageDetail_20' ) start [2025-02-01 13:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378698', 'tblTempUsageDetail_20' ) end [2025-02-01 13:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:38:24] Production.INFO: ==15439== Releasing lock... [2025-02-01 13:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:38:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:39:05 [end_date_ymd] => 2025-02-01 13:39:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:39:05' and `end` < '2025-02-01 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-01 13:39:18] Production.INFO: count ==1990 [2025-02-01 13:39:18] Production.ERROR: pbx CDR StartTime 2025-02-01 10:39:05 - End Time 2025-02-01 13:39:05 [2025-02-01 13:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378703', 'tblTempUsageDetail_20' ) start [2025-02-01 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378703', 'tblTempUsageDetail_20' ) end [2025-02-01 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378703', 'tblTempVendorCDR_20' ) start [2025-02-01 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378703', 'tblTempVendorCDR_20' ) end [2025-02-01 13:39:18] Production.INFO: ProcessCDR(1,14378703,1,1,2) [2025-02-01 13:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378703', 'tblTempUsageDetail_20' ) start [2025-02-01 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378703', 'tblTempUsageDetail_20' ) end [2025-02-01 13:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:39:23] Production.INFO: ==15517== Releasing lock... [2025-02-01 13:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:39:23] Production.INFO: 43 MB #Memory Used# [2025-02-01 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:40:05 [end_date_ymd] => 2025-02-01 13:40:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:40:05' and `end` < '2025-02-01 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-01 13:40:18] Production.INFO: count ==1997 [2025-02-01 13:40:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:40:05 - End Time 2025-02-01 13:40:05 [2025-02-01 13:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378708', 'tblTempUsageDetail_20' ) start [2025-02-01 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378708', 'tblTempUsageDetail_20' ) end [2025-02-01 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378708', 'tblTempVendorCDR_20' ) start [2025-02-01 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378708', 'tblTempVendorCDR_20' ) end [2025-02-01 13:40:19] Production.INFO: ProcessCDR(1,14378708,1,1,2) [2025-02-01 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378708', 'tblTempUsageDetail_20' ) start [2025-02-01 13:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378708', 'tblTempUsageDetail_20' ) end [2025-02-01 13:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:40:22] Production.INFO: ==15593== Releasing lock... [2025-02-01 13:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:40:22] Production.INFO: 43 MB #Memory Used# [2025-02-01 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:41:05 [end_date_ymd] => 2025-02-01 13:41:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:41:05' and `end` < '2025-02-01 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-01 13:41:18] Production.INFO: count ==2014 [2025-02-01 13:41:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:41:05 - End Time 2025-02-01 13:41:05 [2025-02-01 13:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378714', 'tblTempUsageDetail_20' ) start [2025-02-01 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378714', 'tblTempUsageDetail_20' ) end [2025-02-01 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378714', 'tblTempVendorCDR_20' ) start [2025-02-01 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378714', 'tblTempVendorCDR_20' ) end [2025-02-01 13:41:19] Production.INFO: ProcessCDR(1,14378714,1,1,2) [2025-02-01 13:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378714', 'tblTempUsageDetail_20' ) start [2025-02-01 13:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378714', 'tblTempUsageDetail_20' ) end [2025-02-01 13:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:41:23] Production.INFO: ==15676== Releasing lock... [2025-02-01 13:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:41:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:42:05 [end_date_ymd] => 2025-02-01 13:42:05 [RateCDR] => 1 ) [2025-02-01 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:42:05' and `end` < '2025-02-01 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:42:18] Production.INFO: count ==2014 [2025-02-01 13:42:18] Production.ERROR: pbx CDR StartTime 2025-02-01 10:42:05 - End Time 2025-02-01 13:42:05 [2025-02-01 13:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378719', 'tblTempUsageDetail_20' ) start [2025-02-01 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378719', 'tblTempUsageDetail_20' ) end [2025-02-01 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378719', 'tblTempVendorCDR_20' ) start [2025-02-01 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378719', 'tblTempVendorCDR_20' ) end [2025-02-01 13:42:18] Production.INFO: ProcessCDR(1,14378719,1,1,2) [2025-02-01 13:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378719', 'tblTempUsageDetail_20' ) start [2025-02-01 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378719', 'tblTempUsageDetail_20' ) end [2025-02-01 13:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:42:23] Production.INFO: ==15748== Releasing lock... [2025-02-01 13:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:42:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-01 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:43:05 [end_date_ymd] => 2025-02-01 13:43:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:43:05' and `end` < '2025-02-01 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-01 13:43:18] Production.INFO: count ==2008 [2025-02-01 13:43:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:43:05 - End Time 2025-02-01 13:43:05 [2025-02-01 13:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378724', 'tblTempUsageDetail_20' ) start [2025-02-01 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378724', 'tblTempUsageDetail_20' ) end [2025-02-01 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378724', 'tblTempVendorCDR_20' ) start [2025-02-01 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378724', 'tblTempVendorCDR_20' ) end [2025-02-01 13:43:19] Production.INFO: ProcessCDR(1,14378724,1,1,2) [2025-02-01 13:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378724', 'tblTempUsageDetail_20' ) start [2025-02-01 13:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378724', 'tblTempUsageDetail_20' ) end [2025-02-01 13:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:43:23] Production.INFO: ==15825== Releasing lock... [2025-02-01 13:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:43:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-01 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:44:05 [end_date_ymd] => 2025-02-01 13:44:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:44:05' and `end` < '2025-02-01 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-01 13:44:18] Production.INFO: count ==2009 [2025-02-01 13:44:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:44:05 - End Time 2025-02-01 13:44:05 [2025-02-01 13:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378729', 'tblTempUsageDetail_20' ) start [2025-02-01 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378729', 'tblTempUsageDetail_20' ) end [2025-02-01 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378729', 'tblTempVendorCDR_20' ) start [2025-02-01 13:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378729', 'tblTempVendorCDR_20' ) end [2025-02-01 13:44:19] Production.INFO: ProcessCDR(1,14378729,1,1,2) [2025-02-01 13:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378729', 'tblTempUsageDetail_20' ) start [2025-02-01 13:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378729', 'tblTempUsageDetail_20' ) end [2025-02-01 13:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:44:24] Production.INFO: ==15903== Releasing lock... [2025-02-01 13:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:44:24] Production.INFO: 43 MB #Memory Used# [2025-02-01 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:45:05 [end_date_ymd] => 2025-02-01 13:45:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:45:05' and `end` < '2025-02-01 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-01 13:45:18] Production.INFO: count ==2010 [2025-02-01 13:45:18] Production.ERROR: pbx CDR StartTime 2025-02-01 10:45:05 - End Time 2025-02-01 13:45:05 [2025-02-01 13:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378734', 'tblTempUsageDetail_20' ) start [2025-02-01 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378734', 'tblTempUsageDetail_20' ) end [2025-02-01 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378734', 'tblTempVendorCDR_20' ) start [2025-02-01 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378734', 'tblTempVendorCDR_20' ) end [2025-02-01 13:45:18] Production.INFO: ProcessCDR(1,14378734,1,1,2) [2025-02-01 13:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378734', 'tblTempUsageDetail_20' ) start [2025-02-01 13:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378734', 'tblTempUsageDetail_20' ) end [2025-02-01 13:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:45:23] Production.INFO: ==15978== Releasing lock... [2025-02-01 13:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:45:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:46:05 [end_date_ymd] => 2025-02-01 13:46:05 [RateCDR] => 1 ) [2025-02-01 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:46:05' and `end` < '2025-02-01 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:46:18] Production.INFO: count ==2010 [2025-02-01 13:46:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:46:05 - End Time 2025-02-01 13:46:05 [2025-02-01 13:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378739', 'tblTempUsageDetail_20' ) start [2025-02-01 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378739', 'tblTempUsageDetail_20' ) end [2025-02-01 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378739', 'tblTempVendorCDR_20' ) start [2025-02-01 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378739', 'tblTempVendorCDR_20' ) end [2025-02-01 13:46:19] Production.INFO: ProcessCDR(1,14378739,1,1,2) [2025-02-01 13:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378739', 'tblTempUsageDetail_20' ) start [2025-02-01 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378739', 'tblTempUsageDetail_20' ) end [2025-02-01 13:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:46:23] Production.INFO: ==16055== Releasing lock... [2025-02-01 13:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:46:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:47:06 [end_date_ymd] => 2025-02-01 13:47:06 [RateCDR] => 1 ) [2025-02-01 13: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-01 10:47:06' and `end` < '2025-02-01 13: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-01 13:47:19] Production.INFO: count ==2025 [2025-02-01 13:47:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:47:06 - End Time 2025-02-01 13:47:06 [2025-02-01 13:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378744', 'tblTempUsageDetail_20' ) start [2025-02-01 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378744', 'tblTempUsageDetail_20' ) end [2025-02-01 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378744', 'tblTempVendorCDR_20' ) start [2025-02-01 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378744', 'tblTempVendorCDR_20' ) end [2025-02-01 13:47:19] Production.INFO: ProcessCDR(1,14378744,1,1,2) [2025-02-01 13:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378744', 'tblTempUsageDetail_20' ) start [2025-02-01 13:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378744', 'tblTempUsageDetail_20' ) end [2025-02-01 13:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:47:24] Production.INFO: ==16132== Releasing lock... [2025-02-01 13:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:47:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:48:05 [end_date_ymd] => 2025-02-01 13:48:05 [RateCDR] => 1 ) [2025-02-01 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:48:05' and `end` < '2025-02-01 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:48:18] Production.INFO: count ==2024 [2025-02-01 13:48:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:48:05 - End Time 2025-02-01 13:48:05 [2025-02-01 13:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378749', 'tblTempUsageDetail_20' ) start [2025-02-01 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378749', 'tblTempUsageDetail_20' ) end [2025-02-01 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378749', 'tblTempVendorCDR_20' ) start [2025-02-01 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378749', 'tblTempVendorCDR_20' ) end [2025-02-01 13:48:19] Production.INFO: ProcessCDR(1,14378749,1,1,2) [2025-02-01 13:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378749', 'tblTempUsageDetail_20' ) start [2025-02-01 13:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378749', 'tblTempUsageDetail_20' ) end [2025-02-01 13:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:48:24] Production.INFO: ==16249== Releasing lock... [2025-02-01 13:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:48:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:49:05 [end_date_ymd] => 2025-02-01 13:49:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:49:05' and `end` < '2025-02-01 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-01 13:49:18] Production.INFO: count ==2031 [2025-02-01 13:49:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:49:05 - End Time 2025-02-01 13:49:05 [2025-02-01 13:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378754', 'tblTempUsageDetail_20' ) start [2025-02-01 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378754', 'tblTempUsageDetail_20' ) end [2025-02-01 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378754', 'tblTempVendorCDR_20' ) start [2025-02-01 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378754', 'tblTempVendorCDR_20' ) end [2025-02-01 13:49:19] Production.INFO: ProcessCDR(1,14378754,1,1,2) [2025-02-01 13:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378754', 'tblTempUsageDetail_20' ) start [2025-02-01 13:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378754', 'tblTempUsageDetail_20' ) end [2025-02-01 13:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:49:23] Production.INFO: ==16332== Releasing lock... [2025-02-01 13:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:49:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:50:05 [end_date_ymd] => 2025-02-01 13:50:05 [RateCDR] => 1 ) [2025-02-01 13:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:50:05' and `end` < '2025-02-01 13:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:50:20] Production.INFO: count ==2032 [2025-02-01 13:50:21] Production.ERROR: pbx CDR StartTime 2025-02-01 10:50:05 - End Time 2025-02-01 13:50:05 [2025-02-01 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378760', 'tblTempUsageDetail_20' ) start [2025-02-01 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378760', 'tblTempUsageDetail_20' ) end [2025-02-01 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378760', 'tblTempVendorCDR_20' ) start [2025-02-01 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378760', 'tblTempVendorCDR_20' ) end [2025-02-01 13:50:21] Production.INFO: ProcessCDR(1,14378760,1,1,2) [2025-02-01 13:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378760', 'tblTempUsageDetail_20' ) start [2025-02-01 13:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378760', 'tblTempUsageDetail_20' ) end [2025-02-01 13:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:50:25] Production.INFO: ==16420== Releasing lock... [2025-02-01 13:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:50:25] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:51:05 [end_date_ymd] => 2025-02-01 13:51:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:51:05' and `end` < '2025-02-01 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-01 13:51:18] Production.INFO: count ==2051 [2025-02-01 13:51:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:51:05 - End Time 2025-02-01 13:51:05 [2025-02-01 13:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378765', 'tblTempUsageDetail_20' ) start [2025-02-01 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378765', 'tblTempUsageDetail_20' ) end [2025-02-01 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378765', 'tblTempVendorCDR_20' ) start [2025-02-01 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378765', 'tblTempVendorCDR_20' ) end [2025-02-01 13:51:19] Production.INFO: ProcessCDR(1,14378765,1,1,2) [2025-02-01 13:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378765', 'tblTempUsageDetail_20' ) start [2025-02-01 13:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378765', 'tblTempUsageDetail_20' ) end [2025-02-01 13:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:51:23] Production.INFO: ==16501== Releasing lock... [2025-02-01 13:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:51:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-01 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:52:05 [end_date_ymd] => 2025-02-01 13:52:05 [RateCDR] => 1 ) [2025-02-01 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:52:05' and `end` < '2025-02-01 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:52:18] Production.INFO: count ==2052 [2025-02-01 13:52:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:52:05 - End Time 2025-02-01 13:52:05 [2025-02-01 13:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378770', 'tblTempUsageDetail_20' ) start [2025-02-01 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378770', 'tblTempUsageDetail_20' ) end [2025-02-01 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378770', 'tblTempVendorCDR_20' ) start [2025-02-01 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378770', 'tblTempVendorCDR_20' ) end [2025-02-01 13:52:19] Production.INFO: ProcessCDR(1,14378770,1,1,2) [2025-02-01 13:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378770', 'tblTempUsageDetail_20' ) start [2025-02-01 13:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378770', 'tblTempUsageDetail_20' ) end [2025-02-01 13:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:52:23] Production.INFO: ==16580== Releasing lock... [2025-02-01 13:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:52:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-01 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:53:05 [end_date_ymd] => 2025-02-01 13:53:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:53:05' and `end` < '2025-02-01 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-01 13:53:18] Production.INFO: count ==2052 [2025-02-01 13:53:18] Production.ERROR: pbx CDR StartTime 2025-02-01 10:53:05 - End Time 2025-02-01 13:53:05 [2025-02-01 13:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378775', 'tblTempUsageDetail_20' ) start [2025-02-01 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378775', 'tblTempUsageDetail_20' ) end [2025-02-01 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378775', 'tblTempVendorCDR_20' ) start [2025-02-01 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378775', 'tblTempVendorCDR_20' ) end [2025-02-01 13:53:18] Production.INFO: ProcessCDR(1,14378775,1,1,2) [2025-02-01 13:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378775', 'tblTempUsageDetail_20' ) start [2025-02-01 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378775', 'tblTempUsageDetail_20' ) end [2025-02-01 13:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:53:23] Production.INFO: ==16666== Releasing lock... [2025-02-01 13:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:53:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-01 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:54:06 [end_date_ymd] => 2025-02-01 13:54:06 [RateCDR] => 1 ) [2025-02-01 13:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:54:06' and `end` < '2025-02-01 13:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:54:19] Production.INFO: count ==2056 [2025-02-01 13:54:20] Production.ERROR: pbx CDR StartTime 2025-02-01 10:54:06 - End Time 2025-02-01 13:54:06 [2025-02-01 13:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378780', 'tblTempUsageDetail_20' ) start [2025-02-01 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378780', 'tblTempUsageDetail_20' ) end [2025-02-01 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378780', 'tblTempVendorCDR_20' ) start [2025-02-01 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378780', 'tblTempVendorCDR_20' ) end [2025-02-01 13:54:20] Production.INFO: ProcessCDR(1,14378780,1,1,2) [2025-02-01 13:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378780', 'tblTempUsageDetail_20' ) start [2025-02-01 13:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378780', 'tblTempUsageDetail_20' ) end [2025-02-01 13:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:54:24] Production.INFO: ==16748== Releasing lock... [2025-02-01 13:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:54:24] Production.INFO: 43.5 MB #Memory Used# [2025-02-01 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:55:05 [end_date_ymd] => 2025-02-01 13:55:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:55:05' and `end` < '2025-02-01 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-01 13:55:18] Production.INFO: count ==2055 [2025-02-01 13:55:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:55:05 - End Time 2025-02-01 13:55:05 [2025-02-01 13:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378785', 'tblTempUsageDetail_20' ) start [2025-02-01 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378785', 'tblTempUsageDetail_20' ) end [2025-02-01 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378785', 'tblTempVendorCDR_20' ) start [2025-02-01 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378785', 'tblTempVendorCDR_20' ) end [2025-02-01 13:55:19] Production.INFO: ProcessCDR(1,14378785,1,1,2) [2025-02-01 13:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378785', 'tblTempUsageDetail_20' ) start [2025-02-01 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378785', 'tblTempUsageDetail_20' ) end [2025-02-01 13:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:55:23] Production.INFO: ==16828== Releasing lock... [2025-02-01 13:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:55:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-01 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:56:05 [end_date_ymd] => 2025-02-01 13:56:05 [RateCDR] => 1 ) [2025-02-01 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 10:56:05' and `end` < '2025-02-01 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 13:56:18] Production.INFO: count ==2054 [2025-02-01 13:56:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:56:05 - End Time 2025-02-01 13:56:05 [2025-02-01 13:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378790', 'tblTempUsageDetail_20' ) start [2025-02-01 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378790', 'tblTempUsageDetail_20' ) end [2025-02-01 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378790', 'tblTempVendorCDR_20' ) start [2025-02-01 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378790', 'tblTempVendorCDR_20' ) end [2025-02-01 13:56:19] Production.INFO: ProcessCDR(1,14378790,1,1,2) [2025-02-01 13:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378790', 'tblTempUsageDetail_20' ) start [2025-02-01 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378790', 'tblTempUsageDetail_20' ) end [2025-02-01 13:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:56:23] Production.INFO: ==16905== Releasing lock... [2025-02-01 13:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:56:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-01 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:57:05 [end_date_ymd] => 2025-02-01 13:57:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:57:05' and `end` < '2025-02-01 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-01 13:57:19] Production.INFO: count ==2039 [2025-02-01 13:57:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:57:05 - End Time 2025-02-01 13:57:05 [2025-02-01 13:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378795', 'tblTempUsageDetail_20' ) start [2025-02-01 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378795', 'tblTempUsageDetail_20' ) end [2025-02-01 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378795', 'tblTempVendorCDR_20' ) start [2025-02-01 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378795', 'tblTempVendorCDR_20' ) end [2025-02-01 13:57:19] Production.INFO: ProcessCDR(1,14378795,1,1,2) [2025-02-01 13:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378795', 'tblTempUsageDetail_20' ) start [2025-02-01 13:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378795', 'tblTempUsageDetail_20' ) end [2025-02-01 13:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:57:24] Production.INFO: ==16984== Releasing lock... [2025-02-01 13:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:57:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:58:05 [end_date_ymd] => 2025-02-01 13:58:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:58:05' and `end` < '2025-02-01 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-01 13:58:18] Production.INFO: count ==2045 [2025-02-01 13:58:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:58:05 - End Time 2025-02-01 13:58:05 [2025-02-01 13:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378800', 'tblTempUsageDetail_20' ) start [2025-02-01 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378800', 'tblTempUsageDetail_20' ) end [2025-02-01 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378800', 'tblTempVendorCDR_20' ) start [2025-02-01 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378800', 'tblTempVendorCDR_20' ) end [2025-02-01 13:58:19] Production.INFO: ProcessCDR(1,14378800,1,1,2) [2025-02-01 13:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378800', 'tblTempUsageDetail_20' ) start [2025-02-01 13:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378800', 'tblTempUsageDetail_20' ) end [2025-02-01 13:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:58:23] Production.INFO: ==17063== Releasing lock... [2025-02-01 13:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:58:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-01 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 10:59:05 [end_date_ymd] => 2025-02-01 13:59:05 [RateCDR] => 1 ) [2025-02-01 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-01 10:59:05' and `end` < '2025-02-01 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-01 13:59:19] Production.INFO: count ==2051 [2025-02-01 13:59:19] Production.ERROR: pbx CDR StartTime 2025-02-01 10:59:05 - End Time 2025-02-01 13:59:05 [2025-02-01 13:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378805', 'tblTempUsageDetail_20' ) start [2025-02-01 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378805', 'tblTempUsageDetail_20' ) end [2025-02-01 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378805', 'tblTempVendorCDR_20' ) start [2025-02-01 13:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378805', 'tblTempVendorCDR_20' ) end [2025-02-01 13:59:19] Production.INFO: ProcessCDR(1,14378805,1,1,2) [2025-02-01 13:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 13:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 13:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378805', 'tblTempUsageDetail_20' ) start [2025-02-01 13:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378805', 'tblTempUsageDetail_20' ) end [2025-02-01 13:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 13:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 13:59:24] Production.INFO: ==17141== Releasing lock... [2025-02-01 13:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 13:59:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-01 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:00:06 [end_date_ymd] => 2025-02-01 14:00:06 [RateCDR] => 1 ) [2025-02-01 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-01 11:00:06' and `end` < '2025-02-01 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-01 14:00:19] Production.INFO: count ==2052 [2025-02-01 14:00:20] Production.ERROR: pbx CDR StartTime 2025-02-01 11:00:06 - End Time 2025-02-01 14:00:06 [2025-02-01 14:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378811', 'tblTempUsageDetail_20' ) start [2025-02-01 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378811', 'tblTempUsageDetail_20' ) end [2025-02-01 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378811', 'tblTempVendorCDR_20' ) start [2025-02-01 14:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378811', 'tblTempVendorCDR_20' ) end [2025-02-01 14:00:20] Production.INFO: ProcessCDR(1,14378811,1,1,2) [2025-02-01 14:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378811', 'tblTempUsageDetail_20' ) start [2025-02-01 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378811', 'tblTempUsageDetail_20' ) end [2025-02-01 14:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:00:24] Production.INFO: ==17217== Releasing lock... [2025-02-01 14:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:00:24] Production.INFO: 44 MB #Memory Used# [2025-02-01 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:01:05 [end_date_ymd] => 2025-02-01 14:01:05 [RateCDR] => 1 ) [2025-02-01 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 11:01:05' and `end` < '2025-02-01 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 14:01:19] Production.INFO: count ==2077 [2025-02-01 14:01:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:01:05 - End Time 2025-02-01 14:01:05 [2025-02-01 14:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378816', 'tblTempUsageDetail_20' ) start [2025-02-01 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378816', 'tblTempUsageDetail_20' ) end [2025-02-01 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378816', 'tblTempVendorCDR_20' ) start [2025-02-01 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378816', 'tblTempVendorCDR_20' ) end [2025-02-01 14:01:19] Production.INFO: ProcessCDR(1,14378816,1,1,2) [2025-02-01 14:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378816', 'tblTempUsageDetail_20' ) start [2025-02-01 14:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378816', 'tblTempUsageDetail_20' ) end [2025-02-01 14:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:01:24] Production.INFO: ==17307== Releasing lock... [2025-02-01 14:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:01:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-01 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:02:05 [end_date_ymd] => 2025-02-01 14:02:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:02:05' and `end` < '2025-02-01 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-01 14:02:18] Production.INFO: count ==2078 [2025-02-01 14:02:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:02:05 - End Time 2025-02-01 14:02:05 [2025-02-01 14:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378821', 'tblTempUsageDetail_20' ) start [2025-02-01 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378821', 'tblTempUsageDetail_20' ) end [2025-02-01 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378821', 'tblTempVendorCDR_20' ) start [2025-02-01 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378821', 'tblTempVendorCDR_20' ) end [2025-02-01 14:02:19] Production.INFO: ProcessCDR(1,14378821,1,1,2) [2025-02-01 14:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378821', 'tblTempUsageDetail_20' ) start [2025-02-01 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378821', 'tblTempUsageDetail_20' ) end [2025-02-01 14:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:02:23] Production.INFO: ==17381== Releasing lock... [2025-02-01 14:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:02:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-01 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:03:05 [end_date_ymd] => 2025-02-01 14:03:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:03:05' and `end` < '2025-02-01 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-01 14:03:19] Production.INFO: count ==2080 [2025-02-01 14:03:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:03:05 - End Time 2025-02-01 14:03:05 [2025-02-01 14:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378826', 'tblTempUsageDetail_20' ) start [2025-02-01 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378826', 'tblTempUsageDetail_20' ) end [2025-02-01 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378826', 'tblTempVendorCDR_20' ) start [2025-02-01 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378826', 'tblTempVendorCDR_20' ) end [2025-02-01 14:03:19] Production.INFO: ProcessCDR(1,14378826,1,1,2) [2025-02-01 14:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378826', 'tblTempUsageDetail_20' ) start [2025-02-01 14:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378826', 'tblTempUsageDetail_20' ) end [2025-02-01 14:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:03:24] Production.INFO: ==17496== Releasing lock... [2025-02-01 14:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:03:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-01 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:04:05 [end_date_ymd] => 2025-02-01 14:04:05 [RateCDR] => 1 ) [2025-02-01 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 11:04:05' and `end` < '2025-02-01 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 14:04:18] Production.INFO: count ==2074 [2025-02-01 14:04:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:04:05 - End Time 2025-02-01 14:04:05 [2025-02-01 14:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378831', 'tblTempUsageDetail_20' ) start [2025-02-01 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378831', 'tblTempUsageDetail_20' ) end [2025-02-01 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378831', 'tblTempVendorCDR_20' ) start [2025-02-01 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378831', 'tblTempVendorCDR_20' ) end [2025-02-01 14:04:19] Production.INFO: ProcessCDR(1,14378831,1,1,2) [2025-02-01 14:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378831', 'tblTempUsageDetail_20' ) start [2025-02-01 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378831', 'tblTempUsageDetail_20' ) end [2025-02-01 14:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:04:23] Production.INFO: ==17574== Releasing lock... [2025-02-01 14:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:04:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-01 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:05:05 [end_date_ymd] => 2025-02-01 14:05:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:05:05' and `end` < '2025-02-01 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-01 14:05:18] Production.INFO: count ==2072 [2025-02-01 14:05:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:05:05 - End Time 2025-02-01 14:05:05 [2025-02-01 14:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378836', 'tblTempUsageDetail_20' ) start [2025-02-01 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378836', 'tblTempUsageDetail_20' ) end [2025-02-01 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378836', 'tblTempVendorCDR_20' ) start [2025-02-01 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378836', 'tblTempVendorCDR_20' ) end [2025-02-01 14:05:19] Production.INFO: ProcessCDR(1,14378836,1,1,2) [2025-02-01 14:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378836', 'tblTempUsageDetail_20' ) start [2025-02-01 14:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378836', 'tblTempUsageDetail_20' ) end [2025-02-01 14:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:05:23] Production.INFO: ==17652== Releasing lock... [2025-02-01 14:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:05:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-01 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:06:06 [end_date_ymd] => 2025-02-01 14:06:06 [RateCDR] => 1 ) [2025-02-01 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-01 11:06:06' and `end` < '2025-02-01 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-01 14:06:19] Production.INFO: count ==2072 [2025-02-01 14:06:20] Production.ERROR: pbx CDR StartTime 2025-02-01 11:06:06 - End Time 2025-02-01 14:06:06 [2025-02-01 14:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378841', 'tblTempUsageDetail_20' ) start [2025-02-01 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378841', 'tblTempUsageDetail_20' ) end [2025-02-01 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378841', 'tblTempVendorCDR_20' ) start [2025-02-01 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378841', 'tblTempVendorCDR_20' ) end [2025-02-01 14:06:20] Production.INFO: ProcessCDR(1,14378841,1,1,2) [2025-02-01 14:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378841', 'tblTempUsageDetail_20' ) start [2025-02-01 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378841', 'tblTempUsageDetail_20' ) end [2025-02-01 14:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:06:24] Production.INFO: ==17731== Releasing lock... [2025-02-01 14:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:06:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-01 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:07:05 [end_date_ymd] => 2025-02-01 14:07:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:07:05' and `end` < '2025-02-01 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-01 14:07:18] Production.INFO: count ==2073 [2025-02-01 14:07:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:07:05 - End Time 2025-02-01 14:07:05 [2025-02-01 14:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378846', 'tblTempUsageDetail_20' ) start [2025-02-01 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378846', 'tblTempUsageDetail_20' ) end [2025-02-01 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378846', 'tblTempVendorCDR_20' ) start [2025-02-01 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378846', 'tblTempVendorCDR_20' ) end [2025-02-01 14:07:18] Production.INFO: ProcessCDR(1,14378846,1,1,2) [2025-02-01 14:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378846', 'tblTempUsageDetail_20' ) start [2025-02-01 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378846', 'tblTempUsageDetail_20' ) end [2025-02-01 14:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:07:23] Production.INFO: ==17808== Releasing lock... [2025-02-01 14:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:07:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-01 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:08:05 [end_date_ymd] => 2025-02-01 14:08:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:08:05' and `end` < '2025-02-01 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-01 14:08:19] Production.INFO: count ==2071 [2025-02-01 14:08:20] Production.ERROR: pbx CDR StartTime 2025-02-01 11:08:05 - End Time 2025-02-01 14:08:05 [2025-02-01 14:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378851', 'tblTempUsageDetail_20' ) start [2025-02-01 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378851', 'tblTempUsageDetail_20' ) end [2025-02-01 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378851', 'tblTempVendorCDR_20' ) start [2025-02-01 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378851', 'tblTempVendorCDR_20' ) end [2025-02-01 14:08:20] Production.INFO: ProcessCDR(1,14378851,1,1,2) [2025-02-01 14:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378851', 'tblTempUsageDetail_20' ) start [2025-02-01 14:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378851', 'tblTempUsageDetail_20' ) end [2025-02-01 14:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:08:24] Production.INFO: ==17886== Releasing lock... [2025-02-01 14:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:08:24] Production.INFO: 43.5 MB #Memory Used# [2025-02-01 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:09:05 [end_date_ymd] => 2025-02-01 14:09:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:09:05' and `end` < '2025-02-01 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-01 14:09:18] Production.INFO: count ==2071 [2025-02-01 14:09:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:09:05 - End Time 2025-02-01 14:09:05 [2025-02-01 14:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378856', 'tblTempUsageDetail_20' ) start [2025-02-01 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378856', 'tblTempUsageDetail_20' ) end [2025-02-01 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378856', 'tblTempVendorCDR_20' ) start [2025-02-01 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378856', 'tblTempVendorCDR_20' ) end [2025-02-01 14:09:19] Production.INFO: ProcessCDR(1,14378856,1,1,2) [2025-02-01 14:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378856', 'tblTempUsageDetail_20' ) start [2025-02-01 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378856', 'tblTempUsageDetail_20' ) end [2025-02-01 14:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:09:23] Production.INFO: ==17965== Releasing lock... [2025-02-01 14:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:09:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:10:05 [end_date_ymd] => 2025-02-01 14:10:05 [RateCDR] => 1 ) [2025-02-01 14: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-01 11:10:05' and `end` < '2025-02-01 14: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-01 14:10:18] Production.INFO: count ==2053 [2025-02-01 14:10:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:10:05 - End Time 2025-02-01 14:10:05 [2025-02-01 14:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378861', 'tblTempUsageDetail_20' ) start [2025-02-01 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378861', 'tblTempUsageDetail_20' ) end [2025-02-01 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378861', 'tblTempVendorCDR_20' ) start [2025-02-01 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378861', 'tblTempVendorCDR_20' ) end [2025-02-01 14:10:19] Production.INFO: ProcessCDR(1,14378861,1,1,2) [2025-02-01 14:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378861', 'tblTempUsageDetail_20' ) start [2025-02-01 14:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378861', 'tblTempUsageDetail_20' ) end [2025-02-01 14:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:10:24] Production.INFO: ==18047== Releasing lock... [2025-02-01 14:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:10:24] Production.INFO: 43.5 MB #Memory Used# [2025-02-01 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:11:05 [end_date_ymd] => 2025-02-01 14:11:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:11:05' and `end` < '2025-02-01 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-01 14:11:18] Production.INFO: count ==2039 [2025-02-01 14:11:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:11:05 - End Time 2025-02-01 14:11:05 [2025-02-01 14:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378867', 'tblTempUsageDetail_20' ) start [2025-02-01 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378867', 'tblTempUsageDetail_20' ) end [2025-02-01 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378867', 'tblTempVendorCDR_20' ) start [2025-02-01 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378867', 'tblTempVendorCDR_20' ) end [2025-02-01 14:11:18] Production.INFO: ProcessCDR(1,14378867,1,1,2) [2025-02-01 14:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378867', 'tblTempUsageDetail_20' ) start [2025-02-01 14:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378867', 'tblTempUsageDetail_20' ) end [2025-02-01 14:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:11:23] Production.INFO: ==18125== Releasing lock... [2025-02-01 14:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:11:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-01 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:12:05 [end_date_ymd] => 2025-02-01 14:12:05 [RateCDR] => 1 ) [2025-02-01 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 11:12:05' and `end` < '2025-02-01 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 14:12:18] Production.INFO: count ==2041 [2025-02-01 14:12:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:12:05 - End Time 2025-02-01 14:12:05 [2025-02-01 14:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378872', 'tblTempUsageDetail_20' ) start [2025-02-01 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378872', 'tblTempUsageDetail_20' ) end [2025-02-01 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378872', 'tblTempVendorCDR_20' ) start [2025-02-01 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378872', 'tblTempVendorCDR_20' ) end [2025-02-01 14:12:19] Production.INFO: ProcessCDR(1,14378872,1,1,2) [2025-02-01 14:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378872', 'tblTempUsageDetail_20' ) start [2025-02-01 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378872', 'tblTempUsageDetail_20' ) end [2025-02-01 14:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:12:23] Production.INFO: ==18205== Releasing lock... [2025-02-01 14:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:12:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:13:05 [end_date_ymd] => 2025-02-01 14:13:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:13:05' and `end` < '2025-02-01 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-01 14:13:18] Production.INFO: count ==2039 [2025-02-01 14:13:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:13:05 - End Time 2025-02-01 14:13:05 [2025-02-01 14:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378877', 'tblTempUsageDetail_20' ) start [2025-02-01 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378877', 'tblTempUsageDetail_20' ) end [2025-02-01 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378877', 'tblTempVendorCDR_20' ) start [2025-02-01 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378877', 'tblTempVendorCDR_20' ) end [2025-02-01 14:13:19] Production.INFO: ProcessCDR(1,14378877,1,1,2) [2025-02-01 14:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378877', 'tblTempUsageDetail_20' ) start [2025-02-01 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378877', 'tblTempUsageDetail_20' ) end [2025-02-01 14:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:13:23] Production.INFO: ==18283== Releasing lock... [2025-02-01 14:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:13:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-01 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:14:05 [end_date_ymd] => 2025-02-01 14:14:05 [RateCDR] => 1 ) [2025-02-01 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 11:14:05' and `end` < '2025-02-01 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 14:14:18] Production.INFO: count ==2043 [2025-02-01 14:14:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:14:05 - End Time 2025-02-01 14:14:05 [2025-02-01 14:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378882', 'tblTempUsageDetail_20' ) start [2025-02-01 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378882', 'tblTempUsageDetail_20' ) end [2025-02-01 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378882', 'tblTempVendorCDR_20' ) start [2025-02-01 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378882', 'tblTempVendorCDR_20' ) end [2025-02-01 14:14:18] Production.INFO: ProcessCDR(1,14378882,1,1,2) [2025-02-01 14:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378882', 'tblTempUsageDetail_20' ) start [2025-02-01 14:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378882', 'tblTempUsageDetail_20' ) end [2025-02-01 14:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:14:23] Production.INFO: ==18356== Releasing lock... [2025-02-01 14:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:14:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:15:05 [end_date_ymd] => 2025-02-01 14:15:05 [RateCDR] => 1 ) [2025-02-01 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 11:15:05' and `end` < '2025-02-01 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 14:15:18] Production.INFO: count ==2047 [2025-02-01 14:15:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:15:05 - End Time 2025-02-01 14:15:05 [2025-02-01 14:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378887', 'tblTempUsageDetail_20' ) start [2025-02-01 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378887', 'tblTempUsageDetail_20' ) end [2025-02-01 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378887', 'tblTempVendorCDR_20' ) start [2025-02-01 14:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378887', 'tblTempVendorCDR_20' ) end [2025-02-01 14:15:19] Production.INFO: ProcessCDR(1,14378887,1,1,2) [2025-02-01 14:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378887', 'tblTempUsageDetail_20' ) start [2025-02-01 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378887', 'tblTempUsageDetail_20' ) end [2025-02-01 14:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:15:23] Production.INFO: ==18431== Releasing lock... [2025-02-01 14:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:15:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-01 14:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:16:04 [end_date_ymd] => 2025-02-01 14:16:04 [RateCDR] => 1 ) [2025-02-01 14:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 11:16:04' and `end` < '2025-02-01 14:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 14:16:17] Production.INFO: count ==2046 [2025-02-01 14:16:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:16:04 - End Time 2025-02-01 14:16:04 [2025-02-01 14:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378892', 'tblTempUsageDetail_20' ) start [2025-02-01 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378892', 'tblTempUsageDetail_20' ) end [2025-02-01 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378892', 'tblTempVendorCDR_20' ) start [2025-02-01 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378892', 'tblTempVendorCDR_20' ) end [2025-02-01 14:16:18] Production.INFO: ProcessCDR(1,14378892,1,1,2) [2025-02-01 14:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378892', 'tblTempUsageDetail_20' ) start [2025-02-01 14:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378892', 'tblTempUsageDetail_20' ) end [2025-02-01 14:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:16:23] Production.INFO: ==18503== Releasing lock... [2025-02-01 14:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:16:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-01 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:17:05 [end_date_ymd] => 2025-02-01 14:17:05 [RateCDR] => 1 ) [2025-02-01 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 11:17:05' and `end` < '2025-02-01 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 14:17:19] Production.INFO: count ==2033 [2025-02-01 14:17:20] Production.ERROR: pbx CDR StartTime 2025-02-01 11:17:05 - End Time 2025-02-01 14:17:05 [2025-02-01 14:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378897', 'tblTempUsageDetail_20' ) start [2025-02-01 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378897', 'tblTempUsageDetail_20' ) end [2025-02-01 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378897', 'tblTempVendorCDR_20' ) start [2025-02-01 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378897', 'tblTempVendorCDR_20' ) end [2025-02-01 14:17:20] Production.INFO: ProcessCDR(1,14378897,1,1,2) [2025-02-01 14:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378897', 'tblTempUsageDetail_20' ) start [2025-02-01 14:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378897', 'tblTempUsageDetail_20' ) end [2025-02-01 14:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:17:24] Production.INFO: ==18579== Releasing lock... [2025-02-01 14:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:17:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:18:05 [end_date_ymd] => 2025-02-01 14:18:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:18:05' and `end` < '2025-02-01 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-01 14:18:18] Production.INFO: count ==2016 [2025-02-01 14:18:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:18:05 - End Time 2025-02-01 14:18:05 [2025-02-01 14:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378902', 'tblTempUsageDetail_20' ) start [2025-02-01 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378902', 'tblTempUsageDetail_20' ) end [2025-02-01 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378902', 'tblTempVendorCDR_20' ) start [2025-02-01 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378902', 'tblTempVendorCDR_20' ) end [2025-02-01 14:18:19] Production.INFO: ProcessCDR(1,14378902,1,1,2) [2025-02-01 14:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378902', 'tblTempUsageDetail_20' ) start [2025-02-01 14:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378902', 'tblTempUsageDetail_20' ) end [2025-02-01 14:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:18:23] Production.INFO: ==18688== Releasing lock... [2025-02-01 14:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:18:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:19:05 [end_date_ymd] => 2025-02-01 14:19:05 [RateCDR] => 1 ) [2025-02-01 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 11:19:05' and `end` < '2025-02-01 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 14:19:18] Production.INFO: count ==2010 [2025-02-01 14:19:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:19:05 - End Time 2025-02-01 14:19:05 [2025-02-01 14:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378907', 'tblTempUsageDetail_20' ) start [2025-02-01 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378907', 'tblTempUsageDetail_20' ) end [2025-02-01 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378907', 'tblTempVendorCDR_20' ) start [2025-02-01 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378907', 'tblTempVendorCDR_20' ) end [2025-02-01 14:19:19] Production.INFO: ProcessCDR(1,14378907,1,1,2) [2025-02-01 14:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378907', 'tblTempUsageDetail_20' ) start [2025-02-01 14:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378907', 'tblTempUsageDetail_20' ) end [2025-02-01 14:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:19:23] Production.INFO: ==18770== Releasing lock... [2025-02-01 14:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:19:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-01 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:20:06 [end_date_ymd] => 2025-02-01 14:20:06 [RateCDR] => 1 ) [2025-02-01 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-01 11:20:06' and `end` < '2025-02-01 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-01 14:20:19] Production.INFO: count ==2018 [2025-02-01 14:20:20] Production.ERROR: pbx CDR StartTime 2025-02-01 11:20:06 - End Time 2025-02-01 14:20:06 [2025-02-01 14:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378913', 'tblTempUsageDetail_20' ) start [2025-02-01 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378913', 'tblTempUsageDetail_20' ) end [2025-02-01 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378913', 'tblTempVendorCDR_20' ) start [2025-02-01 14:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378913', 'tblTempVendorCDR_20' ) end [2025-02-01 14:20:20] Production.INFO: ProcessCDR(1,14378913,1,1,2) [2025-02-01 14:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378913', 'tblTempUsageDetail_20' ) start [2025-02-01 14:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378913', 'tblTempUsageDetail_20' ) end [2025-02-01 14:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:20:24] Production.INFO: ==18847== Releasing lock... [2025-02-01 14:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:20:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:21:05 [end_date_ymd] => 2025-02-01 14:21:05 [RateCDR] => 1 ) [2025-02-01 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 11:21:05' and `end` < '2025-02-01 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 14:21:18] Production.INFO: count ==1996 [2025-02-01 14:21:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:21:05 - End Time 2025-02-01 14:21:05 [2025-02-01 14:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378918', 'tblTempUsageDetail_20' ) start [2025-02-01 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378918', 'tblTempUsageDetail_20' ) end [2025-02-01 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378918', 'tblTempVendorCDR_20' ) start [2025-02-01 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378918', 'tblTempVendorCDR_20' ) end [2025-02-01 14:21:19] Production.INFO: ProcessCDR(1,14378918,1,1,2) [2025-02-01 14:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378918', 'tblTempUsageDetail_20' ) start [2025-02-01 14:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378918', 'tblTempUsageDetail_20' ) end [2025-02-01 14:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:21:22] Production.INFO: ==18922== Releasing lock... [2025-02-01 14:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:21:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:22:05 [end_date_ymd] => 2025-02-01 14:22:05 [RateCDR] => 1 ) [2025-02-01 14: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-01 11:22:05' and `end` < '2025-02-01 14: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-01 14:22:18] Production.INFO: count ==1990 [2025-02-01 14:22:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:22:05 - End Time 2025-02-01 14:22:05 [2025-02-01 14:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378923', 'tblTempUsageDetail_20' ) start [2025-02-01 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378923', 'tblTempUsageDetail_20' ) end [2025-02-01 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378923', 'tblTempVendorCDR_20' ) start [2025-02-01 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378923', 'tblTempVendorCDR_20' ) end [2025-02-01 14:22:18] Production.INFO: ProcessCDR(1,14378923,1,1,2) [2025-02-01 14:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378923', 'tblTempUsageDetail_20' ) start [2025-02-01 14:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378923', 'tblTempUsageDetail_20' ) end [2025-02-01 14:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:22:23] Production.INFO: ==18999== Releasing lock... [2025-02-01 14:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:22:23] Production.INFO: 43 MB #Memory Used# [2025-02-01 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:23:05 [end_date_ymd] => 2025-02-01 14:23:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:23:05' and `end` < '2025-02-01 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-01 14:23:18] Production.INFO: count ==1966 [2025-02-01 14:23:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:23:05 - End Time 2025-02-01 14:23:05 [2025-02-01 14:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378928', 'tblTempUsageDetail_20' ) start [2025-02-01 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378928', 'tblTempUsageDetail_20' ) end [2025-02-01 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378928', 'tblTempVendorCDR_20' ) start [2025-02-01 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378928', 'tblTempVendorCDR_20' ) end [2025-02-01 14:23:18] Production.INFO: ProcessCDR(1,14378928,1,1,2) [2025-02-01 14:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378928', 'tblTempUsageDetail_20' ) start [2025-02-01 14:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378928', 'tblTempUsageDetail_20' ) end [2025-02-01 14:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:23:21] Production.INFO: ==19077== Releasing lock... [2025-02-01 14:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:23:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-01 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:24:05 [end_date_ymd] => 2025-02-01 14:24:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:24:05' and `end` < '2025-02-01 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-01 14:24:18] Production.INFO: count ==1962 [2025-02-01 14:24:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:24:05 - End Time 2025-02-01 14:24:05 [2025-02-01 14:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378933', 'tblTempUsageDetail_20' ) start [2025-02-01 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378933', 'tblTempUsageDetail_20' ) end [2025-02-01 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378933', 'tblTempVendorCDR_20' ) start [2025-02-01 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378933', 'tblTempVendorCDR_20' ) end [2025-02-01 14:24:19] Production.INFO: ProcessCDR(1,14378933,1,1,2) [2025-02-01 14:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378933', 'tblTempUsageDetail_20' ) start [2025-02-01 14:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378933', 'tblTempUsageDetail_20' ) end [2025-02-01 14:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:24:23] Production.INFO: ==19164== Releasing lock... [2025-02-01 14:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:24:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-01 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:25:05 [end_date_ymd] => 2025-02-01 14:25:05 [RateCDR] => 1 ) [2025-02-01 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 11:25:05' and `end` < '2025-02-01 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-01 14:25:17] Production.INFO: count ==1955 [2025-02-01 14:25:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:25:05 - End Time 2025-02-01 14:25:05 [2025-02-01 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378938', 'tblTempUsageDetail_20' ) start [2025-02-01 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378938', 'tblTempUsageDetail_20' ) end [2025-02-01 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378938', 'tblTempVendorCDR_20' ) start [2025-02-01 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378938', 'tblTempVendorCDR_20' ) end [2025-02-01 14:25:18] Production.INFO: ProcessCDR(1,14378938,1,1,2) [2025-02-01 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378938', 'tblTempUsageDetail_20' ) start [2025-02-01 14:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378938', 'tblTempUsageDetail_20' ) end [2025-02-01 14:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:25:22] Production.INFO: ==19237== Releasing lock... [2025-02-01 14:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:25:22] Production.INFO: 43 MB #Memory Used# [2025-02-01 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:26:05 [end_date_ymd] => 2025-02-01 14:26:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:26:05' and `end` < '2025-02-01 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-01 14:26:18] Production.INFO: count ==1926 [2025-02-01 14:26:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:26:05 - End Time 2025-02-01 14:26:05 [2025-02-01 14:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378943', 'tblTempUsageDetail_20' ) start [2025-02-01 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378943', 'tblTempUsageDetail_20' ) end [2025-02-01 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378943', 'tblTempVendorCDR_20' ) start [2025-02-01 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378943', 'tblTempVendorCDR_20' ) end [2025-02-01 14:26:19] Production.INFO: ProcessCDR(1,14378943,1,1,2) [2025-02-01 14:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378943', 'tblTempUsageDetail_20' ) start [2025-02-01 14:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378943', 'tblTempUsageDetail_20' ) end [2025-02-01 14:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:26:23] Production.INFO: ==19315== Releasing lock... [2025-02-01 14:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:26:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-01 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:27:05 [end_date_ymd] => 2025-02-01 14:27:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:27:05' and `end` < '2025-02-01 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-01 14:27:18] Production.INFO: count ==1916 [2025-02-01 14:27:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:27:05 - End Time 2025-02-01 14:27:05 [2025-02-01 14:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378948', 'tblTempUsageDetail_20' ) start [2025-02-01 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378948', 'tblTempUsageDetail_20' ) end [2025-02-01 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378948', 'tblTempVendorCDR_20' ) start [2025-02-01 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378948', 'tblTempVendorCDR_20' ) end [2025-02-01 14:27:18] Production.INFO: ProcessCDR(1,14378948,1,1,2) [2025-02-01 14:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378948', 'tblTempUsageDetail_20' ) start [2025-02-01 14:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378948', 'tblTempUsageDetail_20' ) end [2025-02-01 14:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:27:23] Production.INFO: ==19409== Releasing lock... [2025-02-01 14:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:27:23] Production.INFO: 43 MB #Memory Used# [2025-02-01 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:28:05 [end_date_ymd] => 2025-02-01 14:28:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:28:05' and `end` < '2025-02-01 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-01 14:28:18] Production.INFO: count ==1917 [2025-02-01 14:28:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:28:05 - End Time 2025-02-01 14:28:05 [2025-02-01 14:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378953', 'tblTempUsageDetail_20' ) start [2025-02-01 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378953', 'tblTempUsageDetail_20' ) end [2025-02-01 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378953', 'tblTempVendorCDR_20' ) start [2025-02-01 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378953', 'tblTempVendorCDR_20' ) end [2025-02-01 14:28:19] Production.INFO: ProcessCDR(1,14378953,1,1,2) [2025-02-01 14:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378953', 'tblTempUsageDetail_20' ) start [2025-02-01 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378953', 'tblTempUsageDetail_20' ) end [2025-02-01 14:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:28:23] Production.INFO: ==19493== Releasing lock... [2025-02-01 14:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:28:23] Production.INFO: 43 MB #Memory Used# [2025-02-01 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:29:05 [end_date_ymd] => 2025-02-01 14:29:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:29:05' and `end` < '2025-02-01 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-01 14:29:19] Production.INFO: count ==1905 [2025-02-01 14:29:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:29:05 - End Time 2025-02-01 14:29:05 [2025-02-01 14:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378958', 'tblTempUsageDetail_20' ) start [2025-02-01 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378958', 'tblTempUsageDetail_20' ) end [2025-02-01 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378958', 'tblTempVendorCDR_20' ) start [2025-02-01 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378958', 'tblTempVendorCDR_20' ) end [2025-02-01 14:29:19] Production.INFO: ProcessCDR(1,14378958,1,1,2) [2025-02-01 14:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378958', 'tblTempUsageDetail_20' ) start [2025-02-01 14:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378958', 'tblTempUsageDetail_20' ) end [2025-02-01 14:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:29:24] Production.INFO: ==19570== Releasing lock... [2025-02-01 14:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:29:24] Production.INFO: 43 MB #Memory Used# [2025-02-01 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:30:05 [end_date_ymd] => 2025-02-01 14:30:05 [RateCDR] => 1 ) [2025-02-01 14: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-01 11:30:05' and `end` < '2025-02-01 14: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-01 14:30:18] Production.INFO: count ==1903 [2025-02-01 14:30:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:30:05 - End Time 2025-02-01 14:30:05 [2025-02-01 14:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378963', 'tblTempUsageDetail_20' ) start [2025-02-01 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378963', 'tblTempUsageDetail_20' ) end [2025-02-01 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378963', 'tblTempVendorCDR_20' ) start [2025-02-01 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378963', 'tblTempVendorCDR_20' ) end [2025-02-01 14:30:19] Production.INFO: ProcessCDR(1,14378963,1,1,2) [2025-02-01 14:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378963', 'tblTempUsageDetail_20' ) start [2025-02-01 14:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378963', 'tblTempUsageDetail_20' ) end [2025-02-01 14:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:30:23] Production.INFO: ==19648== Releasing lock... [2025-02-01 14:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:30:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-01 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:31:05 [end_date_ymd] => 2025-02-01 14:31:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:31:05' and `end` < '2025-02-01 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-01 14:31:18] Production.INFO: count ==1880 [2025-02-01 14:31:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:31:05 - End Time 2025-02-01 14:31:05 [2025-02-01 14:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378969', 'tblTempUsageDetail_20' ) start [2025-02-01 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378969', 'tblTempUsageDetail_20' ) end [2025-02-01 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378969', 'tblTempVendorCDR_20' ) start [2025-02-01 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378969', 'tblTempVendorCDR_20' ) end [2025-02-01 14:31:19] Production.INFO: ProcessCDR(1,14378969,1,1,2) [2025-02-01 14:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378969', 'tblTempUsageDetail_20' ) start [2025-02-01 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378969', 'tblTempUsageDetail_20' ) end [2025-02-01 14:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:31:23] Production.INFO: ==19729== Releasing lock... [2025-02-01 14:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:31:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-01 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:32:05 [end_date_ymd] => 2025-02-01 14:32:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:32:05' and `end` < '2025-02-01 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-01 14:32:17] Production.INFO: count ==1887 [2025-02-01 14:32:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:32:05 - End Time 2025-02-01 14:32:05 [2025-02-01 14:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378974', 'tblTempUsageDetail_20' ) start [2025-02-01 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378974', 'tblTempUsageDetail_20' ) end [2025-02-01 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378974', 'tblTempVendorCDR_20' ) start [2025-02-01 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378974', 'tblTempVendorCDR_20' ) end [2025-02-01 14:32:18] Production.INFO: ProcessCDR(1,14378974,1,1,2) [2025-02-01 14:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378974', 'tblTempUsageDetail_20' ) start [2025-02-01 14:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378974', 'tblTempUsageDetail_20' ) end [2025-02-01 14:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:32:21] Production.INFO: ==19803== Releasing lock... [2025-02-01 14:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:32:21] Production.INFO: 42.5 MB #Memory Used# [2025-02-01 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:33:06 [end_date_ymd] => 2025-02-01 14:33:06 [RateCDR] => 1 ) [2025-02-01 14:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 11:33:06' and `end` < '2025-02-01 14:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 14:33:19] Production.INFO: count ==1889 [2025-02-01 14:33:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:33:06 - End Time 2025-02-01 14:33:06 [2025-02-01 14:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378979', 'tblTempUsageDetail_20' ) start [2025-02-01 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378979', 'tblTempUsageDetail_20' ) end [2025-02-01 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378979', 'tblTempVendorCDR_20' ) start [2025-02-01 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378979', 'tblTempVendorCDR_20' ) end [2025-02-01 14:33:19] Production.INFO: ProcessCDR(1,14378979,1,1,2) [2025-02-01 14:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378979', 'tblTempUsageDetail_20' ) start [2025-02-01 14:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378979', 'tblTempUsageDetail_20' ) end [2025-02-01 14:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:33:24] Production.INFO: ==19876== Releasing lock... [2025-02-01 14:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:33:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-01 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:34:05 [end_date_ymd] => 2025-02-01 14:34:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:34:05' and `end` < '2025-02-01 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-01 14:34:18] Production.INFO: count ==1886 [2025-02-01 14:34:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:34:05 - End Time 2025-02-01 14:34:05 [2025-02-01 14:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378984', 'tblTempUsageDetail_20' ) start [2025-02-01 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378984', 'tblTempUsageDetail_20' ) end [2025-02-01 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378984', 'tblTempVendorCDR_20' ) start [2025-02-01 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378984', 'tblTempVendorCDR_20' ) end [2025-02-01 14:34:19] Production.INFO: ProcessCDR(1,14378984,1,1,2) [2025-02-01 14:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378984', 'tblTempUsageDetail_20' ) start [2025-02-01 14:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378984', 'tblTempUsageDetail_20' ) end [2025-02-01 14:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:34:22] Production.INFO: ==19989== Releasing lock... [2025-02-01 14:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:34:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-01 14:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:35:06 [end_date_ymd] => 2025-02-01 14:35:06 [RateCDR] => 1 ) [2025-02-01 14: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-01 11:35:06' and `end` < '2025-02-01 14: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-01 14:35:19] Production.INFO: count ==1887 [2025-02-01 14:35:20] Production.ERROR: pbx CDR StartTime 2025-02-01 11:35:06 - End Time 2025-02-01 14:35:06 [2025-02-01 14:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378989', 'tblTempUsageDetail_20' ) start [2025-02-01 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378989', 'tblTempUsageDetail_20' ) end [2025-02-01 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378989', 'tblTempVendorCDR_20' ) start [2025-02-01 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378989', 'tblTempVendorCDR_20' ) end [2025-02-01 14:35:20] Production.INFO: ProcessCDR(1,14378989,1,1,2) [2025-02-01 14:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378989', 'tblTempUsageDetail_20' ) start [2025-02-01 14:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378989', 'tblTempUsageDetail_20' ) end [2025-02-01 14:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:35:24] Production.INFO: ==20077== Releasing lock... [2025-02-01 14:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:35:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-01 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:36:05 [end_date_ymd] => 2025-02-01 14:36:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:36:05' and `end` < '2025-02-01 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-01 14:36:18] Production.INFO: count ==1879 [2025-02-01 14:36:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:36:05 - End Time 2025-02-01 14:36:05 [2025-02-01 14:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378994', 'tblTempUsageDetail_20' ) start [2025-02-01 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378994', 'tblTempUsageDetail_20' ) end [2025-02-01 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378994', 'tblTempVendorCDR_20' ) start [2025-02-01 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378994', 'tblTempVendorCDR_20' ) end [2025-02-01 14:36:18] Production.INFO: ProcessCDR(1,14378994,1,1,2) [2025-02-01 14:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378994', 'tblTempUsageDetail_20' ) start [2025-02-01 14:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378994', 'tblTempUsageDetail_20' ) end [2025-02-01 14:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:36:23] Production.INFO: ==20149== Releasing lock... [2025-02-01 14:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:36:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-01 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:37:05 [end_date_ymd] => 2025-02-01 14:37:05 [RateCDR] => 1 ) [2025-02-01 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 11:37:05' and `end` < '2025-02-01 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 14:37:18] Production.INFO: count ==1849 [2025-02-01 14:37:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:37:05 - End Time 2025-02-01 14:37:05 [2025-02-01 14:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378999', 'tblTempUsageDetail_20' ) start [2025-02-01 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14378999', 'tblTempUsageDetail_20' ) end [2025-02-01 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378999', 'tblTempVendorCDR_20' ) start [2025-02-01 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14378999', 'tblTempVendorCDR_20' ) end [2025-02-01 14:37:18] Production.INFO: ProcessCDR(1,14378999,1,1,2) [2025-02-01 14:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14378999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14378999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14378999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14378999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378999', 'tblTempUsageDetail_20' ) start [2025-02-01 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14378999', 'tblTempUsageDetail_20' ) end [2025-02-01 14:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:37:22] Production.INFO: ==20224== Releasing lock... [2025-02-01 14:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:37:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-01 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:38:05 [end_date_ymd] => 2025-02-01 14:38:05 [RateCDR] => 1 ) [2025-02-01 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 11:38:05' and `end` < '2025-02-01 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 14:38:18] Production.INFO: count ==1845 [2025-02-01 14:38:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:38:05 - End Time 2025-02-01 14:38:05 [2025-02-01 14:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379004', 'tblTempUsageDetail_20' ) start [2025-02-01 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379004', 'tblTempUsageDetail_20' ) end [2025-02-01 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379004', 'tblTempVendorCDR_20' ) start [2025-02-01 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379004', 'tblTempVendorCDR_20' ) end [2025-02-01 14:38:18] Production.INFO: ProcessCDR(1,14379004,1,1,2) [2025-02-01 14:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379004', 'tblTempUsageDetail_20' ) start [2025-02-01 14:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379004', 'tblTempUsageDetail_20' ) end [2025-02-01 14:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:38:21] Production.INFO: ==20300== Releasing lock... [2025-02-01 14:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:38:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-01 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:39:05 [end_date_ymd] => 2025-02-01 14:39:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:39:05' and `end` < '2025-02-01 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-01 14:39:18] Production.INFO: count ==1841 [2025-02-01 14:39:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:39:05 - End Time 2025-02-01 14:39:05 [2025-02-01 14:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379009', 'tblTempUsageDetail_20' ) start [2025-02-01 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379009', 'tblTempUsageDetail_20' ) end [2025-02-01 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379009', 'tblTempVendorCDR_20' ) start [2025-02-01 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379009', 'tblTempVendorCDR_20' ) end [2025-02-01 14:39:18] Production.INFO: ProcessCDR(1,14379009,1,1,2) [2025-02-01 14:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379009', 'tblTempUsageDetail_20' ) start [2025-02-01 14:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379009', 'tblTempUsageDetail_20' ) end [2025-02-01 14:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:39:21] Production.INFO: ==20383== Releasing lock... [2025-02-01 14:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:39:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-01 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:40:06 [end_date_ymd] => 2025-02-01 14:40:06 [RateCDR] => 1 ) [2025-02-01 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-01 11:40:06' and `end` < '2025-02-01 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-01 14:40:19] Production.INFO: count ==1842 [2025-02-01 14:40:20] Production.ERROR: pbx CDR StartTime 2025-02-01 11:40:06 - End Time 2025-02-01 14:40:06 [2025-02-01 14:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379015', 'tblTempUsageDetail_20' ) start [2025-02-01 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379015', 'tblTempUsageDetail_20' ) end [2025-02-01 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379015', 'tblTempVendorCDR_20' ) start [2025-02-01 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379015', 'tblTempVendorCDR_20' ) end [2025-02-01 14:40:20] Production.INFO: ProcessCDR(1,14379015,1,1,2) [2025-02-01 14:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379015', 'tblTempUsageDetail_20' ) start [2025-02-01 14:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379015', 'tblTempUsageDetail_20' ) end [2025-02-01 14:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:40:24] Production.INFO: ==20458== Releasing lock... [2025-02-01 14:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:40:24] Production.INFO: 42 MB #Memory Used# [2025-02-01 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:41:05 [end_date_ymd] => 2025-02-01 14:41:05 [RateCDR] => 1 ) [2025-02-01 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 11:41:05' and `end` < '2025-02-01 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 14:41:18] Production.INFO: count ==1845 [2025-02-01 14:41:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:41:05 - End Time 2025-02-01 14:41:05 [2025-02-01 14:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379020', 'tblTempUsageDetail_20' ) start [2025-02-01 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379020', 'tblTempUsageDetail_20' ) end [2025-02-01 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379020', 'tblTempVendorCDR_20' ) start [2025-02-01 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379020', 'tblTempVendorCDR_20' ) end [2025-02-01 14:41:18] Production.INFO: ProcessCDR(1,14379020,1,1,2) [2025-02-01 14:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379020', 'tblTempUsageDetail_20' ) start [2025-02-01 14:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379020', 'tblTempUsageDetail_20' ) end [2025-02-01 14:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:41:21] Production.INFO: ==20538== Releasing lock... [2025-02-01 14:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:41:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-01 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:42:06 [end_date_ymd] => 2025-02-01 14:42:06 [RateCDR] => 1 ) [2025-02-01 14: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-01 11:42:06' and `end` < '2025-02-01 14: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-01 14:42:18] Production.INFO: count ==1850 [2025-02-01 14:42:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:42:06 - End Time 2025-02-01 14:42:06 [2025-02-01 14:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379025', 'tblTempUsageDetail_20' ) start [2025-02-01 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379025', 'tblTempUsageDetail_20' ) end [2025-02-01 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379025', 'tblTempVendorCDR_20' ) start [2025-02-01 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379025', 'tblTempVendorCDR_20' ) end [2025-02-01 14:42:19] Production.INFO: ProcessCDR(1,14379025,1,1,2) [2025-02-01 14:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379025', 'tblTempUsageDetail_20' ) start [2025-02-01 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379025', 'tblTempUsageDetail_20' ) end [2025-02-01 14:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:42:24] Production.INFO: ==20611== Releasing lock... [2025-02-01 14:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:42:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-01 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:43:05 [end_date_ymd] => 2025-02-01 14:43:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:43:05' and `end` < '2025-02-01 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-01 14:43:18] Production.INFO: count ==1834 [2025-02-01 14:43:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:43:05 - End Time 2025-02-01 14:43:05 [2025-02-01 14:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379030', 'tblTempUsageDetail_20' ) start [2025-02-01 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379030', 'tblTempUsageDetail_20' ) end [2025-02-01 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379030', 'tblTempVendorCDR_20' ) start [2025-02-01 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379030', 'tblTempVendorCDR_20' ) end [2025-02-01 14:43:19] Production.INFO: ProcessCDR(1,14379030,1,1,2) [2025-02-01 14:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379030', 'tblTempUsageDetail_20' ) start [2025-02-01 14:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379030', 'tblTempUsageDetail_20' ) end [2025-02-01 14:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:43:23] Production.INFO: ==20696== Releasing lock... [2025-02-01 14:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:43:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-01 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:44:05 [end_date_ymd] => 2025-02-01 14:44:05 [RateCDR] => 1 ) [2025-02-01 14:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 11:44:05' and `end` < '2025-02-01 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-01 14:44:19] Production.INFO: count ==1834 [2025-02-01 14:44:20] Production.ERROR: pbx CDR StartTime 2025-02-01 11:44:05 - End Time 2025-02-01 14:44:05 [2025-02-01 14:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379035', 'tblTempUsageDetail_20' ) start [2025-02-01 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379035', 'tblTempUsageDetail_20' ) end [2025-02-01 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379035', 'tblTempVendorCDR_20' ) start [2025-02-01 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379035', 'tblTempVendorCDR_20' ) end [2025-02-01 14:44:20] Production.INFO: ProcessCDR(1,14379035,1,1,2) [2025-02-01 14:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379035', 'tblTempUsageDetail_20' ) start [2025-02-01 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379035', 'tblTempUsageDetail_20' ) end [2025-02-01 14:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:44:23] Production.INFO: ==20777== Releasing lock... [2025-02-01 14:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:44:23] Production.INFO: 42 MB #Memory Used# [2025-02-01 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:45:05 [end_date_ymd] => 2025-02-01 14:45:05 [RateCDR] => 1 ) [2025-02-01 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 11:45:05' and `end` < '2025-02-01 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 14:45:18] Production.INFO: count ==1834 [2025-02-01 14:45:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:45:05 - End Time 2025-02-01 14:45:05 [2025-02-01 14:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379040', 'tblTempUsageDetail_20' ) start [2025-02-01 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379040', 'tblTempUsageDetail_20' ) end [2025-02-01 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379040', 'tblTempVendorCDR_20' ) start [2025-02-01 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379040', 'tblTempVendorCDR_20' ) end [2025-02-01 14:45:19] Production.INFO: ProcessCDR(1,14379040,1,1,2) [2025-02-01 14:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379040', 'tblTempUsageDetail_20' ) start [2025-02-01 14:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379040', 'tblTempUsageDetail_20' ) end [2025-02-01 14:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:45:22] Production.INFO: ==20857== Releasing lock... [2025-02-01 14:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:45:22] Production.INFO: 42 MB #Memory Used# [2025-02-01 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:46:06 [end_date_ymd] => 2025-02-01 14:46:06 [RateCDR] => 1 ) [2025-02-01 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-01 11:46:06' and `end` < '2025-02-01 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-01 14:46:19] Production.INFO: count ==1819 [2025-02-01 14:46:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:46:06 - End Time 2025-02-01 14:46:06 [2025-02-01 14:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379045', 'tblTempUsageDetail_20' ) start [2025-02-01 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379045', 'tblTempUsageDetail_20' ) end [2025-02-01 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379045', 'tblTempVendorCDR_20' ) start [2025-02-01 14:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379045', 'tblTempVendorCDR_20' ) end [2025-02-01 14:46:19] Production.INFO: ProcessCDR(1,14379045,1,1,2) [2025-02-01 14:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379045', 'tblTempUsageDetail_20' ) start [2025-02-01 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379045', 'tblTempUsageDetail_20' ) end [2025-02-01 14:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:46:22] Production.INFO: ==20939== Releasing lock... [2025-02-01 14:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:46:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-01 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:47:06 [end_date_ymd] => 2025-02-01 14:47:06 [RateCDR] => 1 ) [2025-02-01 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-01 11:47:06' and `end` < '2025-02-01 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-01 14:47:18] Production.INFO: count ==1810 [2025-02-01 14:47:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:47:06 - End Time 2025-02-01 14:47:06 [2025-02-01 14:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379050', 'tblTempUsageDetail_20' ) start [2025-02-01 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379050', 'tblTempUsageDetail_20' ) end [2025-02-01 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379050', 'tblTempVendorCDR_20' ) start [2025-02-01 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379050', 'tblTempVendorCDR_20' ) end [2025-02-01 14:47:19] Production.INFO: ProcessCDR(1,14379050,1,1,2) [2025-02-01 14:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379050', 'tblTempUsageDetail_20' ) start [2025-02-01 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379050', 'tblTempUsageDetail_20' ) end [2025-02-01 14:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:47:22] Production.INFO: ==21018== Releasing lock... [2025-02-01 14:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:47:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:48:05 [end_date_ymd] => 2025-02-01 14:48:05 [RateCDR] => 1 ) [2025-02-01 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 11:48:05' and `end` < '2025-02-01 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 14:48:19] Production.INFO: count ==1811 [2025-02-01 14:48:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:48:05 - End Time 2025-02-01 14:48:05 [2025-02-01 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379055', 'tblTempUsageDetail_20' ) start [2025-02-01 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379055', 'tblTempUsageDetail_20' ) end [2025-02-01 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379055', 'tblTempVendorCDR_20' ) start [2025-02-01 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379055', 'tblTempVendorCDR_20' ) end [2025-02-01 14:48:19] Production.INFO: ProcessCDR(1,14379055,1,1,2) [2025-02-01 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379055', 'tblTempUsageDetail_20' ) start [2025-02-01 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379055', 'tblTempUsageDetail_20' ) end [2025-02-01 14:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:48:22] Production.INFO: ==21098== Releasing lock... [2025-02-01 14:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:48:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-01 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:49:06 [end_date_ymd] => 2025-02-01 14:49:06 [RateCDR] => 1 ) [2025-02-01 14: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-01 11:49:06' and `end` < '2025-02-01 14: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-01 14:49:19] Production.INFO: count ==1788 [2025-02-01 14:49:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:49:06 - End Time 2025-02-01 14:49:06 [2025-02-01 14:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379060', 'tblTempUsageDetail_20' ) start [2025-02-01 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379060', 'tblTempUsageDetail_20' ) end [2025-02-01 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379060', 'tblTempVendorCDR_20' ) start [2025-02-01 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379060', 'tblTempVendorCDR_20' ) end [2025-02-01 14:49:19] Production.INFO: ProcessCDR(1,14379060,1,1,2) [2025-02-01 14:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379060', 'tblTempUsageDetail_20' ) start [2025-02-01 14:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379060', 'tblTempUsageDetail_20' ) end [2025-02-01 14:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:49:22] Production.INFO: ==21220== Releasing lock... [2025-02-01 14:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:49:22] Production.INFO: 42 MB #Memory Used# [2025-02-01 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:50:06 [end_date_ymd] => 2025-02-01 14:50:06 [RateCDR] => 1 ) [2025-02-01 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-01 11:50:06' and `end` < '2025-02-01 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-01 14:50:18] Production.INFO: count ==1784 [2025-02-01 14:50:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:50:06 - End Time 2025-02-01 14:50:06 [2025-02-01 14:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379066', 'tblTempUsageDetail_20' ) start [2025-02-01 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379066', 'tblTempUsageDetail_20' ) end [2025-02-01 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379066', 'tblTempVendorCDR_20' ) start [2025-02-01 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379066', 'tblTempVendorCDR_20' ) end [2025-02-01 14:50:19] Production.INFO: ProcessCDR(1,14379066,1,1,2) [2025-02-01 14:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379066', 'tblTempUsageDetail_20' ) start [2025-02-01 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379066', 'tblTempUsageDetail_20' ) end [2025-02-01 14:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:50:22] Production.INFO: ==21306== Releasing lock... [2025-02-01 14:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:50:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-01 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:51:05 [end_date_ymd] => 2025-02-01 14:51:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:51:05' and `end` < '2025-02-01 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-01 14:51:18] Production.INFO: count ==1751 [2025-02-01 14:51:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:51:05 - End Time 2025-02-01 14:51:05 [2025-02-01 14:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379071', 'tblTempUsageDetail_20' ) start [2025-02-01 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379071', 'tblTempUsageDetail_20' ) end [2025-02-01 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379071', 'tblTempVendorCDR_20' ) start [2025-02-01 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379071', 'tblTempVendorCDR_20' ) end [2025-02-01 14:51:18] Production.INFO: ProcessCDR(1,14379071,1,1,2) [2025-02-01 14:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379071', 'tblTempUsageDetail_20' ) start [2025-02-01 14:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379071', 'tblTempUsageDetail_20' ) end [2025-02-01 14:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:51:21] Production.INFO: ==21388== Releasing lock... [2025-02-01 14:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:51:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:52:05 [end_date_ymd] => 2025-02-01 14:52:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:52:05' and `end` < '2025-02-01 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-01 14:52:19] Production.INFO: count ==1754 [2025-02-01 14:52:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:52:05 - End Time 2025-02-01 14:52:05 [2025-02-01 14:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379076', 'tblTempUsageDetail_20' ) start [2025-02-01 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379076', 'tblTempUsageDetail_20' ) end [2025-02-01 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379076', 'tblTempVendorCDR_20' ) start [2025-02-01 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379076', 'tblTempVendorCDR_20' ) end [2025-02-01 14:52:20] Production.INFO: ProcessCDR(1,14379076,1,1,2) [2025-02-01 14:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379076', 'tblTempUsageDetail_20' ) start [2025-02-01 14:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379076', 'tblTempUsageDetail_20' ) end [2025-02-01 14:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:52:23] Production.INFO: ==21465== Releasing lock... [2025-02-01 14:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:52:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:53:05 [end_date_ymd] => 2025-02-01 14:53:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:53:05' and `end` < '2025-02-01 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-01 14:53:19] Production.INFO: count ==1752 [2025-02-01 14:53:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:53:05 - End Time 2025-02-01 14:53:05 [2025-02-01 14:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379081', 'tblTempUsageDetail_20' ) start [2025-02-01 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379081', 'tblTempUsageDetail_20' ) end [2025-02-01 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379081', 'tblTempVendorCDR_20' ) start [2025-02-01 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379081', 'tblTempVendorCDR_20' ) end [2025-02-01 14:53:19] Production.INFO: ProcessCDR(1,14379081,1,1,2) [2025-02-01 14:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379081', 'tblTempUsageDetail_20' ) start [2025-02-01 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379081', 'tblTempUsageDetail_20' ) end [2025-02-01 14:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:53:22] Production.INFO: ==21545== Releasing lock... [2025-02-01 14:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:53:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:54:06 [end_date_ymd] => 2025-02-01 14:54:06 [RateCDR] => 1 ) [2025-02-01 14:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 11:54:06' and `end` < '2025-02-01 14:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 14:54:20] Production.INFO: count ==1749 [2025-02-01 14:54:20] Production.ERROR: pbx CDR StartTime 2025-02-01 11:54:06 - End Time 2025-02-01 14:54:06 [2025-02-01 14:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379086', 'tblTempUsageDetail_20' ) start [2025-02-01 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379086', 'tblTempUsageDetail_20' ) end [2025-02-01 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379086', 'tblTempVendorCDR_20' ) start [2025-02-01 14:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379086', 'tblTempVendorCDR_20' ) end [2025-02-01 14:54:20] Production.INFO: ProcessCDR(1,14379086,1,1,2) [2025-02-01 14:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379086', 'tblTempUsageDetail_20' ) start [2025-02-01 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379086', 'tblTempUsageDetail_20' ) end [2025-02-01 14:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:54:24] Production.INFO: ==21633== Releasing lock... [2025-02-01 14:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:54:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:55:05 [end_date_ymd] => 2025-02-01 14:55:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:55:05' and `end` < '2025-02-01 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-01 14:55:18] Production.INFO: count ==1747 [2025-02-01 14:55:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:55:05 - End Time 2025-02-01 14:55:05 [2025-02-01 14:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379091', 'tblTempUsageDetail_20' ) start [2025-02-01 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379091', 'tblTempUsageDetail_20' ) end [2025-02-01 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379091', 'tblTempVendorCDR_20' ) start [2025-02-01 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379091', 'tblTempVendorCDR_20' ) end [2025-02-01 14:55:19] Production.INFO: ProcessCDR(1,14379091,1,1,2) [2025-02-01 14:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379091', 'tblTempUsageDetail_20' ) start [2025-02-01 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379091', 'tblTempUsageDetail_20' ) end [2025-02-01 14:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:55:22] Production.INFO: ==21706== Releasing lock... [2025-02-01 14:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:55:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-01 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:56:06 [end_date_ymd] => 2025-02-01 14:56:06 [RateCDR] => 1 ) [2025-02-01 14:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 11:56:06' and `end` < '2025-02-01 14:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 14:56:19] Production.INFO: count ==1762 [2025-02-01 14:56:20] Production.ERROR: pbx CDR StartTime 2025-02-01 11:56:06 - End Time 2025-02-01 14:56:06 [2025-02-01 14:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379096', 'tblTempUsageDetail_20' ) start [2025-02-01 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379096', 'tblTempUsageDetail_20' ) end [2025-02-01 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379096', 'tblTempVendorCDR_20' ) start [2025-02-01 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379096', 'tblTempVendorCDR_20' ) end [2025-02-01 14:56:20] Production.INFO: ProcessCDR(1,14379096,1,1,2) [2025-02-01 14:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379096', 'tblTempUsageDetail_20' ) start [2025-02-01 14:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379096', 'tblTempUsageDetail_20' ) end [2025-02-01 14:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:56:24] Production.INFO: ==21791== Releasing lock... [2025-02-01 14:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:56:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:57:05 [end_date_ymd] => 2025-02-01 14:57:05 [RateCDR] => 1 ) [2025-02-01 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 11:57:05' and `end` < '2025-02-01 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 14:57:19] Production.INFO: count ==1761 [2025-02-01 14:57:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:57:05 - End Time 2025-02-01 14:57:05 [2025-02-01 14:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379101', 'tblTempUsageDetail_20' ) start [2025-02-01 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379101', 'tblTempUsageDetail_20' ) end [2025-02-01 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379101', 'tblTempVendorCDR_20' ) start [2025-02-01 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379101', 'tblTempVendorCDR_20' ) end [2025-02-01 14:57:20] Production.INFO: ProcessCDR(1,14379101,1,1,2) [2025-02-01 14:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379101', 'tblTempUsageDetail_20' ) start [2025-02-01 14:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379101', 'tblTempUsageDetail_20' ) end [2025-02-01 14:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:57:23] Production.INFO: ==21871== Releasing lock... [2025-02-01 14:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:57:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:58:05 [end_date_ymd] => 2025-02-01 14:58:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:58:05' and `end` < '2025-02-01 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-01 14:58:19] Production.INFO: count ==1762 [2025-02-01 14:58:19] Production.ERROR: pbx CDR StartTime 2025-02-01 11:58:05 - End Time 2025-02-01 14:58:05 [2025-02-01 14:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379106', 'tblTempUsageDetail_20' ) start [2025-02-01 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379106', 'tblTempUsageDetail_20' ) end [2025-02-01 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379106', 'tblTempVendorCDR_20' ) start [2025-02-01 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379106', 'tblTempVendorCDR_20' ) end [2025-02-01 14:58:19] Production.INFO: ProcessCDR(1,14379106,1,1,2) [2025-02-01 14:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379106', 'tblTempUsageDetail_20' ) start [2025-02-01 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379106', 'tblTempUsageDetail_20' ) end [2025-02-01 14:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:58:24] Production.INFO: ==21952== Releasing lock... [2025-02-01 14:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:58:24] Production.INFO: 42 MB #Memory Used# [2025-02-01 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 11:59:05 [end_date_ymd] => 2025-02-01 14:59:05 [RateCDR] => 1 ) [2025-02-01 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-01 11:59:05' and `end` < '2025-02-01 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-01 14:59:18] Production.INFO: count ==1766 [2025-02-01 14:59:18] Production.ERROR: pbx CDR StartTime 2025-02-01 11:59:05 - End Time 2025-02-01 14:59:05 [2025-02-01 14:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379111', 'tblTempUsageDetail_20' ) start [2025-02-01 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379111', 'tblTempUsageDetail_20' ) end [2025-02-01 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379111', 'tblTempVendorCDR_20' ) start [2025-02-01 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379111', 'tblTempVendorCDR_20' ) end [2025-02-01 14:59:18] Production.INFO: ProcessCDR(1,14379111,1,1,2) [2025-02-01 14:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 14:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 14:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379111', 'tblTempUsageDetail_20' ) start [2025-02-01 14:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379111', 'tblTempUsageDetail_20' ) end [2025-02-01 14:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 14:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 14:59:21] Production.INFO: ==22027== Releasing lock... [2025-02-01 14:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 14:59:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-01 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:00:06 [end_date_ymd] => 2025-02-01 15:00:06 [RateCDR] => 1 ) [2025-02-01 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-01 12:00:06' and `end` < '2025-02-01 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-01 15:00:19] Production.INFO: count ==1750 [2025-02-01 15:00:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:00:06 - End Time 2025-02-01 15:00:06 [2025-02-01 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379117', 'tblTempUsageDetail_20' ) start [2025-02-01 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379117', 'tblTempUsageDetail_20' ) end [2025-02-01 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379117', 'tblTempVendorCDR_20' ) start [2025-02-01 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379117', 'tblTempVendorCDR_20' ) end [2025-02-01 15:00:19] Production.INFO: ProcessCDR(1,14379117,1,1,2) [2025-02-01 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379117', 'tblTempUsageDetail_20' ) start [2025-02-01 15:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379117', 'tblTempUsageDetail_20' ) end [2025-02-01 15:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:00:23] Production.INFO: ==22110== Releasing lock... [2025-02-01 15:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:00:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 15:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:01:04 [end_date_ymd] => 2025-02-01 15:01:04 [RateCDR] => 1 ) [2025-02-01 15:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:01:04' and `end` < '2025-02-01 15:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:01:17] Production.INFO: count ==1719 [2025-02-01 15:01:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:01:04 - End Time 2025-02-01 15:01:04 [2025-02-01 15:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379122', 'tblTempUsageDetail_20' ) start [2025-02-01 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379122', 'tblTempUsageDetail_20' ) end [2025-02-01 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379122', 'tblTempVendorCDR_20' ) start [2025-02-01 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379122', 'tblTempVendorCDR_20' ) end [2025-02-01 15:01:18] Production.INFO: ProcessCDR(1,14379122,1,1,2) [2025-02-01 15:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379122', 'tblTempUsageDetail_20' ) start [2025-02-01 15:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379122', 'tblTempUsageDetail_20' ) end [2025-02-01 15:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:01:22] Production.INFO: ==22279== Releasing lock... [2025-02-01 15:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:01:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:02:05 [end_date_ymd] => 2025-02-01 15:02:05 [RateCDR] => 1 ) [2025-02-01 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-01 12:02:05' and `end` < '2025-02-01 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-01 15:02:19] Production.INFO: count ==1719 [2025-02-01 15:02:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:02:05 - End Time 2025-02-01 15:02:05 [2025-02-01 15:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379127', 'tblTempUsageDetail_20' ) start [2025-02-01 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379127', 'tblTempUsageDetail_20' ) end [2025-02-01 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379127', 'tblTempVendorCDR_20' ) start [2025-02-01 15:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379127', 'tblTempVendorCDR_20' ) end [2025-02-01 15:02:20] Production.INFO: ProcessCDR(1,14379127,1,1,2) [2025-02-01 15:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379127', 'tblTempUsageDetail_20' ) start [2025-02-01 15:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379127', 'tblTempUsageDetail_20' ) end [2025-02-01 15:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:02:23] Production.INFO: ==22355== Releasing lock... [2025-02-01 15:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:02:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:03:06 [end_date_ymd] => 2025-02-01 15:03:06 [RateCDR] => 1 ) [2025-02-01 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-01 12:03:06' and `end` < '2025-02-01 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-01 15:03:19] Production.INFO: count ==1723 [2025-02-01 15:03:20] Production.ERROR: pbx CDR StartTime 2025-02-01 12:03:06 - End Time 2025-02-01 15:03:06 [2025-02-01 15:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379132', 'tblTempUsageDetail_20' ) start [2025-02-01 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379132', 'tblTempUsageDetail_20' ) end [2025-02-01 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379132', 'tblTempVendorCDR_20' ) start [2025-02-01 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379132', 'tblTempVendorCDR_20' ) end [2025-02-01 15:03:20] Production.INFO: ProcessCDR(1,14379132,1,1,2) [2025-02-01 15:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379132', 'tblTempUsageDetail_20' ) start [2025-02-01 15:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379132', 'tblTempUsageDetail_20' ) end [2025-02-01 15:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:03:23] Production.INFO: ==22432== Releasing lock... [2025-02-01 15:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:03:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:04:05 [end_date_ymd] => 2025-02-01 15:04:05 [RateCDR] => 1 ) [2025-02-01 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-01 12:04:05' and `end` < '2025-02-01 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-01 15:04:18] Production.INFO: count ==1723 [2025-02-01 15:04:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:04:05 - End Time 2025-02-01 15:04:05 [2025-02-01 15:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379137', 'tblTempUsageDetail_20' ) start [2025-02-01 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379137', 'tblTempUsageDetail_20' ) end [2025-02-01 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379137', 'tblTempVendorCDR_20' ) start [2025-02-01 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379137', 'tblTempVendorCDR_20' ) end [2025-02-01 15:04:19] Production.INFO: ProcessCDR(1,14379137,1,1,2) [2025-02-01 15:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379137', 'tblTempUsageDetail_20' ) start [2025-02-01 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379137', 'tblTempUsageDetail_20' ) end [2025-02-01 15:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:04:24] Production.INFO: ==22511== Releasing lock... [2025-02-01 15:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:04:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:05:05 [end_date_ymd] => 2025-02-01 15:05:05 [RateCDR] => 1 ) [2025-02-01 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:05:05' and `end` < '2025-02-01 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:05:19] Production.INFO: count ==1703 [2025-02-01 15:05:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:05:05 - End Time 2025-02-01 15:05:05 [2025-02-01 15:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379142', 'tblTempUsageDetail_20' ) start [2025-02-01 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379142', 'tblTempUsageDetail_20' ) end [2025-02-01 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379142', 'tblTempVendorCDR_20' ) start [2025-02-01 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379142', 'tblTempVendorCDR_20' ) end [2025-02-01 15:05:19] Production.INFO: ProcessCDR(1,14379142,1,1,2) [2025-02-01 15:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379142', 'tblTempUsageDetail_20' ) start [2025-02-01 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379142', 'tblTempUsageDetail_20' ) end [2025-02-01 15:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:05:22] Production.INFO: ==22711== Releasing lock... [2025-02-01 15:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:05:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:06:05 [end_date_ymd] => 2025-02-01 15:06:05 [RateCDR] => 1 ) [2025-02-01 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:06:05' and `end` < '2025-02-01 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:06:18] Production.INFO: count ==1704 [2025-02-01 15:06:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:06:05 - End Time 2025-02-01 15:06:05 [2025-02-01 15:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379147', 'tblTempUsageDetail_20' ) start [2025-02-01 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379147', 'tblTempUsageDetail_20' ) end [2025-02-01 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379147', 'tblTempVendorCDR_20' ) start [2025-02-01 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379147', 'tblTempVendorCDR_20' ) end [2025-02-01 15:06:18] Production.INFO: ProcessCDR(1,14379147,1,1,2) [2025-02-01 15:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379147', 'tblTempUsageDetail_20' ) start [2025-02-01 15:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379147', 'tblTempUsageDetail_20' ) end [2025-02-01 15:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:06:23] Production.INFO: ==22790== Releasing lock... [2025-02-01 15:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:06:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:07:05 [end_date_ymd] => 2025-02-01 15:07:05 [RateCDR] => 1 ) [2025-02-01 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:07:05' and `end` < '2025-02-01 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:07:18] Production.INFO: count ==1704 [2025-02-01 15:07:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:07:05 - End Time 2025-02-01 15:07:05 [2025-02-01 15:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379152', 'tblTempUsageDetail_20' ) start [2025-02-01 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379152', 'tblTempUsageDetail_20' ) end [2025-02-01 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379152', 'tblTempVendorCDR_20' ) start [2025-02-01 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379152', 'tblTempVendorCDR_20' ) end [2025-02-01 15:07:19] Production.INFO: ProcessCDR(1,14379152,1,1,2) [2025-02-01 15:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379152', 'tblTempUsageDetail_20' ) start [2025-02-01 15:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379152', 'tblTempUsageDetail_20' ) end [2025-02-01 15:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:07:23] Production.INFO: ==22866== Releasing lock... [2025-02-01 15:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:07:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:08:05 [end_date_ymd] => 2025-02-01 15:08:05 [RateCDR] => 1 ) [2025-02-01 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-01 12:08:05' and `end` < '2025-02-01 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-01 15:08:18] Production.INFO: count ==1701 [2025-02-01 15:08:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:08:05 - End Time 2025-02-01 15:08:05 [2025-02-01 15:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379157', 'tblTempUsageDetail_20' ) start [2025-02-01 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379157', 'tblTempUsageDetail_20' ) end [2025-02-01 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379157', 'tblTempVendorCDR_20' ) start [2025-02-01 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379157', 'tblTempVendorCDR_20' ) end [2025-02-01 15:08:18] Production.INFO: ProcessCDR(1,14379157,1,1,2) [2025-02-01 15:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379157', 'tblTempUsageDetail_20' ) start [2025-02-01 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379157', 'tblTempUsageDetail_20' ) end [2025-02-01 15:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:08:22] Production.INFO: ==23036== Releasing lock... [2025-02-01 15:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:08:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:09:05 [end_date_ymd] => 2025-02-01 15:09:05 [RateCDR] => 1 ) [2025-02-01 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:09:05' and `end` < '2025-02-01 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:09:18] Production.INFO: count ==1701 [2025-02-01 15:09:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:09:05 - End Time 2025-02-01 15:09:05 [2025-02-01 15:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379162', 'tblTempUsageDetail_20' ) start [2025-02-01 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379162', 'tblTempUsageDetail_20' ) end [2025-02-01 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379162', 'tblTempVendorCDR_20' ) start [2025-02-01 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379162', 'tblTempVendorCDR_20' ) end [2025-02-01 15:09:18] Production.INFO: ProcessCDR(1,14379162,1,1,2) [2025-02-01 15:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379162', 'tblTempUsageDetail_20' ) start [2025-02-01 15:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379162', 'tblTempUsageDetail_20' ) end [2025-02-01 15:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:09:22] Production.INFO: ==23118== Releasing lock... [2025-02-01 15:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:09:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:10:05 [end_date_ymd] => 2025-02-01 15:10:05 [RateCDR] => 1 ) [2025-02-01 15: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-01 12:10:05' and `end` < '2025-02-01 15: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-01 15:10:18] Production.INFO: count ==1697 [2025-02-01 15:10:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:10:05 - End Time 2025-02-01 15:10:05 [2025-02-01 15:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379167', 'tblTempUsageDetail_20' ) start [2025-02-01 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379167', 'tblTempUsageDetail_20' ) end [2025-02-01 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379167', 'tblTempVendorCDR_20' ) start [2025-02-01 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379167', 'tblTempVendorCDR_20' ) end [2025-02-01 15:10:19] Production.INFO: ProcessCDR(1,14379167,1,1,2) [2025-02-01 15:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379167', 'tblTempUsageDetail_20' ) start [2025-02-01 15:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379167', 'tblTempUsageDetail_20' ) end [2025-02-01 15:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:10:22] Production.INFO: ==23198== Releasing lock... [2025-02-01 15:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:10:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:11:05 [end_date_ymd] => 2025-02-01 15:11:05 [RateCDR] => 1 ) [2025-02-01 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:11:05' and `end` < '2025-02-01 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:11:18] Production.INFO: count ==1703 [2025-02-01 15:11:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:11:05 - End Time 2025-02-01 15:11:05 [2025-02-01 15:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379173', 'tblTempUsageDetail_20' ) start [2025-02-01 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379173', 'tblTempUsageDetail_20' ) end [2025-02-01 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379173', 'tblTempVendorCDR_20' ) start [2025-02-01 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379173', 'tblTempVendorCDR_20' ) end [2025-02-01 15:11:19] Production.INFO: ProcessCDR(1,14379173,1,1,2) [2025-02-01 15:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379173', 'tblTempUsageDetail_20' ) start [2025-02-01 15:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379173', 'tblTempUsageDetail_20' ) end [2025-02-01 15:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:11:22] Production.INFO: ==23283== Releasing lock... [2025-02-01 15:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:11:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:12:05 [end_date_ymd] => 2025-02-01 15:12:05 [RateCDR] => 1 ) [2025-02-01 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:12:05' and `end` < '2025-02-01 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:12:19] Production.INFO: count ==1700 [2025-02-01 15:12:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:12:05 - End Time 2025-02-01 15:12:05 [2025-02-01 15:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379178', 'tblTempUsageDetail_20' ) start [2025-02-01 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379178', 'tblTempUsageDetail_20' ) end [2025-02-01 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379178', 'tblTempVendorCDR_20' ) start [2025-02-01 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379178', 'tblTempVendorCDR_20' ) end [2025-02-01 15:12:19] Production.INFO: ProcessCDR(1,14379178,1,1,2) [2025-02-01 15:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379178', 'tblTempUsageDetail_20' ) start [2025-02-01 15:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379178', 'tblTempUsageDetail_20' ) end [2025-02-01 15:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:12:22] Production.INFO: ==23441== Releasing lock... [2025-02-01 15:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:12:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:13:05 [end_date_ymd] => 2025-02-01 15:13:05 [RateCDR] => 1 ) [2025-02-01 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:13:05' and `end` < '2025-02-01 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:13:18] Production.INFO: count ==1702 [2025-02-01 15:13:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:13:05 - End Time 2025-02-01 15:13:05 [2025-02-01 15:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379183', 'tblTempUsageDetail_20' ) start [2025-02-01 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379183', 'tblTempUsageDetail_20' ) end [2025-02-01 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379183', 'tblTempVendorCDR_20' ) start [2025-02-01 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379183', 'tblTempVendorCDR_20' ) end [2025-02-01 15:13:19] Production.INFO: ProcessCDR(1,14379183,1,1,2) [2025-02-01 15:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379183', 'tblTempUsageDetail_20' ) start [2025-02-01 15:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379183', 'tblTempUsageDetail_20' ) end [2025-02-01 15:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:13:23] Production.INFO: ==23515== Releasing lock... [2025-02-01 15:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:13:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:14:05 [end_date_ymd] => 2025-02-01 15:14:05 [RateCDR] => 1 ) [2025-02-01 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:14:05' and `end` < '2025-02-01 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:14:18] Production.INFO: count ==1701 [2025-02-01 15:14:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:14:05 - End Time 2025-02-01 15:14:05 [2025-02-01 15:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379188', 'tblTempUsageDetail_20' ) start [2025-02-01 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379188', 'tblTempUsageDetail_20' ) end [2025-02-01 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379188', 'tblTempVendorCDR_20' ) start [2025-02-01 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379188', 'tblTempVendorCDR_20' ) end [2025-02-01 15:14:19] Production.INFO: ProcessCDR(1,14379188,1,1,2) [2025-02-01 15:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379188', 'tblTempUsageDetail_20' ) start [2025-02-01 15:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379188', 'tblTempUsageDetail_20' ) end [2025-02-01 15:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:14:22] Production.INFO: ==23595== Releasing lock... [2025-02-01 15:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:14:22] Production.INFO: 41 MB #Memory Used# [2025-02-01 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:15:05 [end_date_ymd] => 2025-02-01 15:15:05 [RateCDR] => 1 ) [2025-02-01 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:15:05' and `end` < '2025-02-01 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:15:18] Production.INFO: count ==1703 [2025-02-01 15:15:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:15:05 - End Time 2025-02-01 15:15:05 [2025-02-01 15:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379193', 'tblTempUsageDetail_20' ) start [2025-02-01 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379193', 'tblTempUsageDetail_20' ) end [2025-02-01 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379193', 'tblTempVendorCDR_20' ) start [2025-02-01 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379193', 'tblTempVendorCDR_20' ) end [2025-02-01 15:15:18] Production.INFO: ProcessCDR(1,14379193,1,1,2) [2025-02-01 15:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379193', 'tblTempUsageDetail_20' ) start [2025-02-01 15:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379193', 'tblTempUsageDetail_20' ) end [2025-02-01 15:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:15:23] Production.INFO: ==23750== Releasing lock... [2025-02-01 15:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:15:23] Production.INFO: 41 MB #Memory Used# [2025-02-01 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:16:05 [end_date_ymd] => 2025-02-01 15:16:05 [RateCDR] => 1 ) [2025-02-01 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:16:05' and `end` < '2025-02-01 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:16:18] Production.INFO: count ==1692 [2025-02-01 15:16:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:16:05 - End Time 2025-02-01 15:16:05 [2025-02-01 15:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379198', 'tblTempUsageDetail_20' ) start [2025-02-01 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379198', 'tblTempUsageDetail_20' ) end [2025-02-01 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379198', 'tblTempVendorCDR_20' ) start [2025-02-01 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379198', 'tblTempVendorCDR_20' ) end [2025-02-01 15:16:18] Production.INFO: ProcessCDR(1,14379198,1,1,2) [2025-02-01 15:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379198', 'tblTempUsageDetail_20' ) start [2025-02-01 15:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379198', 'tblTempUsageDetail_20' ) end [2025-02-01 15:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:16:21] Production.INFO: ==23833== Releasing lock... [2025-02-01 15:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:16:21] Production.INFO: 41 MB #Memory Used# [2025-02-01 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:17:05 [end_date_ymd] => 2025-02-01 15:17:05 [RateCDR] => 1 ) [2025-02-01 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-01 12:17:05' and `end` < '2025-02-01 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-01 15:17:18] Production.INFO: count ==1686 [2025-02-01 15:17:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:17:05 - End Time 2025-02-01 15:17:05 [2025-02-01 15:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379203', 'tblTempUsageDetail_20' ) start [2025-02-01 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379203', 'tblTempUsageDetail_20' ) end [2025-02-01 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379203', 'tblTempVendorCDR_20' ) start [2025-02-01 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379203', 'tblTempVendorCDR_20' ) end [2025-02-01 15:17:18] Production.INFO: ProcessCDR(1,14379203,1,1,2) [2025-02-01 15:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379203', 'tblTempUsageDetail_20' ) start [2025-02-01 15:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379203', 'tblTempUsageDetail_20' ) end [2025-02-01 15:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:17:21] Production.INFO: ==23916== Releasing lock... [2025-02-01 15:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:17:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:18:05 [end_date_ymd] => 2025-02-01 15:18:05 [RateCDR] => 1 ) [2025-02-01 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-01 12:18:05' and `end` < '2025-02-01 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-01 15:18:18] Production.INFO: count ==1676 [2025-02-01 15:18:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:18:05 - End Time 2025-02-01 15:18:05 [2025-02-01 15:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379208', 'tblTempUsageDetail_20' ) start [2025-02-01 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379208', 'tblTempUsageDetail_20' ) end [2025-02-01 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379208', 'tblTempVendorCDR_20' ) start [2025-02-01 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379208', 'tblTempVendorCDR_20' ) end [2025-02-01 15:18:19] Production.INFO: ProcessCDR(1,14379208,1,1,2) [2025-02-01 15:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379208', 'tblTempUsageDetail_20' ) start [2025-02-01 15:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379208', 'tblTempUsageDetail_20' ) end [2025-02-01 15:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:18:23] Production.INFO: ==23999== Releasing lock... [2025-02-01 15:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:18:23] Production.INFO: 41 MB #Memory Used# [2025-02-01 15:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:19:06 [end_date_ymd] => 2025-02-01 15:19:06 [RateCDR] => 1 ) [2025-02-01 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-01 12:19:06' and `end` < '2025-02-01 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-01 15:19:20] Production.INFO: count ==1676 [2025-02-01 15:19:20] Production.ERROR: pbx CDR StartTime 2025-02-01 12:19:06 - End Time 2025-02-01 15:19:06 [2025-02-01 15:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379213', 'tblTempUsageDetail_20' ) start [2025-02-01 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379213', 'tblTempUsageDetail_20' ) end [2025-02-01 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379213', 'tblTempVendorCDR_20' ) start [2025-02-01 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379213', 'tblTempVendorCDR_20' ) end [2025-02-01 15:19:20] Production.INFO: ProcessCDR(1,14379213,1,1,2) [2025-02-01 15:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379213', 'tblTempUsageDetail_20' ) start [2025-02-01 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379213', 'tblTempUsageDetail_20' ) end [2025-02-01 15:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:19:23] Production.INFO: ==24086== Releasing lock... [2025-02-01 15:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:19:23] Production.INFO: 41 MB #Memory Used# [2025-02-01 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:20:06 [end_date_ymd] => 2025-02-01 15:20:06 [RateCDR] => 1 ) [2025-02-01 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-01 12:20:06' and `end` < '2025-02-01 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-01 15:20:19] Production.INFO: count ==1673 [2025-02-01 15:20:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:20:06 - End Time 2025-02-01 15:20:06 [2025-02-01 15:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379218', 'tblTempUsageDetail_20' ) start [2025-02-01 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379218', 'tblTempUsageDetail_20' ) end [2025-02-01 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379218', 'tblTempVendorCDR_20' ) start [2025-02-01 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379218', 'tblTempVendorCDR_20' ) end [2025-02-01 15:20:19] Production.INFO: ProcessCDR(1,14379218,1,1,2) [2025-02-01 15:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379218', 'tblTempUsageDetail_20' ) start [2025-02-01 15:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379218', 'tblTempUsageDetail_20' ) end [2025-02-01 15:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:20:22] Production.INFO: ==24203== Releasing lock... [2025-02-01 15:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:20:22] Production.INFO: 41 MB #Memory Used# [2025-02-01 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:21:05 [end_date_ymd] => 2025-02-01 15:21:05 [RateCDR] => 1 ) [2025-02-01 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-01 12:21:05' and `end` < '2025-02-01 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-01 15:21:18] Production.INFO: count ==1652 [2025-02-01 15:21:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:21:05 - End Time 2025-02-01 15:21:05 [2025-02-01 15:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379224', 'tblTempUsageDetail_20' ) start [2025-02-01 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379224', 'tblTempUsageDetail_20' ) end [2025-02-01 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379224', 'tblTempVendorCDR_20' ) start [2025-02-01 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379224', 'tblTempVendorCDR_20' ) end [2025-02-01 15:21:19] Production.INFO: ProcessCDR(1,14379224,1,1,2) [2025-02-01 15:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379224', 'tblTempUsageDetail_20' ) start [2025-02-01 15:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379224', 'tblTempUsageDetail_20' ) end [2025-02-01 15:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:21:23] Production.INFO: ==24287== Releasing lock... [2025-02-01 15:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:21:23] Production.INFO: 41 MB #Memory Used# [2025-02-01 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:22:05 [end_date_ymd] => 2025-02-01 15:22:05 [RateCDR] => 1 ) [2025-02-01 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-01 12:22:05' and `end` < '2025-02-01 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-01 15:22:18] Production.INFO: count ==1640 [2025-02-01 15:22:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:22:05 - End Time 2025-02-01 15:22:05 [2025-02-01 15:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379229', 'tblTempUsageDetail_20' ) start [2025-02-01 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379229', 'tblTempUsageDetail_20' ) end [2025-02-01 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379229', 'tblTempVendorCDR_20' ) start [2025-02-01 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379229', 'tblTempVendorCDR_20' ) end [2025-02-01 15:22:18] Production.INFO: ProcessCDR(1,14379229,1,1,2) [2025-02-01 15:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379229', 'tblTempUsageDetail_20' ) start [2025-02-01 15:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379229', 'tblTempUsageDetail_20' ) end [2025-02-01 15:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:22:23] Production.INFO: ==24368== Releasing lock... [2025-02-01 15:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:22:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:23:05 [end_date_ymd] => 2025-02-01 15:23:05 [RateCDR] => 1 ) [2025-02-01 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-01 12:23:05' and `end` < '2025-02-01 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-01 15:23:18] Production.INFO: count ==1614 [2025-02-01 15:23:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:23:05 - End Time 2025-02-01 15:23:05 [2025-02-01 15:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379234', 'tblTempUsageDetail_20' ) start [2025-02-01 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379234', 'tblTempUsageDetail_20' ) end [2025-02-01 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379234', 'tblTempVendorCDR_20' ) start [2025-02-01 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379234', 'tblTempVendorCDR_20' ) end [2025-02-01 15:23:18] Production.INFO: ProcessCDR(1,14379234,1,1,2) [2025-02-01 15:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379234', 'tblTempUsageDetail_20' ) start [2025-02-01 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379234', 'tblTempUsageDetail_20' ) end [2025-02-01 15:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:23:23] Production.INFO: ==24459== Releasing lock... [2025-02-01 15:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:23:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:24:05 [end_date_ymd] => 2025-02-01 15:24:05 [RateCDR] => 1 ) [2025-02-01 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-01 12:24:05' and `end` < '2025-02-01 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-01 15:24:19] Production.INFO: count ==1608 [2025-02-01 15:24:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:24:05 - End Time 2025-02-01 15:24:05 [2025-02-01 15:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379239', 'tblTempUsageDetail_20' ) start [2025-02-01 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379239', 'tblTempUsageDetail_20' ) end [2025-02-01 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379239', 'tblTempVendorCDR_20' ) start [2025-02-01 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379239', 'tblTempVendorCDR_20' ) end [2025-02-01 15:24:19] Production.INFO: ProcessCDR(1,14379239,1,1,2) [2025-02-01 15:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379239', 'tblTempUsageDetail_20' ) start [2025-02-01 15:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379239', 'tblTempUsageDetail_20' ) end [2025-02-01 15:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:24:23] Production.INFO: ==24539== Releasing lock... [2025-02-01 15:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:24:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:25:05 [end_date_ymd] => 2025-02-01 15:25:05 [RateCDR] => 1 ) [2025-02-01 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:25:05' and `end` < '2025-02-01 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:25:18] Production.INFO: count ==1609 [2025-02-01 15:25:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:25:05 - End Time 2025-02-01 15:25:05 [2025-02-01 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379244', 'tblTempUsageDetail_20' ) start [2025-02-01 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379244', 'tblTempUsageDetail_20' ) end [2025-02-01 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379244', 'tblTempVendorCDR_20' ) start [2025-02-01 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379244', 'tblTempVendorCDR_20' ) end [2025-02-01 15:25:19] Production.INFO: ProcessCDR(1,14379244,1,1,2) [2025-02-01 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379244', 'tblTempUsageDetail_20' ) start [2025-02-01 15:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379244', 'tblTempUsageDetail_20' ) end [2025-02-01 15:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:25:23] Production.INFO: ==24617== Releasing lock... [2025-02-01 15:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:25:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:26:06 [end_date_ymd] => 2025-02-01 15:26:06 [RateCDR] => 1 ) [2025-02-01 15: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-01 12:26:06' and `end` < '2025-02-01 15: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-01 15:26:18] Production.INFO: count ==1606 [2025-02-01 15:26:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:26:06 - End Time 2025-02-01 15:26:06 [2025-02-01 15:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379249', 'tblTempUsageDetail_20' ) start [2025-02-01 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379249', 'tblTempUsageDetail_20' ) end [2025-02-01 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379249', 'tblTempVendorCDR_20' ) start [2025-02-01 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379249', 'tblTempVendorCDR_20' ) end [2025-02-01 15:26:19] Production.INFO: ProcessCDR(1,14379249,1,1,2) [2025-02-01 15:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379249', 'tblTempUsageDetail_20' ) start [2025-02-01 15:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379249', 'tblTempUsageDetail_20' ) end [2025-02-01 15:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:26:22] Production.INFO: ==24700== Releasing lock... [2025-02-01 15:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:26:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:27:05 [end_date_ymd] => 2025-02-01 15:27:05 [RateCDR] => 1 ) [2025-02-01 15: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-01 12:27:05' and `end` < '2025-02-01 15: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-01 15:27:19] Production.INFO: count ==1608 [2025-02-01 15:27:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:27:05 - End Time 2025-02-01 15:27:05 [2025-02-01 15:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379254', 'tblTempUsageDetail_20' ) start [2025-02-01 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379254', 'tblTempUsageDetail_20' ) end [2025-02-01 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379254', 'tblTempVendorCDR_20' ) start [2025-02-01 15:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379254', 'tblTempVendorCDR_20' ) end [2025-02-01 15:27:19] Production.INFO: ProcessCDR(1,14379254,1,1,2) [2025-02-01 15:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379254', 'tblTempUsageDetail_20' ) start [2025-02-01 15:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379254', 'tblTempUsageDetail_20' ) end [2025-02-01 15:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:27:22] Production.INFO: ==24785== Releasing lock... [2025-02-01 15:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:27:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:28:05 [end_date_ymd] => 2025-02-01 15:28:05 [RateCDR] => 1 ) [2025-02-01 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-01 12:28:05' and `end` < '2025-02-01 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-01 15:28:18] Production.INFO: count ==1605 [2025-02-01 15:28:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:28:05 - End Time 2025-02-01 15:28:05 [2025-02-01 15:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379259', 'tblTempUsageDetail_20' ) start [2025-02-01 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379259', 'tblTempUsageDetail_20' ) end [2025-02-01 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379259', 'tblTempVendorCDR_20' ) start [2025-02-01 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379259', 'tblTempVendorCDR_20' ) end [2025-02-01 15:28:19] Production.INFO: ProcessCDR(1,14379259,1,1,2) [2025-02-01 15:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379259', 'tblTempUsageDetail_20' ) start [2025-02-01 15:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379259', 'tblTempUsageDetail_20' ) end [2025-02-01 15:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:28:22] Production.INFO: ==24869== Releasing lock... [2025-02-01 15:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:28:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:29:05 [end_date_ymd] => 2025-02-01 15:29:05 [RateCDR] => 1 ) [2025-02-01 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:29:05' and `end` < '2025-02-01 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:29:19] Production.INFO: count ==1606 [2025-02-01 15:29:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:29:05 - End Time 2025-02-01 15:29:05 [2025-02-01 15:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379264', 'tblTempUsageDetail_20' ) start [2025-02-01 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379264', 'tblTempUsageDetail_20' ) end [2025-02-01 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379264', 'tblTempVendorCDR_20' ) start [2025-02-01 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379264', 'tblTempVendorCDR_20' ) end [2025-02-01 15:29:19] Production.INFO: ProcessCDR(1,14379264,1,1,2) [2025-02-01 15:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379264', 'tblTempUsageDetail_20' ) start [2025-02-01 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379264', 'tblTempUsageDetail_20' ) end [2025-02-01 15:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:29:23] Production.INFO: ==24943== Releasing lock... [2025-02-01 15:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:29:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 15:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:30:07 [end_date_ymd] => 2025-02-01 15:30:07 [RateCDR] => 1 ) [2025-02-01 15: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-01 12:30:07' and `end` < '2025-02-01 15: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-01 15:30:19] Production.INFO: count ==1602 [2025-02-01 15:30:20] Production.ERROR: pbx CDR StartTime 2025-02-01 12:30:07 - End Time 2025-02-01 15:30:07 [2025-02-01 15:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379270', 'tblTempUsageDetail_20' ) start [2025-02-01 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379270', 'tblTempUsageDetail_20' ) end [2025-02-01 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379270', 'tblTempVendorCDR_20' ) start [2025-02-01 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379270', 'tblTempVendorCDR_20' ) end [2025-02-01 15:30:20] Production.INFO: ProcessCDR(1,14379270,1,1,2) [2025-02-01 15:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379270', 'tblTempUsageDetail_20' ) start [2025-02-01 15:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379270', 'tblTempUsageDetail_20' ) end [2025-02-01 15:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:30:23] Production.INFO: ==25018== Releasing lock... [2025-02-01 15:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:30:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 15:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:31:04 [end_date_ymd] => 2025-02-01 15:31:04 [RateCDR] => 1 ) [2025-02-01 15:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:31:04' and `end` < '2025-02-01 15:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:31:17] Production.INFO: count ==1594 [2025-02-01 15:31:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:31:04 - End Time 2025-02-01 15:31:04 [2025-02-01 15:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379275', 'tblTempUsageDetail_20' ) start [2025-02-01 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379275', 'tblTempUsageDetail_20' ) end [2025-02-01 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379275', 'tblTempVendorCDR_20' ) start [2025-02-01 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379275', 'tblTempVendorCDR_20' ) end [2025-02-01 15:31:18] Production.INFO: ProcessCDR(1,14379275,1,1,2) [2025-02-01 15:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379275', 'tblTempUsageDetail_20' ) start [2025-02-01 15:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379275', 'tblTempUsageDetail_20' ) end [2025-02-01 15:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:31:21] Production.INFO: ==25097== Releasing lock... [2025-02-01 15:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:31:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:32:05 [end_date_ymd] => 2025-02-01 15:32:05 [RateCDR] => 1 ) [2025-02-01 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-01 12:32:05' and `end` < '2025-02-01 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-01 15:32:18] Production.INFO: count ==1594 [2025-02-01 15:32:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:32:05 - End Time 2025-02-01 15:32:05 [2025-02-01 15:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379280', 'tblTempUsageDetail_20' ) start [2025-02-01 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379280', 'tblTempUsageDetail_20' ) end [2025-02-01 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379280', 'tblTempVendorCDR_20' ) start [2025-02-01 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379280', 'tblTempVendorCDR_20' ) end [2025-02-01 15:32:18] Production.INFO: ProcessCDR(1,14379280,1,1,2) [2025-02-01 15:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379280', 'tblTempUsageDetail_20' ) start [2025-02-01 15:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379280', 'tblTempUsageDetail_20' ) end [2025-02-01 15:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:32:23] Production.INFO: ==25178== Releasing lock... [2025-02-01 15:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:32:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:33:05 [end_date_ymd] => 2025-02-01 15:33:05 [RateCDR] => 1 ) [2025-02-01 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-01 12:33:05' and `end` < '2025-02-01 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-01 15:33:19] Production.INFO: count ==1582 [2025-02-01 15:33:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:33:05 - End Time 2025-02-01 15:33:05 [2025-02-01 15:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379285', 'tblTempUsageDetail_20' ) start [2025-02-01 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379285', 'tblTempUsageDetail_20' ) end [2025-02-01 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379285', 'tblTempVendorCDR_20' ) start [2025-02-01 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379285', 'tblTempVendorCDR_20' ) end [2025-02-01 15:33:19] Production.INFO: ProcessCDR(1,14379285,1,1,2) [2025-02-01 15:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379285', 'tblTempUsageDetail_20' ) start [2025-02-01 15:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379285', 'tblTempUsageDetail_20' ) end [2025-02-01 15:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:33:24] Production.INFO: ==25248== Releasing lock... [2025-02-01 15:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:33:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 15:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:34:04 [end_date_ymd] => 2025-02-01 15:34:04 [RateCDR] => 1 ) [2025-02-01 15: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-01 12:34:04' and `end` < '2025-02-01 15: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-01 15:34:17] Production.INFO: count ==1579 [2025-02-01 15:34:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:34:04 - End Time 2025-02-01 15:34:04 [2025-02-01 15:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379290', 'tblTempUsageDetail_20' ) start [2025-02-01 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379290', 'tblTempUsageDetail_20' ) end [2025-02-01 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379290', 'tblTempVendorCDR_20' ) start [2025-02-01 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379290', 'tblTempVendorCDR_20' ) end [2025-02-01 15:34:18] Production.INFO: ProcessCDR(1,14379290,1,1,2) [2025-02-01 15:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379290', 'tblTempUsageDetail_20' ) start [2025-02-01 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379290', 'tblTempUsageDetail_20' ) end [2025-02-01 15:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:34:22] Production.INFO: ==25324== Releasing lock... [2025-02-01 15:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:34:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:35:05 [end_date_ymd] => 2025-02-01 15:35:05 [RateCDR] => 1 ) [2025-02-01 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-01 12:35:05' and `end` < '2025-02-01 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-01 15:35:18] Production.INFO: count ==1578 [2025-02-01 15:35:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:35:05 - End Time 2025-02-01 15:35:05 [2025-02-01 15:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379295', 'tblTempUsageDetail_20' ) start [2025-02-01 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379295', 'tblTempUsageDetail_20' ) end [2025-02-01 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379295', 'tblTempVendorCDR_20' ) start [2025-02-01 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379295', 'tblTempVendorCDR_20' ) end [2025-02-01 15:35:18] Production.INFO: ProcessCDR(1,14379295,1,1,2) [2025-02-01 15:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379295', 'tblTempUsageDetail_20' ) start [2025-02-01 15:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379295', 'tblTempUsageDetail_20' ) end [2025-02-01 15:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:35:23] Production.INFO: ==25400== Releasing lock... [2025-02-01 15:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:35:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:36:05 [end_date_ymd] => 2025-02-01 15:36:05 [RateCDR] => 1 ) [2025-02-01 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:36:05' and `end` < '2025-02-01 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:36:18] Production.INFO: count ==1565 [2025-02-01 15:36:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:36:05 - End Time 2025-02-01 15:36:05 [2025-02-01 15:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379300', 'tblTempUsageDetail_20' ) start [2025-02-01 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379300', 'tblTempUsageDetail_20' ) end [2025-02-01 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379300', 'tblTempVendorCDR_20' ) start [2025-02-01 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379300', 'tblTempVendorCDR_20' ) end [2025-02-01 15:36:18] Production.INFO: ProcessCDR(1,14379300,1,1,2) [2025-02-01 15:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379300', 'tblTempUsageDetail_20' ) start [2025-02-01 15:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379300', 'tblTempUsageDetail_20' ) end [2025-02-01 15:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:36:21] Production.INFO: ==25518== Releasing lock... [2025-02-01 15:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:36:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:37:05 [end_date_ymd] => 2025-02-01 15:37:05 [RateCDR] => 1 ) [2025-02-01 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-01 12:37:05' and `end` < '2025-02-01 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-01 15:37:18] Production.INFO: count ==1563 [2025-02-01 15:37:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:37:05 - End Time 2025-02-01 15:37:05 [2025-02-01 15:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379305', 'tblTempUsageDetail_20' ) start [2025-02-01 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379305', 'tblTempUsageDetail_20' ) end [2025-02-01 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379305', 'tblTempVendorCDR_20' ) start [2025-02-01 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379305', 'tblTempVendorCDR_20' ) end [2025-02-01 15:37:18] Production.INFO: ProcessCDR(1,14379305,1,1,2) [2025-02-01 15:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379305', 'tblTempUsageDetail_20' ) start [2025-02-01 15:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379305', 'tblTempUsageDetail_20' ) end [2025-02-01 15:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:37:21] Production.INFO: ==25591== Releasing lock... [2025-02-01 15:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:37:21] Production.INFO: 40 MB #Memory Used# [2025-02-01 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:38:05 [end_date_ymd] => 2025-02-01 15:38:05 [RateCDR] => 1 ) [2025-02-01 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:38:05' and `end` < '2025-02-01 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:38:19] Production.INFO: count ==1560 [2025-02-01 15:38:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:38:05 - End Time 2025-02-01 15:38:05 [2025-02-01 15:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379310', 'tblTempUsageDetail_20' ) start [2025-02-01 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379310', 'tblTempUsageDetail_20' ) end [2025-02-01 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379310', 'tblTempVendorCDR_20' ) start [2025-02-01 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379310', 'tblTempVendorCDR_20' ) end [2025-02-01 15:38:19] Production.INFO: ProcessCDR(1,14379310,1,1,2) [2025-02-01 15:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379310', 'tblTempUsageDetail_20' ) start [2025-02-01 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379310', 'tblTempUsageDetail_20' ) end [2025-02-01 15:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:38:22] Production.INFO: ==25670== Releasing lock... [2025-02-01 15:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:38:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:39:05 [end_date_ymd] => 2025-02-01 15:39:05 [RateCDR] => 1 ) [2025-02-01 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-01 12:39:05' and `end` < '2025-02-01 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-01 15:39:18] Production.INFO: count ==1556 [2025-02-01 15:39:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:39:05 - End Time 2025-02-01 15:39:05 [2025-02-01 15:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379315', 'tblTempUsageDetail_20' ) start [2025-02-01 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379315', 'tblTempUsageDetail_20' ) end [2025-02-01 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379315', 'tblTempVendorCDR_20' ) start [2025-02-01 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379315', 'tblTempVendorCDR_20' ) end [2025-02-01 15:39:18] Production.INFO: ProcessCDR(1,14379315,1,1,2) [2025-02-01 15:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379315', 'tblTempUsageDetail_20' ) start [2025-02-01 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379315', 'tblTempUsageDetail_20' ) end [2025-02-01 15:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:39:23] Production.INFO: ==25749== Releasing lock... [2025-02-01 15:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:39:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:40:05 [end_date_ymd] => 2025-02-01 15:40:05 [RateCDR] => 1 ) [2025-02-01 15: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-01 12:40:05' and `end` < '2025-02-01 15: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-01 15:40:18] Production.INFO: count ==1555 [2025-02-01 15:40:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:40:05 - End Time 2025-02-01 15:40:05 [2025-02-01 15:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379320', 'tblTempUsageDetail_20' ) start [2025-02-01 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379320', 'tblTempUsageDetail_20' ) end [2025-02-01 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379320', 'tblTempVendorCDR_20' ) start [2025-02-01 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379320', 'tblTempVendorCDR_20' ) end [2025-02-01 15:40:19] Production.INFO: ProcessCDR(1,14379320,1,1,2) [2025-02-01 15:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379320', 'tblTempUsageDetail_20' ) start [2025-02-01 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379320', 'tblTempUsageDetail_20' ) end [2025-02-01 15:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:40:22] Production.INFO: ==25825== Releasing lock... [2025-02-01 15:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:40:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:41:05 [end_date_ymd] => 2025-02-01 15:41:05 [RateCDR] => 1 ) [2025-02-01 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-01 12:41:05' and `end` < '2025-02-01 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-01 15:41:18] Production.INFO: count ==1593 [2025-02-01 15:41:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:41:05 - End Time 2025-02-01 15:41:05 [2025-02-01 15:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379326', 'tblTempUsageDetail_20' ) start [2025-02-01 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379326', 'tblTempUsageDetail_20' ) end [2025-02-01 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379326', 'tblTempVendorCDR_20' ) start [2025-02-01 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379326', 'tblTempVendorCDR_20' ) end [2025-02-01 15:41:18] Production.INFO: ProcessCDR(1,14379326,1,1,2) [2025-02-01 15:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379326', 'tblTempUsageDetail_20' ) start [2025-02-01 15:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379326', 'tblTempUsageDetail_20' ) end [2025-02-01 15:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:41:22] Production.INFO: ==25903== Releasing lock... [2025-02-01 15:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:41:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:42:05 [end_date_ymd] => 2025-02-01 15:42:05 [RateCDR] => 1 ) [2025-02-01 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:42:05' and `end` < '2025-02-01 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-01 15:42:18] Production.INFO: count ==1580 [2025-02-01 15:42:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:42:05 - End Time 2025-02-01 15:42:05 [2025-02-01 15:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379331', 'tblTempUsageDetail_20' ) start [2025-02-01 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379331', 'tblTempUsageDetail_20' ) end [2025-02-01 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379331', 'tblTempVendorCDR_20' ) start [2025-02-01 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379331', 'tblTempVendorCDR_20' ) end [2025-02-01 15:42:18] Production.INFO: ProcessCDR(1,14379331,1,1,2) [2025-02-01 15:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379331', 'tblTempUsageDetail_20' ) start [2025-02-01 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379331', 'tblTempUsageDetail_20' ) end [2025-02-01 15:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:42:23] Production.INFO: ==25977== Releasing lock... [2025-02-01 15:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:42:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:43:05 [end_date_ymd] => 2025-02-01 15:43:05 [RateCDR] => 1 ) [2025-02-01 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-01 12:43:05' and `end` < '2025-02-01 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-01 15:43:18] Production.INFO: count ==1581 [2025-02-01 15:43:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:43:05 - End Time 2025-02-01 15:43:05 [2025-02-01 15:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379336', 'tblTempUsageDetail_20' ) start [2025-02-01 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379336', 'tblTempUsageDetail_20' ) end [2025-02-01 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379336', 'tblTempVendorCDR_20' ) start [2025-02-01 15:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379336', 'tblTempVendorCDR_20' ) end [2025-02-01 15:43:19] Production.INFO: ProcessCDR(1,14379336,1,1,2) [2025-02-01 15:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379336', 'tblTempUsageDetail_20' ) start [2025-02-01 15:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379336', 'tblTempUsageDetail_20' ) end [2025-02-01 15:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:43:23] Production.INFO: ==26052== Releasing lock... [2025-02-01 15:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:43:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:44:06 [end_date_ymd] => 2025-02-01 15:44:06 [RateCDR] => 1 ) [2025-02-01 15: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-01 12:44:06' and `end` < '2025-02-01 15: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-01 15:44:19] Production.INFO: count ==1579 [2025-02-01 15:44:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:44:06 - End Time 2025-02-01 15:44:06 [2025-02-01 15:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379341', 'tblTempUsageDetail_20' ) start [2025-02-01 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379341', 'tblTempUsageDetail_20' ) end [2025-02-01 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379341', 'tblTempVendorCDR_20' ) start [2025-02-01 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379341', 'tblTempVendorCDR_20' ) end [2025-02-01 15:44:19] Production.INFO: ProcessCDR(1,14379341,1,1,2) [2025-02-01 15:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379341', 'tblTempUsageDetail_20' ) start [2025-02-01 15:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379341', 'tblTempUsageDetail_20' ) end [2025-02-01 15:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:44:24] Production.INFO: ==26129== Releasing lock... [2025-02-01 15:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:44:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:45:05 [end_date_ymd] => 2025-02-01 15:45:05 [RateCDR] => 1 ) [2025-02-01 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-01 12:45:05' and `end` < '2025-02-01 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-01 15:45:18] Production.INFO: count ==1582 [2025-02-01 15:45:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:45:05 - End Time 2025-02-01 15:45:05 [2025-02-01 15:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379346', 'tblTempUsageDetail_20' ) start [2025-02-01 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379346', 'tblTempUsageDetail_20' ) end [2025-02-01 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379346', 'tblTempVendorCDR_20' ) start [2025-02-01 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379346', 'tblTempVendorCDR_20' ) end [2025-02-01 15:45:19] Production.INFO: ProcessCDR(1,14379346,1,1,2) [2025-02-01 15:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379346', 'tblTempUsageDetail_20' ) start [2025-02-01 15:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379346', 'tblTempUsageDetail_20' ) end [2025-02-01 15:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:45:24] Production.INFO: ==26202== Releasing lock... [2025-02-01 15:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:45:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:46:06 [end_date_ymd] => 2025-02-01 15:46:06 [RateCDR] => 1 ) [2025-02-01 15:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:46:06' and `end` < '2025-02-01 15:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:46:18] Production.INFO: count ==1583 [2025-02-01 15:46:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:46:06 - End Time 2025-02-01 15:46:06 [2025-02-01 15:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379351', 'tblTempUsageDetail_20' ) start [2025-02-01 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379351', 'tblTempUsageDetail_20' ) end [2025-02-01 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379351', 'tblTempVendorCDR_20' ) start [2025-02-01 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379351', 'tblTempVendorCDR_20' ) end [2025-02-01 15:46:19] Production.INFO: ProcessCDR(1,14379351,1,1,2) [2025-02-01 15:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379351', 'tblTempUsageDetail_20' ) start [2025-02-01 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379351', 'tblTempUsageDetail_20' ) end [2025-02-01 15:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:46:24] Production.INFO: ==26279== Releasing lock... [2025-02-01 15:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:46:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:47:05 [end_date_ymd] => 2025-02-01 15:47:05 [RateCDR] => 1 ) [2025-02-01 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-01 12:47:05' and `end` < '2025-02-01 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-01 15:47:18] Production.INFO: count ==1585 [2025-02-01 15:47:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:47:05 - End Time 2025-02-01 15:47:05 [2025-02-01 15:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379356', 'tblTempUsageDetail_20' ) start [2025-02-01 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379356', 'tblTempUsageDetail_20' ) end [2025-02-01 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379356', 'tblTempVendorCDR_20' ) start [2025-02-01 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379356', 'tblTempVendorCDR_20' ) end [2025-02-01 15:47:18] Production.INFO: ProcessCDR(1,14379356,1,1,2) [2025-02-01 15:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379356', 'tblTempUsageDetail_20' ) start [2025-02-01 15:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379356', 'tblTempUsageDetail_20' ) end [2025-02-01 15:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:47:22] Production.INFO: ==26363== Releasing lock... [2025-02-01 15:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:47:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:48:05 [end_date_ymd] => 2025-02-01 15:48:05 [RateCDR] => 1 ) [2025-02-01 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:48:05' and `end` < '2025-02-01 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-01 15:48:18] Production.INFO: count ==1568 [2025-02-01 15:48:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:48:05 - End Time 2025-02-01 15:48:05 [2025-02-01 15:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379361', 'tblTempUsageDetail_20' ) start [2025-02-01 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379361', 'tblTempUsageDetail_20' ) end [2025-02-01 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379361', 'tblTempVendorCDR_20' ) start [2025-02-01 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379361', 'tblTempVendorCDR_20' ) end [2025-02-01 15:48:19] Production.INFO: ProcessCDR(1,14379361,1,1,2) [2025-02-01 15:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379361', 'tblTempUsageDetail_20' ) start [2025-02-01 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379361', 'tblTempUsageDetail_20' ) end [2025-02-01 15:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:48:22] Production.INFO: ==26437== Releasing lock... [2025-02-01 15:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:48:22] Production.INFO: 40 MB #Memory Used# [2025-02-01 15:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:49:04 [end_date_ymd] => 2025-02-01 15:49:04 [RateCDR] => 1 ) [2025-02-01 15:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:49:04' and `end` < '2025-02-01 15:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:49:18] Production.INFO: count ==1564 [2025-02-01 15:49:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:49:04 - End Time 2025-02-01 15:49:04 [2025-02-01 15:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379366', 'tblTempUsageDetail_20' ) start [2025-02-01 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379366', 'tblTempUsageDetail_20' ) end [2025-02-01 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379366', 'tblTempVendorCDR_20' ) start [2025-02-01 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379366', 'tblTempVendorCDR_20' ) end [2025-02-01 15:49:18] Production.INFO: ProcessCDR(1,14379366,1,1,2) [2025-02-01 15:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379366', 'tblTempUsageDetail_20' ) start [2025-02-01 15:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379366', 'tblTempUsageDetail_20' ) end [2025-02-01 15:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:49:21] Production.INFO: ==26515== Releasing lock... [2025-02-01 15:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:49:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:50:06 [end_date_ymd] => 2025-02-01 15:50:06 [RateCDR] => 1 ) [2025-02-01 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:50:06' and `end` < '2025-02-01 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:50:18] Production.INFO: count ==1559 [2025-02-01 15:50:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:50:06 - End Time 2025-02-01 15:50:06 [2025-02-01 15:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379372', 'tblTempUsageDetail_20' ) start [2025-02-01 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379372', 'tblTempUsageDetail_20' ) end [2025-02-01 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379372', 'tblTempVendorCDR_20' ) start [2025-02-01 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379372', 'tblTempVendorCDR_20' ) end [2025-02-01 15:50:19] Production.INFO: ProcessCDR(1,14379372,1,1,2) [2025-02-01 15:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379372', 'tblTempUsageDetail_20' ) start [2025-02-01 15:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379372', 'tblTempUsageDetail_20' ) end [2025-02-01 15:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:50:22] Production.INFO: ==26594== Releasing lock... [2025-02-01 15:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:50:22] Production.INFO: 40 MB #Memory Used# [2025-02-01 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:51:06 [end_date_ymd] => 2025-02-01 15:51:06 [RateCDR] => 1 ) [2025-02-01 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-01 12:51:06' and `end` < '2025-02-01 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-01 15:51:19] Production.INFO: count ==1553 [2025-02-01 15:51:20] Production.ERROR: pbx CDR StartTime 2025-02-01 12:51:06 - End Time 2025-02-01 15:51:06 [2025-02-01 15:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379377', 'tblTempUsageDetail_20' ) start [2025-02-01 15:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379377', 'tblTempUsageDetail_20' ) end [2025-02-01 15:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379377', 'tblTempVendorCDR_20' ) start [2025-02-01 15:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379377', 'tblTempVendorCDR_20' ) end [2025-02-01 15:51:20] Production.INFO: ProcessCDR(1,14379377,1,1,2) [2025-02-01 15:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379377', 'tblTempUsageDetail_20' ) start [2025-02-01 15:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379377', 'tblTempUsageDetail_20' ) end [2025-02-01 15:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:51:24] Production.INFO: ==26714== Releasing lock... [2025-02-01 15:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:51:24] Production.INFO: 40 MB #Memory Used# [2025-02-01 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:52:05 [end_date_ymd] => 2025-02-01 15:52:05 [RateCDR] => 1 ) [2025-02-01 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:52:05' and `end` < '2025-02-01 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:52:18] Production.INFO: count ==1525 [2025-02-01 15:52:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:52:05 - End Time 2025-02-01 15:52:05 [2025-02-01 15:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379382', 'tblTempUsageDetail_20' ) start [2025-02-01 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379382', 'tblTempUsageDetail_20' ) end [2025-02-01 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379382', 'tblTempVendorCDR_20' ) start [2025-02-01 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379382', 'tblTempVendorCDR_20' ) end [2025-02-01 15:52:18] Production.INFO: ProcessCDR(1,14379382,1,1,2) [2025-02-01 15:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379382', 'tblTempUsageDetail_20' ) start [2025-02-01 15:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379382', 'tblTempUsageDetail_20' ) end [2025-02-01 15:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:52:21] Production.INFO: ==26788== Releasing lock... [2025-02-01 15:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:52:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-01 15:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:53:06 [end_date_ymd] => 2025-02-01 15:53:06 [RateCDR] => 1 ) [2025-02-01 15:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:53:06' and `end` < '2025-02-01 15: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-01 15:53:20] Production.INFO: count ==1518 [2025-02-01 15:53:20] Production.ERROR: pbx CDR StartTime 2025-02-01 12:53:06 - End Time 2025-02-01 15:53:06 [2025-02-01 15:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379387', 'tblTempUsageDetail_20' ) start [2025-02-01 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379387', 'tblTempUsageDetail_20' ) end [2025-02-01 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379387', 'tblTempVendorCDR_20' ) start [2025-02-01 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379387', 'tblTempVendorCDR_20' ) end [2025-02-01 15:53:20] Production.INFO: ProcessCDR(1,14379387,1,1,2) [2025-02-01 15:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379387', 'tblTempUsageDetail_20' ) start [2025-02-01 15:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379387', 'tblTempUsageDetail_20' ) end [2025-02-01 15:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:53:24] Production.INFO: ==26867== Releasing lock... [2025-02-01 15:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:53:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-01 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:54:05 [end_date_ymd] => 2025-02-01 15:54:05 [RateCDR] => 1 ) [2025-02-01 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:54:05' and `end` < '2025-02-01 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-01 15:54:19] Production.INFO: count ==1516 [2025-02-01 15:54:20] Production.ERROR: pbx CDR StartTime 2025-02-01 12:54:05 - End Time 2025-02-01 15:54:05 [2025-02-01 15:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379392', 'tblTempUsageDetail_20' ) start [2025-02-01 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379392', 'tblTempUsageDetail_20' ) end [2025-02-01 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379392', 'tblTempVendorCDR_20' ) start [2025-02-01 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379392', 'tblTempVendorCDR_20' ) end [2025-02-01 15:54:20] Production.INFO: ProcessCDR(1,14379392,1,1,2) [2025-02-01 15:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379392', 'tblTempUsageDetail_20' ) start [2025-02-01 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379392', 'tblTempUsageDetail_20' ) end [2025-02-01 15:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:54:23] Production.INFO: ==26940== Releasing lock... [2025-02-01 15:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:54:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-01 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:55:06 [end_date_ymd] => 2025-02-01 15:55:06 [RateCDR] => 1 ) [2025-02-01 15:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:55:06' and `end` < '2025-02-01 15:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:55:19] Production.INFO: count ==1520 [2025-02-01 15:55:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:55:06 - End Time 2025-02-01 15:55:06 [2025-02-01 15:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379397', 'tblTempUsageDetail_20' ) start [2025-02-01 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379397', 'tblTempUsageDetail_20' ) end [2025-02-01 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379397', 'tblTempVendorCDR_20' ) start [2025-02-01 15:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379397', 'tblTempVendorCDR_20' ) end [2025-02-01 15:55:19] Production.INFO: ProcessCDR(1,14379397,1,1,2) [2025-02-01 15:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379397', 'tblTempUsageDetail_20' ) start [2025-02-01 15:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379397', 'tblTempUsageDetail_20' ) end [2025-02-01 15:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:55:24] Production.INFO: ==27017== Releasing lock... [2025-02-01 15:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:55:24] Production.INFO: 40 MB #Memory Used# [2025-02-01 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:56:05 [end_date_ymd] => 2025-02-01 15:56:05 [RateCDR] => 1 ) [2025-02-01 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-01 12:56:05' and `end` < '2025-02-01 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-01 15:56:18] Production.INFO: count ==1514 [2025-02-01 15:56:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:56:05 - End Time 2025-02-01 15:56:05 [2025-02-01 15:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379402', 'tblTempUsageDetail_20' ) start [2025-02-01 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379402', 'tblTempUsageDetail_20' ) end [2025-02-01 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379402', 'tblTempVendorCDR_20' ) start [2025-02-01 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379402', 'tblTempVendorCDR_20' ) end [2025-02-01 15:56:19] Production.INFO: ProcessCDR(1,14379402,1,1,2) [2025-02-01 15:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379402', 'tblTempUsageDetail_20' ) start [2025-02-01 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379402', 'tblTempUsageDetail_20' ) end [2025-02-01 15:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:56:22] Production.INFO: ==27090== Releasing lock... [2025-02-01 15:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:56:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-01 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:57:06 [end_date_ymd] => 2025-02-01 15:57:06 [RateCDR] => 1 ) [2025-02-01 15:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:57:06' and `end` < '2025-02-01 15:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:57:19] Production.INFO: count ==1513 [2025-02-01 15:57:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:57:06 - End Time 2025-02-01 15:57:06 [2025-02-01 15:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379407', 'tblTempUsageDetail_20' ) start [2025-02-01 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379407', 'tblTempUsageDetail_20' ) end [2025-02-01 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379407', 'tblTempVendorCDR_20' ) start [2025-02-01 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379407', 'tblTempVendorCDR_20' ) end [2025-02-01 15:57:19] Production.INFO: ProcessCDR(1,14379407,1,1,2) [2025-02-01 15:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379407', 'tblTempUsageDetail_20' ) start [2025-02-01 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379407', 'tblTempUsageDetail_20' ) end [2025-02-01 15:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:57:24] Production.INFO: ==27168== Releasing lock... [2025-02-01 15:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:57:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-01 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:58:05 [end_date_ymd] => 2025-02-01 15:58:05 [RateCDR] => 1 ) [2025-02-01 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:58:05' and `end` < '2025-02-01 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:58:18] Production.INFO: count ==1493 [2025-02-01 15:58:18] Production.ERROR: pbx CDR StartTime 2025-02-01 12:58:05 - End Time 2025-02-01 15:58:05 [2025-02-01 15:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379412', 'tblTempUsageDetail_20' ) start [2025-02-01 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379412', 'tblTempUsageDetail_20' ) end [2025-02-01 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379412', 'tblTempVendorCDR_20' ) start [2025-02-01 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379412', 'tblTempVendorCDR_20' ) end [2025-02-01 15:58:18] Production.INFO: ProcessCDR(1,14379412,1,1,2) [2025-02-01 15:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379412', 'tblTempUsageDetail_20' ) start [2025-02-01 15:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379412', 'tblTempUsageDetail_20' ) end [2025-02-01 15:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:58:21] Production.INFO: ==27240== Releasing lock... [2025-02-01 15:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:58:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-01 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 12:59:05 [end_date_ymd] => 2025-02-01 15:59:05 [RateCDR] => 1 ) [2025-02-01 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 12:59:05' and `end` < '2025-02-01 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 15:59:18] Production.INFO: count ==1487 [2025-02-01 15:59:19] Production.ERROR: pbx CDR StartTime 2025-02-01 12:59:05 - End Time 2025-02-01 15:59:05 [2025-02-01 15:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379417', 'tblTempUsageDetail_20' ) start [2025-02-01 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379417', 'tblTempUsageDetail_20' ) end [2025-02-01 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379417', 'tblTempVendorCDR_20' ) start [2025-02-01 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379417', 'tblTempVendorCDR_20' ) end [2025-02-01 15:59:19] Production.INFO: ProcessCDR(1,14379417,1,1,2) [2025-02-01 15:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 15:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 15:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379417', 'tblTempUsageDetail_20' ) start [2025-02-01 15:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379417', 'tblTempUsageDetail_20' ) end [2025-02-01 15:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 15:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 15:59:22] Production.INFO: ==27316== Releasing lock... [2025-02-01 15:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 15:59:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:00:06 [end_date_ymd] => 2025-02-01 16:00:06 [RateCDR] => 1 ) [2025-02-01 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-01 13:00:06' and `end` < '2025-02-01 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-01 16:00:19] Production.INFO: count ==1487 [2025-02-01 16:00:20] Production.ERROR: pbx CDR StartTime 2025-02-01 13:00:06 - End Time 2025-02-01 16:00:06 [2025-02-01 16:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379423', 'tblTempUsageDetail_20' ) start [2025-02-01 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379423', 'tblTempUsageDetail_20' ) end [2025-02-01 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379423', 'tblTempVendorCDR_20' ) start [2025-02-01 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379423', 'tblTempVendorCDR_20' ) end [2025-02-01 16:00:20] Production.INFO: ProcessCDR(1,14379423,1,1,2) [2025-02-01 16:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379423', 'tblTempUsageDetail_20' ) start [2025-02-01 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379423', 'tblTempUsageDetail_20' ) end [2025-02-01 16:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:00:23] Production.INFO: ==27391== Releasing lock... [2025-02-01 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:00:23] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:01:05 [end_date_ymd] => 2025-02-01 16:01:05 [RateCDR] => 1 ) [2025-02-01 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:01:05' and `end` < '2025-02-01 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:01:18] Production.INFO: count ==1478 [2025-02-01 16:01:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:01:05 - End Time 2025-02-01 16:01:05 [2025-02-01 16:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379428', 'tblTempUsageDetail_20' ) start [2025-02-01 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379428', 'tblTempUsageDetail_20' ) end [2025-02-01 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379428', 'tblTempVendorCDR_20' ) start [2025-02-01 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379428', 'tblTempVendorCDR_20' ) end [2025-02-01 16:01:18] Production.INFO: ProcessCDR(1,14379428,1,1,2) [2025-02-01 16:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379428', 'tblTempUsageDetail_20' ) start [2025-02-01 16:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379428', 'tblTempUsageDetail_20' ) end [2025-02-01 16:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:01:21] Production.INFO: ==27481== Releasing lock... [2025-02-01 16:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:01:21] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:02:06 [end_date_ymd] => 2025-02-01 16:02:06 [RateCDR] => 1 ) [2025-02-01 16:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:02:06' and `end` < '2025-02-01 16:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:02:20] Production.INFO: count ==1489 [2025-02-01 16:02:20] Production.ERROR: pbx CDR StartTime 2025-02-01 13:02:06 - End Time 2025-02-01 16:02:06 [2025-02-01 16:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379433', 'tblTempUsageDetail_20' ) start [2025-02-01 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379433', 'tblTempUsageDetail_20' ) end [2025-02-01 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379433', 'tblTempVendorCDR_20' ) start [2025-02-01 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379433', 'tblTempVendorCDR_20' ) end [2025-02-01 16:02:20] Production.INFO: ProcessCDR(1,14379433,1,1,2) [2025-02-01 16:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379433', 'tblTempUsageDetail_20' ) start [2025-02-01 16:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379433', 'tblTempUsageDetail_20' ) end [2025-02-01 16:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:02:25] Production.INFO: ==27558== Releasing lock... [2025-02-01 16:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:02:25] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:03:05 [end_date_ymd] => 2025-02-01 16:03:05 [RateCDR] => 1 ) [2025-02-01 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:03:05' and `end` < '2025-02-01 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:03:18] Production.INFO: count ==1480 [2025-02-01 16:03:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:03:05 - End Time 2025-02-01 16:03:05 [2025-02-01 16:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379438', 'tblTempUsageDetail_20' ) start [2025-02-01 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379438', 'tblTempUsageDetail_20' ) end [2025-02-01 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379438', 'tblTempVendorCDR_20' ) start [2025-02-01 16:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379438', 'tblTempVendorCDR_20' ) end [2025-02-01 16:03:19] Production.INFO: ProcessCDR(1,14379438,1,1,2) [2025-02-01 16:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379438', 'tblTempUsageDetail_20' ) start [2025-02-01 16:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379438', 'tblTempUsageDetail_20' ) end [2025-02-01 16:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:03:23] Production.INFO: ==27627== Releasing lock... [2025-02-01 16:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:03:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:04:06 [end_date_ymd] => 2025-02-01 16:04:06 [RateCDR] => 1 ) [2025-02-01 16:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:04:06' and `end` < '2025-02-01 16:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:04:19] Production.INFO: count ==1475 [2025-02-01 16:04:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:04:06 - End Time 2025-02-01 16:04:06 [2025-02-01 16:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379443', 'tblTempUsageDetail_20' ) start [2025-02-01 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379443', 'tblTempUsageDetail_20' ) end [2025-02-01 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379443', 'tblTempVendorCDR_20' ) start [2025-02-01 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379443', 'tblTempVendorCDR_20' ) end [2025-02-01 16:04:19] Production.INFO: ProcessCDR(1,14379443,1,1,2) [2025-02-01 16:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379443', 'tblTempUsageDetail_20' ) start [2025-02-01 16:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379443', 'tblTempUsageDetail_20' ) end [2025-02-01 16:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:04:24] Production.INFO: ==27703== Releasing lock... [2025-02-01 16:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:04:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:05:05 [end_date_ymd] => 2025-02-01 16:05:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:05:05' and `end` < '2025-02-01 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-01 16:05:18] Production.INFO: count ==1480 [2025-02-01 16:05:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:05:05 - End Time 2025-02-01 16:05:05 [2025-02-01 16:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379448', 'tblTempUsageDetail_20' ) start [2025-02-01 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379448', 'tblTempUsageDetail_20' ) end [2025-02-01 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379448', 'tblTempVendorCDR_20' ) start [2025-02-01 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379448', 'tblTempVendorCDR_20' ) end [2025-02-01 16:05:18] Production.INFO: ProcessCDR(1,14379448,1,1,2) [2025-02-01 16:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379448', 'tblTempUsageDetail_20' ) start [2025-02-01 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379448', 'tblTempUsageDetail_20' ) end [2025-02-01 16:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:05:22] Production.INFO: ==27774== Releasing lock... [2025-02-01 16:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:05:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:06:05 [end_date_ymd] => 2025-02-01 16:06:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:06:05' and `end` < '2025-02-01 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-01 16:06:19] Production.INFO: count ==1489 [2025-02-01 16:06:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:06:05 - End Time 2025-02-01 16:06:05 [2025-02-01 16:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379453', 'tblTempUsageDetail_20' ) start [2025-02-01 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379453', 'tblTempUsageDetail_20' ) end [2025-02-01 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379453', 'tblTempVendorCDR_20' ) start [2025-02-01 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379453', 'tblTempVendorCDR_20' ) end [2025-02-01 16:06:19] Production.INFO: ProcessCDR(1,14379453,1,1,2) [2025-02-01 16:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379453', 'tblTempUsageDetail_20' ) start [2025-02-01 16:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379453', 'tblTempUsageDetail_20' ) end [2025-02-01 16:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:06:23] Production.INFO: ==27852== Releasing lock... [2025-02-01 16:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:06:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:07:05 [end_date_ymd] => 2025-02-01 16:07:05 [RateCDR] => 1 ) [2025-02-01 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:07:05' and `end` < '2025-02-01 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:07:18] Production.INFO: count ==1488 [2025-02-01 16:07:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:07:05 - End Time 2025-02-01 16:07:05 [2025-02-01 16:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379458', 'tblTempUsageDetail_20' ) start [2025-02-01 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379458', 'tblTempUsageDetail_20' ) end [2025-02-01 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379458', 'tblTempVendorCDR_20' ) start [2025-02-01 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379458', 'tblTempVendorCDR_20' ) end [2025-02-01 16:07:18] Production.INFO: ProcessCDR(1,14379458,1,1,2) [2025-02-01 16:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379458', 'tblTempUsageDetail_20' ) start [2025-02-01 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379458', 'tblTempUsageDetail_20' ) end [2025-02-01 16:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:07:23] Production.INFO: ==27982== Releasing lock... [2025-02-01 16:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:07:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:08:06 [end_date_ymd] => 2025-02-01 16:08:06 [RateCDR] => 1 ) [2025-02-01 16:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:08:06' and `end` < '2025-02-01 16:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:08:18] Production.INFO: count ==1491 [2025-02-01 16:08:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:08:06 - End Time 2025-02-01 16:08:06 [2025-02-01 16:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379463', 'tblTempUsageDetail_20' ) start [2025-02-01 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379463', 'tblTempUsageDetail_20' ) end [2025-02-01 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379463', 'tblTempVendorCDR_20' ) start [2025-02-01 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379463', 'tblTempVendorCDR_20' ) end [2025-02-01 16:08:19] Production.INFO: ProcessCDR(1,14379463,1,1,2) [2025-02-01 16:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379463', 'tblTempUsageDetail_20' ) start [2025-02-01 16:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379463', 'tblTempUsageDetail_20' ) end [2025-02-01 16:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:08:23] Production.INFO: ==28063== Releasing lock... [2025-02-01 16:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:08:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-01 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:09:06 [end_date_ymd] => 2025-02-01 16:09:06 [RateCDR] => 1 ) [2025-02-01 16:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:09:06' and `end` < '2025-02-01 16:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:09:19] Production.INFO: count ==1486 [2025-02-01 16:09:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:09:06 - End Time 2025-02-01 16:09:06 [2025-02-01 16:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379468', 'tblTempUsageDetail_20' ) start [2025-02-01 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379468', 'tblTempUsageDetail_20' ) end [2025-02-01 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379468', 'tblTempVendorCDR_20' ) start [2025-02-01 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379468', 'tblTempVendorCDR_20' ) end [2025-02-01 16:09:19] Production.INFO: ProcessCDR(1,14379468,1,1,2) [2025-02-01 16:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379468', 'tblTempUsageDetail_20' ) start [2025-02-01 16:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379468', 'tblTempUsageDetail_20' ) end [2025-02-01 16:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:09:24] Production.INFO: ==28138== Releasing lock... [2025-02-01 16:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:09:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:10:06 [end_date_ymd] => 2025-02-01 16:10:06 [RateCDR] => 1 ) [2025-02-01 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-01 13:10:06' and `end` < '2025-02-01 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-01 16:10:18] Production.INFO: count ==1483 [2025-02-01 16:10:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:10:06 - End Time 2025-02-01 16:10:06 [2025-02-01 16:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379474', 'tblTempUsageDetail_20' ) start [2025-02-01 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379474', 'tblTempUsageDetail_20' ) end [2025-02-01 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379474', 'tblTempVendorCDR_20' ) start [2025-02-01 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379474', 'tblTempVendorCDR_20' ) end [2025-02-01 16:10:19] Production.INFO: ProcessCDR(1,14379474,1,1,2) [2025-02-01 16:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379474', 'tblTempUsageDetail_20' ) start [2025-02-01 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379474', 'tblTempUsageDetail_20' ) end [2025-02-01 16:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:10:23] Production.INFO: ==28212== Releasing lock... [2025-02-01 16:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:10:23] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:11:05 [end_date_ymd] => 2025-02-01 16:11:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:11:05' and `end` < '2025-02-01 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-01 16:11:18] Production.INFO: count ==1474 [2025-02-01 16:11:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:11:05 - End Time 2025-02-01 16:11:05 [2025-02-01 16:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379479', 'tblTempUsageDetail_20' ) start [2025-02-01 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379479', 'tblTempUsageDetail_20' ) end [2025-02-01 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379479', 'tblTempVendorCDR_20' ) start [2025-02-01 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379479', 'tblTempVendorCDR_20' ) end [2025-02-01 16:11:18] Production.INFO: ProcessCDR(1,14379479,1,1,2) [2025-02-01 16:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379479', 'tblTempUsageDetail_20' ) start [2025-02-01 16:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379479', 'tblTempUsageDetail_20' ) end [2025-02-01 16:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:11:22] Production.INFO: ==28285== Releasing lock... [2025-02-01 16:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:11:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:12:05 [end_date_ymd] => 2025-02-01 16:12:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:12:05' and `end` < '2025-02-01 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-01 16:12:18] Production.INFO: count ==1475 [2025-02-01 16:12:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:12:05 - End Time 2025-02-01 16:12:05 [2025-02-01 16:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379484', 'tblTempUsageDetail_20' ) start [2025-02-01 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379484', 'tblTempUsageDetail_20' ) end [2025-02-01 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379484', 'tblTempVendorCDR_20' ) start [2025-02-01 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379484', 'tblTempVendorCDR_20' ) end [2025-02-01 16:12:18] Production.INFO: ProcessCDR(1,14379484,1,1,2) [2025-02-01 16:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379484', 'tblTempUsageDetail_20' ) start [2025-02-01 16:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379484', 'tblTempUsageDetail_20' ) end [2025-02-01 16:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:12:23] Production.INFO: ==28357== Releasing lock... [2025-02-01 16:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:12:23] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:13:05 [end_date_ymd] => 2025-02-01 16:13:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:13:05' and `end` < '2025-02-01 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-01 16:13:18] Production.INFO: count ==1475 [2025-02-01 16:13:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:13:05 - End Time 2025-02-01 16:13:05 [2025-02-01 16:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379489', 'tblTempUsageDetail_20' ) start [2025-02-01 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379489', 'tblTempUsageDetail_20' ) end [2025-02-01 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379489', 'tblTempVendorCDR_20' ) start [2025-02-01 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379489', 'tblTempVendorCDR_20' ) end [2025-02-01 16:13:18] Production.INFO: ProcessCDR(1,14379489,1,1,2) [2025-02-01 16:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379489', 'tblTempUsageDetail_20' ) start [2025-02-01 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379489', 'tblTempUsageDetail_20' ) end [2025-02-01 16:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:13:23] Production.INFO: ==28429== Releasing lock... [2025-02-01 16:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:13:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:14:05 [end_date_ymd] => 2025-02-01 16:14:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:14:05' and `end` < '2025-02-01 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-01 16:14:18] Production.INFO: count ==1474 [2025-02-01 16:14:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:14:05 - End Time 2025-02-01 16:14:05 [2025-02-01 16:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379494', 'tblTempUsageDetail_20' ) start [2025-02-01 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379494', 'tblTempUsageDetail_20' ) end [2025-02-01 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379494', 'tblTempVendorCDR_20' ) start [2025-02-01 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379494', 'tblTempVendorCDR_20' ) end [2025-02-01 16:14:19] Production.INFO: ProcessCDR(1,14379494,1,1,2) [2025-02-01 16:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379494', 'tblTempUsageDetail_20' ) start [2025-02-01 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379494', 'tblTempUsageDetail_20' ) end [2025-02-01 16:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:14:23] Production.INFO: ==28504== Releasing lock... [2025-02-01 16:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:14:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:15:05 [end_date_ymd] => 2025-02-01 16:15:05 [RateCDR] => 1 ) [2025-02-01 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:15:05' and `end` < '2025-02-01 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:15:18] Production.INFO: count ==1469 [2025-02-01 16:15:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:15:05 - End Time 2025-02-01 16:15:05 [2025-02-01 16:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379499', 'tblTempUsageDetail_20' ) start [2025-02-01 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379499', 'tblTempUsageDetail_20' ) end [2025-02-01 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379499', 'tblTempVendorCDR_20' ) start [2025-02-01 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379499', 'tblTempVendorCDR_20' ) end [2025-02-01 16:15:18] Production.INFO: ProcessCDR(1,14379499,1,1,2) [2025-02-01 16:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379499', 'tblTempUsageDetail_20' ) start [2025-02-01 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379499', 'tblTempUsageDetail_20' ) end [2025-02-01 16:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:15:23] Production.INFO: ==28574== Releasing lock... [2025-02-01 16:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:15:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-01 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:16:06 [end_date_ymd] => 2025-02-01 16:16:06 [RateCDR] => 1 ) [2025-02-01 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-01 13:16:06' and `end` < '2025-02-01 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-01 16:16:19] Production.INFO: count ==1467 [2025-02-01 16:16:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:16:06 - End Time 2025-02-01 16:16:06 [2025-02-01 16:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379504', 'tblTempUsageDetail_20' ) start [2025-02-01 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379504', 'tblTempUsageDetail_20' ) end [2025-02-01 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379504', 'tblTempVendorCDR_20' ) start [2025-02-01 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379504', 'tblTempVendorCDR_20' ) end [2025-02-01 16:16:19] Production.INFO: ProcessCDR(1,14379504,1,1,2) [2025-02-01 16:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379504', 'tblTempUsageDetail_20' ) start [2025-02-01 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379504', 'tblTempUsageDetail_20' ) end [2025-02-01 16:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:16:23] Production.INFO: ==28646== Releasing lock... [2025-02-01 16:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:16:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:17:05 [end_date_ymd] => 2025-02-01 16:17:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:17:05' and `end` < '2025-02-01 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-01 16:17:19] Production.INFO: count ==1464 [2025-02-01 16:17:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:17:05 - End Time 2025-02-01 16:17:05 [2025-02-01 16:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379509', 'tblTempUsageDetail_20' ) start [2025-02-01 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379509', 'tblTempUsageDetail_20' ) end [2025-02-01 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379509', 'tblTempVendorCDR_20' ) start [2025-02-01 16:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379509', 'tblTempVendorCDR_20' ) end [2025-02-01 16:17:19] Production.INFO: ProcessCDR(1,14379509,1,1,2) [2025-02-01 16:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379509', 'tblTempUsageDetail_20' ) start [2025-02-01 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379509', 'tblTempUsageDetail_20' ) end [2025-02-01 16:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:17:22] Production.INFO: ==28715== Releasing lock... [2025-02-01 16:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:17:22] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:18:05 [end_date_ymd] => 2025-02-01 16:18:05 [RateCDR] => 1 ) [2025-02-01 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:18:05' and `end` < '2025-02-01 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:18:18] Production.INFO: count ==1462 [2025-02-01 16:18:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:18:05 - End Time 2025-02-01 16:18:05 [2025-02-01 16:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379514', 'tblTempUsageDetail_20' ) start [2025-02-01 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379514', 'tblTempUsageDetail_20' ) end [2025-02-01 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379514', 'tblTempVendorCDR_20' ) start [2025-02-01 16:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379514', 'tblTempVendorCDR_20' ) end [2025-02-01 16:18:18] Production.INFO: ProcessCDR(1,14379514,1,1,2) [2025-02-01 16:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379514', 'tblTempUsageDetail_20' ) start [2025-02-01 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379514', 'tblTempUsageDetail_20' ) end [2025-02-01 16:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:18:23] Production.INFO: ==28796== Releasing lock... [2025-02-01 16:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:18:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 16:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:19:04 [end_date_ymd] => 2025-02-01 16:19:04 [RateCDR] => 1 ) [2025-02-01 16:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:19:04' and `end` < '2025-02-01 16:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:19:17] Production.INFO: count ==1461 [2025-02-01 16:19:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:19:04 - End Time 2025-02-01 16:19:04 [2025-02-01 16:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379519', 'tblTempUsageDetail_20' ) start [2025-02-01 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379519', 'tblTempUsageDetail_20' ) end [2025-02-01 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379519', 'tblTempVendorCDR_20' ) start [2025-02-01 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379519', 'tblTempVendorCDR_20' ) end [2025-02-01 16:19:18] Production.INFO: ProcessCDR(1,14379519,1,1,2) [2025-02-01 16:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379519', 'tblTempUsageDetail_20' ) start [2025-02-01 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379519', 'tblTempUsageDetail_20' ) end [2025-02-01 16:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:19:22] Production.INFO: ==28868== Releasing lock... [2025-02-01 16:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:19:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:20:06 [end_date_ymd] => 2025-02-01 16:20:06 [RateCDR] => 1 ) [2025-02-01 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-01 13:20:06' and `end` < '2025-02-01 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-01 16:20:19] Production.INFO: count ==1456 [2025-02-01 16:20:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:20:06 - End Time 2025-02-01 16:20:06 [2025-02-01 16:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379525', 'tblTempUsageDetail_20' ) start [2025-02-01 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379525', 'tblTempUsageDetail_20' ) end [2025-02-01 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379525', 'tblTempVendorCDR_20' ) start [2025-02-01 16:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379525', 'tblTempVendorCDR_20' ) end [2025-02-01 16:20:19] Production.INFO: ProcessCDR(1,14379525,1,1,2) [2025-02-01 16:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379525', 'tblTempUsageDetail_20' ) start [2025-02-01 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379525', 'tblTempUsageDetail_20' ) end [2025-02-01 16:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:20:23] Production.INFO: ==28942== Releasing lock... [2025-02-01 16:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:20:23] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:21:05 [end_date_ymd] => 2025-02-01 16:21:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:21:05' and `end` < '2025-02-01 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-01 16:21:18] Production.INFO: count ==1444 [2025-02-01 16:21:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:21:05 - End Time 2025-02-01 16:21:05 [2025-02-01 16:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379530', 'tblTempUsageDetail_20' ) start [2025-02-01 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379530', 'tblTempUsageDetail_20' ) end [2025-02-01 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379530', 'tblTempVendorCDR_20' ) start [2025-02-01 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379530', 'tblTempVendorCDR_20' ) end [2025-02-01 16:21:18] Production.INFO: ProcessCDR(1,14379530,1,1,2) [2025-02-01 16:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379530', 'tblTempUsageDetail_20' ) start [2025-02-01 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379530', 'tblTempUsageDetail_20' ) end [2025-02-01 16:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:21:23] Production.INFO: ==29017== Releasing lock... [2025-02-01 16:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:21:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:22:05 [end_date_ymd] => 2025-02-01 16:22:05 [RateCDR] => 1 ) [2025-02-01 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:22:05' and `end` < '2025-02-01 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:22:18] Production.INFO: count ==1443 [2025-02-01 16:22:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:22:05 - End Time 2025-02-01 16:22:05 [2025-02-01 16:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379535', 'tblTempUsageDetail_20' ) start [2025-02-01 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379535', 'tblTempUsageDetail_20' ) end [2025-02-01 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379535', 'tblTempVendorCDR_20' ) start [2025-02-01 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379535', 'tblTempVendorCDR_20' ) end [2025-02-01 16:22:18] Production.INFO: ProcessCDR(1,14379535,1,1,2) [2025-02-01 16:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379535', 'tblTempUsageDetail_20' ) start [2025-02-01 16:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379535', 'tblTempUsageDetail_20' ) end [2025-02-01 16:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:22:22] Production.INFO: ==29129== Releasing lock... [2025-02-01 16:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:22:22] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:23:05 [end_date_ymd] => 2025-02-01 16:23:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:23:05' and `end` < '2025-02-01 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-01 16:23:18] Production.INFO: count ==1445 [2025-02-01 16:23:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:23:05 - End Time 2025-02-01 16:23:05 [2025-02-01 16:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379540', 'tblTempUsageDetail_20' ) start [2025-02-01 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379540', 'tblTempUsageDetail_20' ) end [2025-02-01 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379540', 'tblTempVendorCDR_20' ) start [2025-02-01 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379540', 'tblTempVendorCDR_20' ) end [2025-02-01 16:23:19] Production.INFO: ProcessCDR(1,14379540,1,1,2) [2025-02-01 16:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379540', 'tblTempUsageDetail_20' ) start [2025-02-01 16:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379540', 'tblTempUsageDetail_20' ) end [2025-02-01 16:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:23:22] Production.INFO: ==29205== Releasing lock... [2025-02-01 16:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:23:22] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:24:05 [end_date_ymd] => 2025-02-01 16:24:05 [RateCDR] => 1 ) [2025-02-01 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:24:05' and `end` < '2025-02-01 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:24:18] Production.INFO: count ==1445 [2025-02-01 16:24:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:24:05 - End Time 2025-02-01 16:24:05 [2025-02-01 16:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379545', 'tblTempUsageDetail_20' ) start [2025-02-01 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379545', 'tblTempUsageDetail_20' ) end [2025-02-01 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379545', 'tblTempVendorCDR_20' ) start [2025-02-01 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379545', 'tblTempVendorCDR_20' ) end [2025-02-01 16:24:18] Production.INFO: ProcessCDR(1,14379545,1,1,2) [2025-02-01 16:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379545', 'tblTempUsageDetail_20' ) start [2025-02-01 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379545', 'tblTempUsageDetail_20' ) end [2025-02-01 16:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:24:23] Production.INFO: ==29278== Releasing lock... [2025-02-01 16:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:24:23] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:25:05 [end_date_ymd] => 2025-02-01 16:25:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:25:05' and `end` < '2025-02-01 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-01 16:25:18] Production.INFO: count ==1441 [2025-02-01 16:25:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:25:05 - End Time 2025-02-01 16:25:05 [2025-02-01 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379550', 'tblTempUsageDetail_20' ) start [2025-02-01 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379550', 'tblTempUsageDetail_20' ) end [2025-02-01 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379550', 'tblTempVendorCDR_20' ) start [2025-02-01 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379550', 'tblTempVendorCDR_20' ) end [2025-02-01 16:25:18] Production.INFO: ProcessCDR(1,14379550,1,1,2) [2025-02-01 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379550', 'tblTempUsageDetail_20' ) start [2025-02-01 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379550', 'tblTempUsageDetail_20' ) end [2025-02-01 16:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:25:22] Production.INFO: ==29354== Releasing lock... [2025-02-01 16:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:25:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:26:05 [end_date_ymd] => 2025-02-01 16:26:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:26:05' and `end` < '2025-02-01 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-01 16:26:20] Production.INFO: count ==1445 [2025-02-01 16:26:20] Production.ERROR: pbx CDR StartTime 2025-02-01 13:26:05 - End Time 2025-02-01 16:26:05 [2025-02-01 16:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379555', 'tblTempUsageDetail_20' ) start [2025-02-01 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379555', 'tblTempUsageDetail_20' ) end [2025-02-01 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379555', 'tblTempVendorCDR_20' ) start [2025-02-01 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379555', 'tblTempVendorCDR_20' ) end [2025-02-01 16:26:20] Production.INFO: ProcessCDR(1,14379555,1,1,2) [2025-02-01 16:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379555', 'tblTempUsageDetail_20' ) start [2025-02-01 16:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379555', 'tblTempUsageDetail_20' ) end [2025-02-01 16:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:26:24] Production.INFO: ==29425== Releasing lock... [2025-02-01 16:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:26:24] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:27:05 [end_date_ymd] => 2025-02-01 16:27:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:27:05' and `end` < '2025-02-01 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-01 16:27:18] Production.INFO: count ==1438 [2025-02-01 16:27:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:27:05 - End Time 2025-02-01 16:27:05 [2025-02-01 16:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379560', 'tblTempUsageDetail_20' ) start [2025-02-01 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379560', 'tblTempUsageDetail_20' ) end [2025-02-01 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379560', 'tblTempVendorCDR_20' ) start [2025-02-01 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379560', 'tblTempVendorCDR_20' ) end [2025-02-01 16:27:18] Production.INFO: ProcessCDR(1,14379560,1,1,2) [2025-02-01 16:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379560', 'tblTempUsageDetail_20' ) start [2025-02-01 16:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379560', 'tblTempUsageDetail_20' ) end [2025-02-01 16:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:27:23] Production.INFO: ==29505== Releasing lock... [2025-02-01 16:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:27:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:28:05 [end_date_ymd] => 2025-02-01 16:28:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:28:05' and `end` < '2025-02-01 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-01 16:28:18] Production.INFO: count ==1443 [2025-02-01 16:28:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:28:05 - End Time 2025-02-01 16:28:05 [2025-02-01 16:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379565', 'tblTempUsageDetail_20' ) start [2025-02-01 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379565', 'tblTempUsageDetail_20' ) end [2025-02-01 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379565', 'tblTempVendorCDR_20' ) start [2025-02-01 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379565', 'tblTempVendorCDR_20' ) end [2025-02-01 16:28:18] Production.INFO: ProcessCDR(1,14379565,1,1,2) [2025-02-01 16:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379565', 'tblTempUsageDetail_20' ) start [2025-02-01 16:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379565', 'tblTempUsageDetail_20' ) end [2025-02-01 16:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:28:21] Production.INFO: ==29583== Releasing lock... [2025-02-01 16:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:28:21] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:29:05 [end_date_ymd] => 2025-02-01 16:29:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:29:05' and `end` < '2025-02-01 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-01 16:29:18] Production.INFO: count ==1440 [2025-02-01 16:29:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:29:05 - End Time 2025-02-01 16:29:05 [2025-02-01 16:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379570', 'tblTempUsageDetail_20' ) start [2025-02-01 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379570', 'tblTempUsageDetail_20' ) end [2025-02-01 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379570', 'tblTempVendorCDR_20' ) start [2025-02-01 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379570', 'tblTempVendorCDR_20' ) end [2025-02-01 16:29:18] Production.INFO: ProcessCDR(1,14379570,1,1,2) [2025-02-01 16:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379570', 'tblTempUsageDetail_20' ) start [2025-02-01 16:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379570', 'tblTempUsageDetail_20' ) end [2025-02-01 16:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:29:21] Production.INFO: ==29653== Releasing lock... [2025-02-01 16:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:29:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:30:05 [end_date_ymd] => 2025-02-01 16:30:05 [RateCDR] => 1 ) [2025-02-01 16:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:30:05' and `end` < '2025-02-01 16:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:30:18] Production.INFO: count ==1446 [2025-02-01 16:30:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:30:05 - End Time 2025-02-01 16:30:05 [2025-02-01 16:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379576', 'tblTempUsageDetail_20' ) start [2025-02-01 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379576', 'tblTempUsageDetail_20' ) end [2025-02-01 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379576', 'tblTempVendorCDR_20' ) start [2025-02-01 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379576', 'tblTempVendorCDR_20' ) end [2025-02-01 16:30:19] Production.INFO: ProcessCDR(1,14379576,1,1,2) [2025-02-01 16:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379576', 'tblTempUsageDetail_20' ) start [2025-02-01 16:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379576', 'tblTempUsageDetail_20' ) end [2025-02-01 16:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:30:22] Production.INFO: ==29728== Releasing lock... [2025-02-01 16:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:30:22] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:31:05 [end_date_ymd] => 2025-02-01 16:31:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:31:05' and `end` < '2025-02-01 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-01 16:31:18] Production.INFO: count ==1474 [2025-02-01 16:31:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:31:05 - End Time 2025-02-01 16:31:05 [2025-02-01 16:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379581', 'tblTempUsageDetail_20' ) start [2025-02-01 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379581', 'tblTempUsageDetail_20' ) end [2025-02-01 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379581', 'tblTempVendorCDR_20' ) start [2025-02-01 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379581', 'tblTempVendorCDR_20' ) end [2025-02-01 16:31:18] Production.INFO: ProcessCDR(1,14379581,1,1,2) [2025-02-01 16:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379581', 'tblTempUsageDetail_20' ) start [2025-02-01 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379581', 'tblTempUsageDetail_20' ) end [2025-02-01 16:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:31:23] Production.INFO: ==29801== Releasing lock... [2025-02-01 16:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:31:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:32:05 [end_date_ymd] => 2025-02-01 16:32:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:32:05' and `end` < '2025-02-01 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-01 16:32:18] Production.INFO: count ==1477 [2025-02-01 16:32:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:32:05 - End Time 2025-02-01 16:32:05 [2025-02-01 16:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379586', 'tblTempUsageDetail_20' ) start [2025-02-01 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379586', 'tblTempUsageDetail_20' ) end [2025-02-01 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379586', 'tblTempVendorCDR_20' ) start [2025-02-01 16:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379586', 'tblTempVendorCDR_20' ) end [2025-02-01 16:32:19] Production.INFO: ProcessCDR(1,14379586,1,1,2) [2025-02-01 16:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379586', 'tblTempUsageDetail_20' ) start [2025-02-01 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379586', 'tblTempUsageDetail_20' ) end [2025-02-01 16:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:32:23] Production.INFO: ==29875== Releasing lock... [2025-02-01 16:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:32:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-01 16:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:33:06 [end_date_ymd] => 2025-02-01 16:33:06 [RateCDR] => 1 ) [2025-02-01 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-01 13:33:06' and `end` < '2025-02-01 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-01 16:33:19] Production.INFO: count ==1478 [2025-02-01 16:33:20] Production.ERROR: pbx CDR StartTime 2025-02-01 13:33:06 - End Time 2025-02-01 16:33:06 [2025-02-01 16:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379591', 'tblTempUsageDetail_20' ) start [2025-02-01 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379591', 'tblTempUsageDetail_20' ) end [2025-02-01 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379591', 'tblTempVendorCDR_20' ) start [2025-02-01 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379591', 'tblTempVendorCDR_20' ) end [2025-02-01 16:33:20] Production.INFO: ProcessCDR(1,14379591,1,1,2) [2025-02-01 16:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379591', 'tblTempUsageDetail_20' ) start [2025-02-01 16:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379591', 'tblTempUsageDetail_20' ) end [2025-02-01 16:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:33:24] Production.INFO: ==29946== Releasing lock... [2025-02-01 16:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:33:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:34:05 [end_date_ymd] => 2025-02-01 16:34:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:34:05' and `end` < '2025-02-01 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-01 16:34:18] Production.INFO: count ==1477 [2025-02-01 16:34:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:34:05 - End Time 2025-02-01 16:34:05 [2025-02-01 16:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379596', 'tblTempUsageDetail_20' ) start [2025-02-01 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379596', 'tblTempUsageDetail_20' ) end [2025-02-01 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379596', 'tblTempVendorCDR_20' ) start [2025-02-01 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379596', 'tblTempVendorCDR_20' ) end [2025-02-01 16:34:18] Production.INFO: ProcessCDR(1,14379596,1,1,2) [2025-02-01 16:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379596', 'tblTempUsageDetail_20' ) start [2025-02-01 16:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379596', 'tblTempUsageDetail_20' ) end [2025-02-01 16:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:34:23] Production.INFO: ==30035== Releasing lock... [2025-02-01 16:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:34:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:35:05 [end_date_ymd] => 2025-02-01 16:35:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:35:05' and `end` < '2025-02-01 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-01 16:35:20] Production.INFO: count ==1481 [2025-02-01 16:35:20] Production.ERROR: pbx CDR StartTime 2025-02-01 13:35:05 - End Time 2025-02-01 16:35:05 [2025-02-01 16:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379601', 'tblTempUsageDetail_20' ) start [2025-02-01 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379601', 'tblTempUsageDetail_20' ) end [2025-02-01 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379601', 'tblTempVendorCDR_20' ) start [2025-02-01 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379601', 'tblTempVendorCDR_20' ) end [2025-02-01 16:35:20] Production.INFO: ProcessCDR(1,14379601,1,1,2) [2025-02-01 16:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379601', 'tblTempUsageDetail_20' ) start [2025-02-01 16:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379601', 'tblTempUsageDetail_20' ) end [2025-02-01 16:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:35:23] Production.INFO: ==30105== Releasing lock... [2025-02-01 16:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:35:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:36:05 [end_date_ymd] => 2025-02-01 16:36:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:36:05' and `end` < '2025-02-01 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-01 16:36:18] Production.INFO: count ==1474 [2025-02-01 16:36:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:36:05 - End Time 2025-02-01 16:36:05 [2025-02-01 16:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379606', 'tblTempUsageDetail_20' ) start [2025-02-01 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379606', 'tblTempUsageDetail_20' ) end [2025-02-01 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379606', 'tblTempVendorCDR_20' ) start [2025-02-01 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379606', 'tblTempVendorCDR_20' ) end [2025-02-01 16:36:18] Production.INFO: ProcessCDR(1,14379606,1,1,2) [2025-02-01 16:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379606', 'tblTempUsageDetail_20' ) start [2025-02-01 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379606', 'tblTempUsageDetail_20' ) end [2025-02-01 16:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:36:23] Production.INFO: ==30179== Releasing lock... [2025-02-01 16:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:36:23] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:37:06 [end_date_ymd] => 2025-02-01 16:37:06 [RateCDR] => 1 ) [2025-02-01 16:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:37:06' and `end` < '2025-02-01 16:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:37:19] Production.INFO: count ==1472 [2025-02-01 16:37:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:37:06 - End Time 2025-02-01 16:37:06 [2025-02-01 16:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379611', 'tblTempUsageDetail_20' ) start [2025-02-01 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379611', 'tblTempUsageDetail_20' ) end [2025-02-01 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379611', 'tblTempVendorCDR_20' ) start [2025-02-01 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379611', 'tblTempVendorCDR_20' ) end [2025-02-01 16:37:19] Production.INFO: ProcessCDR(1,14379611,1,1,2) [2025-02-01 16:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379611', 'tblTempUsageDetail_20' ) start [2025-02-01 16:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379611', 'tblTempUsageDetail_20' ) end [2025-02-01 16:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:37:24] Production.INFO: ==30255== Releasing lock... [2025-02-01 16:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:37:24] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:38:05 [end_date_ymd] => 2025-02-01 16:38:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:38:05' and `end` < '2025-02-01 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-01 16:38:18] Production.INFO: count ==1463 [2025-02-01 16:38:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:38:05 - End Time 2025-02-01 16:38:05 [2025-02-01 16:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379616', 'tblTempUsageDetail_20' ) start [2025-02-01 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379616', 'tblTempUsageDetail_20' ) end [2025-02-01 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379616', 'tblTempVendorCDR_20' ) start [2025-02-01 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379616', 'tblTempVendorCDR_20' ) end [2025-02-01 16:38:18] Production.INFO: ProcessCDR(1,14379616,1,1,2) [2025-02-01 16:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379616', 'tblTempUsageDetail_20' ) start [2025-02-01 16:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379616', 'tblTempUsageDetail_20' ) end [2025-02-01 16:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:38:21] Production.INFO: ==30368== Releasing lock... [2025-02-01 16:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:38:21] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:39:05 [end_date_ymd] => 2025-02-01 16:39:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:39:05' and `end` < '2025-02-01 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-01 16:39:18] Production.INFO: count ==1461 [2025-02-01 16:39:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:39:05 - End Time 2025-02-01 16:39:05 [2025-02-01 16:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379621', 'tblTempUsageDetail_20' ) start [2025-02-01 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379621', 'tblTempUsageDetail_20' ) end [2025-02-01 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379621', 'tblTempVendorCDR_20' ) start [2025-02-01 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379621', 'tblTempVendorCDR_20' ) end [2025-02-01 16:39:18] Production.INFO: ProcessCDR(1,14379621,1,1,2) [2025-02-01 16:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379621', 'tblTempUsageDetail_20' ) start [2025-02-01 16:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379621', 'tblTempUsageDetail_20' ) end [2025-02-01 16:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:39:21] Production.INFO: ==30439== Releasing lock... [2025-02-01 16:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:39:21] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:40:06 [end_date_ymd] => 2025-02-01 16:40:06 [RateCDR] => 1 ) [2025-02-01 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-01 13:40:06' and `end` < '2025-02-01 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-01 16:40:19] Production.INFO: count ==1454 [2025-02-01 16:40:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:40:06 - End Time 2025-02-01 16:40:06 [2025-02-01 16:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379627', 'tblTempUsageDetail_20' ) start [2025-02-01 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379627', 'tblTempUsageDetail_20' ) end [2025-02-01 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379627', 'tblTempVendorCDR_20' ) start [2025-02-01 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379627', 'tblTempVendorCDR_20' ) end [2025-02-01 16:40:19] Production.INFO: ProcessCDR(1,14379627,1,1,2) [2025-02-01 16:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379627', 'tblTempUsageDetail_20' ) start [2025-02-01 16:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379627', 'tblTempUsageDetail_20' ) end [2025-02-01 16:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:40:22] Production.INFO: ==30512== Releasing lock... [2025-02-01 16:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:40:22] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:41:04 [end_date_ymd] => 2025-02-01 16:41:04 [RateCDR] => 1 ) [2025-02-01 16: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-01 13:41:04' and `end` < '2025-02-01 16: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-01 16:41:17] Production.INFO: count ==1459 [2025-02-01 16:41:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:41:04 - End Time 2025-02-01 16:41:04 [2025-02-01 16:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379632', 'tblTempUsageDetail_20' ) start [2025-02-01 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379632', 'tblTempUsageDetail_20' ) end [2025-02-01 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379632', 'tblTempVendorCDR_20' ) start [2025-02-01 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379632', 'tblTempVendorCDR_20' ) end [2025-02-01 16:41:18] Production.INFO: ProcessCDR(1,14379632,1,1,2) [2025-02-01 16:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379632', 'tblTempUsageDetail_20' ) start [2025-02-01 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379632', 'tblTempUsageDetail_20' ) end [2025-02-01 16:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:41:22] Production.INFO: ==30585== Releasing lock... [2025-02-01 16:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:41:22] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:42:05 [end_date_ymd] => 2025-02-01 16:42:05 [RateCDR] => 1 ) [2025-02-01 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:42:05' and `end` < '2025-02-01 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:42:18] Production.INFO: count ==1459 [2025-02-01 16:42:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:42:05 - End Time 2025-02-01 16:42:05 [2025-02-01 16:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379637', 'tblTempUsageDetail_20' ) start [2025-02-01 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379637', 'tblTempUsageDetail_20' ) end [2025-02-01 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379637', 'tblTempVendorCDR_20' ) start [2025-02-01 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379637', 'tblTempVendorCDR_20' ) end [2025-02-01 16:42:18] Production.INFO: ProcessCDR(1,14379637,1,1,2) [2025-02-01 16:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379637', 'tblTempUsageDetail_20' ) start [2025-02-01 16:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379637', 'tblTempUsageDetail_20' ) end [2025-02-01 16:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:42:23] Production.INFO: ==30657== Releasing lock... [2025-02-01 16:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:42:23] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:43:05 [end_date_ymd] => 2025-02-01 16:43:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:43:05' and `end` < '2025-02-01 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-01 16:43:19] Production.INFO: count ==1458 [2025-02-01 16:43:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:43:05 - End Time 2025-02-01 16:43:05 [2025-02-01 16:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379642', 'tblTempUsageDetail_20' ) start [2025-02-01 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379642', 'tblTempUsageDetail_20' ) end [2025-02-01 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379642', 'tblTempVendorCDR_20' ) start [2025-02-01 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379642', 'tblTempVendorCDR_20' ) end [2025-02-01 16:43:19] Production.INFO: ProcessCDR(1,14379642,1,1,2) [2025-02-01 16:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379642', 'tblTempUsageDetail_20' ) start [2025-02-01 16:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379642', 'tblTempUsageDetail_20' ) end [2025-02-01 16:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:43:24] Production.INFO: ==30727== Releasing lock... [2025-02-01 16:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:43:24] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:44:05 [end_date_ymd] => 2025-02-01 16:44:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:44:05' and `end` < '2025-02-01 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-01 16:44:18] Production.INFO: count ==1458 [2025-02-01 16:44:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:44:05 - End Time 2025-02-01 16:44:05 [2025-02-01 16:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379647', 'tblTempUsageDetail_20' ) start [2025-02-01 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379647', 'tblTempUsageDetail_20' ) end [2025-02-01 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379647', 'tblTempVendorCDR_20' ) start [2025-02-01 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379647', 'tblTempVendorCDR_20' ) end [2025-02-01 16:44:18] Production.INFO: ProcessCDR(1,14379647,1,1,2) [2025-02-01 16:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379647', 'tblTempUsageDetail_20' ) start [2025-02-01 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379647', 'tblTempUsageDetail_20' ) end [2025-02-01 16:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:44:23] Production.INFO: ==30798== Releasing lock... [2025-02-01 16:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:44:23] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:45:04 [end_date_ymd] => 2025-02-01 16:45:04 [RateCDR] => 1 ) [2025-02-01 16:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:45:04' and `end` < '2025-02-01 16:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:45:18] Production.INFO: count ==1444 [2025-02-01 16:45:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:45:04 - End Time 2025-02-01 16:45:04 [2025-02-01 16:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379652', 'tblTempUsageDetail_20' ) start [2025-02-01 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379652', 'tblTempUsageDetail_20' ) end [2025-02-01 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379652', 'tblTempVendorCDR_20' ) start [2025-02-01 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379652', 'tblTempVendorCDR_20' ) end [2025-02-01 16:45:18] Production.INFO: ProcessCDR(1,14379652,1,1,2) [2025-02-01 16:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379652', 'tblTempUsageDetail_20' ) start [2025-02-01 16:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379652', 'tblTempUsageDetail_20' ) end [2025-02-01 16:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:45:22] Production.INFO: ==30874== Releasing lock... [2025-02-01 16:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:45:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:46:05 [end_date_ymd] => 2025-02-01 16:46:05 [RateCDR] => 1 ) [2025-02-01 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:46:05' and `end` < '2025-02-01 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:46:19] Production.INFO: count ==1441 [2025-02-01 16:46:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:46:05 - End Time 2025-02-01 16:46:05 [2025-02-01 16:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379657', 'tblTempUsageDetail_20' ) start [2025-02-01 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379657', 'tblTempUsageDetail_20' ) end [2025-02-01 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379657', 'tblTempVendorCDR_20' ) start [2025-02-01 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379657', 'tblTempVendorCDR_20' ) end [2025-02-01 16:46:19] Production.INFO: ProcessCDR(1,14379657,1,1,2) [2025-02-01 16:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379657', 'tblTempUsageDetail_20' ) start [2025-02-01 16:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379657', 'tblTempUsageDetail_20' ) end [2025-02-01 16:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:46:24] Production.INFO: ==30946== Releasing lock... [2025-02-01 16:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:46:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 16:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:47:04 [end_date_ymd] => 2025-02-01 16:47:04 [RateCDR] => 1 ) [2025-02-01 16: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-01 13:47:04' and `end` < '2025-02-01 16: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-01 16:47:17] Production.INFO: count ==1440 [2025-02-01 16:47:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:47:04 - End Time 2025-02-01 16:47:04 [2025-02-01 16:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379662', 'tblTempUsageDetail_20' ) start [2025-02-01 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379662', 'tblTempUsageDetail_20' ) end [2025-02-01 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379662', 'tblTempVendorCDR_20' ) start [2025-02-01 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379662', 'tblTempVendorCDR_20' ) end [2025-02-01 16:47:18] Production.INFO: ProcessCDR(1,14379662,1,1,2) [2025-02-01 16:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379662', 'tblTempUsageDetail_20' ) start [2025-02-01 16:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379662', 'tblTempUsageDetail_20' ) end [2025-02-01 16:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:47:22] Production.INFO: ==31015== Releasing lock... [2025-02-01 16:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:47:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:48:05 [end_date_ymd] => 2025-02-01 16:48:05 [RateCDR] => 1 ) [2025-02-01 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:48:05' and `end` < '2025-02-01 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:48:18] Production.INFO: count ==1438 [2025-02-01 16:48:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:48:05 - End Time 2025-02-01 16:48:05 [2025-02-01 16:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379667', 'tblTempUsageDetail_20' ) start [2025-02-01 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379667', 'tblTempUsageDetail_20' ) end [2025-02-01 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379667', 'tblTempVendorCDR_20' ) start [2025-02-01 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379667', 'tblTempVendorCDR_20' ) end [2025-02-01 16:48:19] Production.INFO: ProcessCDR(1,14379667,1,1,2) [2025-02-01 16:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379667', 'tblTempUsageDetail_20' ) start [2025-02-01 16:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379667', 'tblTempUsageDetail_20' ) end [2025-02-01 16:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:48:23] Production.INFO: ==31086== Releasing lock... [2025-02-01 16:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:48:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:49:05 [end_date_ymd] => 2025-02-01 16:49:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:49:05' and `end` < '2025-02-01 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-01 16:49:19] Production.INFO: count ==1427 [2025-02-01 16:49:20] Production.ERROR: pbx CDR StartTime 2025-02-01 13:49:05 - End Time 2025-02-01 16:49:05 [2025-02-01 16:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379672', 'tblTempUsageDetail_20' ) start [2025-02-01 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379672', 'tblTempUsageDetail_20' ) end [2025-02-01 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379672', 'tblTempVendorCDR_20' ) start [2025-02-01 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379672', 'tblTempVendorCDR_20' ) end [2025-02-01 16:49:20] Production.INFO: ProcessCDR(1,14379672,1,1,2) [2025-02-01 16:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379672', 'tblTempUsageDetail_20' ) start [2025-02-01 16:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379672', 'tblTempUsageDetail_20' ) end [2025-02-01 16:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:49:24] Production.INFO: ==31159== Releasing lock... [2025-02-01 16:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:49:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:50:06 [end_date_ymd] => 2025-02-01 16:50:06 [RateCDR] => 1 ) [2025-02-01 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:50:06' and `end` < '2025-02-01 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:50:19] Production.INFO: count ==1427 [2025-02-01 16:50:20] Production.ERROR: pbx CDR StartTime 2025-02-01 13:50:06 - End Time 2025-02-01 16:50:06 [2025-02-01 16:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379678', 'tblTempUsageDetail_20' ) start [2025-02-01 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379678', 'tblTempUsageDetail_20' ) end [2025-02-01 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379678', 'tblTempVendorCDR_20' ) start [2025-02-01 16:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379678', 'tblTempVendorCDR_20' ) end [2025-02-01 16:50:20] Production.INFO: ProcessCDR(1,14379678,1,1,2) [2025-02-01 16:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379678', 'tblTempUsageDetail_20' ) start [2025-02-01 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379678', 'tblTempUsageDetail_20' ) end [2025-02-01 16:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:50:25] Production.INFO: ==31231== Releasing lock... [2025-02-01 16:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:50:25] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:51:05 [end_date_ymd] => 2025-02-01 16:51:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:51:05' and `end` < '2025-02-01 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-01 16:51:18] Production.INFO: count ==1465 [2025-02-01 16:51:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:51:05 - End Time 2025-02-01 16:51:05 [2025-02-01 16:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379683', 'tblTempUsageDetail_20' ) start [2025-02-01 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379683', 'tblTempUsageDetail_20' ) end [2025-02-01 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379683', 'tblTempVendorCDR_20' ) start [2025-02-01 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379683', 'tblTempVendorCDR_20' ) end [2025-02-01 16:51:19] Production.INFO: ProcessCDR(1,14379683,1,1,2) [2025-02-01 16:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379683', 'tblTempUsageDetail_20' ) start [2025-02-01 16:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379683', 'tblTempUsageDetail_20' ) end [2025-02-01 16:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:51:24] Production.INFO: ==31307== Releasing lock... [2025-02-01 16:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:51:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:52:05 [end_date_ymd] => 2025-02-01 16:52:05 [RateCDR] => 1 ) [2025-02-01 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:52:05' and `end` < '2025-02-01 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:52:20] Production.INFO: count ==1467 [2025-02-01 16:52:21] Production.ERROR: pbx CDR StartTime 2025-02-01 13:52:05 - End Time 2025-02-01 16:52:05 [2025-02-01 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379688', 'tblTempUsageDetail_20' ) start [2025-02-01 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379688', 'tblTempUsageDetail_20' ) end [2025-02-01 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379688', 'tblTempVendorCDR_20' ) start [2025-02-01 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379688', 'tblTempVendorCDR_20' ) end [2025-02-01 16:52:21] Production.INFO: ProcessCDR(1,14379688,1,1,2) [2025-02-01 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379688', 'tblTempUsageDetail_20' ) start [2025-02-01 16:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379688', 'tblTempUsageDetail_20' ) end [2025-02-01 16:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:52:24] Production.INFO: ==31382== Releasing lock... [2025-02-01 16:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:52:24] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:53:05 [end_date_ymd] => 2025-02-01 16:53:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:53:05' and `end` < '2025-02-01 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-01 16:53:20] Production.INFO: count ==1466 [2025-02-01 16:53:20] Production.ERROR: pbx CDR StartTime 2025-02-01 13:53:05 - End Time 2025-02-01 16:53:05 [2025-02-01 16:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379693', 'tblTempUsageDetail_20' ) start [2025-02-01 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379693', 'tblTempUsageDetail_20' ) end [2025-02-01 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379693', 'tblTempVendorCDR_20' ) start [2025-02-01 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379693', 'tblTempVendorCDR_20' ) end [2025-02-01 16:53:20] Production.INFO: ProcessCDR(1,14379693,1,1,2) [2025-02-01 16:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379693', 'tblTempUsageDetail_20' ) start [2025-02-01 16:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379693', 'tblTempUsageDetail_20' ) end [2025-02-01 16:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:53:23] Production.INFO: ==31492== Releasing lock... [2025-02-01 16:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:53:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:54:06 [end_date_ymd] => 2025-02-01 16:54:06 [RateCDR] => 1 ) [2025-02-01 16:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:54:06' and `end` < '2025-02-01 16:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:54:18] Production.INFO: count ==1479 [2025-02-01 16:54:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:54:06 - End Time 2025-02-01 16:54:06 [2025-02-01 16:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379698', 'tblTempUsageDetail_20' ) start [2025-02-01 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379698', 'tblTempUsageDetail_20' ) end [2025-02-01 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379698', 'tblTempVendorCDR_20' ) start [2025-02-01 16:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379698', 'tblTempVendorCDR_20' ) end [2025-02-01 16:54:19] Production.INFO: ProcessCDR(1,14379698,1,1,2) [2025-02-01 16:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379698', 'tblTempUsageDetail_20' ) start [2025-02-01 16:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379698', 'tblTempUsageDetail_20' ) end [2025-02-01 16:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:54:24] Production.INFO: ==31565== Releasing lock... [2025-02-01 16:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:54:24] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:55:05 [end_date_ymd] => 2025-02-01 16:55:05 [RateCDR] => 1 ) [2025-02-01 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:55:05' and `end` < '2025-02-01 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:55:17] Production.INFO: count ==1479 [2025-02-01 16:55:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:55:05 - End Time 2025-02-01 16:55:05 [2025-02-01 16:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379703', 'tblTempUsageDetail_20' ) start [2025-02-01 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379703', 'tblTempUsageDetail_20' ) end [2025-02-01 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379703', 'tblTempVendorCDR_20' ) start [2025-02-01 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379703', 'tblTempVendorCDR_20' ) end [2025-02-01 16:55:18] Production.INFO: ProcessCDR(1,14379703,1,1,2) [2025-02-01 16:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379703', 'tblTempUsageDetail_20' ) start [2025-02-01 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379703', 'tblTempUsageDetail_20' ) end [2025-02-01 16:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:55:22] Production.INFO: ==31646== Releasing lock... [2025-02-01 16:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:55:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:56:05 [end_date_ymd] => 2025-02-01 16:56:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:56:05' and `end` < '2025-02-01 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-01 16:56:18] Production.INFO: count ==1474 [2025-02-01 16:56:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:56:05 - End Time 2025-02-01 16:56:05 [2025-02-01 16:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379708', 'tblTempUsageDetail_20' ) start [2025-02-01 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379708', 'tblTempUsageDetail_20' ) end [2025-02-01 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379708', 'tblTempVendorCDR_20' ) start [2025-02-01 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379708', 'tblTempVendorCDR_20' ) end [2025-02-01 16:56:19] Production.INFO: ProcessCDR(1,14379708,1,1,2) [2025-02-01 16:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379708', 'tblTempUsageDetail_20' ) start [2025-02-01 16:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379708', 'tblTempUsageDetail_20' ) end [2025-02-01 16:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:56:23] Production.INFO: ==31719== Releasing lock... [2025-02-01 16:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:56:23] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:57:05 [end_date_ymd] => 2025-02-01 16:57:05 [RateCDR] => 1 ) [2025-02-01 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-01 13:57:05' and `end` < '2025-02-01 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-01 16:57:18] Production.INFO: count ==1472 [2025-02-01 16:57:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:57:05 - End Time 2025-02-01 16:57:05 [2025-02-01 16:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379713', 'tblTempUsageDetail_20' ) start [2025-02-01 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379713', 'tblTempUsageDetail_20' ) end [2025-02-01 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379713', 'tblTempVendorCDR_20' ) start [2025-02-01 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379713', 'tblTempVendorCDR_20' ) end [2025-02-01 16:57:18] Production.INFO: ProcessCDR(1,14379713,1,1,2) [2025-02-01 16:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379713', 'tblTempUsageDetail_20' ) start [2025-02-01 16:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379713', 'tblTempUsageDetail_20' ) end [2025-02-01 16:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:57:21] Production.INFO: ==31791== Releasing lock... [2025-02-01 16:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:57:21] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:58:06 [end_date_ymd] => 2025-02-01 16:58:06 [RateCDR] => 1 ) [2025-02-01 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-01 13:58:06' and `end` < '2025-02-01 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-01 16:58:19] Production.INFO: count ==1470 [2025-02-01 16:58:19] Production.ERROR: pbx CDR StartTime 2025-02-01 13:58:06 - End Time 2025-02-01 16:58:06 [2025-02-01 16:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379718', 'tblTempUsageDetail_20' ) start [2025-02-01 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379718', 'tblTempUsageDetail_20' ) end [2025-02-01 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379718', 'tblTempVendorCDR_20' ) start [2025-02-01 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379718', 'tblTempVendorCDR_20' ) end [2025-02-01 16:58:19] Production.INFO: ProcessCDR(1,14379718,1,1,2) [2025-02-01 16:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379718', 'tblTempUsageDetail_20' ) start [2025-02-01 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379718', 'tblTempUsageDetail_20' ) end [2025-02-01 16:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:58:22] Production.INFO: ==31867== Releasing lock... [2025-02-01 16:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:58:22] Production.INFO: 39 MB #Memory Used# [2025-02-01 16:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 13:59:04 [end_date_ymd] => 2025-02-01 16:59:04 [RateCDR] => 1 ) [2025-02-01 16:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 13:59:04' and `end` < '2025-02-01 16:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 16:59:18] Production.INFO: count ==1476 [2025-02-01 16:59:18] Production.ERROR: pbx CDR StartTime 2025-02-01 13:59:04 - End Time 2025-02-01 16:59:04 [2025-02-01 16:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379723', 'tblTempUsageDetail_20' ) start [2025-02-01 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379723', 'tblTempUsageDetail_20' ) end [2025-02-01 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379723', 'tblTempVendorCDR_20' ) start [2025-02-01 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379723', 'tblTempVendorCDR_20' ) end [2025-02-01 16:59:18] Production.INFO: ProcessCDR(1,14379723,1,1,2) [2025-02-01 16:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 16:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379723', 'tblTempUsageDetail_20' ) start [2025-02-01 16:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379723', 'tblTempUsageDetail_20' ) end [2025-02-01 16:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 16:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 16:59:24] Production.INFO: ==31938== Releasing lock... [2025-02-01 16:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 16:59:24] Production.INFO: 39 MB #Memory Used# [2025-02-01 17:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:00:07 [end_date_ymd] => 2025-02-01 17:00:07 [RateCDR] => 1 ) [2025-02-01 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-01 14:00:07' and `end` < '2025-02-01 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-01 17:00:20] Production.INFO: count ==1478 [2025-02-01 17:00:20] Production.ERROR: pbx CDR StartTime 2025-02-01 14:00:07 - End Time 2025-02-01 17:00:07 [2025-02-01 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379729', 'tblTempUsageDetail_20' ) start [2025-02-01 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379729', 'tblTempUsageDetail_20' ) end [2025-02-01 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379729', 'tblTempVendorCDR_20' ) start [2025-02-01 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379729', 'tblTempVendorCDR_20' ) end [2025-02-01 17:00:20] Production.INFO: ProcessCDR(1,14379729,1,1,2) [2025-02-01 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379729', 'tblTempUsageDetail_20' ) start [2025-02-01 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379729', 'tblTempUsageDetail_20' ) end [2025-02-01 17:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:00:25] Production.INFO: ==32016== Releasing lock... [2025-02-01 17:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:00:25] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:01:05 [end_date_ymd] => 2025-02-01 17:01:05 [RateCDR] => 1 ) [2025-02-01 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 14:01:05' and `end` < '2025-02-01 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 17:01:18] Production.INFO: count ==1430 [2025-02-01 17:01:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:01:05 - End Time 2025-02-01 17:01:05 [2025-02-01 17:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379734', 'tblTempUsageDetail_20' ) start [2025-02-01 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379734', 'tblTempUsageDetail_20' ) end [2025-02-01 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379734', 'tblTempVendorCDR_20' ) start [2025-02-01 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379734', 'tblTempVendorCDR_20' ) end [2025-02-01 17:01:18] Production.INFO: ProcessCDR(1,14379734,1,1,2) [2025-02-01 17:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379734', 'tblTempUsageDetail_20' ) start [2025-02-01 17:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379734', 'tblTempUsageDetail_20' ) end [2025-02-01 17:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:01:23] Production.INFO: ==32105== Releasing lock... [2025-02-01 17:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:01:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:02:05 [end_date_ymd] => 2025-02-01 17:02:05 [RateCDR] => 1 ) [2025-02-01 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 14:02:05' and `end` < '2025-02-01 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 17:02:18] Production.INFO: count ==1428 [2025-02-01 17:02:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:02:05 - End Time 2025-02-01 17:02:05 [2025-02-01 17:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379739', 'tblTempUsageDetail_20' ) start [2025-02-01 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379739', 'tblTempUsageDetail_20' ) end [2025-02-01 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379739', 'tblTempVendorCDR_20' ) start [2025-02-01 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379739', 'tblTempVendorCDR_20' ) end [2025-02-01 17:02:18] Production.INFO: ProcessCDR(1,14379739,1,1,2) [2025-02-01 17:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379739', 'tblTempUsageDetail_20' ) start [2025-02-01 17:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379739', 'tblTempUsageDetail_20' ) end [2025-02-01 17:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:02:21] Production.INFO: ==32177== Releasing lock... [2025-02-01 17:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:02:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:03:06 [end_date_ymd] => 2025-02-01 17:03:06 [RateCDR] => 1 ) [2025-02-01 17:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 14:03:06' and `end` < '2025-02-01 17:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 17:03:19] Production.INFO: count ==1426 [2025-02-01 17:03:19] Production.ERROR: pbx CDR StartTime 2025-02-01 14:03:06 - End Time 2025-02-01 17:03:06 [2025-02-01 17:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379744', 'tblTempUsageDetail_20' ) start [2025-02-01 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379744', 'tblTempUsageDetail_20' ) end [2025-02-01 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379744', 'tblTempVendorCDR_20' ) start [2025-02-01 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379744', 'tblTempVendorCDR_20' ) end [2025-02-01 17:03:19] Production.INFO: ProcessCDR(1,14379744,1,1,2) [2025-02-01 17:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379744', 'tblTempUsageDetail_20' ) start [2025-02-01 17:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379744', 'tblTempUsageDetail_20' ) end [2025-02-01 17:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:03:23] Production.INFO: ==32252== Releasing lock... [2025-02-01 17:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:03:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:04:05 [end_date_ymd] => 2025-02-01 17:04:05 [RateCDR] => 1 ) [2025-02-01 17: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-01 14:04:05' and `end` < '2025-02-01 17: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-01 17:04:18] Production.INFO: count ==1424 [2025-02-01 17:04:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:04:05 - End Time 2025-02-01 17:04:05 [2025-02-01 17:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379749', 'tblTempUsageDetail_20' ) start [2025-02-01 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379749', 'tblTempUsageDetail_20' ) end [2025-02-01 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379749', 'tblTempVendorCDR_20' ) start [2025-02-01 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379749', 'tblTempVendorCDR_20' ) end [2025-02-01 17:04:18] Production.INFO: ProcessCDR(1,14379749,1,1,2) [2025-02-01 17:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379749', 'tblTempUsageDetail_20' ) start [2025-02-01 17:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379749', 'tblTempUsageDetail_20' ) end [2025-02-01 17:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:04:22] Production.INFO: ==32329== Releasing lock... [2025-02-01 17:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:04:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:05:05 [end_date_ymd] => 2025-02-01 17:05:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:05:05' and `end` < '2025-02-01 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-01 17:05:18] Production.INFO: count ==1428 [2025-02-01 17:05:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:05:05 - End Time 2025-02-01 17:05:05 [2025-02-01 17:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379754', 'tblTempUsageDetail_20' ) start [2025-02-01 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379754', 'tblTempUsageDetail_20' ) end [2025-02-01 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379754', 'tblTempVendorCDR_20' ) start [2025-02-01 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379754', 'tblTempVendorCDR_20' ) end [2025-02-01 17:05:18] Production.INFO: ProcessCDR(1,14379754,1,1,2) [2025-02-01 17:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379754', 'tblTempUsageDetail_20' ) start [2025-02-01 17:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379754', 'tblTempUsageDetail_20' ) end [2025-02-01 17:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:05:21] Production.INFO: ==32407== Releasing lock... [2025-02-01 17:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:05:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:06:05 [end_date_ymd] => 2025-02-01 17:06:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:06:05' and `end` < '2025-02-01 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-01 17:06:18] Production.INFO: count ==1425 [2025-02-01 17:06:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:06:05 - End Time 2025-02-01 17:06:05 [2025-02-01 17:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379759', 'tblTempUsageDetail_20' ) start [2025-02-01 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379759', 'tblTempUsageDetail_20' ) end [2025-02-01 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379759', 'tblTempVendorCDR_20' ) start [2025-02-01 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379759', 'tblTempVendorCDR_20' ) end [2025-02-01 17:06:18] Production.INFO: ProcessCDR(1,14379759,1,1,2) [2025-02-01 17:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379759', 'tblTempUsageDetail_20' ) start [2025-02-01 17:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379759', 'tblTempUsageDetail_20' ) end [2025-02-01 17:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:06:21] Production.INFO: ==32478== Releasing lock... [2025-02-01 17:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:06:21] Production.INFO: 39 MB #Memory Used# [2025-02-01 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:07:05 [end_date_ymd] => 2025-02-01 17:07:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:07:05' and `end` < '2025-02-01 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-01 17:07:19] Production.INFO: count ==1429 [2025-02-01 17:07:19] Production.ERROR: pbx CDR StartTime 2025-02-01 14:07:05 - End Time 2025-02-01 17:07:05 [2025-02-01 17:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379764', 'tblTempUsageDetail_20' ) start [2025-02-01 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379764', 'tblTempUsageDetail_20' ) end [2025-02-01 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379764', 'tblTempVendorCDR_20' ) start [2025-02-01 17:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379764', 'tblTempVendorCDR_20' ) end [2025-02-01 17:07:19] Production.INFO: ProcessCDR(1,14379764,1,1,2) [2025-02-01 17:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379764', 'tblTempUsageDetail_20' ) start [2025-02-01 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379764', 'tblTempUsageDetail_20' ) end [2025-02-01 17:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:07:24] Production.INFO: ==32557== Releasing lock... [2025-02-01 17:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:07:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:08:05 [end_date_ymd] => 2025-02-01 17:08:05 [RateCDR] => 1 ) [2025-02-01 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 14:08:05' and `end` < '2025-02-01 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 17:08:18] Production.INFO: count ==1433 [2025-02-01 17:08:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:08:05 - End Time 2025-02-01 17:08:05 [2025-02-01 17:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379769', 'tblTempUsageDetail_20' ) start [2025-02-01 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379769', 'tblTempUsageDetail_20' ) end [2025-02-01 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379769', 'tblTempVendorCDR_20' ) start [2025-02-01 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379769', 'tblTempVendorCDR_20' ) end [2025-02-01 17:08:18] Production.INFO: ProcessCDR(1,14379769,1,1,2) [2025-02-01 17:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379769', 'tblTempUsageDetail_20' ) start [2025-02-01 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379769', 'tblTempUsageDetail_20' ) end [2025-02-01 17:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:08:23] Production.INFO: ==32671== Releasing lock... [2025-02-01 17:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:08:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:09:05 [end_date_ymd] => 2025-02-01 17:09:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:09:05' and `end` < '2025-02-01 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-01 17:09:20] Production.INFO: count ==1433 [2025-02-01 17:09:20] Production.ERROR: pbx CDR StartTime 2025-02-01 14:09:05 - End Time 2025-02-01 17:09:05 [2025-02-01 17:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379774', 'tblTempUsageDetail_20' ) start [2025-02-01 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379774', 'tblTempUsageDetail_20' ) end [2025-02-01 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379774', 'tblTempVendorCDR_20' ) start [2025-02-01 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379774', 'tblTempVendorCDR_20' ) end [2025-02-01 17:09:20] Production.INFO: ProcessCDR(1,14379774,1,1,2) [2025-02-01 17:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379774', 'tblTempUsageDetail_20' ) start [2025-02-01 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379774', 'tblTempUsageDetail_20' ) end [2025-02-01 17:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:09:24] Production.INFO: ==32746== Releasing lock... [2025-02-01 17:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:09:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:10:06 [end_date_ymd] => 2025-02-01 17:10:06 [RateCDR] => 1 ) [2025-02-01 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-01 14:10:06' and `end` < '2025-02-01 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-01 17:10:20] Production.INFO: count ==1429 [2025-02-01 17:10:20] Production.ERROR: pbx CDR StartTime 2025-02-01 14:10:06 - End Time 2025-02-01 17:10:06 [2025-02-01 17:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379779', 'tblTempUsageDetail_20' ) start [2025-02-01 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379779', 'tblTempUsageDetail_20' ) end [2025-02-01 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379779', 'tblTempVendorCDR_20' ) start [2025-02-01 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379779', 'tblTempVendorCDR_20' ) end [2025-02-01 17:10:20] Production.INFO: ProcessCDR(1,14379779,1,1,2) [2025-02-01 17:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379779', 'tblTempUsageDetail_20' ) start [2025-02-01 17:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379779', 'tblTempUsageDetail_20' ) end [2025-02-01 17:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:10:25] Production.INFO: ==376== Releasing lock... [2025-02-01 17:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:10:25] Production.INFO: 39 MB #Memory Used# [2025-02-01 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:11:05 [end_date_ymd] => 2025-02-01 17:11:05 [RateCDR] => 1 ) [2025-02-01 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 14:11:05' and `end` < '2025-02-01 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 17:11:18] Production.INFO: count ==1433 [2025-02-01 17:11:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:11:05 - End Time 2025-02-01 17:11:05 [2025-02-01 17:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379785', 'tblTempUsageDetail_20' ) start [2025-02-01 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379785', 'tblTempUsageDetail_20' ) end [2025-02-01 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379785', 'tblTempVendorCDR_20' ) start [2025-02-01 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379785', 'tblTempVendorCDR_20' ) end [2025-02-01 17:11:18] Production.INFO: ProcessCDR(1,14379785,1,1,2) [2025-02-01 17:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379785', 'tblTempUsageDetail_20' ) start [2025-02-01 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379785', 'tblTempUsageDetail_20' ) end [2025-02-01 17:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:11:22] Production.INFO: ==456== Releasing lock... [2025-02-01 17:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:11:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:12:05 [end_date_ymd] => 2025-02-01 17:12:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:12:05' and `end` < '2025-02-01 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-01 17:12:20] Production.INFO: count ==1432 [2025-02-01 17:12:20] Production.ERROR: pbx CDR StartTime 2025-02-01 14:12:05 - End Time 2025-02-01 17:12:05 [2025-02-01 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379790', 'tblTempUsageDetail_20' ) start [2025-02-01 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379790', 'tblTempUsageDetail_20' ) end [2025-02-01 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379790', 'tblTempVendorCDR_20' ) start [2025-02-01 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379790', 'tblTempVendorCDR_20' ) end [2025-02-01 17:12:20] Production.INFO: ProcessCDR(1,14379790,1,1,2) [2025-02-01 17:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379790', 'tblTempUsageDetail_20' ) start [2025-02-01 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379790', 'tblTempUsageDetail_20' ) end [2025-02-01 17:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:12:24] Production.INFO: ==530== Releasing lock... [2025-02-01 17:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:12:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:13:05 [end_date_ymd] => 2025-02-01 17:13:05 [RateCDR] => 1 ) [2025-02-01 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 14:13:05' and `end` < '2025-02-01 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 17:13:17] Production.INFO: count ==1429 [2025-02-01 17:13:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:13:05 - End Time 2025-02-01 17:13:05 [2025-02-01 17:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379795', 'tblTempUsageDetail_20' ) start [2025-02-01 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379795', 'tblTempUsageDetail_20' ) end [2025-02-01 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379795', 'tblTempVendorCDR_20' ) start [2025-02-01 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379795', 'tblTempVendorCDR_20' ) end [2025-02-01 17:13:18] Production.INFO: ProcessCDR(1,14379795,1,1,2) [2025-02-01 17:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379795', 'tblTempUsageDetail_20' ) start [2025-02-01 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379795', 'tblTempUsageDetail_20' ) end [2025-02-01 17:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:13:22] Production.INFO: ==616== Releasing lock... [2025-02-01 17:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:13:22] Production.INFO: 39 MB #Memory Used# [2025-02-01 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:14:05 [end_date_ymd] => 2025-02-01 17:14:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:14:05' and `end` < '2025-02-01 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-01 17:14:19] Production.INFO: count ==1427 [2025-02-01 17:14:19] Production.ERROR: pbx CDR StartTime 2025-02-01 14:14:05 - End Time 2025-02-01 17:14:05 [2025-02-01 17:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379800', 'tblTempUsageDetail_20' ) start [2025-02-01 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379800', 'tblTempUsageDetail_20' ) end [2025-02-01 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379800', 'tblTempVendorCDR_20' ) start [2025-02-01 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379800', 'tblTempVendorCDR_20' ) end [2025-02-01 17:14:19] Production.INFO: ProcessCDR(1,14379800,1,1,2) [2025-02-01 17:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379800', 'tblTempUsageDetail_20' ) start [2025-02-01 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379800', 'tblTempUsageDetail_20' ) end [2025-02-01 17:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:14:24] Production.INFO: ==718== Releasing lock... [2025-02-01 17:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:14:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:15:05 [end_date_ymd] => 2025-02-01 17:15:05 [RateCDR] => 1 ) [2025-02-01 17: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-01 14:15:05' and `end` < '2025-02-01 17: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-01 17:15:18] Production.INFO: count ==1420 [2025-02-01 17:15:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:15:05 - End Time 2025-02-01 17:15:05 [2025-02-01 17:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379805', 'tblTempUsageDetail_20' ) start [2025-02-01 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379805', 'tblTempUsageDetail_20' ) end [2025-02-01 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379805', 'tblTempVendorCDR_20' ) start [2025-02-01 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379805', 'tblTempVendorCDR_20' ) end [2025-02-01 17:15:18] Production.INFO: ProcessCDR(1,14379805,1,1,2) [2025-02-01 17:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379805', 'tblTempUsageDetail_20' ) start [2025-02-01 17:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379805', 'tblTempUsageDetail_20' ) end [2025-02-01 17:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:15:21] Production.INFO: ==801== Releasing lock... [2025-02-01 17:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:15:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:16:05 [end_date_ymd] => 2025-02-01 17:16:05 [RateCDR] => 1 ) [2025-02-01 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 14:16:05' and `end` < '2025-02-01 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 17:16:18] Production.INFO: count ==1417 [2025-02-01 17:16:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:16:05 - End Time 2025-02-01 17:16:05 [2025-02-01 17:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379810', 'tblTempUsageDetail_20' ) start [2025-02-01 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379810', 'tblTempUsageDetail_20' ) end [2025-02-01 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379810', 'tblTempVendorCDR_20' ) start [2025-02-01 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379810', 'tblTempVendorCDR_20' ) end [2025-02-01 17:16:18] Production.INFO: ProcessCDR(1,14379810,1,1,2) [2025-02-01 17:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379810', 'tblTempUsageDetail_20' ) start [2025-02-01 17:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379810', 'tblTempUsageDetail_20' ) end [2025-02-01 17:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:16:23] Production.INFO: ==878== Releasing lock... [2025-02-01 17:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:16:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:17:05 [end_date_ymd] => 2025-02-01 17:17:05 [RateCDR] => 1 ) [2025-02-01 17: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-01 14:17:05' and `end` < '2025-02-01 17: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-01 17:17:18] Production.INFO: count ==1420 [2025-02-01 17:17:19] Production.ERROR: pbx CDR StartTime 2025-02-01 14:17:05 - End Time 2025-02-01 17:17:05 [2025-02-01 17:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379815', 'tblTempUsageDetail_20' ) start [2025-02-01 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379815', 'tblTempUsageDetail_20' ) end [2025-02-01 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379815', 'tblTempVendorCDR_20' ) start [2025-02-01 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379815', 'tblTempVendorCDR_20' ) end [2025-02-01 17:17:19] Production.INFO: ProcessCDR(1,14379815,1,1,2) [2025-02-01 17:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379815', 'tblTempUsageDetail_20' ) start [2025-02-01 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379815', 'tblTempUsageDetail_20' ) end [2025-02-01 17:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:17:24] Production.INFO: ==953== Releasing lock... [2025-02-01 17:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:17:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:18:05 [end_date_ymd] => 2025-02-01 17:18:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:18:05' and `end` < '2025-02-01 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-01 17:18:18] Production.INFO: count ==1420 [2025-02-01 17:18:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:18:05 - End Time 2025-02-01 17:18:05 [2025-02-01 17:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379820', 'tblTempUsageDetail_20' ) start [2025-02-01 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379820', 'tblTempUsageDetail_20' ) end [2025-02-01 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379820', 'tblTempVendorCDR_20' ) start [2025-02-01 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379820', 'tblTempVendorCDR_20' ) end [2025-02-01 17:18:18] Production.INFO: ProcessCDR(1,14379820,1,1,2) [2025-02-01 17:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379820', 'tblTempUsageDetail_20' ) start [2025-02-01 17:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379820', 'tblTempUsageDetail_20' ) end [2025-02-01 17:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:18:23] Production.INFO: ==1029== Releasing lock... [2025-02-01 17:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:18:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 17:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:19:06 [end_date_ymd] => 2025-02-01 17:19:06 [RateCDR] => 1 ) [2025-02-01 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-01 14:19:06' and `end` < '2025-02-01 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-01 17:19:19] Production.INFO: count ==1418 [2025-02-01 17:19:19] Production.ERROR: pbx CDR StartTime 2025-02-01 14:19:06 - End Time 2025-02-01 17:19:06 [2025-02-01 17:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379825', 'tblTempUsageDetail_20' ) start [2025-02-01 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379825', 'tblTempUsageDetail_20' ) end [2025-02-01 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379825', 'tblTempVendorCDR_20' ) start [2025-02-01 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379825', 'tblTempVendorCDR_20' ) end [2025-02-01 17:19:19] Production.INFO: ProcessCDR(1,14379825,1,1,2) [2025-02-01 17:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379825', 'tblTempUsageDetail_20' ) start [2025-02-01 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379825', 'tblTempUsageDetail_20' ) end [2025-02-01 17:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:19:24] Production.INFO: ==1105== Releasing lock... [2025-02-01 17:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:19:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:20:06 [end_date_ymd] => 2025-02-01 17:20:06 [RateCDR] => 1 ) [2025-02-01 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-01 14:20:06' and `end` < '2025-02-01 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-01 17:20:19] Production.INFO: count ==1405 [2025-02-01 17:20:19] Production.ERROR: pbx CDR StartTime 2025-02-01 14:20:06 - End Time 2025-02-01 17:20:06 [2025-02-01 17:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379831', 'tblTempUsageDetail_20' ) start [2025-02-01 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379831', 'tblTempUsageDetail_20' ) end [2025-02-01 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379831', 'tblTempVendorCDR_20' ) start [2025-02-01 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379831', 'tblTempVendorCDR_20' ) end [2025-02-01 17:20:19] Production.INFO: ProcessCDR(1,14379831,1,1,2) [2025-02-01 17:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379831', 'tblTempUsageDetail_20' ) start [2025-02-01 17:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379831', 'tblTempUsageDetail_20' ) end [2025-02-01 17:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:20:22] Production.INFO: ==1193== Releasing lock... [2025-02-01 17:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:20:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:21:05 [end_date_ymd] => 2025-02-01 17:21:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:21:05' and `end` < '2025-02-01 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-01 17:21:20] Production.INFO: count ==1433 [2025-02-01 17:21:20] Production.ERROR: pbx CDR StartTime 2025-02-01 14:21:05 - End Time 2025-02-01 17:21:05 [2025-02-01 17:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379836', 'tblTempUsageDetail_20' ) start [2025-02-01 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379836', 'tblTempUsageDetail_20' ) end [2025-02-01 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379836', 'tblTempVendorCDR_20' ) start [2025-02-01 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379836', 'tblTempVendorCDR_20' ) end [2025-02-01 17:21:20] Production.INFO: ProcessCDR(1,14379836,1,1,2) [2025-02-01 17:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379836', 'tblTempUsageDetail_20' ) start [2025-02-01 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379836', 'tblTempUsageDetail_20' ) end [2025-02-01 17:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:21:24] Production.INFO: ==1287== Releasing lock... [2025-02-01 17:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:21:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:22:05 [end_date_ymd] => 2025-02-01 17:22:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:22:05' and `end` < '2025-02-01 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-01 17:22:18] Production.INFO: count ==1432 [2025-02-01 17:22:19] Production.ERROR: pbx CDR StartTime 2025-02-01 14:22:05 - End Time 2025-02-01 17:22:05 [2025-02-01 17:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379841', 'tblTempUsageDetail_20' ) start [2025-02-01 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379841', 'tblTempUsageDetail_20' ) end [2025-02-01 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379841', 'tblTempVendorCDR_20' ) start [2025-02-01 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379841', 'tblTempVendorCDR_20' ) end [2025-02-01 17:22:19] Production.INFO: ProcessCDR(1,14379841,1,1,2) [2025-02-01 17:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379841', 'tblTempUsageDetail_20' ) start [2025-02-01 17:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379841', 'tblTempUsageDetail_20' ) end [2025-02-01 17:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:22:22] Production.INFO: ==1360== Releasing lock... [2025-02-01 17:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:22:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:23:05 [end_date_ymd] => 2025-02-01 17:23:05 [RateCDR] => 1 ) [2025-02-01 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 14:23:05' and `end` < '2025-02-01 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 17:23:18] Production.INFO: count ==1432 [2025-02-01 17:23:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:23:05 - End Time 2025-02-01 17:23:05 [2025-02-01 17:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379846', 'tblTempUsageDetail_20' ) start [2025-02-01 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379846', 'tblTempUsageDetail_20' ) end [2025-02-01 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379846', 'tblTempVendorCDR_20' ) start [2025-02-01 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379846', 'tblTempVendorCDR_20' ) end [2025-02-01 17:23:18] Production.INFO: ProcessCDR(1,14379846,1,1,2) [2025-02-01 17:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379846', 'tblTempUsageDetail_20' ) start [2025-02-01 17:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379846', 'tblTempUsageDetail_20' ) end [2025-02-01 17:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:23:21] Production.INFO: ==1441== Releasing lock... [2025-02-01 17:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:23:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:24:05 [end_date_ymd] => 2025-02-01 17:24:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:24:05' and `end` < '2025-02-01 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-01 17:24:18] Production.INFO: count ==1440 [2025-02-01 17:24:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:24:05 - End Time 2025-02-01 17:24:05 [2025-02-01 17:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379851', 'tblTempUsageDetail_20' ) start [2025-02-01 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379851', 'tblTempUsageDetail_20' ) end [2025-02-01 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379851', 'tblTempVendorCDR_20' ) start [2025-02-01 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379851', 'tblTempVendorCDR_20' ) end [2025-02-01 17:24:18] Production.INFO: ProcessCDR(1,14379851,1,1,2) [2025-02-01 17:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379851', 'tblTempUsageDetail_20' ) start [2025-02-01 17:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379851', 'tblTempUsageDetail_20' ) end [2025-02-01 17:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:24:21] Production.INFO: ==1596== Releasing lock... [2025-02-01 17:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:24:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:25:04 [end_date_ymd] => 2025-02-01 17:25:04 [RateCDR] => 1 ) [2025-02-01 17:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 14:25:04' and `end` < '2025-02-01 17:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 17:25:17] Production.INFO: count ==1441 [2025-02-01 17:25:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:25:04 - End Time 2025-02-01 17:25:04 [2025-02-01 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379856', 'tblTempUsageDetail_20' ) start [2025-02-01 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379856', 'tblTempUsageDetail_20' ) end [2025-02-01 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379856', 'tblTempVendorCDR_20' ) start [2025-02-01 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379856', 'tblTempVendorCDR_20' ) end [2025-02-01 17:25:18] Production.INFO: ProcessCDR(1,14379856,1,1,2) [2025-02-01 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379856', 'tblTempUsageDetail_20' ) start [2025-02-01 17:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379856', 'tblTempUsageDetail_20' ) end [2025-02-01 17:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:25:21] Production.INFO: ==1673== Releasing lock... [2025-02-01 17:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:25:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:26:05 [end_date_ymd] => 2025-02-01 17:26:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:26:05' and `end` < '2025-02-01 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-01 17:26:18] Production.INFO: count ==1440 [2025-02-01 17:26:21] Production.ERROR: pbx CDR StartTime 2025-02-01 14:26:05 - End Time 2025-02-01 17:26:05 [2025-02-01 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379861', 'tblTempUsageDetail_20' ) start [2025-02-01 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379861', 'tblTempUsageDetail_20' ) end [2025-02-01 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379861', 'tblTempVendorCDR_20' ) start [2025-02-01 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379861', 'tblTempVendorCDR_20' ) end [2025-02-01 17:26:21] Production.INFO: ProcessCDR(1,14379861,1,1,2) [2025-02-01 17:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:26:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:26:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:26:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:26:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379861', 'tblTempUsageDetail_20' ) start [2025-02-01 17:26:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379861', 'tblTempUsageDetail_20' ) end [2025-02-01 17:26:39] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:26:39] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:26:42] Production.INFO: ==1754== Releasing lock... [2025-02-01 17:26:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:26:42] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:27:30] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:27:30 [end_date_ymd] => 2025-02-01 17:27:30 [RateCDR] => 1 ) [2025-02-01 17:27:30] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 14:27:30' and `end` < '2025-02-01 17:27:30' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 17:27:43] Production.INFO: count ==1427 [2025-02-01 17:27:50] Production.ERROR: pbx CDR StartTime 2025-02-01 14:27:30 - End Time 2025-02-01 17:27:30 [2025-02-01 17:27:50] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:27:50] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379865', 'tblTempUsageDetail_20' ) start [2025-02-01 17:27:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379865', 'tblTempUsageDetail_20' ) end [2025-02-01 17:27:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379865', 'tblTempVendorCDR_20' ) start [2025-02-01 17:27:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379865', 'tblTempVendorCDR_20' ) end [2025-02-01 17:27:54] Production.INFO: ProcessCDR(1,14379865,1,1,2) [2025-02-01 17:27:54] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:27:55] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:27:55] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:27:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:27:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379865', 'tblTempUsageDetail_20' ) start [2025-02-01 17:27:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379865', 'tblTempUsageDetail_20' ) end [2025-02-01 17:27:57] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:27:57] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:27:59] Production.INFO: ==1832== Releasing lock... [2025-02-01 17:27:59] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:27:59] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:28:20] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:28:20 [end_date_ymd] => 2025-02-01 17:28:20 [RateCDR] => 1 ) [2025-02-01 17:28:20] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 14:28:20' and `end` < '2025-02-01 17:28:20' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 17:28:33] Production.INFO: count ==1431 [2025-02-01 17:28:36] Production.ERROR: pbx CDR StartTime 2025-02-01 14:28:20 - End Time 2025-02-01 17:28:20 [2025-02-01 17:28:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:28:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379870', 'tblTempUsageDetail_20' ) start [2025-02-01 17:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379870', 'tblTempUsageDetail_20' ) end [2025-02-01 17:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379870', 'tblTempVendorCDR_20' ) start [2025-02-01 17:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379870', 'tblTempVendorCDR_20' ) end [2025-02-01 17:28:37] Production.INFO: ProcessCDR(1,14379870,1,1,2) [2025-02-01 17:28:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:28:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:28:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:29:03] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:29:03] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379870', 'tblTempUsageDetail_20' ) start [2025-02-01 17:29:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379870', 'tblTempUsageDetail_20' ) end [2025-02-01 17:29:07] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:29:07] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:29:11] Production.INFO: ==1904== Releasing lock... [2025-02-01 17:29:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:29:11] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:30:21] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:30:21 [end_date_ymd] => 2025-02-01 17:30:21 [RateCDR] => 1 ) [2025-02-01 17:30:21] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 14:30:21' and `end` < '2025-02-01 17:30:21' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 17:30:34] Production.INFO: count ==1443 [2025-02-01 17:30:37] Production.ERROR: pbx CDR StartTime 2025-02-01 14:30:21 - End Time 2025-02-01 17:30:21 [2025-02-01 17:30:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379879', 'tblTempUsageDetail_20' ) start [2025-02-01 17:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379879', 'tblTempUsageDetail_20' ) end [2025-02-01 17:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379879', 'tblTempVendorCDR_20' ) start [2025-02-01 17:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379879', 'tblTempVendorCDR_20' ) end [2025-02-01 17:30:37] Production.INFO: ProcessCDR(1,14379879,1,1,2) [2025-02-01 17:30:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:30:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:30:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:31:03] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:31:03] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379879', 'tblTempUsageDetail_20' ) start [2025-02-01 17:31:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379879', 'tblTempUsageDetail_20' ) end [2025-02-01 17:31:05] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:31:05] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:31:10] Production.INFO: ==2054== Releasing lock... [2025-02-01 17:31:10] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:31:10] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:32:08] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:32:08 [end_date_ymd] => 2025-02-01 17:32:08 [RateCDR] => 1 ) [2025-02-01 17:32:08] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 14:32:08' and `end` < '2025-02-01 17:32:08' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 17:32:21] Production.INFO: count ==1443 [2025-02-01 17:32:21] Production.ERROR: pbx CDR StartTime 2025-02-01 14:32:08 - End Time 2025-02-01 17:32:08 [2025-02-01 17:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379887', 'tblTempUsageDetail_20' ) start [2025-02-01 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379887', 'tblTempUsageDetail_20' ) end [2025-02-01 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379887', 'tblTempVendorCDR_20' ) start [2025-02-01 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379887', 'tblTempVendorCDR_20' ) end [2025-02-01 17:32:21] Production.INFO: ProcessCDR(1,14379887,1,1,2) [2025-02-01 17:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379887', 'tblTempUsageDetail_20' ) start [2025-02-01 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379887', 'tblTempUsageDetail_20' ) end [2025-02-01 17:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:32:26] Production.INFO: ==2203== Releasing lock... [2025-02-01 17:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:32:26] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:33:05 [end_date_ymd] => 2025-02-01 17:33:05 [RateCDR] => 1 ) [2025-02-01 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 14:33:05' and `end` < '2025-02-01 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 17:33:18] Production.INFO: count ==1442 [2025-02-01 17:33:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:33:05 - End Time 2025-02-01 17:33:05 [2025-02-01 17:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379892', 'tblTempUsageDetail_20' ) start [2025-02-01 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379892', 'tblTempUsageDetail_20' ) end [2025-02-01 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379892', 'tblTempVendorCDR_20' ) start [2025-02-01 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379892', 'tblTempVendorCDR_20' ) end [2025-02-01 17:33:18] Production.INFO: ProcessCDR(1,14379892,1,1,2) [2025-02-01 17:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379892', 'tblTempUsageDetail_20' ) start [2025-02-01 17:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379892', 'tblTempUsageDetail_20' ) end [2025-02-01 17:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:33:22] Production.INFO: ==2275== Releasing lock... [2025-02-01 17:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:33:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:34:04 [end_date_ymd] => 2025-02-01 17:34:04 [RateCDR] => 1 ) [2025-02-01 17:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 14:34:04' and `end` < '2025-02-01 17:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 17:34:18] Production.INFO: count ==1438 [2025-02-01 17:34:19] Production.ERROR: pbx CDR StartTime 2025-02-01 14:34:04 - End Time 2025-02-01 17:34:04 [2025-02-01 17:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379897', 'tblTempUsageDetail_20' ) start [2025-02-01 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379897', 'tblTempUsageDetail_20' ) end [2025-02-01 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379897', 'tblTempVendorCDR_20' ) start [2025-02-01 17:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379897', 'tblTempVendorCDR_20' ) end [2025-02-01 17:34:19] Production.INFO: ProcessCDR(1,14379897,1,1,2) [2025-02-01 17:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379897', 'tblTempUsageDetail_20' ) start [2025-02-01 17:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379897', 'tblTempUsageDetail_20' ) end [2025-02-01 17:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:34:22] Production.INFO: ==2354== Releasing lock... [2025-02-01 17:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:34:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:35:05 [end_date_ymd] => 2025-02-01 17:35:05 [RateCDR] => 1 ) [2025-02-01 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 14:35:05' and `end` < '2025-02-01 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 17:35:18] Production.INFO: count ==1437 [2025-02-01 17:35:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:35:05 - End Time 2025-02-01 17:35:05 [2025-02-01 17:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379902', 'tblTempUsageDetail_20' ) start [2025-02-01 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379902', 'tblTempUsageDetail_20' ) end [2025-02-01 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379902', 'tblTempVendorCDR_20' ) start [2025-02-01 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379902', 'tblTempVendorCDR_20' ) end [2025-02-01 17:35:18] Production.INFO: ProcessCDR(1,14379902,1,1,2) [2025-02-01 17:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379902', 'tblTempUsageDetail_20' ) start [2025-02-01 17:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379902', 'tblTempUsageDetail_20' ) end [2025-02-01 17:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:35:23] Production.INFO: ==2429== Releasing lock... [2025-02-01 17:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:35:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:36:05 [end_date_ymd] => 2025-02-01 17:36:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:36:05' and `end` < '2025-02-01 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-01 17:36:19] Production.INFO: count ==1437 [2025-02-01 17:36:19] Production.ERROR: pbx CDR StartTime 2025-02-01 14:36:05 - End Time 2025-02-01 17:36:05 [2025-02-01 17:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379907', 'tblTempUsageDetail_20' ) start [2025-02-01 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379907', 'tblTempUsageDetail_20' ) end [2025-02-01 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379907', 'tblTempVendorCDR_20' ) start [2025-02-01 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379907', 'tblTempVendorCDR_20' ) end [2025-02-01 17:36:19] Production.INFO: ProcessCDR(1,14379907,1,1,2) [2025-02-01 17:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379907', 'tblTempUsageDetail_20' ) start [2025-02-01 17:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379907', 'tblTempUsageDetail_20' ) end [2025-02-01 17:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:36:22] Production.INFO: ==2504== Releasing lock... [2025-02-01 17:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:36:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:37:05 [end_date_ymd] => 2025-02-01 17:37:05 [RateCDR] => 1 ) [2025-02-01 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 14:37:05' and `end` < '2025-02-01 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 17:37:19] Production.INFO: count ==1437 [2025-02-01 17:37:19] Production.ERROR: pbx CDR StartTime 2025-02-01 14:37:05 - End Time 2025-02-01 17:37:05 [2025-02-01 17:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379912', 'tblTempUsageDetail_20' ) start [2025-02-01 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379912', 'tblTempUsageDetail_20' ) end [2025-02-01 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379912', 'tblTempVendorCDR_20' ) start [2025-02-01 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379912', 'tblTempVendorCDR_20' ) end [2025-02-01 17:37:19] Production.INFO: ProcessCDR(1,14379912,1,1,2) [2025-02-01 17:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379912', 'tblTempUsageDetail_20' ) start [2025-02-01 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379912', 'tblTempUsageDetail_20' ) end [2025-02-01 17:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:37:23] Production.INFO: ==2593== Releasing lock... [2025-02-01 17:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:37:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:38:05 [end_date_ymd] => 2025-02-01 17:38:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:38:05' and `end` < '2025-02-01 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-01 17:38:18] Production.INFO: count ==1445 [2025-02-01 17:38:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:38:05 - End Time 2025-02-01 17:38:05 [2025-02-01 17:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379917', 'tblTempUsageDetail_20' ) start [2025-02-01 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379917', 'tblTempUsageDetail_20' ) end [2025-02-01 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379917', 'tblTempVendorCDR_20' ) start [2025-02-01 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379917', 'tblTempVendorCDR_20' ) end [2025-02-01 17:38:18] Production.INFO: ProcessCDR(1,14379917,1,1,2) [2025-02-01 17:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379917', 'tblTempUsageDetail_20' ) start [2025-02-01 17:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379917', 'tblTempUsageDetail_20' ) end [2025-02-01 17:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:38:21] Production.INFO: ==2677== Releasing lock... [2025-02-01 17:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:38:21] Production.INFO: 39 MB #Memory Used# [2025-02-01 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:39:05 [end_date_ymd] => 2025-02-01 17:39:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:39:05' and `end` < '2025-02-01 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-01 17:39:18] Production.INFO: count ==1445 [2025-02-01 17:39:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:39:05 - End Time 2025-02-01 17:39:05 [2025-02-01 17:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379922', 'tblTempUsageDetail_20' ) start [2025-02-01 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379922', 'tblTempUsageDetail_20' ) end [2025-02-01 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379922', 'tblTempVendorCDR_20' ) start [2025-02-01 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379922', 'tblTempVendorCDR_20' ) end [2025-02-01 17:39:18] Production.INFO: ProcessCDR(1,14379922,1,1,2) [2025-02-01 17:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379922', 'tblTempUsageDetail_20' ) start [2025-02-01 17:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379922', 'tblTempUsageDetail_20' ) end [2025-02-01 17:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:39:21] Production.INFO: ==2798== Releasing lock... [2025-02-01 17:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:39:21] Production.INFO: 39 MB #Memory Used# [2025-02-01 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:40:06 [end_date_ymd] => 2025-02-01 17:40:06 [RateCDR] => 1 ) [2025-02-01 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-01 14:40:06' and `end` < '2025-02-01 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-01 17:40:19] Production.INFO: count ==1446 [2025-02-01 17:40:19] Production.ERROR: pbx CDR StartTime 2025-02-01 14:40:06 - End Time 2025-02-01 17:40:06 [2025-02-01 17:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379928', 'tblTempUsageDetail_20' ) start [2025-02-01 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379928', 'tblTempUsageDetail_20' ) end [2025-02-01 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379928', 'tblTempVendorCDR_20' ) start [2025-02-01 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379928', 'tblTempVendorCDR_20' ) end [2025-02-01 17:40:19] Production.INFO: ProcessCDR(1,14379928,1,1,2) [2025-02-01 17:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379928', 'tblTempUsageDetail_20' ) start [2025-02-01 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379928', 'tblTempUsageDetail_20' ) end [2025-02-01 17:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:40:24] Production.INFO: ==2881== Releasing lock... [2025-02-01 17:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:40:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:41:05 [end_date_ymd] => 2025-02-01 17:41:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:41:05' and `end` < '2025-02-01 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-01 17:41:18] Production.INFO: count ==1469 [2025-02-01 17:41:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:41:05 - End Time 2025-02-01 17:41:05 [2025-02-01 17:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379933', 'tblTempUsageDetail_20' ) start [2025-02-01 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379933', 'tblTempUsageDetail_20' ) end [2025-02-01 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379933', 'tblTempVendorCDR_20' ) start [2025-02-01 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379933', 'tblTempVendorCDR_20' ) end [2025-02-01 17:41:18] Production.INFO: ProcessCDR(1,14379933,1,1,2) [2025-02-01 17:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379933', 'tblTempUsageDetail_20' ) start [2025-02-01 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379933', 'tblTempUsageDetail_20' ) end [2025-02-01 17:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:41:23] Production.INFO: ==2964== Releasing lock... [2025-02-01 17:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:41:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:42:06 [end_date_ymd] => 2025-02-01 17:42:06 [RateCDR] => 1 ) [2025-02-01 17:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 14:42:06' and `end` < '2025-02-01 17:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 17:42:18] Production.INFO: count ==1460 [2025-02-01 17:42:19] Production.ERROR: pbx CDR StartTime 2025-02-01 14:42:06 - End Time 2025-02-01 17:42:06 [2025-02-01 17:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379938', 'tblTempUsageDetail_20' ) start [2025-02-01 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379938', 'tblTempUsageDetail_20' ) end [2025-02-01 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379938', 'tblTempVendorCDR_20' ) start [2025-02-01 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379938', 'tblTempVendorCDR_20' ) end [2025-02-01 17:42:19] Production.INFO: ProcessCDR(1,14379938,1,1,2) [2025-02-01 17:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379938', 'tblTempUsageDetail_20' ) start [2025-02-01 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379938', 'tblTempUsageDetail_20' ) end [2025-02-01 17:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:42:23] Production.INFO: ==3049== Releasing lock... [2025-02-01 17:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:42:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:43:04 [end_date_ymd] => 2025-02-01 17:43:04 [RateCDR] => 1 ) [2025-02-01 17:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 14:43:04' and `end` < '2025-02-01 17:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 17:43:18] Production.INFO: count ==1459 [2025-02-01 17:43:19] Production.ERROR: pbx CDR StartTime 2025-02-01 14:43:04 - End Time 2025-02-01 17:43:04 [2025-02-01 17:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379943', 'tblTempUsageDetail_20' ) start [2025-02-01 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379943', 'tblTempUsageDetail_20' ) end [2025-02-01 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379943', 'tblTempVendorCDR_20' ) start [2025-02-01 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379943', 'tblTempVendorCDR_20' ) end [2025-02-01 17:43:19] Production.INFO: ProcessCDR(1,14379943,1,1,2) [2025-02-01 17:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379943', 'tblTempUsageDetail_20' ) start [2025-02-01 17:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379943', 'tblTempUsageDetail_20' ) end [2025-02-01 17:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:43:22] Production.INFO: ==3135== Releasing lock... [2025-02-01 17:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:43:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:44:05 [end_date_ymd] => 2025-02-01 17:44:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:44:05' and `end` < '2025-02-01 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-01 17:44:18] Production.INFO: count ==1459 [2025-02-01 17:44:19] Production.ERROR: pbx CDR StartTime 2025-02-01 14:44:05 - End Time 2025-02-01 17:44:05 [2025-02-01 17:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379948', 'tblTempUsageDetail_20' ) start [2025-02-01 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379948', 'tblTempUsageDetail_20' ) end [2025-02-01 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379948', 'tblTempVendorCDR_20' ) start [2025-02-01 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379948', 'tblTempVendorCDR_20' ) end [2025-02-01 17:44:19] Production.INFO: ProcessCDR(1,14379948,1,1,2) [2025-02-01 17:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379948', 'tblTempUsageDetail_20' ) start [2025-02-01 17:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379948', 'tblTempUsageDetail_20' ) end [2025-02-01 17:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:44:22] Production.INFO: ==3223== Releasing lock... [2025-02-01 17:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:44:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:45:05 [end_date_ymd] => 2025-02-01 17:45:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:45:05' and `end` < '2025-02-01 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-01 17:45:18] Production.INFO: count ==1460 [2025-02-01 17:45:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:45:05 - End Time 2025-02-01 17:45:05 [2025-02-01 17:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379953', 'tblTempUsageDetail_20' ) start [2025-02-01 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379953', 'tblTempUsageDetail_20' ) end [2025-02-01 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379953', 'tblTempVendorCDR_20' ) start [2025-02-01 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379953', 'tblTempVendorCDR_20' ) end [2025-02-01 17:45:18] Production.INFO: ProcessCDR(1,14379953,1,1,2) [2025-02-01 17:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379953', 'tblTempUsageDetail_20' ) start [2025-02-01 17:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379953', 'tblTempUsageDetail_20' ) end [2025-02-01 17:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:45:21] Production.INFO: ==3310== Releasing lock... [2025-02-01 17:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:45:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:46:06 [end_date_ymd] => 2025-02-01 17:46:06 [RateCDR] => 1 ) [2025-02-01 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-01 14:46:06' and `end` < '2025-02-01 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-01 17:46:19] Production.INFO: count ==1467 [2025-02-01 17:46:19] Production.ERROR: pbx CDR StartTime 2025-02-01 14:46:06 - End Time 2025-02-01 17:46:06 [2025-02-01 17:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379958', 'tblTempUsageDetail_20' ) start [2025-02-01 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379958', 'tblTempUsageDetail_20' ) end [2025-02-01 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379958', 'tblTempVendorCDR_20' ) start [2025-02-01 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379958', 'tblTempVendorCDR_20' ) end [2025-02-01 17:46:19] Production.INFO: ProcessCDR(1,14379958,1,1,2) [2025-02-01 17:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379958', 'tblTempUsageDetail_20' ) start [2025-02-01 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379958', 'tblTempUsageDetail_20' ) end [2025-02-01 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:46:24] Production.INFO: ==3397== Releasing lock... [2025-02-01 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:46:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:47:05 [end_date_ymd] => 2025-02-01 17:47:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:47:05' and `end` < '2025-02-01 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-01 17:47:21] Production.INFO: count ==1471 [2025-02-01 17:47:21] Production.ERROR: pbx CDR StartTime 2025-02-01 14:47:05 - End Time 2025-02-01 17:47:05 [2025-02-01 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379963', 'tblTempUsageDetail_20' ) start [2025-02-01 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379963', 'tblTempUsageDetail_20' ) end [2025-02-01 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379963', 'tblTempVendorCDR_20' ) start [2025-02-01 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379963', 'tblTempVendorCDR_20' ) end [2025-02-01 17:47:22] Production.INFO: ProcessCDR(1,14379963,1,1,2) [2025-02-01 17:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379963', 'tblTempUsageDetail_20' ) start [2025-02-01 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379963', 'tblTempUsageDetail_20' ) end [2025-02-01 17:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:47:27] Production.INFO: ==3478== Releasing lock... [2025-02-01 17:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:47:27] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:48:05 [end_date_ymd] => 2025-02-01 17:48:05 [RateCDR] => 1 ) [2025-02-01 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 14:48:05' and `end` < '2025-02-01 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 17:48:21] Production.INFO: count ==1465 [2025-02-01 17:48:21] Production.ERROR: pbx CDR StartTime 2025-02-01 14:48:05 - End Time 2025-02-01 17:48:05 [2025-02-01 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379968', 'tblTempUsageDetail_20' ) start [2025-02-01 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379968', 'tblTempUsageDetail_20' ) end [2025-02-01 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379968', 'tblTempVendorCDR_20' ) start [2025-02-01 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379968', 'tblTempVendorCDR_20' ) end [2025-02-01 17:48:21] Production.INFO: ProcessCDR(1,14379968,1,1,2) [2025-02-01 17:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379968', 'tblTempUsageDetail_20' ) start [2025-02-01 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379968', 'tblTempUsageDetail_20' ) end [2025-02-01 17:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:48:26] Production.INFO: ==3561== Releasing lock... [2025-02-01 17:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:48:26] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:49:06 [end_date_ymd] => 2025-02-01 17:49:06 [RateCDR] => 1 ) [2025-02-01 17: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-01 14:49:06' and `end` < '2025-02-01 17: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-01 17:49:19] Production.INFO: count ==1467 [2025-02-01 17:49:19] Production.ERROR: pbx CDR StartTime 2025-02-01 14:49:06 - End Time 2025-02-01 17:49:06 [2025-02-01 17:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379973', 'tblTempUsageDetail_20' ) start [2025-02-01 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379973', 'tblTempUsageDetail_20' ) end [2025-02-01 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379973', 'tblTempVendorCDR_20' ) start [2025-02-01 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379973', 'tblTempVendorCDR_20' ) end [2025-02-01 17:49:19] Production.INFO: ProcessCDR(1,14379973,1,1,2) [2025-02-01 17:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379973', 'tblTempUsageDetail_20' ) start [2025-02-01 17:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379973', 'tblTempUsageDetail_20' ) end [2025-02-01 17:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:49:24] Production.INFO: ==3648== Releasing lock... [2025-02-01 17:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:49:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:50:06 [end_date_ymd] => 2025-02-01 17:50:06 [RateCDR] => 1 ) [2025-02-01 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-01 14:50:06' and `end` < '2025-02-01 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-01 17:50:21] Production.INFO: count ==1467 [2025-02-01 17:50:22] Production.ERROR: pbx CDR StartTime 2025-02-01 14:50:06 - End Time 2025-02-01 17:50:06 [2025-02-01 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379979', 'tblTempUsageDetail_20' ) start [2025-02-01 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379979', 'tblTempUsageDetail_20' ) end [2025-02-01 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379979', 'tblTempVendorCDR_20' ) start [2025-02-01 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379979', 'tblTempVendorCDR_20' ) end [2025-02-01 17:50:22] Production.INFO: ProcessCDR(1,14379979,1,1,2) [2025-02-01 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379979', 'tblTempUsageDetail_20' ) start [2025-02-01 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379979', 'tblTempUsageDetail_20' ) end [2025-02-01 17:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:50:26] Production.INFO: ==3733== Releasing lock... [2025-02-01 17:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:50:26] Production.INFO: 39 MB #Memory Used# [2025-02-01 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:51:05 [end_date_ymd] => 2025-02-01 17:51:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:51:05' and `end` < '2025-02-01 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-01 17:51:18] Production.INFO: count ==1498 [2025-02-01 17:51:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:51:05 - End Time 2025-02-01 17:51:05 [2025-02-01 17:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379984', 'tblTempUsageDetail_20' ) start [2025-02-01 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379984', 'tblTempUsageDetail_20' ) end [2025-02-01 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379984', 'tblTempVendorCDR_20' ) start [2025-02-01 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379984', 'tblTempVendorCDR_20' ) end [2025-02-01 17:51:18] Production.INFO: ProcessCDR(1,14379984,1,1,2) [2025-02-01 17:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379984', 'tblTempUsageDetail_20' ) start [2025-02-01 17:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379984', 'tblTempUsageDetail_20' ) end [2025-02-01 17:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:51:22] Production.INFO: ==3818== Releasing lock... [2025-02-01 17:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:51:22] Production.INFO: 39 MB #Memory Used# [2025-02-01 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:52:05 [end_date_ymd] => 2025-02-01 17:52:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:52:05' and `end` < '2025-02-01 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-01 17:52:21] Production.INFO: count ==1494 [2025-02-01 17:52:21] Production.ERROR: pbx CDR StartTime 2025-02-01 14:52:05 - End Time 2025-02-01 17:52:05 [2025-02-01 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379989', 'tblTempUsageDetail_20' ) start [2025-02-01 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379989', 'tblTempUsageDetail_20' ) end [2025-02-01 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379989', 'tblTempVendorCDR_20' ) start [2025-02-01 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379989', 'tblTempVendorCDR_20' ) end [2025-02-01 17:52:21] Production.INFO: ProcessCDR(1,14379989,1,1,2) [2025-02-01 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379989', 'tblTempUsageDetail_20' ) start [2025-02-01 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379989', 'tblTempUsageDetail_20' ) end [2025-02-01 17:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:52:26] Production.INFO: ==3910== Releasing lock... [2025-02-01 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:52:26] Production.INFO: 39 MB #Memory Used# [2025-02-01 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:53:05 [end_date_ymd] => 2025-02-01 17:53:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:53:05' and `end` < '2025-02-01 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-01 17:53:20] Production.INFO: count ==1495 [2025-02-01 17:53:20] Production.ERROR: pbx CDR StartTime 2025-02-01 14:53:05 - End Time 2025-02-01 17:53:05 [2025-02-01 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379994', 'tblTempUsageDetail_20' ) start [2025-02-01 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379994', 'tblTempUsageDetail_20' ) end [2025-02-01 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379994', 'tblTempVendorCDR_20' ) start [2025-02-01 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379994', 'tblTempVendorCDR_20' ) end [2025-02-01 17:53:21] Production.INFO: ProcessCDR(1,14379994,1,1,2) [2025-02-01 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379994', 'tblTempUsageDetail_20' ) start [2025-02-01 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379994', 'tblTempUsageDetail_20' ) end [2025-02-01 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:53:25] Production.INFO: ==4004== Releasing lock... [2025-02-01 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:53:25] Production.INFO: 39 MB #Memory Used# [2025-02-01 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:54:05 [end_date_ymd] => 2025-02-01 17:54:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:54:05' and `end` < '2025-02-01 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-01 17:54:18] Production.INFO: count ==1503 [2025-02-01 17:54:19] Production.ERROR: pbx CDR StartTime 2025-02-01 14:54:05 - End Time 2025-02-01 17:54:05 [2025-02-01 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379999', 'tblTempUsageDetail_20' ) start [2025-02-01 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14379999', 'tblTempUsageDetail_20' ) end [2025-02-01 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379999', 'tblTempVendorCDR_20' ) start [2025-02-01 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14379999', 'tblTempVendorCDR_20' ) end [2025-02-01 17:54:19] Production.INFO: ProcessCDR(1,14379999,1,1,2) [2025-02-01 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14379999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14379999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14379999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14379999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379999', 'tblTempUsageDetail_20' ) start [2025-02-01 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14379999', 'tblTempUsageDetail_20' ) end [2025-02-01 17:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:54:22] Production.INFO: ==4086== Releasing lock... [2025-02-01 17:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:54:22] Production.INFO: 39 MB #Memory Used# [2025-02-01 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:55:05 [end_date_ymd] => 2025-02-01 17:55:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:55:05' and `end` < '2025-02-01 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-01 17:55:18] Production.INFO: count ==1507 [2025-02-01 17:55:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:55:05 - End Time 2025-02-01 17:55:05 [2025-02-01 17:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380004', 'tblTempUsageDetail_20' ) start [2025-02-01 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380004', 'tblTempUsageDetail_20' ) end [2025-02-01 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380004', 'tblTempVendorCDR_20' ) start [2025-02-01 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380004', 'tblTempVendorCDR_20' ) end [2025-02-01 17:55:18] Production.INFO: ProcessCDR(1,14380004,1,1,2) [2025-02-01 17:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380004', 'tblTempUsageDetail_20' ) start [2025-02-01 17:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380004', 'tblTempUsageDetail_20' ) end [2025-02-01 17:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:55:22] Production.INFO: ==4207== Releasing lock... [2025-02-01 17:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:55:22] Production.INFO: 39 MB #Memory Used# [2025-02-01 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:56:05 [end_date_ymd] => 2025-02-01 17:56:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:56:05' and `end` < '2025-02-01 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-01 17:56:18] Production.INFO: count ==1492 [2025-02-01 17:56:19] Production.ERROR: pbx CDR StartTime 2025-02-01 14:56:05 - End Time 2025-02-01 17:56:05 [2025-02-01 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380009', 'tblTempUsageDetail_20' ) start [2025-02-01 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380009', 'tblTempUsageDetail_20' ) end [2025-02-01 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380009', 'tblTempVendorCDR_20' ) start [2025-02-01 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380009', 'tblTempVendorCDR_20' ) end [2025-02-01 17:56:19] Production.INFO: ProcessCDR(1,14380009,1,1,2) [2025-02-01 17:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380009', 'tblTempUsageDetail_20' ) start [2025-02-01 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380009', 'tblTempUsageDetail_20' ) end [2025-02-01 17:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:56:22] Production.INFO: ==4289== Releasing lock... [2025-02-01 17:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:56:22] Production.INFO: 39 MB #Memory Used# [2025-02-01 17:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:57:04 [end_date_ymd] => 2025-02-01 17:57:04 [RateCDR] => 1 ) [2025-02-01 17: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-01 14:57:04' and `end` < '2025-02-01 17: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-01 17:57:20] Production.INFO: count ==1588 [2025-02-01 17:57:21] Production.ERROR: pbx CDR StartTime 2025-02-01 14:57:04 - End Time 2025-02-01 17:57:04 [2025-02-01 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380014', 'tblTempUsageDetail_20' ) start [2025-02-01 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380014', 'tblTempUsageDetail_20' ) end [2025-02-01 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380014', 'tblTempVendorCDR_20' ) start [2025-02-01 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380014', 'tblTempVendorCDR_20' ) end [2025-02-01 17:57:21] Production.INFO: ProcessCDR(1,14380014,1,1,2) [2025-02-01 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380014', 'tblTempUsageDetail_20' ) start [2025-02-01 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380014', 'tblTempUsageDetail_20' ) end [2025-02-01 17:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:57:26] Production.INFO: ==4369== Releasing lock... [2025-02-01 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:57:26] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:58:05 [end_date_ymd] => 2025-02-01 17:58:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:58:05' and `end` < '2025-02-01 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-01 17:58:18] Production.INFO: count ==1578 [2025-02-01 17:58:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:58:05 - End Time 2025-02-01 17:58:05 [2025-02-01 17:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380019', 'tblTempUsageDetail_20' ) start [2025-02-01 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380019', 'tblTempUsageDetail_20' ) end [2025-02-01 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380019', 'tblTempVendorCDR_20' ) start [2025-02-01 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380019', 'tblTempVendorCDR_20' ) end [2025-02-01 17:58:18] Production.INFO: ProcessCDR(1,14380019,1,1,2) [2025-02-01 17:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380019', 'tblTempUsageDetail_20' ) start [2025-02-01 17:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380019', 'tblTempUsageDetail_20' ) end [2025-02-01 17:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:58:21] Production.INFO: ==4448== Releasing lock... [2025-02-01 17:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:58:21] Production.INFO: 40 MB #Memory Used# [2025-02-01 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 14:59:05 [end_date_ymd] => 2025-02-01 17:59:05 [RateCDR] => 1 ) [2025-02-01 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-01 14:59:05' and `end` < '2025-02-01 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-01 17:59:17] Production.INFO: count ==1579 [2025-02-01 17:59:18] Production.ERROR: pbx CDR StartTime 2025-02-01 14:59:05 - End Time 2025-02-01 17:59:05 [2025-02-01 17:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380024', 'tblTempUsageDetail_20' ) start [2025-02-01 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380024', 'tblTempUsageDetail_20' ) end [2025-02-01 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380024', 'tblTempVendorCDR_20' ) start [2025-02-01 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380024', 'tblTempVendorCDR_20' ) end [2025-02-01 17:59:18] Production.INFO: ProcessCDR(1,14380024,1,1,2) [2025-02-01 17:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 17:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 17:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380024', 'tblTempUsageDetail_20' ) start [2025-02-01 17:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380024', 'tblTempUsageDetail_20' ) end [2025-02-01 17:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 17:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 17:59:21] Production.INFO: ==4549== Releasing lock... [2025-02-01 17:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 17:59:21] Production.INFO: 40 MB #Memory Used# [2025-02-01 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:00:06 [end_date_ymd] => 2025-02-01 18:00:06 [RateCDR] => 1 ) [2025-02-01 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-01 15:00:06' and `end` < '2025-02-01 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-01 18:00:20] Production.INFO: count ==1586 [2025-02-01 18:00:20] Production.ERROR: pbx CDR StartTime 2025-02-01 15:00:06 - End Time 2025-02-01 18:00:06 [2025-02-01 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380030', 'tblTempUsageDetail_20' ) start [2025-02-01 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380030', 'tblTempUsageDetail_20' ) end [2025-02-01 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380030', 'tblTempVendorCDR_20' ) start [2025-02-01 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380030', 'tblTempVendorCDR_20' ) end [2025-02-01 18:00:20] Production.INFO: ProcessCDR(1,14380030,1,1,2) [2025-02-01 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380030', 'tblTempUsageDetail_20' ) start [2025-02-01 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380030', 'tblTempUsageDetail_20' ) end [2025-02-01 18:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:00:24] Production.INFO: ==4644== Releasing lock... [2025-02-01 18:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:00:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-01 18:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:01:04 [end_date_ymd] => 2025-02-01 18:01:04 [RateCDR] => 1 ) [2025-02-01 18:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 15:01:04' and `end` < '2025-02-01 18:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 18:01:18] Production.INFO: count ==1612 [2025-02-01 18:01:18] Production.ERROR: pbx CDR StartTime 2025-02-01 15:01:04 - End Time 2025-02-01 18:01:04 [2025-02-01 18:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380035', 'tblTempUsageDetail_20' ) start [2025-02-01 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380035', 'tblTempUsageDetail_20' ) end [2025-02-01 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380035', 'tblTempVendorCDR_20' ) start [2025-02-01 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380035', 'tblTempVendorCDR_20' ) end [2025-02-01 18:01:18] Production.INFO: ProcessCDR(1,14380035,1,1,2) [2025-02-01 18:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380035', 'tblTempUsageDetail_20' ) start [2025-02-01 18:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380035', 'tblTempUsageDetail_20' ) end [2025-02-01 18:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:01:21] Production.INFO: ==4739== Releasing lock... [2025-02-01 18:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:01:21] Production.INFO: 40 MB #Memory Used# [2025-02-01 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:02:05 [end_date_ymd] => 2025-02-01 18:02:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:02:05' and `end` < '2025-02-01 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-01 18:02:19] Production.INFO: count ==1611 [2025-02-01 18:02:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:02:05 - End Time 2025-02-01 18:02:05 [2025-02-01 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380040', 'tblTempUsageDetail_20' ) start [2025-02-01 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380040', 'tblTempUsageDetail_20' ) end [2025-02-01 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380040', 'tblTempVendorCDR_20' ) start [2025-02-01 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380040', 'tblTempVendorCDR_20' ) end [2025-02-01 18:02:19] Production.INFO: ProcessCDR(1,14380040,1,1,2) [2025-02-01 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380040', 'tblTempUsageDetail_20' ) start [2025-02-01 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380040', 'tblTempUsageDetail_20' ) end [2025-02-01 18:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:02:24] Production.INFO: ==4830== Releasing lock... [2025-02-01 18:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:02:24] Production.INFO: 40 MB #Memory Used# [2025-02-01 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:03:05 [end_date_ymd] => 2025-02-01 18:03:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:03:05' and `end` < '2025-02-01 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-01 18:03:18] Production.INFO: count ==1604 [2025-02-01 18:03:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:03:05 - End Time 2025-02-01 18:03:05 [2025-02-01 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380045', 'tblTempUsageDetail_20' ) start [2025-02-01 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380045', 'tblTempUsageDetail_20' ) end [2025-02-01 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380045', 'tblTempVendorCDR_20' ) start [2025-02-01 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380045', 'tblTempVendorCDR_20' ) end [2025-02-01 18:03:19] Production.INFO: ProcessCDR(1,14380045,1,1,2) [2025-02-01 18:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380045', 'tblTempUsageDetail_20' ) start [2025-02-01 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380045', 'tblTempUsageDetail_20' ) end [2025-02-01 18:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:03:22] Production.INFO: ==4908== Releasing lock... [2025-02-01 18:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:03:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-01 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:04:05 [end_date_ymd] => 2025-02-01 18:04:05 [RateCDR] => 1 ) [2025-02-01 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 15:04:05' and `end` < '2025-02-01 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 18:04:18] Production.INFO: count ==1604 [2025-02-01 18:04:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:04:05 - End Time 2025-02-01 18:04:05 [2025-02-01 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380050', 'tblTempUsageDetail_20' ) start [2025-02-01 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380050', 'tblTempUsageDetail_20' ) end [2025-02-01 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380050', 'tblTempVendorCDR_20' ) start [2025-02-01 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380050', 'tblTempVendorCDR_20' ) end [2025-02-01 18:04:19] Production.INFO: ProcessCDR(1,14380050,1,1,2) [2025-02-01 18:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380050', 'tblTempUsageDetail_20' ) start [2025-02-01 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380050', 'tblTempUsageDetail_20' ) end [2025-02-01 18:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:04:23] Production.INFO: ==4991== Releasing lock... [2025-02-01 18:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:04:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-01 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:05:06 [end_date_ymd] => 2025-02-01 18:05:06 [RateCDR] => 1 ) [2025-02-01 18: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-01 15:05:06' and `end` < '2025-02-01 18: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-01 18:05:20] Production.INFO: count ==1600 [2025-02-01 18:05:20] Production.ERROR: pbx CDR StartTime 2025-02-01 15:05:06 - End Time 2025-02-01 18:05:06 [2025-02-01 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380055', 'tblTempUsageDetail_20' ) start [2025-02-01 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380055', 'tblTempUsageDetail_20' ) end [2025-02-01 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380055', 'tblTempVendorCDR_20' ) start [2025-02-01 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380055', 'tblTempVendorCDR_20' ) end [2025-02-01 18:05:20] Production.INFO: ProcessCDR(1,14380055,1,1,2) [2025-02-01 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380055', 'tblTempUsageDetail_20' ) start [2025-02-01 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380055', 'tblTempUsageDetail_20' ) end [2025-02-01 18:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:05:23] Production.INFO: ==5088== Releasing lock... [2025-02-01 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:05:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:06:05 [end_date_ymd] => 2025-02-01 18:06:05 [RateCDR] => 1 ) [2025-02-01 18: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-01 15:06:05' and `end` < '2025-02-01 18: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-01 18:06:18] Production.INFO: count ==1599 [2025-02-01 18:06:18] Production.ERROR: pbx CDR StartTime 2025-02-01 15:06:05 - End Time 2025-02-01 18:06:05 [2025-02-01 18:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380060', 'tblTempUsageDetail_20' ) start [2025-02-01 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380060', 'tblTempUsageDetail_20' ) end [2025-02-01 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380060', 'tblTempVendorCDR_20' ) start [2025-02-01 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380060', 'tblTempVendorCDR_20' ) end [2025-02-01 18:06:18] Production.INFO: ProcessCDR(1,14380060,1,1,2) [2025-02-01 18:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380060', 'tblTempUsageDetail_20' ) start [2025-02-01 18:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380060', 'tblTempUsageDetail_20' ) end [2025-02-01 18:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:06:21] Production.INFO: ==5188== Releasing lock... [2025-02-01 18:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:06:21] Production.INFO: 40 MB #Memory Used# [2025-02-01 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:07:05 [end_date_ymd] => 2025-02-01 18:07:05 [RateCDR] => 1 ) [2025-02-01 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 15:07:05' and `end` < '2025-02-01 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-01 18:07:20] Production.INFO: count ==1599 [2025-02-01 18:07:20] Production.ERROR: pbx CDR StartTime 2025-02-01 15:07:05 - End Time 2025-02-01 18:07:05 [2025-02-01 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380065', 'tblTempUsageDetail_20' ) start [2025-02-01 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380065', 'tblTempUsageDetail_20' ) end [2025-02-01 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380065', 'tblTempVendorCDR_20' ) start [2025-02-01 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380065', 'tblTempVendorCDR_20' ) end [2025-02-01 18:07:20] Production.INFO: ProcessCDR(1,14380065,1,1,2) [2025-02-01 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380065', 'tblTempUsageDetail_20' ) start [2025-02-01 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380065', 'tblTempUsageDetail_20' ) end [2025-02-01 18:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:07:23] Production.INFO: ==5266== Releasing lock... [2025-02-01 18:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:07:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:08:05 [end_date_ymd] => 2025-02-01 18:08:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:08:05' and `end` < '2025-02-01 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-01 18:08:21] Production.INFO: count ==1598 [2025-02-01 18:08:21] Production.ERROR: pbx CDR StartTime 2025-02-01 15:08:05 - End Time 2025-02-01 18:08:05 [2025-02-01 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380070', 'tblTempUsageDetail_20' ) start [2025-02-01 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380070', 'tblTempUsageDetail_20' ) end [2025-02-01 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380070', 'tblTempVendorCDR_20' ) start [2025-02-01 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380070', 'tblTempVendorCDR_20' ) end [2025-02-01 18:08:21] Production.INFO: ProcessCDR(1,14380070,1,1,2) [2025-02-01 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380070', 'tblTempUsageDetail_20' ) start [2025-02-01 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380070', 'tblTempUsageDetail_20' ) end [2025-02-01 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:08:25] Production.INFO: ==5345== Releasing lock... [2025-02-01 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:08:25] Production.INFO: 40 MB #Memory Used# [2025-02-01 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:09:05 [end_date_ymd] => 2025-02-01 18:09:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:09:05' and `end` < '2025-02-01 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-01 18:09:18] Production.INFO: count ==1596 [2025-02-01 18:09:18] Production.ERROR: pbx CDR StartTime 2025-02-01 15:09:05 - End Time 2025-02-01 18:09:05 [2025-02-01 18:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380075', 'tblTempUsageDetail_20' ) start [2025-02-01 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380075', 'tblTempUsageDetail_20' ) end [2025-02-01 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380075', 'tblTempVendorCDR_20' ) start [2025-02-01 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380075', 'tblTempVendorCDR_20' ) end [2025-02-01 18:09:18] Production.INFO: ProcessCDR(1,14380075,1,1,2) [2025-02-01 18:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380075', 'tblTempUsageDetail_20' ) start [2025-02-01 18:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380075', 'tblTempUsageDetail_20' ) end [2025-02-01 18:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:09:21] Production.INFO: ==5428== Releasing lock... [2025-02-01 18:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:09:21] Production.INFO: 40 MB #Memory Used# [2025-02-01 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:10:05 [end_date_ymd] => 2025-02-01 18:10:05 [RateCDR] => 1 ) [2025-02-01 18: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-01 15:10:05' and `end` < '2025-02-01 18: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-01 18:10:18] Production.INFO: count ==1598 [2025-02-01 18:10:18] Production.ERROR: pbx CDR StartTime 2025-02-01 15:10:05 - End Time 2025-02-01 18:10:05 [2025-02-01 18:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380080', 'tblTempUsageDetail_20' ) start [2025-02-01 18:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380080', 'tblTempUsageDetail_20' ) end [2025-02-01 18:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380080', 'tblTempVendorCDR_20' ) start [2025-02-01 18:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380080', 'tblTempVendorCDR_20' ) end [2025-02-01 18:10:18] Production.INFO: ProcessCDR(1,14380080,1,1,2) [2025-02-01 18:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380080', 'tblTempUsageDetail_20' ) start [2025-02-01 18:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380080', 'tblTempUsageDetail_20' ) end [2025-02-01 18:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:10:21] Production.INFO: ==5548== Releasing lock... [2025-02-01 18:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:10:21] Production.INFO: 40 MB #Memory Used# [2025-02-01 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:11:05 [end_date_ymd] => 2025-02-01 18:11:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:11:05' and `end` < '2025-02-01 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-01 18:11:19] Production.INFO: count ==1632 [2025-02-01 18:11:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:11:05 - End Time 2025-02-01 18:11:05 [2025-02-01 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380086', 'tblTempUsageDetail_20' ) start [2025-02-01 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380086', 'tblTempUsageDetail_20' ) end [2025-02-01 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380086', 'tblTempVendorCDR_20' ) start [2025-02-01 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380086', 'tblTempVendorCDR_20' ) end [2025-02-01 18:11:19] Production.INFO: ProcessCDR(1,14380086,1,1,2) [2025-02-01 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380086', 'tblTempUsageDetail_20' ) start [2025-02-01 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380086', 'tblTempUsageDetail_20' ) end [2025-02-01 18:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:11:23] Production.INFO: ==5633== Releasing lock... [2025-02-01 18:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:11:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:12:05 [end_date_ymd] => 2025-02-01 18:12:05 [RateCDR] => 1 ) [2025-02-01 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 15:12:05' and `end` < '2025-02-01 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 18:12:20] Production.INFO: count ==1635 [2025-02-01 18:12:20] Production.ERROR: pbx CDR StartTime 2025-02-01 15:12:05 - End Time 2025-02-01 18:12:05 [2025-02-01 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380091', 'tblTempUsageDetail_20' ) start [2025-02-01 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380091', 'tblTempUsageDetail_20' ) end [2025-02-01 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380091', 'tblTempVendorCDR_20' ) start [2025-02-01 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380091', 'tblTempVendorCDR_20' ) end [2025-02-01 18:12:20] Production.INFO: ProcessCDR(1,14380091,1,1,2) [2025-02-01 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380091', 'tblTempUsageDetail_20' ) start [2025-02-01 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380091', 'tblTempUsageDetail_20' ) end [2025-02-01 18:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:12:23] Production.INFO: ==5714== Releasing lock... [2025-02-01 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:12:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:13:05 [end_date_ymd] => 2025-02-01 18:13:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:13:05' and `end` < '2025-02-01 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-01 18:13:18] Production.INFO: count ==1633 [2025-02-01 18:13:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:13:05 - End Time 2025-02-01 18:13:05 [2025-02-01 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380096', 'tblTempUsageDetail_20' ) start [2025-02-01 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380096', 'tblTempUsageDetail_20' ) end [2025-02-01 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380096', 'tblTempVendorCDR_20' ) start [2025-02-01 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380096', 'tblTempVendorCDR_20' ) end [2025-02-01 18:13:19] Production.INFO: ProcessCDR(1,14380096,1,1,2) [2025-02-01 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380096', 'tblTempUsageDetail_20' ) start [2025-02-01 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380096', 'tblTempUsageDetail_20' ) end [2025-02-01 18:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:13:22] Production.INFO: ==5812== Releasing lock... [2025-02-01 18:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:13:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:14:05 [end_date_ymd] => 2025-02-01 18:14:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:14:05' and `end` < '2025-02-01 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-01 18:14:18] Production.INFO: count ==1646 [2025-02-01 18:14:18] Production.ERROR: pbx CDR StartTime 2025-02-01 15:14:05 - End Time 2025-02-01 18:14:05 [2025-02-01 18:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380101', 'tblTempUsageDetail_20' ) start [2025-02-01 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380101', 'tblTempUsageDetail_20' ) end [2025-02-01 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380101', 'tblTempVendorCDR_20' ) start [2025-02-01 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380101', 'tblTempVendorCDR_20' ) end [2025-02-01 18:14:18] Production.INFO: ProcessCDR(1,14380101,1,1,2) [2025-02-01 18:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380101', 'tblTempUsageDetail_20' ) start [2025-02-01 18:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380101', 'tblTempUsageDetail_20' ) end [2025-02-01 18:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:14:21] Production.INFO: ==5892== Releasing lock... [2025-02-01 18:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:14:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:15:05 [end_date_ymd] => 2025-02-01 18:15:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:15:05' and `end` < '2025-02-01 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-01 18:15:20] Production.INFO: count ==1649 [2025-02-01 18:15:21] Production.ERROR: pbx CDR StartTime 2025-02-01 15:15:05 - End Time 2025-02-01 18:15:05 [2025-02-01 18:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380106', 'tblTempUsageDetail_20' ) start [2025-02-01 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380106', 'tblTempUsageDetail_20' ) end [2025-02-01 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380106', 'tblTempVendorCDR_20' ) start [2025-02-01 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380106', 'tblTempVendorCDR_20' ) end [2025-02-01 18:15:21] Production.INFO: ProcessCDR(1,14380106,1,1,2) [2025-02-01 18:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380106', 'tblTempUsageDetail_20' ) start [2025-02-01 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380106', 'tblTempUsageDetail_20' ) end [2025-02-01 18:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:15:24] Production.INFO: ==5973== Releasing lock... [2025-02-01 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:15:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:16:05 [end_date_ymd] => 2025-02-01 18:16:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:16:05' and `end` < '2025-02-01 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-01 18:16:18] Production.INFO: count ==1655 [2025-02-01 18:16:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:16:05 - End Time 2025-02-01 18:16:05 [2025-02-01 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380111', 'tblTempUsageDetail_20' ) start [2025-02-01 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380111', 'tblTempUsageDetail_20' ) end [2025-02-01 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380111', 'tblTempVendorCDR_20' ) start [2025-02-01 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380111', 'tblTempVendorCDR_20' ) end [2025-02-01 18:16:19] Production.INFO: ProcessCDR(1,14380111,1,1,2) [2025-02-01 18:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380111', 'tblTempUsageDetail_20' ) start [2025-02-01 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380111', 'tblTempUsageDetail_20' ) end [2025-02-01 18:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:16:23] Production.INFO: ==6053== Releasing lock... [2025-02-01 18:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:16:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:17:05 [end_date_ymd] => 2025-02-01 18:17:05 [RateCDR] => 1 ) [2025-02-01 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 15:17:05' and `end` < '2025-02-01 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 18:17:18] Production.INFO: count ==1658 [2025-02-01 18:17:18] Production.ERROR: pbx CDR StartTime 2025-02-01 15:17:05 - End Time 2025-02-01 18:17:05 [2025-02-01 18:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380116', 'tblTempUsageDetail_20' ) start [2025-02-01 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380116', 'tblTempUsageDetail_20' ) end [2025-02-01 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380116', 'tblTempVendorCDR_20' ) start [2025-02-01 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380116', 'tblTempVendorCDR_20' ) end [2025-02-01 18:17:18] Production.INFO: ProcessCDR(1,14380116,1,1,2) [2025-02-01 18:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380116', 'tblTempUsageDetail_20' ) start [2025-02-01 18:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380116', 'tblTempUsageDetail_20' ) end [2025-02-01 18:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:17:21] Production.INFO: ==6132== Releasing lock... [2025-02-01 18:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:17:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 18:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:18:04 [end_date_ymd] => 2025-02-01 18:18:04 [RateCDR] => 1 ) [2025-02-01 18: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-01 15:18:04' and `end` < '2025-02-01 18: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-01 18:18:23] Production.INFO: count ==1662 [2025-02-01 18:18:23] Production.ERROR: pbx CDR StartTime 2025-02-01 15:18:04 - End Time 2025-02-01 18:18:04 [2025-02-01 18:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380121', 'tblTempUsageDetail_20' ) start [2025-02-01 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380121', 'tblTempUsageDetail_20' ) end [2025-02-01 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380121', 'tblTempVendorCDR_20' ) start [2025-02-01 18:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380121', 'tblTempVendorCDR_20' ) end [2025-02-01 18:18:23] Production.INFO: ProcessCDR(1,14380121,1,1,2) [2025-02-01 18:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380121', 'tblTempUsageDetail_20' ) start [2025-02-01 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380121', 'tblTempUsageDetail_20' ) end [2025-02-01 18:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:18:26] Production.INFO: ==6210== Releasing lock... [2025-02-01 18:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:18:26] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:19:05 [end_date_ymd] => 2025-02-01 18:19:05 [RateCDR] => 1 ) [2025-02-01 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 15:19:05' and `end` < '2025-02-01 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 18:19:20] Production.INFO: count ==1666 [2025-02-01 18:19:20] Production.ERROR: pbx CDR StartTime 2025-02-01 15:19:05 - End Time 2025-02-01 18:19:05 [2025-02-01 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380126', 'tblTempUsageDetail_20' ) start [2025-02-01 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380126', 'tblTempUsageDetail_20' ) end [2025-02-01 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380126', 'tblTempVendorCDR_20' ) start [2025-02-01 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380126', 'tblTempVendorCDR_20' ) end [2025-02-01 18:19:20] Production.INFO: ProcessCDR(1,14380126,1,1,2) [2025-02-01 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380126', 'tblTempUsageDetail_20' ) start [2025-02-01 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380126', 'tblTempUsageDetail_20' ) end [2025-02-01 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:19:25] Production.INFO: ==6288== Releasing lock... [2025-02-01 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:19:25] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:20:05 [end_date_ymd] => 2025-02-01 18:20:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:20:05' and `end` < '2025-02-01 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-01 18:20:18] Production.INFO: count ==1668 [2025-02-01 18:20:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:20:05 - End Time 2025-02-01 18:20:05 [2025-02-01 18:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380132', 'tblTempUsageDetail_20' ) start [2025-02-01 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380132', 'tblTempUsageDetail_20' ) end [2025-02-01 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380132', 'tblTempVendorCDR_20' ) start [2025-02-01 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380132', 'tblTempVendorCDR_20' ) end [2025-02-01 18:20:19] Production.INFO: ProcessCDR(1,14380132,1,1,2) [2025-02-01 18:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380132', 'tblTempUsageDetail_20' ) start [2025-02-01 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380132', 'tblTempUsageDetail_20' ) end [2025-02-01 18:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:20:24] Production.INFO: ==6384== Releasing lock... [2025-02-01 18:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:20:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:21:05 [end_date_ymd] => 2025-02-01 18:21:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:21:05' and `end` < '2025-02-01 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-01 18:21:18] Production.INFO: count ==1699 [2025-02-01 18:21:18] Production.ERROR: pbx CDR StartTime 2025-02-01 15:21:05 - End Time 2025-02-01 18:21:05 [2025-02-01 18:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380137', 'tblTempUsageDetail_20' ) start [2025-02-01 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380137', 'tblTempUsageDetail_20' ) end [2025-02-01 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380137', 'tblTempVendorCDR_20' ) start [2025-02-01 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380137', 'tblTempVendorCDR_20' ) end [2025-02-01 18:21:18] Production.INFO: ProcessCDR(1,14380137,1,1,2) [2025-02-01 18:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380137', 'tblTempUsageDetail_20' ) start [2025-02-01 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380137', 'tblTempUsageDetail_20' ) end [2025-02-01 18:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:21:23] Production.INFO: ==6500== Releasing lock... [2025-02-01 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:21:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:22:05 [end_date_ymd] => 2025-02-01 18:22:05 [RateCDR] => 1 ) [2025-02-01 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 15:22:05' and `end` < '2025-02-01 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 18:22:20] Production.INFO: count ==1700 [2025-02-01 18:22:20] Production.ERROR: pbx CDR StartTime 2025-02-01 15:22:05 - End Time 2025-02-01 18:22:05 [2025-02-01 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380142', 'tblTempUsageDetail_20' ) start [2025-02-01 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380142', 'tblTempUsageDetail_20' ) end [2025-02-01 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380142', 'tblTempVendorCDR_20' ) start [2025-02-01 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380142', 'tblTempVendorCDR_20' ) end [2025-02-01 18:22:21] Production.INFO: ProcessCDR(1,14380142,1,1,2) [2025-02-01 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380142', 'tblTempUsageDetail_20' ) start [2025-02-01 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380142', 'tblTempUsageDetail_20' ) end [2025-02-01 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:22:25] Production.INFO: ==6578== Releasing lock... [2025-02-01 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:22:25] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:23:05 [end_date_ymd] => 2025-02-01 18:23:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:23:05' and `end` < '2025-02-01 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-01 18:23:22] Production.INFO: count ==1705 [2025-02-01 18:23:22] Production.ERROR: pbx CDR StartTime 2025-02-01 15:23:05 - End Time 2025-02-01 18:23:05 [2025-02-01 18:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380147', 'tblTempUsageDetail_20' ) start [2025-02-01 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380147', 'tblTempUsageDetail_20' ) end [2025-02-01 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380147', 'tblTempVendorCDR_20' ) start [2025-02-01 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380147', 'tblTempVendorCDR_20' ) end [2025-02-01 18:23:22] Production.INFO: ProcessCDR(1,14380147,1,1,2) [2025-02-01 18:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380147', 'tblTempUsageDetail_20' ) start [2025-02-01 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380147', 'tblTempUsageDetail_20' ) end [2025-02-01 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:23:25] Production.INFO: ==6660== Releasing lock... [2025-02-01 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:23:25] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:24:05 [end_date_ymd] => 2025-02-01 18:24:05 [RateCDR] => 1 ) [2025-02-01 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 15:24:05' and `end` < '2025-02-01 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 18:24:19] Production.INFO: count ==1702 [2025-02-01 18:24:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:24:05 - End Time 2025-02-01 18:24:05 [2025-02-01 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380152', 'tblTempUsageDetail_20' ) start [2025-02-01 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380152', 'tblTempUsageDetail_20' ) end [2025-02-01 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380152', 'tblTempVendorCDR_20' ) start [2025-02-01 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380152', 'tblTempVendorCDR_20' ) end [2025-02-01 18:24:19] Production.INFO: ProcessCDR(1,14380152,1,1,2) [2025-02-01 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380152', 'tblTempUsageDetail_20' ) start [2025-02-01 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380152', 'tblTempUsageDetail_20' ) end [2025-02-01 18:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:24:22] Production.INFO: ==6742== Releasing lock... [2025-02-01 18:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:24:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:25:05 [end_date_ymd] => 2025-02-01 18:25:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:25:05' and `end` < '2025-02-01 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-01 18:25:18] Production.INFO: count ==1704 [2025-02-01 18:25:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:25:05 - End Time 2025-02-01 18:25:05 [2025-02-01 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380157', 'tblTempUsageDetail_20' ) start [2025-02-01 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380157', 'tblTempUsageDetail_20' ) end [2025-02-01 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380157', 'tblTempVendorCDR_20' ) start [2025-02-01 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380157', 'tblTempVendorCDR_20' ) end [2025-02-01 18:25:19] Production.INFO: ProcessCDR(1,14380157,1,1,2) [2025-02-01 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380157', 'tblTempUsageDetail_20' ) start [2025-02-01 18:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380157', 'tblTempUsageDetail_20' ) end [2025-02-01 18:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:25:22] Production.INFO: ==6819== Releasing lock... [2025-02-01 18:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:25:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:26:05 [end_date_ymd] => 2025-02-01 18:26:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:26:05' and `end` < '2025-02-01 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-01 18:26:21] Production.INFO: count ==1696 [2025-02-01 18:26:21] Production.ERROR: pbx CDR StartTime 2025-02-01 15:26:05 - End Time 2025-02-01 18:26:05 [2025-02-01 18:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380162', 'tblTempUsageDetail_20' ) start [2025-02-01 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380162', 'tblTempUsageDetail_20' ) end [2025-02-01 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380162', 'tblTempVendorCDR_20' ) start [2025-02-01 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380162', 'tblTempVendorCDR_20' ) end [2025-02-01 18:26:21] Production.INFO: ProcessCDR(1,14380162,1,1,2) [2025-02-01 18:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380162', 'tblTempUsageDetail_20' ) start [2025-02-01 18:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380162', 'tblTempUsageDetail_20' ) end [2025-02-01 18:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:26:25] Production.INFO: ==6945== Releasing lock... [2025-02-01 18:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:26:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:27:04 [end_date_ymd] => 2025-02-01 18:27:04 [RateCDR] => 1 ) [2025-02-01 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-01 15:27:04' and `end` < '2025-02-01 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-01 18:27:17] Production.INFO: count ==1696 [2025-02-01 18:27:18] Production.ERROR: pbx CDR StartTime 2025-02-01 15:27:04 - End Time 2025-02-01 18:27:04 [2025-02-01 18:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380167', 'tblTempUsageDetail_20' ) start [2025-02-01 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380167', 'tblTempUsageDetail_20' ) end [2025-02-01 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380167', 'tblTempVendorCDR_20' ) start [2025-02-01 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380167', 'tblTempVendorCDR_20' ) end [2025-02-01 18:27:18] Production.INFO: ProcessCDR(1,14380167,1,1,2) [2025-02-01 18:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380167', 'tblTempUsageDetail_20' ) start [2025-02-01 18:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380167', 'tblTempUsageDetail_20' ) end [2025-02-01 18:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:27:22] Production.INFO: ==7038== Releasing lock... [2025-02-01 18:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:27:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:28:05 [end_date_ymd] => 2025-02-01 18:28:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:28:05' and `end` < '2025-02-01 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-01 18:28:19] Production.INFO: count ==1696 [2025-02-01 18:28:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:28:05 - End Time 2025-02-01 18:28:05 [2025-02-01 18:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380172', 'tblTempUsageDetail_20' ) start [2025-02-01 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380172', 'tblTempUsageDetail_20' ) end [2025-02-01 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380172', 'tblTempVendorCDR_20' ) start [2025-02-01 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380172', 'tblTempVendorCDR_20' ) end [2025-02-01 18:28:19] Production.INFO: ProcessCDR(1,14380172,1,1,2) [2025-02-01 18:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380172', 'tblTempUsageDetail_20' ) start [2025-02-01 18:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380172', 'tblTempUsageDetail_20' ) end [2025-02-01 18:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:28:22] Production.INFO: ==7118== Releasing lock... [2025-02-01 18:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:28:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:29:05 [end_date_ymd] => 2025-02-01 18:29:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:29:05' and `end` < '2025-02-01 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-01 18:29:18] Production.INFO: count ==1695 [2025-02-01 18:29:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:29:05 - End Time 2025-02-01 18:29:05 [2025-02-01 18:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380177', 'tblTempUsageDetail_20' ) start [2025-02-01 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380177', 'tblTempUsageDetail_20' ) end [2025-02-01 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380177', 'tblTempVendorCDR_20' ) start [2025-02-01 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380177', 'tblTempVendorCDR_20' ) end [2025-02-01 18:29:19] Production.INFO: ProcessCDR(1,14380177,1,1,2) [2025-02-01 18:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380177', 'tblTempUsageDetail_20' ) start [2025-02-01 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380177', 'tblTempUsageDetail_20' ) end [2025-02-01 18:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:29:22] Production.INFO: ==7197== Releasing lock... [2025-02-01 18:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:29:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:30:06 [end_date_ymd] => 2025-02-01 18:30:06 [RateCDR] => 1 ) [2025-02-01 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-01 15:30:06' and `end` < '2025-02-01 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-01 18:30:20] Production.INFO: count ==1695 [2025-02-01 18:30:20] Production.ERROR: pbx CDR StartTime 2025-02-01 15:30:06 - End Time 2025-02-01 18:30:06 [2025-02-01 18:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380183', 'tblTempUsageDetail_20' ) start [2025-02-01 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380183', 'tblTempUsageDetail_20' ) end [2025-02-01 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380183', 'tblTempVendorCDR_20' ) start [2025-02-01 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380183', 'tblTempVendorCDR_20' ) end [2025-02-01 18:30:20] Production.INFO: ProcessCDR(1,14380183,1,1,2) [2025-02-01 18:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380183', 'tblTempUsageDetail_20' ) start [2025-02-01 18:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380183', 'tblTempUsageDetail_20' ) end [2025-02-01 18:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:30:23] Production.INFO: ==7278== Releasing lock... [2025-02-01 18:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:30:23] Production.INFO: 41 MB #Memory Used# [2025-02-01 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:31:05 [end_date_ymd] => 2025-02-01 18:31:05 [RateCDR] => 1 ) [2025-02-01 18:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 15:31:05' and `end` < '2025-02-01 18:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 18:31:18] Production.INFO: count ==1722 [2025-02-01 18:31:18] Production.ERROR: pbx CDR StartTime 2025-02-01 15:31:05 - End Time 2025-02-01 18:31:05 [2025-02-01 18:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380188', 'tblTempUsageDetail_20' ) start [2025-02-01 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380188', 'tblTempUsageDetail_20' ) end [2025-02-01 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380188', 'tblTempVendorCDR_20' ) start [2025-02-01 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380188', 'tblTempVendorCDR_20' ) end [2025-02-01 18:31:18] Production.INFO: ProcessCDR(1,14380188,1,1,2) [2025-02-01 18:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380188', 'tblTempUsageDetail_20' ) start [2025-02-01 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380188', 'tblTempUsageDetail_20' ) end [2025-02-01 18:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:31:23] Production.INFO: ==7360== Releasing lock... [2025-02-01 18:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:31:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:32:05 [end_date_ymd] => 2025-02-01 18:32:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:32:05' and `end` < '2025-02-01 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-01 18:32:19] Production.INFO: count ==1719 [2025-02-01 18:32:20] Production.ERROR: pbx CDR StartTime 2025-02-01 15:32:05 - End Time 2025-02-01 18:32:05 [2025-02-01 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380193', 'tblTempUsageDetail_20' ) start [2025-02-01 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380193', 'tblTempUsageDetail_20' ) end [2025-02-01 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380193', 'tblTempVendorCDR_20' ) start [2025-02-01 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380193', 'tblTempVendorCDR_20' ) end [2025-02-01 18:32:20] Production.INFO: ProcessCDR(1,14380193,1,1,2) [2025-02-01 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380193', 'tblTempUsageDetail_20' ) start [2025-02-01 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380193', 'tblTempUsageDetail_20' ) end [2025-02-01 18:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:32:23] Production.INFO: ==7439== Releasing lock... [2025-02-01 18:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:32:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:33:05 [end_date_ymd] => 2025-02-01 18:33:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:33:05' and `end` < '2025-02-01 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-01 18:33:18] Production.INFO: count ==1719 [2025-02-01 18:33:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:33:05 - End Time 2025-02-01 18:33:05 [2025-02-01 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380198', 'tblTempUsageDetail_20' ) start [2025-02-01 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380198', 'tblTempUsageDetail_20' ) end [2025-02-01 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380198', 'tblTempVendorCDR_20' ) start [2025-02-01 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380198', 'tblTempVendorCDR_20' ) end [2025-02-01 18:33:19] Production.INFO: ProcessCDR(1,14380198,1,1,2) [2025-02-01 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380198', 'tblTempUsageDetail_20' ) start [2025-02-01 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380198', 'tblTempUsageDetail_20' ) end [2025-02-01 18:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:33:22] Production.INFO: ==7518== Releasing lock... [2025-02-01 18:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:33:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:34:04 [end_date_ymd] => 2025-02-01 18:34:04 [RateCDR] => 1 ) [2025-02-01 18: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-01 15:34:04' and `end` < '2025-02-01 18: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-01 18:34:17] Production.INFO: count ==1720 [2025-02-01 18:34:18] Production.ERROR: pbx CDR StartTime 2025-02-01 15:34:04 - End Time 2025-02-01 18:34:04 [2025-02-01 18:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380203', 'tblTempUsageDetail_20' ) start [2025-02-01 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380203', 'tblTempUsageDetail_20' ) end [2025-02-01 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380203', 'tblTempVendorCDR_20' ) start [2025-02-01 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380203', 'tblTempVendorCDR_20' ) end [2025-02-01 18:34:18] Production.INFO: ProcessCDR(1,14380203,1,1,2) [2025-02-01 18:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380203', 'tblTempUsageDetail_20' ) start [2025-02-01 18:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380203', 'tblTempUsageDetail_20' ) end [2025-02-01 18:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:34:21] Production.INFO: ==7599== Releasing lock... [2025-02-01 18:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:34:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:35:06 [end_date_ymd] => 2025-02-01 18:35:06 [RateCDR] => 1 ) [2025-02-01 18: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-01 15:35:06' and `end` < '2025-02-01 18: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-01 18:35:21] Production.INFO: count ==1722 [2025-02-01 18:35:22] Production.ERROR: pbx CDR StartTime 2025-02-01 15:35:06 - End Time 2025-02-01 18:35:06 [2025-02-01 18:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380208', 'tblTempUsageDetail_20' ) start [2025-02-01 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380208', 'tblTempUsageDetail_20' ) end [2025-02-01 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380208', 'tblTempVendorCDR_20' ) start [2025-02-01 18:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380208', 'tblTempVendorCDR_20' ) end [2025-02-01 18:35:22] Production.INFO: ProcessCDR(1,14380208,1,1,2) [2025-02-01 18:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380208', 'tblTempUsageDetail_20' ) start [2025-02-01 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380208', 'tblTempUsageDetail_20' ) end [2025-02-01 18:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:35:25] Production.INFO: ==7678== Releasing lock... [2025-02-01 18:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:35:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:36:06 [end_date_ymd] => 2025-02-01 18:36:06 [RateCDR] => 1 ) [2025-02-01 18: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-01 15:36:06' and `end` < '2025-02-01 18: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-01 18:36:21] Production.INFO: count ==1734 [2025-02-01 18:36:22] Production.ERROR: pbx CDR StartTime 2025-02-01 15:36:06 - End Time 2025-02-01 18:36:06 [2025-02-01 18:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380213', 'tblTempUsageDetail_20' ) start [2025-02-01 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380213', 'tblTempUsageDetail_20' ) end [2025-02-01 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380213', 'tblTempVendorCDR_20' ) start [2025-02-01 18:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380213', 'tblTempVendorCDR_20' ) end [2025-02-01 18:36:22] Production.INFO: ProcessCDR(1,14380213,1,1,2) [2025-02-01 18:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380213', 'tblTempUsageDetail_20' ) start [2025-02-01 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380213', 'tblTempUsageDetail_20' ) end [2025-02-01 18:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:36:25] Production.INFO: ==7763== Releasing lock... [2025-02-01 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:36:25] Production.INFO: 41 MB #Memory Used# [2025-02-01 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:37:05 [end_date_ymd] => 2025-02-01 18:37:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:37:05' and `end` < '2025-02-01 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-01 18:37:18] Production.INFO: count ==1737 [2025-02-01 18:37:18] Production.ERROR: pbx CDR StartTime 2025-02-01 15:37:05 - End Time 2025-02-01 18:37:05 [2025-02-01 18:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380218', 'tblTempUsageDetail_20' ) start [2025-02-01 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380218', 'tblTempUsageDetail_20' ) end [2025-02-01 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380218', 'tblTempVendorCDR_20' ) start [2025-02-01 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380218', 'tblTempVendorCDR_20' ) end [2025-02-01 18:37:18] Production.INFO: ProcessCDR(1,14380218,1,1,2) [2025-02-01 18:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380218', 'tblTempUsageDetail_20' ) start [2025-02-01 18:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380218', 'tblTempUsageDetail_20' ) end [2025-02-01 18:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:37:21] Production.INFO: ==7842== Releasing lock... [2025-02-01 18:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:37:21] Production.INFO: 41 MB #Memory Used# [2025-02-01 18:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:38:06 [end_date_ymd] => 2025-02-01 18:38:06 [RateCDR] => 1 ) [2025-02-01 18:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 15:38:06' and `end` < '2025-02-01 18:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 18:38:19] Production.INFO: count ==1738 [2025-02-01 18:38:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:38:06 - End Time 2025-02-01 18:38:06 [2025-02-01 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380223', 'tblTempUsageDetail_20' ) start [2025-02-01 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380223', 'tblTempUsageDetail_20' ) end [2025-02-01 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380223', 'tblTempVendorCDR_20' ) start [2025-02-01 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380223', 'tblTempVendorCDR_20' ) end [2025-02-01 18:38:19] Production.INFO: ProcessCDR(1,14380223,1,1,2) [2025-02-01 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380223', 'tblTempUsageDetail_20' ) start [2025-02-01 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380223', 'tblTempUsageDetail_20' ) end [2025-02-01 18:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:38:23] Production.INFO: ==7925== Releasing lock... [2025-02-01 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:38:23] Production.INFO: 41 MB #Memory Used# [2025-02-01 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:39:05 [end_date_ymd] => 2025-02-01 18:39:05 [RateCDR] => 1 ) [2025-02-01 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 15:39:05' and `end` < '2025-02-01 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 18:39:19] Production.INFO: count ==1741 [2025-02-01 18:39:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:39:05 - End Time 2025-02-01 18:39:05 [2025-02-01 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380228', 'tblTempUsageDetail_20' ) start [2025-02-01 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380228', 'tblTempUsageDetail_20' ) end [2025-02-01 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380228', 'tblTempVendorCDR_20' ) start [2025-02-01 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380228', 'tblTempVendorCDR_20' ) end [2025-02-01 18:39:19] Production.INFO: ProcessCDR(1,14380228,1,1,2) [2025-02-01 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380228', 'tblTempUsageDetail_20' ) start [2025-02-01 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380228', 'tblTempUsageDetail_20' ) end [2025-02-01 18:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:39:22] Production.INFO: ==8004== Releasing lock... [2025-02-01 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:39:22] Production.INFO: 41 MB #Memory Used# [2025-02-01 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:40:06 [end_date_ymd] => 2025-02-01 18:40:06 [RateCDR] => 1 ) [2025-02-01 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-01 15:40:06' and `end` < '2025-02-01 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-01 18:40:19] Production.INFO: count ==1748 [2025-02-01 18:40:20] Production.ERROR: pbx CDR StartTime 2025-02-01 15:40:06 - End Time 2025-02-01 18:40:06 [2025-02-01 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380234', 'tblTempUsageDetail_20' ) start [2025-02-01 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380234', 'tblTempUsageDetail_20' ) end [2025-02-01 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380234', 'tblTempVendorCDR_20' ) start [2025-02-01 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380234', 'tblTempVendorCDR_20' ) end [2025-02-01 18:40:20] Production.INFO: ProcessCDR(1,14380234,1,1,2) [2025-02-01 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380234', 'tblTempUsageDetail_20' ) start [2025-02-01 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380234', 'tblTempUsageDetail_20' ) end [2025-02-01 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:40:24] Production.INFO: ==8085== Releasing lock... [2025-02-01 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:40:24] Production.INFO: 41 MB #Memory Used# [2025-02-01 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:41:05 [end_date_ymd] => 2025-02-01 18:41:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:41:05' and `end` < '2025-02-01 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-01 18:41:19] Production.INFO: count ==1742 [2025-02-01 18:41:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:41:05 - End Time 2025-02-01 18:41:05 [2025-02-01 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380239', 'tblTempUsageDetail_20' ) start [2025-02-01 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380239', 'tblTempUsageDetail_20' ) end [2025-02-01 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380239', 'tblTempVendorCDR_20' ) start [2025-02-01 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380239', 'tblTempVendorCDR_20' ) end [2025-02-01 18:41:19] Production.INFO: ProcessCDR(1,14380239,1,1,2) [2025-02-01 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380239', 'tblTempUsageDetail_20' ) start [2025-02-01 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380239', 'tblTempUsageDetail_20' ) end [2025-02-01 18:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:41:22] Production.INFO: ==8211== Releasing lock... [2025-02-01 18:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:41:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:42:06 [end_date_ymd] => 2025-02-01 18:42:06 [RateCDR] => 1 ) [2025-02-01 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-01 15:42:06' and `end` < '2025-02-01 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-01 18:42:19] Production.INFO: count ==1745 [2025-02-01 18:42:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:42:06 - End Time 2025-02-01 18:42:06 [2025-02-01 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380244', 'tblTempUsageDetail_20' ) start [2025-02-01 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380244', 'tblTempUsageDetail_20' ) end [2025-02-01 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380244', 'tblTempVendorCDR_20' ) start [2025-02-01 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380244', 'tblTempVendorCDR_20' ) end [2025-02-01 18:42:19] Production.INFO: ProcessCDR(1,14380244,1,1,2) [2025-02-01 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380244', 'tblTempUsageDetail_20' ) start [2025-02-01 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380244', 'tblTempUsageDetail_20' ) end [2025-02-01 18:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:42:22] Production.INFO: ==8290== Releasing lock... [2025-02-01 18:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:42:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:43:05 [end_date_ymd] => 2025-02-01 18:43:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:43:05' and `end` < '2025-02-01 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-01 18:43:17] Production.INFO: count ==1747 [2025-02-01 18:43:18] Production.ERROR: pbx CDR StartTime 2025-02-01 15:43:05 - End Time 2025-02-01 18:43:05 [2025-02-01 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380249', 'tblTempUsageDetail_20' ) start [2025-02-01 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380249', 'tblTempUsageDetail_20' ) end [2025-02-01 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380249', 'tblTempVendorCDR_20' ) start [2025-02-01 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380249', 'tblTempVendorCDR_20' ) end [2025-02-01 18:43:18] Production.INFO: ProcessCDR(1,14380249,1,1,2) [2025-02-01 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380249', 'tblTempUsageDetail_20' ) start [2025-02-01 18:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380249', 'tblTempUsageDetail_20' ) end [2025-02-01 18:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:43:21] Production.INFO: ==8370== Releasing lock... [2025-02-01 18:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:43:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:44:05 [end_date_ymd] => 2025-02-01 18:44:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:44:05' and `end` < '2025-02-01 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-01 18:44:19] Production.INFO: count ==1744 [2025-02-01 18:44:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:44:05 - End Time 2025-02-01 18:44:05 [2025-02-01 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380254', 'tblTempUsageDetail_20' ) start [2025-02-01 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380254', 'tblTempUsageDetail_20' ) end [2025-02-01 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380254', 'tblTempVendorCDR_20' ) start [2025-02-01 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380254', 'tblTempVendorCDR_20' ) end [2025-02-01 18:44:19] Production.INFO: ProcessCDR(1,14380254,1,1,2) [2025-02-01 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380254', 'tblTempUsageDetail_20' ) start [2025-02-01 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380254', 'tblTempUsageDetail_20' ) end [2025-02-01 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:44:24] Production.INFO: ==8448== Releasing lock... [2025-02-01 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:44:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:45:05 [end_date_ymd] => 2025-02-01 18:45:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:45:05' and `end` < '2025-02-01 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-01 18:45:18] Production.INFO: count ==1740 [2025-02-01 18:45:18] Production.ERROR: pbx CDR StartTime 2025-02-01 15:45:05 - End Time 2025-02-01 18:45:05 [2025-02-01 18:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380259', 'tblTempUsageDetail_20' ) start [2025-02-01 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380259', 'tblTempUsageDetail_20' ) end [2025-02-01 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380259', 'tblTempVendorCDR_20' ) start [2025-02-01 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380259', 'tblTempVendorCDR_20' ) end [2025-02-01 18:45:18] Production.INFO: ProcessCDR(1,14380259,1,1,2) [2025-02-01 18:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380259', 'tblTempUsageDetail_20' ) start [2025-02-01 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380259', 'tblTempUsageDetail_20' ) end [2025-02-01 18:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:45:22] Production.INFO: ==8527== Releasing lock... [2025-02-01 18:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:45:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:46:05 [end_date_ymd] => 2025-02-01 18:46:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:46:05' and `end` < '2025-02-01 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-01 18:46:18] Production.INFO: count ==1738 [2025-02-01 18:46:18] Production.ERROR: pbx CDR StartTime 2025-02-01 15:46:05 - End Time 2025-02-01 18:46:05 [2025-02-01 18:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380264', 'tblTempUsageDetail_20' ) start [2025-02-01 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380264', 'tblTempUsageDetail_20' ) end [2025-02-01 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380264', 'tblTempVendorCDR_20' ) start [2025-02-01 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380264', 'tblTempVendorCDR_20' ) end [2025-02-01 18:46:18] Production.INFO: ProcessCDR(1,14380264,1,1,2) [2025-02-01 18:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380264', 'tblTempUsageDetail_20' ) start [2025-02-01 18:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380264', 'tblTempUsageDetail_20' ) end [2025-02-01 18:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:46:21] Production.INFO: ==8605== Releasing lock... [2025-02-01 18:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:46:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:47:06 [end_date_ymd] => 2025-02-01 18:47:06 [RateCDR] => 1 ) [2025-02-01 18: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-01 15:47:06' and `end` < '2025-02-01 18: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-01 18:47:19] Production.INFO: count ==1738 [2025-02-01 18:47:20] Production.ERROR: pbx CDR StartTime 2025-02-01 15:47:06 - End Time 2025-02-01 18:47:06 [2025-02-01 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380269', 'tblTempUsageDetail_20' ) start [2025-02-01 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380269', 'tblTempUsageDetail_20' ) end [2025-02-01 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380269', 'tblTempVendorCDR_20' ) start [2025-02-01 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380269', 'tblTempVendorCDR_20' ) end [2025-02-01 18:47:20] Production.INFO: ProcessCDR(1,14380269,1,1,2) [2025-02-01 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380269', 'tblTempUsageDetail_20' ) start [2025-02-01 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380269', 'tblTempUsageDetail_20' ) end [2025-02-01 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:47:24] Production.INFO: ==8684== Releasing lock... [2025-02-01 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:47:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:48:05 [end_date_ymd] => 2025-02-01 18:48:05 [RateCDR] => 1 ) [2025-02-01 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 15:48:05' and `end` < '2025-02-01 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 18:48:20] Production.INFO: count ==1733 [2025-02-01 18:48:20] Production.ERROR: pbx CDR StartTime 2025-02-01 15:48:05 - End Time 2025-02-01 18:48:05 [2025-02-01 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380274', 'tblTempUsageDetail_20' ) start [2025-02-01 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380274', 'tblTempUsageDetail_20' ) end [2025-02-01 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380274', 'tblTempVendorCDR_20' ) start [2025-02-01 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380274', 'tblTempVendorCDR_20' ) end [2025-02-01 18:48:20] Production.INFO: ProcessCDR(1,14380274,1,1,2) [2025-02-01 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380274', 'tblTempUsageDetail_20' ) start [2025-02-01 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380274', 'tblTempUsageDetail_20' ) end [2025-02-01 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:48:23] Production.INFO: ==8762== Releasing lock... [2025-02-01 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:48:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:49:06 [end_date_ymd] => 2025-02-01 18:49:06 [RateCDR] => 1 ) [2025-02-01 18: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-01 15:49:06' and `end` < '2025-02-01 18: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-01 18:49:19] Production.INFO: count ==1738 [2025-02-01 18:49:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:49:06 - End Time 2025-02-01 18:49:06 [2025-02-01 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380279', 'tblTempUsageDetail_20' ) start [2025-02-01 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380279', 'tblTempUsageDetail_20' ) end [2025-02-01 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380279', 'tblTempVendorCDR_20' ) start [2025-02-01 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380279', 'tblTempVendorCDR_20' ) end [2025-02-01 18:49:19] Production.INFO: ProcessCDR(1,14380279,1,1,2) [2025-02-01 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380279', 'tblTempUsageDetail_20' ) start [2025-02-01 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380279', 'tblTempUsageDetail_20' ) end [2025-02-01 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:49:24] Production.INFO: ==8842== Releasing lock... [2025-02-01 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:49:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:50:06 [end_date_ymd] => 2025-02-01 18:50:06 [RateCDR] => 1 ) [2025-02-01 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 15:50:06' and `end` < '2025-02-01 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 18:50:19] Production.INFO: count ==1734 [2025-02-01 18:50:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:50:06 - End Time 2025-02-01 18:50:06 [2025-02-01 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380285', 'tblTempUsageDetail_20' ) start [2025-02-01 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380285', 'tblTempUsageDetail_20' ) end [2025-02-01 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380285', 'tblTempVendorCDR_20' ) start [2025-02-01 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380285', 'tblTempVendorCDR_20' ) end [2025-02-01 18:50:19] Production.INFO: ProcessCDR(1,14380285,1,1,2) [2025-02-01 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380285', 'tblTempUsageDetail_20' ) start [2025-02-01 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380285', 'tblTempUsageDetail_20' ) end [2025-02-01 18:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:50:22] Production.INFO: ==8926== Releasing lock... [2025-02-01 18:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:50:22] Production.INFO: 41 MB #Memory Used# [2025-02-01 18:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:51:06 [end_date_ymd] => 2025-02-01 18:51:06 [RateCDR] => 1 ) [2025-02-01 18:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 15:51:06' and `end` < '2025-02-01 18:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 18:51:19] Production.INFO: count ==1769 [2025-02-01 18:51:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:51:06 - End Time 2025-02-01 18:51:06 [2025-02-01 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380290', 'tblTempUsageDetail_20' ) start [2025-02-01 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380290', 'tblTempUsageDetail_20' ) end [2025-02-01 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380290', 'tblTempVendorCDR_20' ) start [2025-02-01 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380290', 'tblTempVendorCDR_20' ) end [2025-02-01 18:51:19] Production.INFO: ProcessCDR(1,14380290,1,1,2) [2025-02-01 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380290', 'tblTempUsageDetail_20' ) start [2025-02-01 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380290', 'tblTempUsageDetail_20' ) end [2025-02-01 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:51:24] Production.INFO: ==9012== Releasing lock... [2025-02-01 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:51:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:52:05 [end_date_ymd] => 2025-02-01 18:52:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:52:05' and `end` < '2025-02-01 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-01 18:52:20] Production.INFO: count ==1767 [2025-02-01 18:52:21] Production.ERROR: pbx CDR StartTime 2025-02-01 15:52:05 - End Time 2025-02-01 18:52:05 [2025-02-01 18:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380295', 'tblTempUsageDetail_20' ) start [2025-02-01 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380295', 'tblTempUsageDetail_20' ) end [2025-02-01 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380295', 'tblTempVendorCDR_20' ) start [2025-02-01 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380295', 'tblTempVendorCDR_20' ) end [2025-02-01 18:52:21] Production.INFO: ProcessCDR(1,14380295,1,1,2) [2025-02-01 18:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380295', 'tblTempUsageDetail_20' ) start [2025-02-01 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380295', 'tblTempUsageDetail_20' ) end [2025-02-01 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:52:24] Production.INFO: ==9091== Releasing lock... [2025-02-01 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:52:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:53:05 [end_date_ymd] => 2025-02-01 18:53:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:53:05' and `end` < '2025-02-01 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-01 18:53:18] Production.INFO: count ==1770 [2025-02-01 18:53:18] Production.ERROR: pbx CDR StartTime 2025-02-01 15:53:05 - End Time 2025-02-01 18:53:05 [2025-02-01 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380300', 'tblTempUsageDetail_20' ) start [2025-02-01 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380300', 'tblTempUsageDetail_20' ) end [2025-02-01 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380300', 'tblTempVendorCDR_20' ) start [2025-02-01 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380300', 'tblTempVendorCDR_20' ) end [2025-02-01 18:53:19] Production.INFO: ProcessCDR(1,14380300,1,1,2) [2025-02-01 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380300', 'tblTempUsageDetail_20' ) start [2025-02-01 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380300', 'tblTempUsageDetail_20' ) end [2025-02-01 18:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:53:23] Production.INFO: ==9167== Releasing lock... [2025-02-01 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:53:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:54:05 [end_date_ymd] => 2025-02-01 18:54:05 [RateCDR] => 1 ) [2025-02-01 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 15:54:05' and `end` < '2025-02-01 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 18:54:18] Production.INFO: count ==1773 [2025-02-01 18:54:18] Production.ERROR: pbx CDR StartTime 2025-02-01 15:54:05 - End Time 2025-02-01 18:54:05 [2025-02-01 18:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380305', 'tblTempUsageDetail_20' ) start [2025-02-01 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380305', 'tblTempUsageDetail_20' ) end [2025-02-01 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380305', 'tblTempVendorCDR_20' ) start [2025-02-01 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380305', 'tblTempVendorCDR_20' ) end [2025-02-01 18:54:18] Production.INFO: ProcessCDR(1,14380305,1,1,2) [2025-02-01 18:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380305', 'tblTempUsageDetail_20' ) start [2025-02-01 18:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380305', 'tblTempUsageDetail_20' ) end [2025-02-01 18:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:54:21] Production.INFO: ==9245== Releasing lock... [2025-02-01 18:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:54:21] Production.INFO: 41 MB #Memory Used# [2025-02-01 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:55:05 [end_date_ymd] => 2025-02-01 18:55:05 [RateCDR] => 1 ) [2025-02-01 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-01 15:55:05' and `end` < '2025-02-01 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-01 18:55:19] Production.INFO: count ==1769 [2025-02-01 18:55:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:55:05 - End Time 2025-02-01 18:55:05 [2025-02-01 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380310', 'tblTempUsageDetail_20' ) start [2025-02-01 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380310', 'tblTempUsageDetail_20' ) end [2025-02-01 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380310', 'tblTempVendorCDR_20' ) start [2025-02-01 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380310', 'tblTempVendorCDR_20' ) end [2025-02-01 18:55:19] Production.INFO: ProcessCDR(1,14380310,1,1,2) [2025-02-01 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380310', 'tblTempUsageDetail_20' ) start [2025-02-01 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380310', 'tblTempUsageDetail_20' ) end [2025-02-01 18:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:55:23] Production.INFO: ==9323== Releasing lock... [2025-02-01 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:55:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:56:04 [end_date_ymd] => 2025-02-01 18:56:04 [RateCDR] => 1 ) [2025-02-01 18:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 15:56:04' and `end` < '2025-02-01 18:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 18:56:19] Production.INFO: count ==1778 [2025-02-01 18:56:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:56:04 - End Time 2025-02-01 18:56:04 [2025-02-01 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380315', 'tblTempUsageDetail_20' ) start [2025-02-01 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380315', 'tblTempUsageDetail_20' ) end [2025-02-01 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380315', 'tblTempVendorCDR_20' ) start [2025-02-01 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380315', 'tblTempVendorCDR_20' ) end [2025-02-01 18:56:20] Production.INFO: ProcessCDR(1,14380315,1,1,2) [2025-02-01 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380315', 'tblTempUsageDetail_20' ) start [2025-02-01 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380315', 'tblTempUsageDetail_20' ) end [2025-02-01 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:56:23] Production.INFO: ==9400== Releasing lock... [2025-02-01 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:56:23] Production.INFO: 41 MB #Memory Used# [2025-02-01 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:57:05 [end_date_ymd] => 2025-02-01 18:57:05 [RateCDR] => 1 ) [2025-02-01 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 15:57:05' and `end` < '2025-02-01 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 18:57:18] Production.INFO: count ==1784 [2025-02-01 18:57:18] Production.ERROR: pbx CDR StartTime 2025-02-01 15:57:05 - End Time 2025-02-01 18:57:05 [2025-02-01 18:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380320', 'tblTempUsageDetail_20' ) start [2025-02-01 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380320', 'tblTempUsageDetail_20' ) end [2025-02-01 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380320', 'tblTempVendorCDR_20' ) start [2025-02-01 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380320', 'tblTempVendorCDR_20' ) end [2025-02-01 18:57:18] Production.INFO: ProcessCDR(1,14380320,1,1,2) [2025-02-01 18:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380320', 'tblTempUsageDetail_20' ) start [2025-02-01 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380320', 'tblTempUsageDetail_20' ) end [2025-02-01 18:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:57:22] Production.INFO: ==9518== Releasing lock... [2025-02-01 18:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:57:22] Production.INFO: 41 MB #Memory Used# [2025-02-01 18:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:58:06 [end_date_ymd] => 2025-02-01 18:58:06 [RateCDR] => 1 ) [2025-02-01 18: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-01 15:58:06' and `end` < '2025-02-01 18: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-01 18:58:20] Production.INFO: count ==1772 [2025-02-01 18:58:20] Production.ERROR: pbx CDR StartTime 2025-02-01 15:58:06 - End Time 2025-02-01 18:58:06 [2025-02-01 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380325', 'tblTempUsageDetail_20' ) start [2025-02-01 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380325', 'tblTempUsageDetail_20' ) end [2025-02-01 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380325', 'tblTempVendorCDR_20' ) start [2025-02-01 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380325', 'tblTempVendorCDR_20' ) end [2025-02-01 18:58:20] Production.INFO: ProcessCDR(1,14380325,1,1,2) [2025-02-01 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380325', 'tblTempUsageDetail_20' ) start [2025-02-01 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380325', 'tblTempUsageDetail_20' ) end [2025-02-01 18:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:58:23] Production.INFO: ==9595== Releasing lock... [2025-02-01 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:58:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 15:59:05 [end_date_ymd] => 2025-02-01 18:59:05 [RateCDR] => 1 ) [2025-02-01 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 15:59:05' and `end` < '2025-02-01 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 18:59:19] Production.INFO: count ==1772 [2025-02-01 18:59:19] Production.ERROR: pbx CDR StartTime 2025-02-01 15:59:05 - End Time 2025-02-01 18:59:05 [2025-02-01 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380330', 'tblTempUsageDetail_20' ) start [2025-02-01 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380330', 'tblTempUsageDetail_20' ) end [2025-02-01 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380330', 'tblTempVendorCDR_20' ) start [2025-02-01 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380330', 'tblTempVendorCDR_20' ) end [2025-02-01 18:59:19] Production.INFO: ProcessCDR(1,14380330,1,1,2) [2025-02-01 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380330', 'tblTempUsageDetail_20' ) start [2025-02-01 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380330', 'tblTempUsageDetail_20' ) end [2025-02-01 18:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 18:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 18:59:22] Production.INFO: ==9673== Releasing lock... [2025-02-01 18:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 18:59:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:00:06 [end_date_ymd] => 2025-02-01 19:00:06 [RateCDR] => 1 ) [2025-02-01 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-01 16:00:06' and `end` < '2025-02-01 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-01 19:00:19] Production.INFO: count ==1772 [2025-02-01 19:00:20] Production.ERROR: pbx CDR StartTime 2025-02-01 16:00:06 - End Time 2025-02-01 19:00:06 [2025-02-01 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380336', 'tblTempUsageDetail_20' ) start [2025-02-01 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380336', 'tblTempUsageDetail_20' ) end [2025-02-01 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380336', 'tblTempVendorCDR_20' ) start [2025-02-01 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380336', 'tblTempVendorCDR_20' ) end [2025-02-01 19:00:20] Production.INFO: ProcessCDR(1,14380336,1,1,2) [2025-02-01 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380336', 'tblTempUsageDetail_20' ) start [2025-02-01 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380336', 'tblTempUsageDetail_20' ) end [2025-02-01 19:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:00:24] Production.INFO: ==9760== Releasing lock... [2025-02-01 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:00:24] Production.INFO: 41 MB #Memory Used# [2025-02-01 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:01:05 [end_date_ymd] => 2025-02-01 19:01:05 [RateCDR] => 1 ) [2025-02-01 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:01:05' and `end` < '2025-02-01 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:01:19] Production.INFO: count ==1810 [2025-02-01 19:01:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:01:05 - End Time 2025-02-01 19:01:05 [2025-02-01 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380341', 'tblTempUsageDetail_20' ) start [2025-02-01 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380341', 'tblTempUsageDetail_20' ) end [2025-02-01 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380341', 'tblTempVendorCDR_20' ) start [2025-02-01 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380341', 'tblTempVendorCDR_20' ) end [2025-02-01 19:01:19] Production.INFO: ProcessCDR(1,14380341,1,1,2) [2025-02-01 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380341', 'tblTempUsageDetail_20' ) start [2025-02-01 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380341', 'tblTempUsageDetail_20' ) end [2025-02-01 19:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:01:22] Production.INFO: ==9850== Releasing lock... [2025-02-01 19:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:01:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:02:05 [end_date_ymd] => 2025-02-01 19:02:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:02:05' and `end` < '2025-02-01 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-01 19:02:22] Production.INFO: count ==1808 [2025-02-01 19:02:22] Production.ERROR: pbx CDR StartTime 2025-02-01 16:02:05 - End Time 2025-02-01 19:02:05 [2025-02-01 19:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380346', 'tblTempUsageDetail_20' ) start [2025-02-01 19:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380346', 'tblTempUsageDetail_20' ) end [2025-02-01 19:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380346', 'tblTempVendorCDR_20' ) start [2025-02-01 19:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380346', 'tblTempVendorCDR_20' ) end [2025-02-01 19:02:22] Production.INFO: ProcessCDR(1,14380346,1,1,2) [2025-02-01 19:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380346', 'tblTempUsageDetail_20' ) start [2025-02-01 19:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380346', 'tblTempUsageDetail_20' ) end [2025-02-01 19:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:02:26] Production.INFO: ==10009== Releasing lock... [2025-02-01 19:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:02:26] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:03:05 [end_date_ymd] => 2025-02-01 19:03:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:03:05' and `end` < '2025-02-01 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-01 19:03:18] Production.INFO: count ==1807 [2025-02-01 19:03:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:03:05 - End Time 2025-02-01 19:03:05 [2025-02-01 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380351', 'tblTempUsageDetail_20' ) start [2025-02-01 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380351', 'tblTempUsageDetail_20' ) end [2025-02-01 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380351', 'tblTempVendorCDR_20' ) start [2025-02-01 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380351', 'tblTempVendorCDR_20' ) end [2025-02-01 19:03:18] Production.INFO: ProcessCDR(1,14380351,1,1,2) [2025-02-01 19:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380351', 'tblTempUsageDetail_20' ) start [2025-02-01 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380351', 'tblTempUsageDetail_20' ) end [2025-02-01 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:03:23] Production.INFO: ==10088== Releasing lock... [2025-02-01 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:03:23] Production.INFO: 41 MB #Memory Used# [2025-02-01 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:04:05 [end_date_ymd] => 2025-02-01 19:04:05 [RateCDR] => 1 ) [2025-02-01 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:04:05' and `end` < '2025-02-01 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:04:19] Production.INFO: count ==1803 [2025-02-01 19:04:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:04:05 - End Time 2025-02-01 19:04:05 [2025-02-01 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380356', 'tblTempUsageDetail_20' ) start [2025-02-01 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380356', 'tblTempUsageDetail_20' ) end [2025-02-01 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380356', 'tblTempVendorCDR_20' ) start [2025-02-01 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380356', 'tblTempVendorCDR_20' ) end [2025-02-01 19:04:19] Production.INFO: ProcessCDR(1,14380356,1,1,2) [2025-02-01 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380356', 'tblTempUsageDetail_20' ) start [2025-02-01 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380356', 'tblTempUsageDetail_20' ) end [2025-02-01 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:04:24] Production.INFO: ==10170== Releasing lock... [2025-02-01 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:04:24] Production.INFO: 41 MB #Memory Used# [2025-02-01 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:05:05 [end_date_ymd] => 2025-02-01 19:05:05 [RateCDR] => 1 ) [2025-02-01 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:05:05' and `end` < '2025-02-01 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:05:17] Production.INFO: count ==1799 [2025-02-01 19:05:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:05:05 - End Time 2025-02-01 19:05:05 [2025-02-01 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380361', 'tblTempUsageDetail_20' ) start [2025-02-01 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380361', 'tblTempUsageDetail_20' ) end [2025-02-01 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380361', 'tblTempVendorCDR_20' ) start [2025-02-01 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380361', 'tblTempVendorCDR_20' ) end [2025-02-01 19:05:18] Production.INFO: ProcessCDR(1,14380361,1,1,2) [2025-02-01 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380361', 'tblTempUsageDetail_20' ) start [2025-02-01 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380361', 'tblTempUsageDetail_20' ) end [2025-02-01 19:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:05:23] Production.INFO: ==10329== Releasing lock... [2025-02-01 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:05:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:06:05 [end_date_ymd] => 2025-02-01 19:06:05 [RateCDR] => 1 ) [2025-02-01 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:06:05' and `end` < '2025-02-01 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:06:19] Production.INFO: count ==1796 [2025-02-01 19:06:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:06:05 - End Time 2025-02-01 19:06:05 [2025-02-01 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380366', 'tblTempUsageDetail_20' ) start [2025-02-01 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380366', 'tblTempUsageDetail_20' ) end [2025-02-01 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380366', 'tblTempVendorCDR_20' ) start [2025-02-01 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380366', 'tblTempVendorCDR_20' ) end [2025-02-01 19:06:19] Production.INFO: ProcessCDR(1,14380366,1,1,2) [2025-02-01 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380366', 'tblTempUsageDetail_20' ) start [2025-02-01 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380366', 'tblTempUsageDetail_20' ) end [2025-02-01 19:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:06:23] Production.INFO: ==10409== Releasing lock... [2025-02-01 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:06:23] Production.INFO: 41 MB #Memory Used# [2025-02-01 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:07:05 [end_date_ymd] => 2025-02-01 19:07:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:07:05' and `end` < '2025-02-01 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-01 19:07:21] Production.INFO: count ==1794 [2025-02-01 19:07:21] Production.ERROR: pbx CDR StartTime 2025-02-01 16:07:05 - End Time 2025-02-01 19:07:05 [2025-02-01 19:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380371', 'tblTempUsageDetail_20' ) start [2025-02-01 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380371', 'tblTempUsageDetail_20' ) end [2025-02-01 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380371', 'tblTempVendorCDR_20' ) start [2025-02-01 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380371', 'tblTempVendorCDR_20' ) end [2025-02-01 19:07:21] Production.INFO: ProcessCDR(1,14380371,1,1,2) [2025-02-01 19:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380371', 'tblTempUsageDetail_20' ) start [2025-02-01 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380371', 'tblTempUsageDetail_20' ) end [2025-02-01 19:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:07:25] Production.INFO: ==10487== Releasing lock... [2025-02-01 19:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:07:25] Production.INFO: 41 MB #Memory Used# [2025-02-01 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:08:05 [end_date_ymd] => 2025-02-01 19:08:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:08:05' and `end` < '2025-02-01 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-01 19:08:18] Production.INFO: count ==1793 [2025-02-01 19:08:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:08:05 - End Time 2025-02-01 19:08:05 [2025-02-01 19:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380376', 'tblTempUsageDetail_20' ) start [2025-02-01 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380376', 'tblTempUsageDetail_20' ) end [2025-02-01 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380376', 'tblTempVendorCDR_20' ) start [2025-02-01 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380376', 'tblTempVendorCDR_20' ) end [2025-02-01 19:08:18] Production.INFO: ProcessCDR(1,14380376,1,1,2) [2025-02-01 19:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380376', 'tblTempUsageDetail_20' ) start [2025-02-01 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380376', 'tblTempUsageDetail_20' ) end [2025-02-01 19:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:08:23] Production.INFO: ==10606== Releasing lock... [2025-02-01 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:08:23] Production.INFO: 41 MB #Memory Used# [2025-02-01 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:09:05 [end_date_ymd] => 2025-02-01 19:09:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:09:05' and `end` < '2025-02-01 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-01 19:09:18] Production.INFO: count ==1791 [2025-02-01 19:09:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:09:05 - End Time 2025-02-01 19:09:05 [2025-02-01 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380381', 'tblTempUsageDetail_20' ) start [2025-02-01 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380381', 'tblTempUsageDetail_20' ) end [2025-02-01 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380381', 'tblTempVendorCDR_20' ) start [2025-02-01 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380381', 'tblTempVendorCDR_20' ) end [2025-02-01 19:09:18] Production.INFO: ProcessCDR(1,14380381,1,1,2) [2025-02-01 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380381', 'tblTempUsageDetail_20' ) start [2025-02-01 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380381', 'tblTempUsageDetail_20' ) end [2025-02-01 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:09:23] Production.INFO: ==10722== Releasing lock... [2025-02-01 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:09:23] Production.INFO: 41 MB #Memory Used# [2025-02-01 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:10:06 [end_date_ymd] => 2025-02-01 19:10:06 [RateCDR] => 1 ) [2025-02-01 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:10:06' and `end` < '2025-02-01 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:10:19] Production.INFO: count ==1794 [2025-02-01 19:10:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:10:06 - End Time 2025-02-01 19:10:06 [2025-02-01 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380387', 'tblTempUsageDetail_20' ) start [2025-02-01 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380387', 'tblTempUsageDetail_20' ) end [2025-02-01 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380387', 'tblTempVendorCDR_20' ) start [2025-02-01 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380387', 'tblTempVendorCDR_20' ) end [2025-02-01 19:10:19] Production.INFO: ProcessCDR(1,14380387,1,1,2) [2025-02-01 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380387', 'tblTempUsageDetail_20' ) start [2025-02-01 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380387', 'tblTempUsageDetail_20' ) end [2025-02-01 19:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:10:24] Production.INFO: ==10802== Releasing lock... [2025-02-01 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:10:24] Production.INFO: 41 MB #Memory Used# [2025-02-01 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:11:05 [end_date_ymd] => 2025-02-01 19:11:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:11:05' and `end` < '2025-02-01 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-01 19:11:18] Production.INFO: count ==1825 [2025-02-01 19:11:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:11:05 - End Time 2025-02-01 19:11:05 [2025-02-01 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380392', 'tblTempUsageDetail_20' ) start [2025-02-01 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380392', 'tblTempUsageDetail_20' ) end [2025-02-01 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380392', 'tblTempVendorCDR_20' ) start [2025-02-01 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380392', 'tblTempVendorCDR_20' ) end [2025-02-01 19:11:18] Production.INFO: ProcessCDR(1,14380392,1,1,2) [2025-02-01 19:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380392', 'tblTempUsageDetail_20' ) start [2025-02-01 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380392', 'tblTempUsageDetail_20' ) end [2025-02-01 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:11:23] Production.INFO: ==10882== Releasing lock... [2025-02-01 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:11:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:12:06 [end_date_ymd] => 2025-02-01 19:12:06 [RateCDR] => 1 ) [2025-02-01 19:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:12:06' and `end` < '2025-02-01 19:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:12:19] Production.INFO: count ==1830 [2025-02-01 19:12:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:12:06 - End Time 2025-02-01 19:12:06 [2025-02-01 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380397', 'tblTempUsageDetail_20' ) start [2025-02-01 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380397', 'tblTempUsageDetail_20' ) end [2025-02-01 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380397', 'tblTempVendorCDR_20' ) start [2025-02-01 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380397', 'tblTempVendorCDR_20' ) end [2025-02-01 19:12:19] Production.INFO: ProcessCDR(1,14380397,1,1,2) [2025-02-01 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380397', 'tblTempUsageDetail_20' ) start [2025-02-01 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380397', 'tblTempUsageDetail_20' ) end [2025-02-01 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:12:24] Production.INFO: ==11081== Releasing lock... [2025-02-01 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:12:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:13:05 [end_date_ymd] => 2025-02-01 19:13:05 [RateCDR] => 1 ) [2025-02-01 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:13:05' and `end` < '2025-02-01 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:13:19] Production.INFO: count ==1831 [2025-02-01 19:13:20] Production.ERROR: pbx CDR StartTime 2025-02-01 16:13:05 - End Time 2025-02-01 19:13:05 [2025-02-01 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380402', 'tblTempUsageDetail_20' ) start [2025-02-01 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380402', 'tblTempUsageDetail_20' ) end [2025-02-01 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380402', 'tblTempVendorCDR_20' ) start [2025-02-01 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380402', 'tblTempVendorCDR_20' ) end [2025-02-01 19:13:20] Production.INFO: ProcessCDR(1,14380402,1,1,2) [2025-02-01 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380402', 'tblTempUsageDetail_20' ) start [2025-02-01 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380402', 'tblTempUsageDetail_20' ) end [2025-02-01 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:13:24] Production.INFO: ==11158== Releasing lock... [2025-02-01 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:13:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:14:06 [end_date_ymd] => 2025-02-01 19:14:06 [RateCDR] => 1 ) [2025-02-01 19:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:14:06' and `end` < '2025-02-01 19:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:14:19] Production.INFO: count ==1838 [2025-02-01 19:14:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:14:06 - End Time 2025-02-01 19:14:06 [2025-02-01 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380407', 'tblTempUsageDetail_20' ) start [2025-02-01 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380407', 'tblTempUsageDetail_20' ) end [2025-02-01 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380407', 'tblTempVendorCDR_20' ) start [2025-02-01 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380407', 'tblTempVendorCDR_20' ) end [2025-02-01 19:14:19] Production.INFO: ProcessCDR(1,14380407,1,1,2) [2025-02-01 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380407', 'tblTempUsageDetail_20' ) start [2025-02-01 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380407', 'tblTempUsageDetail_20' ) end [2025-02-01 19:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:14:23] Production.INFO: ==11239== Releasing lock... [2025-02-01 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:14:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:15:05 [end_date_ymd] => 2025-02-01 19:15:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:15:05' and `end` < '2025-02-01 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-01 19:15:18] Production.INFO: count ==1840 [2025-02-01 19:15:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:15:05 - End Time 2025-02-01 19:15:05 [2025-02-01 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380412', 'tblTempUsageDetail_20' ) start [2025-02-01 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380412', 'tblTempUsageDetail_20' ) end [2025-02-01 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380412', 'tblTempVendorCDR_20' ) start [2025-02-01 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380412', 'tblTempVendorCDR_20' ) end [2025-02-01 19:15:18] Production.INFO: ProcessCDR(1,14380412,1,1,2) [2025-02-01 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380412', 'tblTempUsageDetail_20' ) start [2025-02-01 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380412', 'tblTempUsageDetail_20' ) end [2025-02-01 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:15:23] Production.INFO: ==11396== Releasing lock... [2025-02-01 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:15:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:16:05 [end_date_ymd] => 2025-02-01 19:16:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:16:05' and `end` < '2025-02-01 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-01 19:16:19] Production.INFO: count ==1843 [2025-02-01 19:16:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:16:05 - End Time 2025-02-01 19:16:05 [2025-02-01 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380417', 'tblTempUsageDetail_20' ) start [2025-02-01 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380417', 'tblTempUsageDetail_20' ) end [2025-02-01 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380417', 'tblTempVendorCDR_20' ) start [2025-02-01 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380417', 'tblTempVendorCDR_20' ) end [2025-02-01 19:16:19] Production.INFO: ProcessCDR(1,14380417,1,1,2) [2025-02-01 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380417', 'tblTempUsageDetail_20' ) start [2025-02-01 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380417', 'tblTempUsageDetail_20' ) end [2025-02-01 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:16:24] Production.INFO: ==11476== Releasing lock... [2025-02-01 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:16:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:17:05 [end_date_ymd] => 2025-02-01 19:17:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:17:05' and `end` < '2025-02-01 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-01 19:17:18] Production.INFO: count ==1847 [2025-02-01 19:17:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:17:05 - End Time 2025-02-01 19:17:05 [2025-02-01 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380422', 'tblTempUsageDetail_20' ) start [2025-02-01 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380422', 'tblTempUsageDetail_20' ) end [2025-02-01 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380422', 'tblTempVendorCDR_20' ) start [2025-02-01 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380422', 'tblTempVendorCDR_20' ) end [2025-02-01 19:17:18] Production.INFO: ProcessCDR(1,14380422,1,1,2) [2025-02-01 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380422', 'tblTempUsageDetail_20' ) start [2025-02-01 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380422', 'tblTempUsageDetail_20' ) end [2025-02-01 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:17:22] Production.INFO: ==11554== Releasing lock... [2025-02-01 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:17:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:18:05 [end_date_ymd] => 2025-02-01 19:18:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:18:05' and `end` < '2025-02-01 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-01 19:18:18] Production.INFO: count ==1855 [2025-02-01 19:18:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:18:05 - End Time 2025-02-01 19:18:05 [2025-02-01 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380427', 'tblTempUsageDetail_20' ) start [2025-02-01 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380427', 'tblTempUsageDetail_20' ) end [2025-02-01 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380427', 'tblTempVendorCDR_20' ) start [2025-02-01 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380427', 'tblTempVendorCDR_20' ) end [2025-02-01 19:18:19] Production.INFO: ProcessCDR(1,14380427,1,1,2) [2025-02-01 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380427', 'tblTempUsageDetail_20' ) start [2025-02-01 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380427', 'tblTempUsageDetail_20' ) end [2025-02-01 19:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:18:22] Production.INFO: ==11635== Releasing lock... [2025-02-01 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:18:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:19:04 [end_date_ymd] => 2025-02-01 19:19:04 [RateCDR] => 1 ) [2025-02-01 19:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:19:04' and `end` < '2025-02-01 19:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:19:17] Production.INFO: count ==1851 [2025-02-01 19:19:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:19:04 - End Time 2025-02-01 19:19:04 [2025-02-01 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380432', 'tblTempUsageDetail_20' ) start [2025-02-01 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380432', 'tblTempUsageDetail_20' ) end [2025-02-01 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380432', 'tblTempVendorCDR_20' ) start [2025-02-01 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380432', 'tblTempVendorCDR_20' ) end [2025-02-01 19:19:18] Production.INFO: ProcessCDR(1,14380432,1,1,2) [2025-02-01 19:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380432', 'tblTempUsageDetail_20' ) start [2025-02-01 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380432', 'tblTempUsageDetail_20' ) end [2025-02-01 19:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:19:22] Production.INFO: ==11719== Releasing lock... [2025-02-01 19:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:19:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:20:05 [end_date_ymd] => 2025-02-01 19:20:05 [RateCDR] => 1 ) [2025-02-01 19: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-01 16:20:05' and `end` < '2025-02-01 19:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:20:18] Production.INFO: count ==1849 [2025-02-01 19:20:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:20:05 - End Time 2025-02-01 19:20:05 [2025-02-01 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380438', 'tblTempUsageDetail_20' ) start [2025-02-01 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380438', 'tblTempUsageDetail_20' ) end [2025-02-01 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380438', 'tblTempVendorCDR_20' ) start [2025-02-01 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380438', 'tblTempVendorCDR_20' ) end [2025-02-01 19:20:19] Production.INFO: ProcessCDR(1,14380438,1,1,2) [2025-02-01 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380438', 'tblTempUsageDetail_20' ) start [2025-02-01 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380438', 'tblTempUsageDetail_20' ) end [2025-02-01 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:20:23] Production.INFO: ==11806== Releasing lock... [2025-02-01 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:20:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:21:05 [end_date_ymd] => 2025-02-01 19:21:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:21:05' and `end` < '2025-02-01 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-01 19:21:18] Production.INFO: count ==1878 [2025-02-01 19:21:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:21:05 - End Time 2025-02-01 19:21:05 [2025-02-01 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380443', 'tblTempUsageDetail_20' ) start [2025-02-01 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380443', 'tblTempUsageDetail_20' ) end [2025-02-01 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380443', 'tblTempVendorCDR_20' ) start [2025-02-01 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380443', 'tblTempVendorCDR_20' ) end [2025-02-01 19:21:19] Production.INFO: ProcessCDR(1,14380443,1,1,2) [2025-02-01 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380443', 'tblTempUsageDetail_20' ) start [2025-02-01 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380443', 'tblTempUsageDetail_20' ) end [2025-02-01 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:21:22] Production.INFO: ==11890== Releasing lock... [2025-02-01 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:21:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:22:05 [end_date_ymd] => 2025-02-01 19:22:05 [RateCDR] => 1 ) [2025-02-01 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:22:05' and `end` < '2025-02-01 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:22:18] Production.INFO: count ==1872 [2025-02-01 19:22:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:22:05 - End Time 2025-02-01 19:22:05 [2025-02-01 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380448', 'tblTempUsageDetail_20' ) start [2025-02-01 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380448', 'tblTempUsageDetail_20' ) end [2025-02-01 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380448', 'tblTempVendorCDR_20' ) start [2025-02-01 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380448', 'tblTempVendorCDR_20' ) end [2025-02-01 19:22:18] Production.INFO: ProcessCDR(1,14380448,1,1,2) [2025-02-01 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380448', 'tblTempUsageDetail_20' ) start [2025-02-01 19:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380448', 'tblTempUsageDetail_20' ) end [2025-02-01 19:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:22:21] Production.INFO: ==11969== Releasing lock... [2025-02-01 19:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:22:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:23:05 [end_date_ymd] => 2025-02-01 19:23:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:23:05' and `end` < '2025-02-01 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-01 19:23:18] Production.INFO: count ==1872 [2025-02-01 19:23:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:23:05 - End Time 2025-02-01 19:23:05 [2025-02-01 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380453', 'tblTempUsageDetail_20' ) start [2025-02-01 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380453', 'tblTempUsageDetail_20' ) end [2025-02-01 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380453', 'tblTempVendorCDR_20' ) start [2025-02-01 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380453', 'tblTempVendorCDR_20' ) end [2025-02-01 19:23:18] Production.INFO: ProcessCDR(1,14380453,1,1,2) [2025-02-01 19:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380453', 'tblTempUsageDetail_20' ) start [2025-02-01 19:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380453', 'tblTempUsageDetail_20' ) end [2025-02-01 19:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:23:21] Production.INFO: ==12049== Releasing lock... [2025-02-01 19:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:23:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:24:05 [end_date_ymd] => 2025-02-01 19:24:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:24:05' and `end` < '2025-02-01 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-01 19:24:18] Production.INFO: count ==1872 [2025-02-01 19:24:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:24:05 - End Time 2025-02-01 19:24:05 [2025-02-01 19:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380458', 'tblTempUsageDetail_20' ) start [2025-02-01 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380458', 'tblTempUsageDetail_20' ) end [2025-02-01 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380458', 'tblTempVendorCDR_20' ) start [2025-02-01 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380458', 'tblTempVendorCDR_20' ) end [2025-02-01 19:24:18] Production.INFO: ProcessCDR(1,14380458,1,1,2) [2025-02-01 19:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380458', 'tblTempUsageDetail_20' ) start [2025-02-01 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380458', 'tblTempUsageDetail_20' ) end [2025-02-01 19:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:24:21] Production.INFO: ==12131== Releasing lock... [2025-02-01 19:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:24:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:25:05 [end_date_ymd] => 2025-02-01 19:25:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:25:05' and `end` < '2025-02-01 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-01 19:25:18] Production.INFO: count ==1876 [2025-02-01 19:25:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:25:05 - End Time 2025-02-01 19:25:05 [2025-02-01 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380463', 'tblTempUsageDetail_20' ) start [2025-02-01 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380463', 'tblTempUsageDetail_20' ) end [2025-02-01 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380463', 'tblTempVendorCDR_20' ) start [2025-02-01 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380463', 'tblTempVendorCDR_20' ) end [2025-02-01 19:25:18] Production.INFO: ProcessCDR(1,14380463,1,1,2) [2025-02-01 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380463', 'tblTempUsageDetail_20' ) start [2025-02-01 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380463', 'tblTempUsageDetail_20' ) end [2025-02-01 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:25:23] Production.INFO: ==12210== Releasing lock... [2025-02-01 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:25:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:26:05 [end_date_ymd] => 2025-02-01 19:26:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:26:05' and `end` < '2025-02-01 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-01 19:26:19] Production.INFO: count ==1869 [2025-02-01 19:26:20] Production.ERROR: pbx CDR StartTime 2025-02-01 16:26:05 - End Time 2025-02-01 19:26:05 [2025-02-01 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380468', 'tblTempUsageDetail_20' ) start [2025-02-01 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380468', 'tblTempUsageDetail_20' ) end [2025-02-01 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380468', 'tblTempVendorCDR_20' ) start [2025-02-01 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380468', 'tblTempVendorCDR_20' ) end [2025-02-01 19:26:20] Production.INFO: ProcessCDR(1,14380468,1,1,2) [2025-02-01 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380468', 'tblTempUsageDetail_20' ) start [2025-02-01 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380468', 'tblTempUsageDetail_20' ) end [2025-02-01 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:26:23] Production.INFO: ==12292== Releasing lock... [2025-02-01 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:26:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:27:05 [end_date_ymd] => 2025-02-01 19:27:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:27:05' and `end` < '2025-02-01 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-01 19:27:19] Production.INFO: count ==1869 [2025-02-01 19:27:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:27:05 - End Time 2025-02-01 19:27:05 [2025-02-01 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380473', 'tblTempUsageDetail_20' ) start [2025-02-01 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380473', 'tblTempUsageDetail_20' ) end [2025-02-01 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380473', 'tblTempVendorCDR_20' ) start [2025-02-01 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380473', 'tblTempVendorCDR_20' ) end [2025-02-01 19:27:19] Production.INFO: ProcessCDR(1,14380473,1,1,2) [2025-02-01 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380473', 'tblTempUsageDetail_20' ) start [2025-02-01 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380473', 'tblTempUsageDetail_20' ) end [2025-02-01 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:27:22] Production.INFO: ==12406== Releasing lock... [2025-02-01 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:27:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:28:05 [end_date_ymd] => 2025-02-01 19:28:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:28:05' and `end` < '2025-02-01 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-01 19:28:23] Production.INFO: count ==1876 [2025-02-01 19:28:23] Production.ERROR: pbx CDR StartTime 2025-02-01 16:28:05 - End Time 2025-02-01 19:28:05 [2025-02-01 19:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380478', 'tblTempUsageDetail_20' ) start [2025-02-01 19:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380478', 'tblTempUsageDetail_20' ) end [2025-02-01 19:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380478', 'tblTempVendorCDR_20' ) start [2025-02-01 19:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380478', 'tblTempVendorCDR_20' ) end [2025-02-01 19:28:23] Production.INFO: ProcessCDR(1,14380478,1,1,2) [2025-02-01 19:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380478', 'tblTempUsageDetail_20' ) start [2025-02-01 19:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380478', 'tblTempUsageDetail_20' ) end [2025-02-01 19:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:28:26] Production.INFO: ==12501== Releasing lock... [2025-02-01 19:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:28:26] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 19:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:29:04 [end_date_ymd] => 2025-02-01 19:29:04 [RateCDR] => 1 ) [2025-02-01 19:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:29:04' and `end` < '2025-02-01 19:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:29:17] Production.INFO: count ==1881 [2025-02-01 19:29:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:29:04 - End Time 2025-02-01 19:29:04 [2025-02-01 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380483', 'tblTempUsageDetail_20' ) start [2025-02-01 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380483', 'tblTempUsageDetail_20' ) end [2025-02-01 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380483', 'tblTempVendorCDR_20' ) start [2025-02-01 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380483', 'tblTempVendorCDR_20' ) end [2025-02-01 19:29:18] Production.INFO: ProcessCDR(1,14380483,1,1,2) [2025-02-01 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380483', 'tblTempUsageDetail_20' ) start [2025-02-01 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380483', 'tblTempUsageDetail_20' ) end [2025-02-01 19:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:29:21] Production.INFO: ==12582== Releasing lock... [2025-02-01 19:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:29:21] Production.INFO: 42 MB #Memory Used# [2025-02-01 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:30:05 [end_date_ymd] => 2025-02-01 19:30:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:30:05' and `end` < '2025-02-01 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-01 19:30:19] Production.INFO: count ==1883 [2025-02-01 19:30:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:30:05 - End Time 2025-02-01 19:30:05 [2025-02-01 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380488', 'tblTempUsageDetail_20' ) start [2025-02-01 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380488', 'tblTempUsageDetail_20' ) end [2025-02-01 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380488', 'tblTempVendorCDR_20' ) start [2025-02-01 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380488', 'tblTempVendorCDR_20' ) end [2025-02-01 19:30:19] Production.INFO: ProcessCDR(1,14380488,1,1,2) [2025-02-01 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380488', 'tblTempUsageDetail_20' ) start [2025-02-01 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380488', 'tblTempUsageDetail_20' ) end [2025-02-01 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:30:24] Production.INFO: ==12662== Releasing lock... [2025-02-01 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:30:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 19:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:31:04 [end_date_ymd] => 2025-02-01 19:31:04 [RateCDR] => 1 ) [2025-02-01 19:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:31:04' and `end` < '2025-02-01 19:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:31:18] Production.INFO: count ==1853 [2025-02-01 19:31:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:31:04 - End Time 2025-02-01 19:31:04 [2025-02-01 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380494', 'tblTempUsageDetail_20' ) start [2025-02-01 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380494', 'tblTempUsageDetail_20' ) end [2025-02-01 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380494', 'tblTempVendorCDR_20' ) start [2025-02-01 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380494', 'tblTempVendorCDR_20' ) end [2025-02-01 19:31:18] Production.INFO: ProcessCDR(1,14380494,1,1,2) [2025-02-01 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380494', 'tblTempUsageDetail_20' ) start [2025-02-01 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380494', 'tblTempUsageDetail_20' ) end [2025-02-01 19:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:31:21] Production.INFO: ==12743== Releasing lock... [2025-02-01 19:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:31:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:32:05 [end_date_ymd] => 2025-02-01 19:32:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:32:05' and `end` < '2025-02-01 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-01 19:32:18] Production.INFO: count ==1852 [2025-02-01 19:32:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:32:05 - End Time 2025-02-01 19:32:05 [2025-02-01 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380499', 'tblTempUsageDetail_20' ) start [2025-02-01 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380499', 'tblTempUsageDetail_20' ) end [2025-02-01 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380499', 'tblTempVendorCDR_20' ) start [2025-02-01 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380499', 'tblTempVendorCDR_20' ) end [2025-02-01 19:32:18] Production.INFO: ProcessCDR(1,14380499,1,1,2) [2025-02-01 19:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380499', 'tblTempUsageDetail_20' ) start [2025-02-01 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380499', 'tblTempUsageDetail_20' ) end [2025-02-01 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:32:23] Production.INFO: ==12821== Releasing lock... [2025-02-01 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:32:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:33:05 [end_date_ymd] => 2025-02-01 19:33:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:33:05' and `end` < '2025-02-01 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-01 19:33:18] Production.INFO: count ==1863 [2025-02-01 19:33:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:33:05 - End Time 2025-02-01 19:33:05 [2025-02-01 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380504', 'tblTempUsageDetail_20' ) start [2025-02-01 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380504', 'tblTempUsageDetail_20' ) end [2025-02-01 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380504', 'tblTempVendorCDR_20' ) start [2025-02-01 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380504', 'tblTempVendorCDR_20' ) end [2025-02-01 19:33:19] Production.INFO: ProcessCDR(1,14380504,1,1,2) [2025-02-01 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380504', 'tblTempUsageDetail_20' ) start [2025-02-01 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380504', 'tblTempUsageDetail_20' ) end [2025-02-01 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:33:22] Production.INFO: ==12900== Releasing lock... [2025-02-01 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:33:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:34:05 [end_date_ymd] => 2025-02-01 19:34:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:34:05' and `end` < '2025-02-01 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-01 19:34:19] Production.INFO: count ==1863 [2025-02-01 19:34:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:34:05 - End Time 2025-02-01 19:34:05 [2025-02-01 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380509', 'tblTempUsageDetail_20' ) start [2025-02-01 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380509', 'tblTempUsageDetail_20' ) end [2025-02-01 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380509', 'tblTempVendorCDR_20' ) start [2025-02-01 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380509', 'tblTempVendorCDR_20' ) end [2025-02-01 19:34:19] Production.INFO: ProcessCDR(1,14380509,1,1,2) [2025-02-01 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380509', 'tblTempUsageDetail_20' ) start [2025-02-01 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380509', 'tblTempUsageDetail_20' ) end [2025-02-01 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:34:23] Production.INFO: ==12980== Releasing lock... [2025-02-01 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:34:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:35:05 [end_date_ymd] => 2025-02-01 19:35:05 [RateCDR] => 1 ) [2025-02-01 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:35:05' and `end` < '2025-02-01 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:35:18] Production.INFO: count ==1864 [2025-02-01 19:35:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:35:05 - End Time 2025-02-01 19:35:05 [2025-02-01 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380514', 'tblTempUsageDetail_20' ) start [2025-02-01 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380514', 'tblTempUsageDetail_20' ) end [2025-02-01 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380514', 'tblTempVendorCDR_20' ) start [2025-02-01 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380514', 'tblTempVendorCDR_20' ) end [2025-02-01 19:35:19] Production.INFO: ProcessCDR(1,14380514,1,1,2) [2025-02-01 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380514', 'tblTempUsageDetail_20' ) start [2025-02-01 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380514', 'tblTempUsageDetail_20' ) end [2025-02-01 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:35:23] Production.INFO: ==13077== Releasing lock... [2025-02-01 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:35:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:36:05 [end_date_ymd] => 2025-02-01 19:36:05 [RateCDR] => 1 ) [2025-02-01 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:36:05' and `end` < '2025-02-01 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:36:18] Production.INFO: count ==1863 [2025-02-01 19:36:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:36:05 - End Time 2025-02-01 19:36:05 [2025-02-01 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380519', 'tblTempUsageDetail_20' ) start [2025-02-01 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380519', 'tblTempUsageDetail_20' ) end [2025-02-01 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380519', 'tblTempVendorCDR_20' ) start [2025-02-01 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380519', 'tblTempVendorCDR_20' ) end [2025-02-01 19:36:18] Production.INFO: ProcessCDR(1,14380519,1,1,2) [2025-02-01 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380519', 'tblTempUsageDetail_20' ) start [2025-02-01 19:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380519', 'tblTempUsageDetail_20' ) end [2025-02-01 19:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:36:21] Production.INFO: ==13159== Releasing lock... [2025-02-01 19:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:36:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:37:05 [end_date_ymd] => 2025-02-01 19:37:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:37:05' and `end` < '2025-02-01 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-01 19:37:18] Production.INFO: count ==1862 [2025-02-01 19:37:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:37:05 - End Time 2025-02-01 19:37:05 [2025-02-01 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380524', 'tblTempUsageDetail_20' ) start [2025-02-01 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380524', 'tblTempUsageDetail_20' ) end [2025-02-01 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380524', 'tblTempVendorCDR_20' ) start [2025-02-01 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380524', 'tblTempVendorCDR_20' ) end [2025-02-01 19:37:18] Production.INFO: ProcessCDR(1,14380524,1,1,2) [2025-02-01 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380524', 'tblTempUsageDetail_20' ) start [2025-02-01 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380524', 'tblTempUsageDetail_20' ) end [2025-02-01 19:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:37:21] Production.INFO: ==13242== Releasing lock... [2025-02-01 19:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:37:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:38:05 [end_date_ymd] => 2025-02-01 19:38:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:38:05' and `end` < '2025-02-01 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-01 19:38:18] Production.INFO: count ==1862 [2025-02-01 19:38:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:38:05 - End Time 2025-02-01 19:38:05 [2025-02-01 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380529', 'tblTempUsageDetail_20' ) start [2025-02-01 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380529', 'tblTempUsageDetail_20' ) end [2025-02-01 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380529', 'tblTempVendorCDR_20' ) start [2025-02-01 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380529', 'tblTempVendorCDR_20' ) end [2025-02-01 19:38:18] Production.INFO: ProcessCDR(1,14380529,1,1,2) [2025-02-01 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380529', 'tblTempUsageDetail_20' ) start [2025-02-01 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380529', 'tblTempUsageDetail_20' ) end [2025-02-01 19:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:38:21] Production.INFO: ==13323== Releasing lock... [2025-02-01 19:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:38:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:39:05 [end_date_ymd] => 2025-02-01 19:39:05 [RateCDR] => 1 ) [2025-02-01 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:39:05' and `end` < '2025-02-01 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:39:19] Production.INFO: count ==1866 [2025-02-01 19:39:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:39:05 - End Time 2025-02-01 19:39:05 [2025-02-01 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380534', 'tblTempUsageDetail_20' ) start [2025-02-01 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380534', 'tblTempUsageDetail_20' ) end [2025-02-01 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380534', 'tblTempVendorCDR_20' ) start [2025-02-01 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380534', 'tblTempVendorCDR_20' ) end [2025-02-01 19:39:19] Production.INFO: ProcessCDR(1,14380534,1,1,2) [2025-02-01 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380534', 'tblTempUsageDetail_20' ) start [2025-02-01 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380534', 'tblTempUsageDetail_20' ) end [2025-02-01 19:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:39:24] Production.INFO: ==13405== Releasing lock... [2025-02-01 19:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:39:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:40:07 [end_date_ymd] => 2025-02-01 19:40:07 [RateCDR] => 1 ) [2025-02-01 19: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-01 16:40:07' and `end` < '2025-02-01 19: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-01 19:40:20] Production.INFO: count ==1870 [2025-02-01 19:40:20] Production.ERROR: pbx CDR StartTime 2025-02-01 16:40:07 - End Time 2025-02-01 19:40:07 [2025-02-01 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380540', 'tblTempUsageDetail_20' ) start [2025-02-01 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380540', 'tblTempUsageDetail_20' ) end [2025-02-01 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380540', 'tblTempVendorCDR_20' ) start [2025-02-01 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380540', 'tblTempVendorCDR_20' ) end [2025-02-01 19:40:20] Production.INFO: ProcessCDR(1,14380540,1,1,2) [2025-02-01 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380540', 'tblTempUsageDetail_20' ) start [2025-02-01 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380540', 'tblTempUsageDetail_20' ) end [2025-02-01 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:40:24] Production.INFO: ==13488== Releasing lock... [2025-02-01 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:40:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:41:05 [end_date_ymd] => 2025-02-01 19:41:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:41:05' and `end` < '2025-02-01 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:41:18] Production.INFO: count ==1883 [2025-02-01 19:41:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:41:05 - End Time 2025-02-01 19:41:05 [2025-02-01 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380545', 'tblTempUsageDetail_20' ) start [2025-02-01 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380545', 'tblTempUsageDetail_20' ) end [2025-02-01 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380545', 'tblTempVendorCDR_20' ) start [2025-02-01 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380545', 'tblTempVendorCDR_20' ) end [2025-02-01 19:41:19] Production.INFO: ProcessCDR(1,14380545,1,1,2) [2025-02-01 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380545', 'tblTempUsageDetail_20' ) start [2025-02-01 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380545', 'tblTempUsageDetail_20' ) end [2025-02-01 19:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:41:24] Production.INFO: ==13568== Releasing lock... [2025-02-01 19:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:41:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 19:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:42:06 [end_date_ymd] => 2025-02-01 19:42:06 [RateCDR] => 1 ) [2025-02-01 19:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:42:06' and `end` < '2025-02-01 19:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:42:20] Production.INFO: count ==1890 [2025-02-01 19:42:21] Production.ERROR: pbx CDR StartTime 2025-02-01 16:42:06 - End Time 2025-02-01 19:42:06 [2025-02-01 19:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380550', 'tblTempUsageDetail_20' ) start [2025-02-01 19:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380550', 'tblTempUsageDetail_20' ) end [2025-02-01 19:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380550', 'tblTempVendorCDR_20' ) start [2025-02-01 19:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380550', 'tblTempVendorCDR_20' ) end [2025-02-01 19:42:21] Production.INFO: ProcessCDR(1,14380550,1,1,2) [2025-02-01 19:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380550', 'tblTempUsageDetail_20' ) start [2025-02-01 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380550', 'tblTempUsageDetail_20' ) end [2025-02-01 19:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:42:25] Production.INFO: ==13647== Releasing lock... [2025-02-01 19:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:42:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:43:05 [end_date_ymd] => 2025-02-01 19:43:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:43:05' and `end` < '2025-02-01 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-01 19:43:18] Production.INFO: count ==1897 [2025-02-01 19:43:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:43:05 - End Time 2025-02-01 19:43:05 [2025-02-01 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380555', 'tblTempUsageDetail_20' ) start [2025-02-01 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380555', 'tblTempUsageDetail_20' ) end [2025-02-01 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380555', 'tblTempVendorCDR_20' ) start [2025-02-01 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380555', 'tblTempVendorCDR_20' ) end [2025-02-01 19:43:18] Production.INFO: ProcessCDR(1,14380555,1,1,2) [2025-02-01 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380555', 'tblTempUsageDetail_20' ) start [2025-02-01 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380555', 'tblTempUsageDetail_20' ) end [2025-02-01 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:43:23] Production.INFO: ==13765== Releasing lock... [2025-02-01 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:43:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:44:05 [end_date_ymd] => 2025-02-01 19:44:05 [RateCDR] => 1 ) [2025-02-01 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:44:05' and `end` < '2025-02-01 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:44:18] Production.INFO: count ==1897 [2025-02-01 19:44:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:44:05 - End Time 2025-02-01 19:44:05 [2025-02-01 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380560', 'tblTempUsageDetail_20' ) start [2025-02-01 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380560', 'tblTempUsageDetail_20' ) end [2025-02-01 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380560', 'tblTempVendorCDR_20' ) start [2025-02-01 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380560', 'tblTempVendorCDR_20' ) end [2025-02-01 19:44:19] Production.INFO: ProcessCDR(1,14380560,1,1,2) [2025-02-01 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380560', 'tblTempUsageDetail_20' ) start [2025-02-01 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380560', 'tblTempUsageDetail_20' ) end [2025-02-01 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:44:23] Production.INFO: ==13849== Releasing lock... [2025-02-01 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:44:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:45:05 [end_date_ymd] => 2025-02-01 19:45:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:45:05' and `end` < '2025-02-01 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-01 19:45:18] Production.INFO: count ==1899 [2025-02-01 19:45:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:45:05 - End Time 2025-02-01 19:45:05 [2025-02-01 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380565', 'tblTempUsageDetail_20' ) start [2025-02-01 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380565', 'tblTempUsageDetail_20' ) end [2025-02-01 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380565', 'tblTempVendorCDR_20' ) start [2025-02-01 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380565', 'tblTempVendorCDR_20' ) end [2025-02-01 19:45:19] Production.INFO: ProcessCDR(1,14380565,1,1,2) [2025-02-01 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380565', 'tblTempUsageDetail_20' ) start [2025-02-01 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380565', 'tblTempUsageDetail_20' ) end [2025-02-01 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:45:23] Production.INFO: ==13932== Releasing lock... [2025-02-01 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:45:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:46:05 [end_date_ymd] => 2025-02-01 19:46:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:46:05' and `end` < '2025-02-01 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-01 19:46:18] Production.INFO: count ==1898 [2025-02-01 19:46:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:46:05 - End Time 2025-02-01 19:46:05 [2025-02-01 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380570', 'tblTempUsageDetail_20' ) start [2025-02-01 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380570', 'tblTempUsageDetail_20' ) end [2025-02-01 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380570', 'tblTempVendorCDR_20' ) start [2025-02-01 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380570', 'tblTempVendorCDR_20' ) end [2025-02-01 19:46:18] Production.INFO: ProcessCDR(1,14380570,1,1,2) [2025-02-01 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380570', 'tblTempUsageDetail_20' ) start [2025-02-01 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380570', 'tblTempUsageDetail_20' ) end [2025-02-01 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:46:23] Production.INFO: ==14018== Releasing lock... [2025-02-01 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:46:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:47:06 [end_date_ymd] => 2025-02-01 19:47:06 [RateCDR] => 1 ) [2025-02-01 19:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:47:06' and `end` < '2025-02-01 19:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:47:19] Production.INFO: count ==1899 [2025-02-01 19:47:20] Production.ERROR: pbx CDR StartTime 2025-02-01 16:47:06 - End Time 2025-02-01 19:47:06 [2025-02-01 19:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380575', 'tblTempUsageDetail_20' ) start [2025-02-01 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380575', 'tblTempUsageDetail_20' ) end [2025-02-01 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380575', 'tblTempVendorCDR_20' ) start [2025-02-01 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380575', 'tblTempVendorCDR_20' ) end [2025-02-01 19:47:20] Production.INFO: ProcessCDR(1,14380575,1,1,2) [2025-02-01 19:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380575', 'tblTempUsageDetail_20' ) start [2025-02-01 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380575', 'tblTempUsageDetail_20' ) end [2025-02-01 19:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:47:24] Production.INFO: ==14101== Releasing lock... [2025-02-01 19:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:47:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:48:05 [end_date_ymd] => 2025-02-01 19:48:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:48:05' and `end` < '2025-02-01 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-01 19:48:18] Production.INFO: count ==1904 [2025-02-01 19:48:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:48:05 - End Time 2025-02-01 19:48:05 [2025-02-01 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380580', 'tblTempUsageDetail_20' ) start [2025-02-01 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380580', 'tblTempUsageDetail_20' ) end [2025-02-01 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380580', 'tblTempVendorCDR_20' ) start [2025-02-01 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380580', 'tblTempVendorCDR_20' ) end [2025-02-01 19:48:19] Production.INFO: ProcessCDR(1,14380580,1,1,2) [2025-02-01 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380580', 'tblTempUsageDetail_20' ) start [2025-02-01 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380580', 'tblTempUsageDetail_20' ) end [2025-02-01 19:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:48:23] Production.INFO: ==14187== Releasing lock... [2025-02-01 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:48:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:49:05 [end_date_ymd] => 2025-02-01 19:49:05 [RateCDR] => 1 ) [2025-02-01 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:49:05' and `end` < '2025-02-01 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:49:20] Production.INFO: count ==1901 [2025-02-01 19:49:20] Production.ERROR: pbx CDR StartTime 2025-02-01 16:49:05 - End Time 2025-02-01 19:49:05 [2025-02-01 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380585', 'tblTempUsageDetail_20' ) start [2025-02-01 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380585', 'tblTempUsageDetail_20' ) end [2025-02-01 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380585', 'tblTempVendorCDR_20' ) start [2025-02-01 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380585', 'tblTempVendorCDR_20' ) end [2025-02-01 19:49:20] Production.INFO: ProcessCDR(1,14380585,1,1,2) [2025-02-01 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380585', 'tblTempUsageDetail_20' ) start [2025-02-01 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380585', 'tblTempUsageDetail_20' ) end [2025-02-01 19:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:49:25] Production.INFO: ==14286== Releasing lock... [2025-02-01 19:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:49:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:50:05 [end_date_ymd] => 2025-02-01 19:50:05 [RateCDR] => 1 ) [2025-02-01 19:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:50:05' and `end` < '2025-02-01 19:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:50:20] Production.INFO: count ==1901 [2025-02-01 19:50:21] Production.ERROR: pbx CDR StartTime 2025-02-01 16:50:05 - End Time 2025-02-01 19:50:05 [2025-02-01 19:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380591', 'tblTempUsageDetail_20' ) start [2025-02-01 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380591', 'tblTempUsageDetail_20' ) end [2025-02-01 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380591', 'tblTempVendorCDR_20' ) start [2025-02-01 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380591', 'tblTempVendorCDR_20' ) end [2025-02-01 19:50:21] Production.INFO: ProcessCDR(1,14380591,1,1,2) [2025-02-01 19:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380591', 'tblTempUsageDetail_20' ) start [2025-02-01 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380591', 'tblTempUsageDetail_20' ) end [2025-02-01 19:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:50:25] Production.INFO: ==14378== Releasing lock... [2025-02-01 19:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:50:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:51:05 [end_date_ymd] => 2025-02-01 19:51:05 [RateCDR] => 1 ) [2025-02-01 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:51:05' and `end` < '2025-02-01 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:51:18] Production.INFO: count ==1869 [2025-02-01 19:51:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:51:05 - End Time 2025-02-01 19:51:05 [2025-02-01 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380596', 'tblTempUsageDetail_20' ) start [2025-02-01 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380596', 'tblTempUsageDetail_20' ) end [2025-02-01 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380596', 'tblTempVendorCDR_20' ) start [2025-02-01 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380596', 'tblTempVendorCDR_20' ) end [2025-02-01 19:51:19] Production.INFO: ProcessCDR(1,14380596,1,1,2) [2025-02-01 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380596', 'tblTempUsageDetail_20' ) start [2025-02-01 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380596', 'tblTempUsageDetail_20' ) end [2025-02-01 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:51:22] Production.INFO: ==14464== Releasing lock... [2025-02-01 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:51:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:52:05 [end_date_ymd] => 2025-02-01 19:52:05 [RateCDR] => 1 ) [2025-02-01 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-01 16:52:05' and `end` < '2025-02-01 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-01 19:52:19] Production.INFO: count ==1869 [2025-02-01 19:52:20] Production.ERROR: pbx CDR StartTime 2025-02-01 16:52:05 - End Time 2025-02-01 19:52:05 [2025-02-01 19:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380601', 'tblTempUsageDetail_20' ) start [2025-02-01 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380601', 'tblTempUsageDetail_20' ) end [2025-02-01 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380601', 'tblTempVendorCDR_20' ) start [2025-02-01 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380601', 'tblTempVendorCDR_20' ) end [2025-02-01 19:52:20] Production.INFO: ProcessCDR(1,14380601,1,1,2) [2025-02-01 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380601', 'tblTempUsageDetail_20' ) start [2025-02-01 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380601', 'tblTempUsageDetail_20' ) end [2025-02-01 19:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:52:24] Production.INFO: ==14541== Releasing lock... [2025-02-01 19:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:52:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:53:04 [end_date_ymd] => 2025-02-01 19:53:04 [RateCDR] => 1 ) [2025-02-01 19:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:53:04' and `end` < '2025-02-01 19:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:53:20] Production.INFO: count ==1867 [2025-02-01 19:53:20] Production.ERROR: pbx CDR StartTime 2025-02-01 16:53:04 - End Time 2025-02-01 19:53:04 [2025-02-01 19:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380606', 'tblTempUsageDetail_20' ) start [2025-02-01 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380606', 'tblTempUsageDetail_20' ) end [2025-02-01 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380606', 'tblTempVendorCDR_20' ) start [2025-02-01 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380606', 'tblTempVendorCDR_20' ) end [2025-02-01 19:53:20] Production.INFO: ProcessCDR(1,14380606,1,1,2) [2025-02-01 19:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380606', 'tblTempUsageDetail_20' ) start [2025-02-01 19:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380606', 'tblTempUsageDetail_20' ) end [2025-02-01 19:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:53:25] Production.INFO: ==14612== Releasing lock... [2025-02-01 19:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:53:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:54:05 [end_date_ymd] => 2025-02-01 19:54:05 [RateCDR] => 1 ) [2025-02-01 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:54:05' and `end` < '2025-02-01 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:54:18] Production.INFO: count ==1843 [2025-02-01 19:54:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:54:05 - End Time 2025-02-01 19:54:05 [2025-02-01 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380611', 'tblTempUsageDetail_20' ) start [2025-02-01 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380611', 'tblTempUsageDetail_20' ) end [2025-02-01 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380611', 'tblTempVendorCDR_20' ) start [2025-02-01 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380611', 'tblTempVendorCDR_20' ) end [2025-02-01 19:54:19] Production.INFO: ProcessCDR(1,14380611,1,1,2) [2025-02-01 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380611', 'tblTempUsageDetail_20' ) start [2025-02-01 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380611', 'tblTempUsageDetail_20' ) end [2025-02-01 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:54:23] Production.INFO: ==14686== Releasing lock... [2025-02-01 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:54:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:55:05 [end_date_ymd] => 2025-02-01 19:55:05 [RateCDR] => 1 ) [2025-02-01 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:55:05' and `end` < '2025-02-01 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:55:18] Production.INFO: count ==1841 [2025-02-01 19:55:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:55:05 - End Time 2025-02-01 19:55:05 [2025-02-01 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380616', 'tblTempUsageDetail_20' ) start [2025-02-01 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380616', 'tblTempUsageDetail_20' ) end [2025-02-01 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380616', 'tblTempVendorCDR_20' ) start [2025-02-01 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380616', 'tblTempVendorCDR_20' ) end [2025-02-01 19:55:18] Production.INFO: ProcessCDR(1,14380616,1,1,2) [2025-02-01 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380616', 'tblTempUsageDetail_20' ) start [2025-02-01 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380616', 'tblTempUsageDetail_20' ) end [2025-02-01 19:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:55:21] Production.INFO: ==14758== Releasing lock... [2025-02-01 19:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:55:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:56:05 [end_date_ymd] => 2025-02-01 19:56:05 [RateCDR] => 1 ) [2025-02-01 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:56:05' and `end` < '2025-02-01 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:56:18] Production.INFO: count ==1848 [2025-02-01 19:56:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:56:05 - End Time 2025-02-01 19:56:05 [2025-02-01 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380621', 'tblTempUsageDetail_20' ) start [2025-02-01 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380621', 'tblTempUsageDetail_20' ) end [2025-02-01 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380621', 'tblTempVendorCDR_20' ) start [2025-02-01 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380621', 'tblTempVendorCDR_20' ) end [2025-02-01 19:56:19] Production.INFO: ProcessCDR(1,14380621,1,1,2) [2025-02-01 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380621', 'tblTempUsageDetail_20' ) start [2025-02-01 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380621', 'tblTempUsageDetail_20' ) end [2025-02-01 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:56:23] Production.INFO: ==14834== Releasing lock... [2025-02-01 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:56:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:57:04 [end_date_ymd] => 2025-02-01 19:57:04 [RateCDR] => 1 ) [2025-02-01 19: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-01 16:57:04' and `end` < '2025-02-01 19: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-01 19:57:17] Production.INFO: count ==1843 [2025-02-01 19:57:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:57:04 - End Time 2025-02-01 19:57:04 [2025-02-01 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380626', 'tblTempUsageDetail_20' ) start [2025-02-01 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380626', 'tblTempUsageDetail_20' ) end [2025-02-01 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380626', 'tblTempVendorCDR_20' ) start [2025-02-01 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380626', 'tblTempVendorCDR_20' ) end [2025-02-01 19:57:18] Production.INFO: ProcessCDR(1,14380626,1,1,2) [2025-02-01 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380626', 'tblTempUsageDetail_20' ) start [2025-02-01 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380626', 'tblTempUsageDetail_20' ) end [2025-02-01 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:57:22] Production.INFO: ==14907== Releasing lock... [2025-02-01 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:57:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:58:04 [end_date_ymd] => 2025-02-01 19:58:04 [RateCDR] => 1 ) [2025-02-01 19:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 16:58:04' and `end` < '2025-02-01 19:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 19:58:18] Production.INFO: count ==1847 [2025-02-01 19:58:18] Production.ERROR: pbx CDR StartTime 2025-02-01 16:58:04 - End Time 2025-02-01 19:58:04 [2025-02-01 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380631', 'tblTempUsageDetail_20' ) start [2025-02-01 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380631', 'tblTempUsageDetail_20' ) end [2025-02-01 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380631', 'tblTempVendorCDR_20' ) start [2025-02-01 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380631', 'tblTempVendorCDR_20' ) end [2025-02-01 19:58:18] Production.INFO: ProcessCDR(1,14380631,1,1,2) [2025-02-01 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380631', 'tblTempUsageDetail_20' ) start [2025-02-01 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380631', 'tblTempUsageDetail_20' ) end [2025-02-01 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:58:23] Production.INFO: ==15025== Releasing lock... [2025-02-01 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:58:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 19:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 16:59:06 [end_date_ymd] => 2025-02-01 19:59:06 [RateCDR] => 1 ) [2025-02-01 19: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-01 16:59:06' and `end` < '2025-02-01 19: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-01 19:59:19] Production.INFO: count ==1848 [2025-02-01 19:59:19] Production.ERROR: pbx CDR StartTime 2025-02-01 16:59:06 - End Time 2025-02-01 19:59:06 [2025-02-01 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380636', 'tblTempUsageDetail_20' ) start [2025-02-01 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380636', 'tblTempUsageDetail_20' ) end [2025-02-01 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380636', 'tblTempVendorCDR_20' ) start [2025-02-01 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380636', 'tblTempVendorCDR_20' ) end [2025-02-01 19:59:19] Production.INFO: ProcessCDR(1,14380636,1,1,2) [2025-02-01 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 19:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380636', 'tblTempUsageDetail_20' ) start [2025-02-01 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380636', 'tblTempUsageDetail_20' ) end [2025-02-01 19:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 19:59:24] Production.INFO: ==15098== Releasing lock... [2025-02-01 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 19:59:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:00:06 [end_date_ymd] => 2025-02-01 20:00:06 [RateCDR] => 1 ) [2025-02-01 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-01 17:00:06' and `end` < '2025-02-01 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-01 20:00:19] Production.INFO: count ==1846 [2025-02-01 20:00:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:00:06 - End Time 2025-02-01 20:00:06 [2025-02-01 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380642', 'tblTempUsageDetail_20' ) start [2025-02-01 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380642', 'tblTempUsageDetail_20' ) end [2025-02-01 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380642', 'tblTempVendorCDR_20' ) start [2025-02-01 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380642', 'tblTempVendorCDR_20' ) end [2025-02-01 20:00:19] Production.INFO: ProcessCDR(1,14380642,1,1,2) [2025-02-01 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380642', 'tblTempUsageDetail_20' ) start [2025-02-01 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380642', 'tblTempUsageDetail_20' ) end [2025-02-01 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:00:23] Production.INFO: ==15173== Releasing lock... [2025-02-01 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:00:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:01:05 [end_date_ymd] => 2025-02-01 20:01:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:01:05' and `end` < '2025-02-01 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-01 20:01:18] Production.INFO: count ==1874 [2025-02-01 20:01:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:01:05 - End Time 2025-02-01 20:01:05 [2025-02-01 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380647', 'tblTempUsageDetail_20' ) start [2025-02-01 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380647', 'tblTempUsageDetail_20' ) end [2025-02-01 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380647', 'tblTempVendorCDR_20' ) start [2025-02-01 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380647', 'tblTempVendorCDR_20' ) end [2025-02-01 20:01:18] Production.INFO: ProcessCDR(1,14380647,1,1,2) [2025-02-01 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380647', 'tblTempUsageDetail_20' ) start [2025-02-01 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380647', 'tblTempUsageDetail_20' ) end [2025-02-01 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:01:23] Production.INFO: ==15303== Releasing lock... [2025-02-01 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:01:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:02:05 [end_date_ymd] => 2025-02-01 20:02:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:02:05' and `end` < '2025-02-01 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-01 20:02:19] Production.INFO: count ==1878 [2025-02-01 20:02:20] Production.ERROR: pbx CDR StartTime 2025-02-01 17:02:05 - End Time 2025-02-01 20:02:05 [2025-02-01 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380652', 'tblTempUsageDetail_20' ) start [2025-02-01 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380652', 'tblTempUsageDetail_20' ) end [2025-02-01 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380652', 'tblTempVendorCDR_20' ) start [2025-02-01 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380652', 'tblTempVendorCDR_20' ) end [2025-02-01 20:02:20] Production.INFO: ProcessCDR(1,14380652,1,1,2) [2025-02-01 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380652', 'tblTempUsageDetail_20' ) start [2025-02-01 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380652', 'tblTempUsageDetail_20' ) end [2025-02-01 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:02:23] Production.INFO: ==15381== Releasing lock... [2025-02-01 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:02:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 20:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:03:06 [end_date_ymd] => 2025-02-01 20:03:06 [RateCDR] => 1 ) [2025-02-01 20: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-01 17:03:06' and `end` < '2025-02-01 20: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-01 20:03:19] Production.INFO: count ==1873 [2025-02-01 20:03:20] Production.ERROR: pbx CDR StartTime 2025-02-01 17:03:06 - End Time 2025-02-01 20:03:06 [2025-02-01 20:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380657', 'tblTempUsageDetail_20' ) start [2025-02-01 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380657', 'tblTempUsageDetail_20' ) end [2025-02-01 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380657', 'tblTempVendorCDR_20' ) start [2025-02-01 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380657', 'tblTempVendorCDR_20' ) end [2025-02-01 20:03:20] Production.INFO: ProcessCDR(1,14380657,1,1,2) [2025-02-01 20:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380657', 'tblTempUsageDetail_20' ) start [2025-02-01 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380657', 'tblTempUsageDetail_20' ) end [2025-02-01 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:03:23] Production.INFO: ==15461== Releasing lock... [2025-02-01 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:03:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:04:05 [end_date_ymd] => 2025-02-01 20:04:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:04:05' and `end` < '2025-02-01 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-01 20:04:18] Production.INFO: count ==1874 [2025-02-01 20:04:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:04:05 - End Time 2025-02-01 20:04:05 [2025-02-01 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380662', 'tblTempUsageDetail_20' ) start [2025-02-01 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380662', 'tblTempUsageDetail_20' ) end [2025-02-01 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380662', 'tblTempVendorCDR_20' ) start [2025-02-01 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380662', 'tblTempVendorCDR_20' ) end [2025-02-01 20:04:18] Production.INFO: ProcessCDR(1,14380662,1,1,2) [2025-02-01 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380662', 'tblTempUsageDetail_20' ) start [2025-02-01 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380662', 'tblTempUsageDetail_20' ) end [2025-02-01 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:04:23] Production.INFO: ==15534== Releasing lock... [2025-02-01 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:04:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:05:05 [end_date_ymd] => 2025-02-01 20:05:05 [RateCDR] => 1 ) [2025-02-01 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 17:05:05' and `end` < '2025-02-01 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 20:05:18] Production.INFO: count ==1878 [2025-02-01 20:05:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:05:05 - End Time 2025-02-01 20:05:05 [2025-02-01 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380667', 'tblTempUsageDetail_20' ) start [2025-02-01 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380667', 'tblTempUsageDetail_20' ) end [2025-02-01 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380667', 'tblTempVendorCDR_20' ) start [2025-02-01 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380667', 'tblTempVendorCDR_20' ) end [2025-02-01 20:05:19] Production.INFO: ProcessCDR(1,14380667,1,1,2) [2025-02-01 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380667', 'tblTempUsageDetail_20' ) start [2025-02-01 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380667', 'tblTempUsageDetail_20' ) end [2025-02-01 20:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:05:22] Production.INFO: ==15609== Releasing lock... [2025-02-01 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:05:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 20:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:06:04 [end_date_ymd] => 2025-02-01 20:06:04 [RateCDR] => 1 ) [2025-02-01 20: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-01 17:06:04' and `end` < '2025-02-01 20: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-01 20:06:17] Production.INFO: count ==1881 [2025-02-01 20:06:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:06:04 - End Time 2025-02-01 20:06:04 [2025-02-01 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380672', 'tblTempUsageDetail_20' ) start [2025-02-01 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380672', 'tblTempUsageDetail_20' ) end [2025-02-01 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380672', 'tblTempVendorCDR_20' ) start [2025-02-01 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380672', 'tblTempVendorCDR_20' ) end [2025-02-01 20:06:18] Production.INFO: ProcessCDR(1,14380672,1,1,2) [2025-02-01 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380672', 'tblTempUsageDetail_20' ) start [2025-02-01 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380672', 'tblTempUsageDetail_20' ) end [2025-02-01 20:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:06:21] Production.INFO: ==15685== Releasing lock... [2025-02-01 20:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:06:21] Production.INFO: 42 MB #Memory Used# [2025-02-01 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:07:05 [end_date_ymd] => 2025-02-01 20:07:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:07:05' and `end` < '2025-02-01 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-01 20:07:19] Production.INFO: count ==1884 [2025-02-01 20:07:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:07:05 - End Time 2025-02-01 20:07:05 [2025-02-01 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380677', 'tblTempUsageDetail_20' ) start [2025-02-01 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380677', 'tblTempUsageDetail_20' ) end [2025-02-01 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380677', 'tblTempVendorCDR_20' ) start [2025-02-01 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380677', 'tblTempVendorCDR_20' ) end [2025-02-01 20:07:19] Production.INFO: ProcessCDR(1,14380677,1,1,2) [2025-02-01 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380677', 'tblTempUsageDetail_20' ) start [2025-02-01 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380677', 'tblTempUsageDetail_20' ) end [2025-02-01 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:07:23] Production.INFO: ==15763== Releasing lock... [2025-02-01 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:07:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 20:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:08:04 [end_date_ymd] => 2025-02-01 20:08:04 [RateCDR] => 1 ) [2025-02-01 20: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-01 17:08:04' and `end` < '2025-02-01 20: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-01 20:08:17] Production.INFO: count ==1883 [2025-02-01 20:08:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:08:04 - End Time 2025-02-01 20:08:04 [2025-02-01 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380682', 'tblTempUsageDetail_20' ) start [2025-02-01 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380682', 'tblTempUsageDetail_20' ) end [2025-02-01 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380682', 'tblTempVendorCDR_20' ) start [2025-02-01 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380682', 'tblTempVendorCDR_20' ) end [2025-02-01 20:08:18] Production.INFO: ProcessCDR(1,14380682,1,1,2) [2025-02-01 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380682', 'tblTempUsageDetail_20' ) start [2025-02-01 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380682', 'tblTempUsageDetail_20' ) end [2025-02-01 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:08:22] Production.INFO: ==15840== Releasing lock... [2025-02-01 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:08:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:09:05 [end_date_ymd] => 2025-02-01 20:09:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:09:05' and `end` < '2025-02-01 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-01 20:09:18] Production.INFO: count ==1881 [2025-02-01 20:09:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:09:05 - End Time 2025-02-01 20:09:05 [2025-02-01 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380687', 'tblTempUsageDetail_20' ) start [2025-02-01 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380687', 'tblTempUsageDetail_20' ) end [2025-02-01 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380687', 'tblTempVendorCDR_20' ) start [2025-02-01 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380687', 'tblTempVendorCDR_20' ) end [2025-02-01 20:09:18] Production.INFO: ProcessCDR(1,14380687,1,1,2) [2025-02-01 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380687', 'tblTempUsageDetail_20' ) start [2025-02-01 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380687', 'tblTempUsageDetail_20' ) end [2025-02-01 20:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:09:21] Production.INFO: ==15913== Releasing lock... [2025-02-01 20:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:09:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:10:06 [end_date_ymd] => 2025-02-01 20:10:06 [RateCDR] => 1 ) [2025-02-01 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-01 17:10:06' and `end` < '2025-02-01 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-01 20:10:19] Production.INFO: count ==1877 [2025-02-01 20:10:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:10:06 - End Time 2025-02-01 20:10:06 [2025-02-01 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380693', 'tblTempUsageDetail_20' ) start [2025-02-01 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380693', 'tblTempUsageDetail_20' ) end [2025-02-01 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380693', 'tblTempVendorCDR_20' ) start [2025-02-01 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380693', 'tblTempVendorCDR_20' ) end [2025-02-01 20:10:19] Production.INFO: ProcessCDR(1,14380693,1,1,2) [2025-02-01 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380693', 'tblTempUsageDetail_20' ) start [2025-02-01 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380693', 'tblTempUsageDetail_20' ) end [2025-02-01 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:10:23] Production.INFO: ==15992== Releasing lock... [2025-02-01 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:10:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:11:05 [end_date_ymd] => 2025-02-01 20:11:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:11:05' and `end` < '2025-02-01 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-01 20:11:18] Production.INFO: count ==1881 [2025-02-01 20:11:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:11:05 - End Time 2025-02-01 20:11:05 [2025-02-01 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380698', 'tblTempUsageDetail_20' ) start [2025-02-01 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380698', 'tblTempUsageDetail_20' ) end [2025-02-01 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380698', 'tblTempVendorCDR_20' ) start [2025-02-01 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380698', 'tblTempVendorCDR_20' ) end [2025-02-01 20:11:19] Production.INFO: ProcessCDR(1,14380698,1,1,2) [2025-02-01 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380698', 'tblTempUsageDetail_20' ) start [2025-02-01 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380698', 'tblTempUsageDetail_20' ) end [2025-02-01 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:11:23] Production.INFO: ==16071== Releasing lock... [2025-02-01 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:11:23] Production.INFO: 42 MB #Memory Used# [2025-02-01 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:12:06 [end_date_ymd] => 2025-02-01 20:12:06 [RateCDR] => 1 ) [2025-02-01 20: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-01 17:12:06' and `end` < '2025-02-01 20: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-01 20:12:19] Production.INFO: count ==1887 [2025-02-01 20:12:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:12:06 - End Time 2025-02-01 20:12:06 [2025-02-01 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380703', 'tblTempUsageDetail_20' ) start [2025-02-01 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380703', 'tblTempUsageDetail_20' ) end [2025-02-01 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380703', 'tblTempVendorCDR_20' ) start [2025-02-01 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380703', 'tblTempVendorCDR_20' ) end [2025-02-01 20:12:19] Production.INFO: ProcessCDR(1,14380703,1,1,2) [2025-02-01 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380703', 'tblTempUsageDetail_20' ) start [2025-02-01 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380703', 'tblTempUsageDetail_20' ) end [2025-02-01 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:12:22] Production.INFO: ==16150== Releasing lock... [2025-02-01 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:12:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 20:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:13:04 [end_date_ymd] => 2025-02-01 20:13:04 [RateCDR] => 1 ) [2025-02-01 20: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-01 17:13:04' and `end` < '2025-02-01 20: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-01 20:13:18] Production.INFO: count ==1891 [2025-02-01 20:13:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:13:04 - End Time 2025-02-01 20:13:04 [2025-02-01 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380708', 'tblTempUsageDetail_20' ) start [2025-02-01 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380708', 'tblTempUsageDetail_20' ) end [2025-02-01 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380708', 'tblTempVendorCDR_20' ) start [2025-02-01 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380708', 'tblTempVendorCDR_20' ) end [2025-02-01 20:13:19] Production.INFO: ProcessCDR(1,14380708,1,1,2) [2025-02-01 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380708', 'tblTempUsageDetail_20' ) start [2025-02-01 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380708', 'tblTempUsageDetail_20' ) end [2025-02-01 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:13:23] Production.INFO: ==16221== Releasing lock... [2025-02-01 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:13:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:14:05 [end_date_ymd] => 2025-02-01 20:14:05 [RateCDR] => 1 ) [2025-02-01 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 17:14:05' and `end` < '2025-02-01 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 20:14:19] Production.INFO: count ==1890 [2025-02-01 20:14:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:14:05 - End Time 2025-02-01 20:14:05 [2025-02-01 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380713', 'tblTempUsageDetail_20' ) start [2025-02-01 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380713', 'tblTempUsageDetail_20' ) end [2025-02-01 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380713', 'tblTempVendorCDR_20' ) start [2025-02-01 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380713', 'tblTempVendorCDR_20' ) end [2025-02-01 20:14:19] Production.INFO: ProcessCDR(1,14380713,1,1,2) [2025-02-01 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380713', 'tblTempUsageDetail_20' ) start [2025-02-01 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380713', 'tblTempUsageDetail_20' ) end [2025-02-01 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:14:24] Production.INFO: ==16339== Releasing lock... [2025-02-01 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:14:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:15:05 [end_date_ymd] => 2025-02-01 20:15:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:15:05' and `end` < '2025-02-01 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-01 20:15:18] Production.INFO: count ==1888 [2025-02-01 20:15:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:15:05 - End Time 2025-02-01 20:15:05 [2025-02-01 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380718', 'tblTempUsageDetail_20' ) start [2025-02-01 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380718', 'tblTempUsageDetail_20' ) end [2025-02-01 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380718', 'tblTempVendorCDR_20' ) start [2025-02-01 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380718', 'tblTempVendorCDR_20' ) end [2025-02-01 20:15:18] Production.INFO: ProcessCDR(1,14380718,1,1,2) [2025-02-01 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380718', 'tblTempUsageDetail_20' ) start [2025-02-01 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380718', 'tblTempUsageDetail_20' ) end [2025-02-01 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:15:21] Production.INFO: ==16415== Releasing lock... [2025-02-01 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:15:21] Production.INFO: 42 MB #Memory Used# [2025-02-01 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:16:05 [end_date_ymd] => 2025-02-01 20:16:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:16:05' and `end` < '2025-02-01 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-01 20:16:18] Production.INFO: count ==1887 [2025-02-01 20:16:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:16:05 - End Time 2025-02-01 20:16:05 [2025-02-01 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380723', 'tblTempUsageDetail_20' ) start [2025-02-01 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380723', 'tblTempUsageDetail_20' ) end [2025-02-01 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380723', 'tblTempVendorCDR_20' ) start [2025-02-01 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380723', 'tblTempVendorCDR_20' ) end [2025-02-01 20:16:18] Production.INFO: ProcessCDR(1,14380723,1,1,2) [2025-02-01 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380723', 'tblTempUsageDetail_20' ) start [2025-02-01 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380723', 'tblTempUsageDetail_20' ) end [2025-02-01 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:16:22] Production.INFO: ==16493== Releasing lock... [2025-02-01 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:16:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:17:05 [end_date_ymd] => 2025-02-01 20:17:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:17:05' and `end` < '2025-02-01 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-01 20:17:18] Production.INFO: count ==1887 [2025-02-01 20:17:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:17:05 - End Time 2025-02-01 20:17:05 [2025-02-01 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380728', 'tblTempUsageDetail_20' ) start [2025-02-01 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380728', 'tblTempUsageDetail_20' ) end [2025-02-01 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380728', 'tblTempVendorCDR_20' ) start [2025-02-01 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380728', 'tblTempVendorCDR_20' ) end [2025-02-01 20:17:18] Production.INFO: ProcessCDR(1,14380728,1,1,2) [2025-02-01 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380728', 'tblTempUsageDetail_20' ) start [2025-02-01 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380728', 'tblTempUsageDetail_20' ) end [2025-02-01 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:17:23] Production.INFO: ==16572== Releasing lock... [2025-02-01 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:17:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:18:05 [end_date_ymd] => 2025-02-01 20:18:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:18:05' and `end` < '2025-02-01 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-01 20:18:18] Production.INFO: count ==1886 [2025-02-01 20:18:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:18:05 - End Time 2025-02-01 20:18:05 [2025-02-01 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380733', 'tblTempUsageDetail_20' ) start [2025-02-01 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380733', 'tblTempUsageDetail_20' ) end [2025-02-01 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380733', 'tblTempVendorCDR_20' ) start [2025-02-01 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380733', 'tblTempVendorCDR_20' ) end [2025-02-01 20:18:18] Production.INFO: ProcessCDR(1,14380733,1,1,2) [2025-02-01 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380733', 'tblTempUsageDetail_20' ) start [2025-02-01 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380733', 'tblTempUsageDetail_20' ) end [2025-02-01 20:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:18:21] Production.INFO: ==16675== Releasing lock... [2025-02-01 20:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:18:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:19:05 [end_date_ymd] => 2025-02-01 20:19:05 [RateCDR] => 1 ) [2025-02-01 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 17:19:05' and `end` < '2025-02-01 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 20:19:18] Production.INFO: count ==1884 [2025-02-01 20:19:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:19:05 - End Time 2025-02-01 20:19:05 [2025-02-01 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380738', 'tblTempUsageDetail_20' ) start [2025-02-01 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380738', 'tblTempUsageDetail_20' ) end [2025-02-01 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380738', 'tblTempVendorCDR_20' ) start [2025-02-01 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380738', 'tblTempVendorCDR_20' ) end [2025-02-01 20:19:18] Production.INFO: ProcessCDR(1,14380738,1,1,2) [2025-02-01 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380738', 'tblTempUsageDetail_20' ) start [2025-02-01 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380738', 'tblTempUsageDetail_20' ) end [2025-02-01 20:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:19:22] Production.INFO: ==16762== Releasing lock... [2025-02-01 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:19:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:20:05 [end_date_ymd] => 2025-02-01 20:20:05 [RateCDR] => 1 ) [2025-02-01 20: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-01 17:20:05' and `end` < '2025-02-01 20: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-01 20:20:18] Production.INFO: count ==1889 [2025-02-01 20:20:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:20:05 - End Time 2025-02-01 20:20:05 [2025-02-01 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380744', 'tblTempUsageDetail_20' ) start [2025-02-01 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380744', 'tblTempUsageDetail_20' ) end [2025-02-01 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380744', 'tblTempVendorCDR_20' ) start [2025-02-01 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380744', 'tblTempVendorCDR_20' ) end [2025-02-01 20:20:19] Production.INFO: ProcessCDR(1,14380744,1,1,2) [2025-02-01 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380744', 'tblTempUsageDetail_20' ) start [2025-02-01 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380744', 'tblTempUsageDetail_20' ) end [2025-02-01 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:20:22] Production.INFO: ==16846== Releasing lock... [2025-02-01 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:20:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-01 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:21:05 [end_date_ymd] => 2025-02-01 20:21:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:21:05' and `end` < '2025-02-01 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-01 20:21:18] Production.INFO: count ==1857 [2025-02-01 20:21:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:21:05 - End Time 2025-02-01 20:21:05 [2025-02-01 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380749', 'tblTempUsageDetail_20' ) start [2025-02-01 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380749', 'tblTempUsageDetail_20' ) end [2025-02-01 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380749', 'tblTempVendorCDR_20' ) start [2025-02-01 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380749', 'tblTempVendorCDR_20' ) end [2025-02-01 20:21:19] Production.INFO: ProcessCDR(1,14380749,1,1,2) [2025-02-01 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380749', 'tblTempUsageDetail_20' ) start [2025-02-01 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380749', 'tblTempUsageDetail_20' ) end [2025-02-01 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:21:22] Production.INFO: ==16934== Releasing lock... [2025-02-01 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:21:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:22:05 [end_date_ymd] => 2025-02-01 20:22:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:22:05' and `end` < '2025-02-01 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-01 20:22:19] Production.INFO: count ==1856 [2025-02-01 20:22:20] Production.ERROR: pbx CDR StartTime 2025-02-01 17:22:05 - End Time 2025-02-01 20:22:05 [2025-02-01 20:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380754', 'tblTempUsageDetail_20' ) start [2025-02-01 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380754', 'tblTempUsageDetail_20' ) end [2025-02-01 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380754', 'tblTempVendorCDR_20' ) start [2025-02-01 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380754', 'tblTempVendorCDR_20' ) end [2025-02-01 20:22:20] Production.INFO: ProcessCDR(1,14380754,1,1,2) [2025-02-01 20:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380754', 'tblTempUsageDetail_20' ) start [2025-02-01 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380754', 'tblTempUsageDetail_20' ) end [2025-02-01 20:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:22:23] Production.INFO: ==17020== Releasing lock... [2025-02-01 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:22:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:23:05 [end_date_ymd] => 2025-02-01 20:23:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:23:05' and `end` < '2025-02-01 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-01 20:23:18] Production.INFO: count ==1854 [2025-02-01 20:23:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:23:05 - End Time 2025-02-01 20:23:05 [2025-02-01 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380759', 'tblTempUsageDetail_20' ) start [2025-02-01 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380759', 'tblTempUsageDetail_20' ) end [2025-02-01 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380759', 'tblTempVendorCDR_20' ) start [2025-02-01 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380759', 'tblTempVendorCDR_20' ) end [2025-02-01 20:23:18] Production.INFO: ProcessCDR(1,14380759,1,1,2) [2025-02-01 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380759', 'tblTempUsageDetail_20' ) start [2025-02-01 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380759', 'tblTempUsageDetail_20' ) end [2025-02-01 20:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:23:21] Production.INFO: ==17098== Releasing lock... [2025-02-01 20:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:23:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:24:05 [end_date_ymd] => 2025-02-01 20:24:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:24:05' and `end` < '2025-02-01 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-01 20:24:18] Production.INFO: count ==1853 [2025-02-01 20:24:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:24:05 - End Time 2025-02-01 20:24:05 [2025-02-01 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380764', 'tblTempUsageDetail_20' ) start [2025-02-01 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380764', 'tblTempUsageDetail_20' ) end [2025-02-01 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380764', 'tblTempVendorCDR_20' ) start [2025-02-01 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380764', 'tblTempVendorCDR_20' ) end [2025-02-01 20:24:19] Production.INFO: ProcessCDR(1,14380764,1,1,2) [2025-02-01 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380764', 'tblTempUsageDetail_20' ) start [2025-02-01 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380764', 'tblTempUsageDetail_20' ) end [2025-02-01 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:24:22] Production.INFO: ==17173== Releasing lock... [2025-02-01 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:24:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:25:05 [end_date_ymd] => 2025-02-01 20:25:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:25:05' and `end` < '2025-02-01 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-01 20:25:18] Production.INFO: count ==1853 [2025-02-01 20:25:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:25:05 - End Time 2025-02-01 20:25:05 [2025-02-01 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380769', 'tblTempUsageDetail_20' ) start [2025-02-01 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380769', 'tblTempUsageDetail_20' ) end [2025-02-01 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380769', 'tblTempVendorCDR_20' ) start [2025-02-01 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380769', 'tblTempVendorCDR_20' ) end [2025-02-01 20:25:18] Production.INFO: ProcessCDR(1,14380769,1,1,2) [2025-02-01 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380769', 'tblTempUsageDetail_20' ) start [2025-02-01 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380769', 'tblTempUsageDetail_20' ) end [2025-02-01 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:25:23] Production.INFO: ==17245== Releasing lock... [2025-02-01 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:25:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:26:05 [end_date_ymd] => 2025-02-01 20:26:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:26:05' and `end` < '2025-02-01 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-01 20:26:18] Production.INFO: count ==1857 [2025-02-01 20:26:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:26:05 - End Time 2025-02-01 20:26:05 [2025-02-01 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380774', 'tblTempUsageDetail_20' ) start [2025-02-01 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380774', 'tblTempUsageDetail_20' ) end [2025-02-01 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380774', 'tblTempVendorCDR_20' ) start [2025-02-01 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380774', 'tblTempVendorCDR_20' ) end [2025-02-01 20:26:18] Production.INFO: ProcessCDR(1,14380774,1,1,2) [2025-02-01 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380774', 'tblTempUsageDetail_20' ) start [2025-02-01 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380774', 'tblTempUsageDetail_20' ) end [2025-02-01 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:26:22] Production.INFO: ==17322== Releasing lock... [2025-02-01 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:26:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:27:05 [end_date_ymd] => 2025-02-01 20:27:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:27:05' and `end` < '2025-02-01 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-01 20:27:18] Production.INFO: count ==1857 [2025-02-01 20:27:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:27:05 - End Time 2025-02-01 20:27:05 [2025-02-01 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380779', 'tblTempUsageDetail_20' ) start [2025-02-01 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380779', 'tblTempUsageDetail_20' ) end [2025-02-01 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380779', 'tblTempVendorCDR_20' ) start [2025-02-01 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380779', 'tblTempVendorCDR_20' ) end [2025-02-01 20:27:18] Production.INFO: ProcessCDR(1,14380779,1,1,2) [2025-02-01 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380779', 'tblTempUsageDetail_20' ) start [2025-02-01 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380779', 'tblTempUsageDetail_20' ) end [2025-02-01 20:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:27:21] Production.INFO: ==17401== Releasing lock... [2025-02-01 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:27:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:28:05 [end_date_ymd] => 2025-02-01 20:28:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:28:05' and `end` < '2025-02-01 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-01 20:28:18] Production.INFO: count ==1855 [2025-02-01 20:28:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:28:05 - End Time 2025-02-01 20:28:05 [2025-02-01 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380784', 'tblTempUsageDetail_20' ) start [2025-02-01 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380784', 'tblTempUsageDetail_20' ) end [2025-02-01 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380784', 'tblTempVendorCDR_20' ) start [2025-02-01 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380784', 'tblTempVendorCDR_20' ) end [2025-02-01 20:28:19] Production.INFO: ProcessCDR(1,14380784,1,1,2) [2025-02-01 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380784', 'tblTempUsageDetail_20' ) start [2025-02-01 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380784', 'tblTempUsageDetail_20' ) end [2025-02-01 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:28:23] Production.INFO: ==17475== Releasing lock... [2025-02-01 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:28:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:29:05 [end_date_ymd] => 2025-02-01 20:29:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:29:05' and `end` < '2025-02-01 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-01 20:29:17] Production.INFO: count ==1851 [2025-02-01 20:29:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:29:05 - End Time 2025-02-01 20:29:05 [2025-02-01 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380789', 'tblTempUsageDetail_20' ) start [2025-02-01 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380789', 'tblTempUsageDetail_20' ) end [2025-02-01 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380789', 'tblTempVendorCDR_20' ) start [2025-02-01 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380789', 'tblTempVendorCDR_20' ) end [2025-02-01 20:29:18] Production.INFO: ProcessCDR(1,14380789,1,1,2) [2025-02-01 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380789', 'tblTempUsageDetail_20' ) start [2025-02-01 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380789', 'tblTempUsageDetail_20' ) end [2025-02-01 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:29:22] Production.INFO: ==17584== Releasing lock... [2025-02-01 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:29:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:30:06 [end_date_ymd] => 2025-02-01 20:30:06 [RateCDR] => 1 ) [2025-02-01 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 17:30:06' and `end` < '2025-02-01 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 20:30:19] Production.INFO: count ==1853 [2025-02-01 20:30:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:30:06 - End Time 2025-02-01 20:30:06 [2025-02-01 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380795', 'tblTempUsageDetail_20' ) start [2025-02-01 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380795', 'tblTempUsageDetail_20' ) end [2025-02-01 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380795', 'tblTempVendorCDR_20' ) start [2025-02-01 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380795', 'tblTempVendorCDR_20' ) end [2025-02-01 20:30:19] Production.INFO: ProcessCDR(1,14380795,1,1,2) [2025-02-01 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380795', 'tblTempUsageDetail_20' ) start [2025-02-01 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380795', 'tblTempUsageDetail_20' ) end [2025-02-01 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:30:23] Production.INFO: ==17681== Releasing lock... [2025-02-01 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:30:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:31:05 [end_date_ymd] => 2025-02-01 20:31:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:31:05' and `end` < '2025-02-01 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-01 20:31:18] Production.INFO: count ==1843 [2025-02-01 20:31:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:31:05 - End Time 2025-02-01 20:31:05 [2025-02-01 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380800', 'tblTempUsageDetail_20' ) start [2025-02-01 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380800', 'tblTempUsageDetail_20' ) end [2025-02-01 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380800', 'tblTempVendorCDR_20' ) start [2025-02-01 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380800', 'tblTempVendorCDR_20' ) end [2025-02-01 20:31:18] Production.INFO: ProcessCDR(1,14380800,1,1,2) [2025-02-01 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380800', 'tblTempUsageDetail_20' ) start [2025-02-01 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380800', 'tblTempUsageDetail_20' ) end [2025-02-01 20:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:31:21] Production.INFO: ==17756== Releasing lock... [2025-02-01 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:31:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:32:05 [end_date_ymd] => 2025-02-01 20:32:05 [RateCDR] => 1 ) [2025-02-01 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 17:32:05' and `end` < '2025-02-01 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 20:32:19] Production.INFO: count ==1840 [2025-02-01 20:32:20] Production.ERROR: pbx CDR StartTime 2025-02-01 17:32:05 - End Time 2025-02-01 20:32:05 [2025-02-01 20:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380805', 'tblTempUsageDetail_20' ) start [2025-02-01 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380805', 'tblTempUsageDetail_20' ) end [2025-02-01 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380805', 'tblTempVendorCDR_20' ) start [2025-02-01 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380805', 'tblTempVendorCDR_20' ) end [2025-02-01 20:32:20] Production.INFO: ProcessCDR(1,14380805,1,1,2) [2025-02-01 20:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380805', 'tblTempUsageDetail_20' ) start [2025-02-01 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380805', 'tblTempUsageDetail_20' ) end [2025-02-01 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:32:23] Production.INFO: ==17833== Releasing lock... [2025-02-01 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:32:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:33:06 [end_date_ymd] => 2025-02-01 20:33:06 [RateCDR] => 1 ) [2025-02-01 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-01 17:33:06' and `end` < '2025-02-01 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-01 20:33:19] Production.INFO: count ==1843 [2025-02-01 20:33:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:33:06 - End Time 2025-02-01 20:33:06 [2025-02-01 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380810', 'tblTempUsageDetail_20' ) start [2025-02-01 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380810', 'tblTempUsageDetail_20' ) end [2025-02-01 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380810', 'tblTempVendorCDR_20' ) start [2025-02-01 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380810', 'tblTempVendorCDR_20' ) end [2025-02-01 20:33:19] Production.INFO: ProcessCDR(1,14380810,1,1,2) [2025-02-01 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380810', 'tblTempUsageDetail_20' ) start [2025-02-01 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380810', 'tblTempUsageDetail_20' ) end [2025-02-01 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:33:23] Production.INFO: ==17903== Releasing lock... [2025-02-01 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:33:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:34:06 [end_date_ymd] => 2025-02-01 20:34:06 [RateCDR] => 1 ) [2025-02-01 20: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-01 17:34:06' and `end` < '2025-02-01 20: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-01 20:34:18] Production.INFO: count ==1843 [2025-02-01 20:34:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:34:06 - End Time 2025-02-01 20:34:06 [2025-02-01 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380815', 'tblTempUsageDetail_20' ) start [2025-02-01 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380815', 'tblTempUsageDetail_20' ) end [2025-02-01 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380815', 'tblTempVendorCDR_20' ) start [2025-02-01 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380815', 'tblTempVendorCDR_20' ) end [2025-02-01 20:34:19] Production.INFO: ProcessCDR(1,14380815,1,1,2) [2025-02-01 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380815', 'tblTempUsageDetail_20' ) start [2025-02-01 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380815', 'tblTempUsageDetail_20' ) end [2025-02-01 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:34:22] Production.INFO: ==17979== Releasing lock... [2025-02-01 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:34:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:35:06 [end_date_ymd] => 2025-02-01 20:35:06 [RateCDR] => 1 ) [2025-02-01 20: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-01 17:35:06' and `end` < '2025-02-01 20: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-01 20:35:18] Production.INFO: count ==1840 [2025-02-01 20:35:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:35:06 - End Time 2025-02-01 20:35:06 [2025-02-01 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380820', 'tblTempUsageDetail_20' ) start [2025-02-01 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380820', 'tblTempUsageDetail_20' ) end [2025-02-01 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380820', 'tblTempVendorCDR_20' ) start [2025-02-01 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380820', 'tblTempVendorCDR_20' ) end [2025-02-01 20:35:19] Production.INFO: ProcessCDR(1,14380820,1,1,2) [2025-02-01 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380820', 'tblTempUsageDetail_20' ) start [2025-02-01 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380820', 'tblTempUsageDetail_20' ) end [2025-02-01 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:35:22] Production.INFO: ==18055== Releasing lock... [2025-02-01 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:35:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:36:05 [end_date_ymd] => 2025-02-01 20:36:05 [RateCDR] => 1 ) [2025-02-01 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 17:36:05' and `end` < '2025-02-01 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 20:36:18] Production.INFO: count ==1844 [2025-02-01 20:36:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:36:05 - End Time 2025-02-01 20:36:05 [2025-02-01 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380825', 'tblTempUsageDetail_20' ) start [2025-02-01 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380825', 'tblTempUsageDetail_20' ) end [2025-02-01 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380825', 'tblTempVendorCDR_20' ) start [2025-02-01 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380825', 'tblTempVendorCDR_20' ) end [2025-02-01 20:36:18] Production.INFO: ProcessCDR(1,14380825,1,1,2) [2025-02-01 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380825', 'tblTempUsageDetail_20' ) start [2025-02-01 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380825', 'tblTempUsageDetail_20' ) end [2025-02-01 20:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:36:21] Production.INFO: ==18137== Releasing lock... [2025-02-01 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:36:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:37:05 [end_date_ymd] => 2025-02-01 20:37:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:37:05' and `end` < '2025-02-01 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-01 20:37:18] Production.INFO: count ==1840 [2025-02-01 20:37:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:37:05 - End Time 2025-02-01 20:37:05 [2025-02-01 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380830', 'tblTempUsageDetail_20' ) start [2025-02-01 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380830', 'tblTempUsageDetail_20' ) end [2025-02-01 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380830', 'tblTempVendorCDR_20' ) start [2025-02-01 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380830', 'tblTempVendorCDR_20' ) end [2025-02-01 20:37:19] Production.INFO: ProcessCDR(1,14380830,1,1,2) [2025-02-01 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380830', 'tblTempUsageDetail_20' ) start [2025-02-01 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380830', 'tblTempUsageDetail_20' ) end [2025-02-01 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:37:23] Production.INFO: ==18230== Releasing lock... [2025-02-01 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:37:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:38:05 [end_date_ymd] => 2025-02-01 20:38:05 [RateCDR] => 1 ) [2025-02-01 20: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-01 17:38:05' and `end` < '2025-02-01 20: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-01 20:38:18] Production.INFO: count ==1840 [2025-02-01 20:38:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:38:05 - End Time 2025-02-01 20:38:05 [2025-02-01 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380835', 'tblTempUsageDetail_20' ) start [2025-02-01 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380835', 'tblTempUsageDetail_20' ) end [2025-02-01 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380835', 'tblTempVendorCDR_20' ) start [2025-02-01 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380835', 'tblTempVendorCDR_20' ) end [2025-02-01 20:38:18] Production.INFO: ProcessCDR(1,14380835,1,1,2) [2025-02-01 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380835', 'tblTempUsageDetail_20' ) start [2025-02-01 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380835', 'tblTempUsageDetail_20' ) end [2025-02-01 20:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:38:21] Production.INFO: ==18307== Releasing lock... [2025-02-01 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:38:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:39:05 [end_date_ymd] => 2025-02-01 20:39:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:39:05' and `end` < '2025-02-01 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-01 20:39:18] Production.INFO: count ==1840 [2025-02-01 20:39:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:39:05 - End Time 2025-02-01 20:39:05 [2025-02-01 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380840', 'tblTempUsageDetail_20' ) start [2025-02-01 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380840', 'tblTempUsageDetail_20' ) end [2025-02-01 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380840', 'tblTempVendorCDR_20' ) start [2025-02-01 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380840', 'tblTempVendorCDR_20' ) end [2025-02-01 20:39:19] Production.INFO: ProcessCDR(1,14380840,1,1,2) [2025-02-01 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380840', 'tblTempUsageDetail_20' ) start [2025-02-01 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380840', 'tblTempUsageDetail_20' ) end [2025-02-01 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:39:22] Production.INFO: ==18387== Releasing lock... [2025-02-01 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:39:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:40:06 [end_date_ymd] => 2025-02-01 20:40:06 [RateCDR] => 1 ) [2025-02-01 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-01 17:40:06' and `end` < '2025-02-01 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-01 20:40:19] Production.INFO: count ==1837 [2025-02-01 20:40:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:40:06 - End Time 2025-02-01 20:40:06 [2025-02-01 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380846', 'tblTempUsageDetail_20' ) start [2025-02-01 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380846', 'tblTempUsageDetail_20' ) end [2025-02-01 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380846', 'tblTempVendorCDR_20' ) start [2025-02-01 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380846', 'tblTempVendorCDR_20' ) end [2025-02-01 20:40:20] Production.INFO: ProcessCDR(1,14380846,1,1,2) [2025-02-01 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380846', 'tblTempUsageDetail_20' ) start [2025-02-01 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380846', 'tblTempUsageDetail_20' ) end [2025-02-01 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:40:23] Production.INFO: ==18470== Releasing lock... [2025-02-01 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:40:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:41:05 [end_date_ymd] => 2025-02-01 20:41:05 [RateCDR] => 1 ) [2025-02-01 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 17:41:05' and `end` < '2025-02-01 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 20:41:18] Production.INFO: count ==1834 [2025-02-01 20:41:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:41:05 - End Time 2025-02-01 20:41:05 [2025-02-01 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380851', 'tblTempUsageDetail_20' ) start [2025-02-01 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380851', 'tblTempUsageDetail_20' ) end [2025-02-01 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380851', 'tblTempVendorCDR_20' ) start [2025-02-01 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380851', 'tblTempVendorCDR_20' ) end [2025-02-01 20:41:19] Production.INFO: ProcessCDR(1,14380851,1,1,2) [2025-02-01 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380851', 'tblTempUsageDetail_20' ) start [2025-02-01 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380851', 'tblTempUsageDetail_20' ) end [2025-02-01 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:41:22] Production.INFO: ==18548== Releasing lock... [2025-02-01 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:41:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:42:06 [end_date_ymd] => 2025-02-01 20:42:06 [RateCDR] => 1 ) [2025-02-01 20:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 17:42:06' and `end` < '2025-02-01 20:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 20:42:19] Production.INFO: count ==1836 [2025-02-01 20:42:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:42:06 - End Time 2025-02-01 20:42:06 [2025-02-01 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380856', 'tblTempUsageDetail_20' ) start [2025-02-01 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380856', 'tblTempUsageDetail_20' ) end [2025-02-01 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380856', 'tblTempVendorCDR_20' ) start [2025-02-01 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380856', 'tblTempVendorCDR_20' ) end [2025-02-01 20:42:19] Production.INFO: ProcessCDR(1,14380856,1,1,2) [2025-02-01 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380856', 'tblTempUsageDetail_20' ) start [2025-02-01 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380856', 'tblTempUsageDetail_20' ) end [2025-02-01 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:42:22] Production.INFO: ==18623== Releasing lock... [2025-02-01 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:42:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:43:05 [end_date_ymd] => 2025-02-01 20:43:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:43:05' and `end` < '2025-02-01 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-01 20:43:18] Production.INFO: count ==1840 [2025-02-01 20:43:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:43:05 - End Time 2025-02-01 20:43:05 [2025-02-01 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380861', 'tblTempUsageDetail_20' ) start [2025-02-01 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380861', 'tblTempUsageDetail_20' ) end [2025-02-01 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380861', 'tblTempVendorCDR_20' ) start [2025-02-01 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380861', 'tblTempVendorCDR_20' ) end [2025-02-01 20:43:18] Production.INFO: ProcessCDR(1,14380861,1,1,2) [2025-02-01 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380861', 'tblTempUsageDetail_20' ) start [2025-02-01 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380861', 'tblTempUsageDetail_20' ) end [2025-02-01 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:43:21] Production.INFO: ==18710== Releasing lock... [2025-02-01 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:43:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:44:06 [end_date_ymd] => 2025-02-01 20:44:06 [RateCDR] => 1 ) [2025-02-01 20: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-01 17:44:06' and `end` < '2025-02-01 20: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-01 20:44:19] Production.INFO: count ==1838 [2025-02-01 20:44:20] Production.ERROR: pbx CDR StartTime 2025-02-01 17:44:06 - End Time 2025-02-01 20:44:06 [2025-02-01 20:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380866', 'tblTempUsageDetail_20' ) start [2025-02-01 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380866', 'tblTempUsageDetail_20' ) end [2025-02-01 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380866', 'tblTempVendorCDR_20' ) start [2025-02-01 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380866', 'tblTempVendorCDR_20' ) end [2025-02-01 20:44:20] Production.INFO: ProcessCDR(1,14380866,1,1,2) [2025-02-01 20:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380866', 'tblTempUsageDetail_20' ) start [2025-02-01 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380866', 'tblTempUsageDetail_20' ) end [2025-02-01 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:44:23] Production.INFO: ==18791== Releasing lock... [2025-02-01 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:44:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 20:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:45:04 [end_date_ymd] => 2025-02-01 20:45:04 [RateCDR] => 1 ) [2025-02-01 20: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-01 17:45:04' and `end` < '2025-02-01 20: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-01 20:45:17] Production.INFO: count ==1838 [2025-02-01 20:45:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:45:04 - End Time 2025-02-01 20:45:04 [2025-02-01 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380871', 'tblTempUsageDetail_20' ) start [2025-02-01 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380871', 'tblTempUsageDetail_20' ) end [2025-02-01 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380871', 'tblTempVendorCDR_20' ) start [2025-02-01 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380871', 'tblTempVendorCDR_20' ) end [2025-02-01 20:45:18] Production.INFO: ProcessCDR(1,14380871,1,1,2) [2025-02-01 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380871', 'tblTempUsageDetail_20' ) start [2025-02-01 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380871', 'tblTempUsageDetail_20' ) end [2025-02-01 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:45:22] Production.INFO: ==18902== Releasing lock... [2025-02-01 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:45:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 20:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:46:06 [end_date_ymd] => 2025-02-01 20:46:06 [RateCDR] => 1 ) [2025-02-01 20: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-01 17:46:06' and `end` < '2025-02-01 20: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-01 20:46:19] Production.INFO: count ==1836 [2025-02-01 20:46:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:46:06 - End Time 2025-02-01 20:46:06 [2025-02-01 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380876', 'tblTempUsageDetail_20' ) start [2025-02-01 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380876', 'tblTempUsageDetail_20' ) end [2025-02-01 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380876', 'tblTempVendorCDR_20' ) start [2025-02-01 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380876', 'tblTempVendorCDR_20' ) end [2025-02-01 20:46:19] Production.INFO: ProcessCDR(1,14380876,1,1,2) [2025-02-01 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380876', 'tblTempUsageDetail_20' ) start [2025-02-01 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380876', 'tblTempUsageDetail_20' ) end [2025-02-01 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:46:22] Production.INFO: ==18978== Releasing lock... [2025-02-01 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:46:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:47:05 [end_date_ymd] => 2025-02-01 20:47:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:47:05' and `end` < '2025-02-01 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-01 20:47:18] Production.INFO: count ==1836 [2025-02-01 20:47:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:47:05 - End Time 2025-02-01 20:47:05 [2025-02-01 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380881', 'tblTempUsageDetail_20' ) start [2025-02-01 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380881', 'tblTempUsageDetail_20' ) end [2025-02-01 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380881', 'tblTempVendorCDR_20' ) start [2025-02-01 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380881', 'tblTempVendorCDR_20' ) end [2025-02-01 20:47:18] Production.INFO: ProcessCDR(1,14380881,1,1,2) [2025-02-01 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380881', 'tblTempUsageDetail_20' ) start [2025-02-01 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380881', 'tblTempUsageDetail_20' ) end [2025-02-01 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:47:21] Production.INFO: ==19047== Releasing lock... [2025-02-01 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:47:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:48:05 [end_date_ymd] => 2025-02-01 20:48:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:48:05' and `end` < '2025-02-01 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-01 20:48:18] Production.INFO: count ==1838 [2025-02-01 20:48:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:48:05 - End Time 2025-02-01 20:48:05 [2025-02-01 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380886', 'tblTempUsageDetail_20' ) start [2025-02-01 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380886', 'tblTempUsageDetail_20' ) end [2025-02-01 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380886', 'tblTempVendorCDR_20' ) start [2025-02-01 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380886', 'tblTempVendorCDR_20' ) end [2025-02-01 20:48:18] Production.INFO: ProcessCDR(1,14380886,1,1,2) [2025-02-01 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380886', 'tblTempUsageDetail_20' ) start [2025-02-01 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380886', 'tblTempUsageDetail_20' ) end [2025-02-01 20:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:48:21] Production.INFO: ==19124== Releasing lock... [2025-02-01 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:48:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:49:05 [end_date_ymd] => 2025-02-01 20:49:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:49:05' and `end` < '2025-02-01 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-01 20:49:18] Production.INFO: count ==1836 [2025-02-01 20:49:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:49:05 - End Time 2025-02-01 20:49:05 [2025-02-01 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380891', 'tblTempUsageDetail_20' ) start [2025-02-01 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380891', 'tblTempUsageDetail_20' ) end [2025-02-01 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380891', 'tblTempVendorCDR_20' ) start [2025-02-01 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380891', 'tblTempVendorCDR_20' ) end [2025-02-01 20:49:18] Production.INFO: ProcessCDR(1,14380891,1,1,2) [2025-02-01 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380891', 'tblTempUsageDetail_20' ) start [2025-02-01 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380891', 'tblTempUsageDetail_20' ) end [2025-02-01 20:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:49:21] Production.INFO: ==19195== Releasing lock... [2025-02-01 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:49:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:50:05 [end_date_ymd] => 2025-02-01 20:50:05 [RateCDR] => 1 ) [2025-02-01 20: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-01 17:50:05' and `end` < '2025-02-01 20: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-01 20:50:20] Production.INFO: count ==1841 [2025-02-01 20:50:20] Production.ERROR: pbx CDR StartTime 2025-02-01 17:50:05 - End Time 2025-02-01 20:50:05 [2025-02-01 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380896', 'tblTempUsageDetail_20' ) start [2025-02-01 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380896', 'tblTempUsageDetail_20' ) end [2025-02-01 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380896', 'tblTempVendorCDR_20' ) start [2025-02-01 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380896', 'tblTempVendorCDR_20' ) end [2025-02-01 20:50:20] Production.INFO: ProcessCDR(1,14380896,1,1,2) [2025-02-01 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380896', 'tblTempUsageDetail_20' ) start [2025-02-01 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380896', 'tblTempUsageDetail_20' ) end [2025-02-01 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:50:23] Production.INFO: ==19267== Releasing lock... [2025-02-01 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:50:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 20:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:51:06 [end_date_ymd] => 2025-02-01 20:51:06 [RateCDR] => 1 ) [2025-02-01 20:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 17:51:06' and `end` < '2025-02-01 20:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 20:51:21] Production.INFO: count ==1839 [2025-02-01 20:51:21] Production.ERROR: pbx CDR StartTime 2025-02-01 17:51:06 - End Time 2025-02-01 20:51:06 [2025-02-01 20:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380902', 'tblTempUsageDetail_20' ) start [2025-02-01 20:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380902', 'tblTempUsageDetail_20' ) end [2025-02-01 20:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380902', 'tblTempVendorCDR_20' ) start [2025-02-01 20:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380902', 'tblTempVendorCDR_20' ) end [2025-02-01 20:51:21] Production.INFO: ProcessCDR(1,14380902,1,1,2) [2025-02-01 20:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380902', 'tblTempUsageDetail_20' ) start [2025-02-01 20:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380902', 'tblTempUsageDetail_20' ) end [2025-02-01 20:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:51:25] Production.INFO: ==19362== Releasing lock... [2025-02-01 20:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:51:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-01 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:52:05 [end_date_ymd] => 2025-02-01 20:52:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:52:05' and `end` < '2025-02-01 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-01 20:52:18] Production.INFO: count ==1838 [2025-02-01 20:52:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:52:05 - End Time 2025-02-01 20:52:05 [2025-02-01 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380907', 'tblTempUsageDetail_20' ) start [2025-02-01 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380907', 'tblTempUsageDetail_20' ) end [2025-02-01 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380907', 'tblTempVendorCDR_20' ) start [2025-02-01 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380907', 'tblTempVendorCDR_20' ) end [2025-02-01 20:52:18] Production.INFO: ProcessCDR(1,14380907,1,1,2) [2025-02-01 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380907', 'tblTempUsageDetail_20' ) start [2025-02-01 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380907', 'tblTempUsageDetail_20' ) end [2025-02-01 20:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:52:21] Production.INFO: ==19436== Releasing lock... [2025-02-01 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:52:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:53:05 [end_date_ymd] => 2025-02-01 20:53:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:53:05' and `end` < '2025-02-01 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-01 20:53:19] Production.INFO: count ==1810 [2025-02-01 20:53:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:53:05 - End Time 2025-02-01 20:53:05 [2025-02-01 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380912', 'tblTempUsageDetail_20' ) start [2025-02-01 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380912', 'tblTempUsageDetail_20' ) end [2025-02-01 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380912', 'tblTempVendorCDR_20' ) start [2025-02-01 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380912', 'tblTempVendorCDR_20' ) end [2025-02-01 20:53:19] Production.INFO: ProcessCDR(1,14380912,1,1,2) [2025-02-01 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380912', 'tblTempUsageDetail_20' ) start [2025-02-01 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380912', 'tblTempUsageDetail_20' ) end [2025-02-01 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:53:22] Production.INFO: ==19508== Releasing lock... [2025-02-01 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:53:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-01 20:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:54:04 [end_date_ymd] => 2025-02-01 20:54:04 [RateCDR] => 1 ) [2025-02-01 20: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-01 17:54:04' and `end` < '2025-02-01 20: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-01 20:54:17] Production.INFO: count ==1769 [2025-02-01 20:54:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:54:04 - End Time 2025-02-01 20:54:04 [2025-02-01 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380917', 'tblTempUsageDetail_20' ) start [2025-02-01 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380917', 'tblTempUsageDetail_20' ) end [2025-02-01 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380917', 'tblTempVendorCDR_20' ) start [2025-02-01 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380917', 'tblTempVendorCDR_20' ) end [2025-02-01 20:54:18] Production.INFO: ProcessCDR(1,14380917,1,1,2) [2025-02-01 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380917', 'tblTempUsageDetail_20' ) start [2025-02-01 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380917', 'tblTempUsageDetail_20' ) end [2025-02-01 20:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:54:21] Production.INFO: ==19582== Releasing lock... [2025-02-01 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:54:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-01 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:55:05 [end_date_ymd] => 2025-02-01 20:55:05 [RateCDR] => 1 ) [2025-02-01 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 17:55:05' and `end` < '2025-02-01 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 20:55:24] Production.INFO: count ==1734 [2025-02-01 20:55:25] Production.ERROR: pbx CDR StartTime 2025-02-01 17:55:05 - End Time 2025-02-01 20:55:05 [2025-02-01 20:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380922', 'tblTempUsageDetail_20' ) start [2025-02-01 20:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380922', 'tblTempUsageDetail_20' ) end [2025-02-01 20:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380922', 'tblTempVendorCDR_20' ) start [2025-02-01 20:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380922', 'tblTempVendorCDR_20' ) end [2025-02-01 20:55:25] Production.INFO: ProcessCDR(1,14380922,1,1,2) [2025-02-01 20:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380922', 'tblTempUsageDetail_20' ) start [2025-02-01 20:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380922', 'tblTempUsageDetail_20' ) end [2025-02-01 20:55:28] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:55:28] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:55:28] Production.INFO: ==19652== Releasing lock... [2025-02-01 20:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:55:28] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:56:06 [end_date_ymd] => 2025-02-01 20:56:06 [RateCDR] => 1 ) [2025-02-01 20: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-01 17:56:06' and `end` < '2025-02-01 20: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-01 20:56:19] Production.INFO: count ==1739 [2025-02-01 20:56:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:56:06 - End Time 2025-02-01 20:56:06 [2025-02-01 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380927', 'tblTempUsageDetail_20' ) start [2025-02-01 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380927', 'tblTempUsageDetail_20' ) end [2025-02-01 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380927', 'tblTempVendorCDR_20' ) start [2025-02-01 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380927', 'tblTempVendorCDR_20' ) end [2025-02-01 20:56:19] Production.INFO: ProcessCDR(1,14380927,1,1,2) [2025-02-01 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380927', 'tblTempUsageDetail_20' ) start [2025-02-01 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380927', 'tblTempUsageDetail_20' ) end [2025-02-01 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:56:22] Production.INFO: ==19731== Releasing lock... [2025-02-01 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:56:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:57:05 [end_date_ymd] => 2025-02-01 20:57:05 [RateCDR] => 1 ) [2025-02-01 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 17:57:05' and `end` < '2025-02-01 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 20:57:19] Production.INFO: count ==1733 [2025-02-01 20:57:19] Production.ERROR: pbx CDR StartTime 2025-02-01 17:57:05 - End Time 2025-02-01 20:57:05 [2025-02-01 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380932', 'tblTempUsageDetail_20' ) start [2025-02-01 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380932', 'tblTempUsageDetail_20' ) end [2025-02-01 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380932', 'tblTempVendorCDR_20' ) start [2025-02-01 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380932', 'tblTempVendorCDR_20' ) end [2025-02-01 20:57:19] Production.INFO: ProcessCDR(1,14380932,1,1,2) [2025-02-01 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380932', 'tblTempUsageDetail_20' ) start [2025-02-01 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380932', 'tblTempUsageDetail_20' ) end [2025-02-01 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:57:23] Production.INFO: ==19801== Releasing lock... [2025-02-01 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:57:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:58:05 [end_date_ymd] => 2025-02-01 20:58:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:58:05' and `end` < '2025-02-01 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-01 20:58:18] Production.INFO: count ==1734 [2025-02-01 20:58:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:58:05 - End Time 2025-02-01 20:58:05 [2025-02-01 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380937', 'tblTempUsageDetail_20' ) start [2025-02-01 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380937', 'tblTempUsageDetail_20' ) end [2025-02-01 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380937', 'tblTempVendorCDR_20' ) start [2025-02-01 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380937', 'tblTempVendorCDR_20' ) end [2025-02-01 20:58:18] Production.INFO: ProcessCDR(1,14380937,1,1,2) [2025-02-01 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380937', 'tblTempUsageDetail_20' ) start [2025-02-01 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380937', 'tblTempUsageDetail_20' ) end [2025-02-01 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:58:23] Production.INFO: ==19890== Releasing lock... [2025-02-01 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:58:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 17:59:05 [end_date_ymd] => 2025-02-01 20:59:05 [RateCDR] => 1 ) [2025-02-01 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-01 17:59:05' and `end` < '2025-02-01 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-01 20:59:18] Production.INFO: count ==1730 [2025-02-01 20:59:18] Production.ERROR: pbx CDR StartTime 2025-02-01 17:59:05 - End Time 2025-02-01 20:59:05 [2025-02-01 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380942', 'tblTempUsageDetail_20' ) start [2025-02-01 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380942', 'tblTempUsageDetail_20' ) end [2025-02-01 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380942', 'tblTempVendorCDR_20' ) start [2025-02-01 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380942', 'tblTempVendorCDR_20' ) end [2025-02-01 20:59:18] Production.INFO: ProcessCDR(1,14380942,1,1,2) [2025-02-01 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380942', 'tblTempUsageDetail_20' ) start [2025-02-01 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380942', 'tblTempUsageDetail_20' ) end [2025-02-01 20:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 20:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 20:59:23] Production.INFO: ==19963== Releasing lock... [2025-02-01 20:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 20:59:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:00:06 [end_date_ymd] => 2025-02-01 21:00:06 [RateCDR] => 1 ) [2025-02-01 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:00:06' and `end` < '2025-02-01 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:00:19] Production.INFO: count ==1734 [2025-02-01 21:00:19] Production.ERROR: pbx CDR StartTime 2025-02-01 18:00:06 - End Time 2025-02-01 21:00:06 [2025-02-01 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380947', 'tblTempUsageDetail_20' ) start [2025-02-01 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380947', 'tblTempUsageDetail_20' ) end [2025-02-01 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380947', 'tblTempVendorCDR_20' ) start [2025-02-01 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380947', 'tblTempVendorCDR_20' ) end [2025-02-01 21:00:19] Production.INFO: ProcessCDR(1,14380947,1,1,2) [2025-02-01 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380947', 'tblTempUsageDetail_20' ) start [2025-02-01 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380947', 'tblTempUsageDetail_20' ) end [2025-02-01 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:00:22] Production.INFO: ==20079== Releasing lock... [2025-02-01 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:00:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:01:05 [end_date_ymd] => 2025-02-01 21:01:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:01:05' and `end` < '2025-02-01 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-01 21:01:18] Production.INFO: count ==1722 [2025-02-01 21:01:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:01:05 - End Time 2025-02-01 21:01:05 [2025-02-01 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380953', 'tblTempUsageDetail_20' ) start [2025-02-01 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380953', 'tblTempUsageDetail_20' ) end [2025-02-01 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380953', 'tblTempVendorCDR_20' ) start [2025-02-01 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380953', 'tblTempVendorCDR_20' ) end [2025-02-01 21:01:18] Production.INFO: ProcessCDR(1,14380953,1,1,2) [2025-02-01 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380953', 'tblTempUsageDetail_20' ) start [2025-02-01 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380953', 'tblTempUsageDetail_20' ) end [2025-02-01 21:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:01:21] Production.INFO: ==20163== Releasing lock... [2025-02-01 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:01:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:02:05 [end_date_ymd] => 2025-02-01 21:02:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:02:05' and `end` < '2025-02-01 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-01 21:02:18] Production.INFO: count ==1718 [2025-02-01 21:02:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:02:05 - End Time 2025-02-01 21:02:05 [2025-02-01 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380958', 'tblTempUsageDetail_20' ) start [2025-02-01 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380958', 'tblTempUsageDetail_20' ) end [2025-02-01 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380958', 'tblTempVendorCDR_20' ) start [2025-02-01 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380958', 'tblTempVendorCDR_20' ) end [2025-02-01 21:02:18] Production.INFO: ProcessCDR(1,14380958,1,1,2) [2025-02-01 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380958', 'tblTempUsageDetail_20' ) start [2025-02-01 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380958', 'tblTempUsageDetail_20' ) end [2025-02-01 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:02:21] Production.INFO: ==20238== Releasing lock... [2025-02-01 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:02:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:03:05 [end_date_ymd] => 2025-02-01 21:03:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:03:05' and `end` < '2025-02-01 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-01 21:03:18] Production.INFO: count ==1713 [2025-02-01 21:03:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:03:05 - End Time 2025-02-01 21:03:05 [2025-02-01 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380963', 'tblTempUsageDetail_20' ) start [2025-02-01 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380963', 'tblTempUsageDetail_20' ) end [2025-02-01 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380963', 'tblTempVendorCDR_20' ) start [2025-02-01 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380963', 'tblTempVendorCDR_20' ) end [2025-02-01 21:03:18] Production.INFO: ProcessCDR(1,14380963,1,1,2) [2025-02-01 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380963', 'tblTempUsageDetail_20' ) start [2025-02-01 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380963', 'tblTempUsageDetail_20' ) end [2025-02-01 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:03:21] Production.INFO: ==20307== Releasing lock... [2025-02-01 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:03:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:04:06 [end_date_ymd] => 2025-02-01 21:04:06 [RateCDR] => 1 ) [2025-02-01 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-01 18:04:06' and `end` < '2025-02-01 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-01 21:04:19] Production.INFO: count ==1712 [2025-02-01 21:04:19] Production.ERROR: pbx CDR StartTime 2025-02-01 18:04:06 - End Time 2025-02-01 21:04:06 [2025-02-01 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380968', 'tblTempUsageDetail_20' ) start [2025-02-01 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380968', 'tblTempUsageDetail_20' ) end [2025-02-01 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380968', 'tblTempVendorCDR_20' ) start [2025-02-01 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380968', 'tblTempVendorCDR_20' ) end [2025-02-01 21:04:19] Production.INFO: ProcessCDR(1,14380968,1,1,2) [2025-02-01 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380968', 'tblTempUsageDetail_20' ) start [2025-02-01 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380968', 'tblTempUsageDetail_20' ) end [2025-02-01 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:04:22] Production.INFO: ==20380== Releasing lock... [2025-02-01 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:04:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 21:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:05:06 [end_date_ymd] => 2025-02-01 21:05:06 [RateCDR] => 1 ) [2025-02-01 21: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-01 18:05:06' and `end` < '2025-02-01 21: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-01 21:05:19] Production.INFO: count ==1712 [2025-02-01 21:05:19] Production.ERROR: pbx CDR StartTime 2025-02-01 18:05:06 - End Time 2025-02-01 21:05:06 [2025-02-01 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380973', 'tblTempUsageDetail_20' ) start [2025-02-01 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380973', 'tblTempUsageDetail_20' ) end [2025-02-01 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380973', 'tblTempVendorCDR_20' ) start [2025-02-01 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380973', 'tblTempVendorCDR_20' ) end [2025-02-01 21:05:19] Production.INFO: ProcessCDR(1,14380973,1,1,2) [2025-02-01 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380973', 'tblTempUsageDetail_20' ) start [2025-02-01 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380973', 'tblTempUsageDetail_20' ) end [2025-02-01 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:05:22] Production.INFO: ==20453== Releasing lock... [2025-02-01 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:05:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:06:05 [end_date_ymd] => 2025-02-01 21:06:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:06:05' and `end` < '2025-02-01 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-01 21:06:18] Production.INFO: count ==1711 [2025-02-01 21:06:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:06:05 - End Time 2025-02-01 21:06:05 [2025-02-01 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380978', 'tblTempUsageDetail_20' ) start [2025-02-01 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380978', 'tblTempUsageDetail_20' ) end [2025-02-01 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380978', 'tblTempVendorCDR_20' ) start [2025-02-01 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380978', 'tblTempVendorCDR_20' ) end [2025-02-01 21:06:18] Production.INFO: ProcessCDR(1,14380978,1,1,2) [2025-02-01 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380978', 'tblTempUsageDetail_20' ) start [2025-02-01 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380978', 'tblTempUsageDetail_20' ) end [2025-02-01 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:06:22] Production.INFO: ==20529== Releasing lock... [2025-02-01 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:06:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:07:05 [end_date_ymd] => 2025-02-01 21:07:05 [RateCDR] => 1 ) [2025-02-01 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:07:05' and `end` < '2025-02-01 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-01 21:07:18] Production.INFO: count ==1711 [2025-02-01 21:07:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:07:05 - End Time 2025-02-01 21:07:05 [2025-02-01 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380983', 'tblTempUsageDetail_20' ) start [2025-02-01 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380983', 'tblTempUsageDetail_20' ) end [2025-02-01 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380983', 'tblTempVendorCDR_20' ) start [2025-02-01 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380983', 'tblTempVendorCDR_20' ) end [2025-02-01 21:07:18] Production.INFO: ProcessCDR(1,14380983,1,1,2) [2025-02-01 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380983', 'tblTempUsageDetail_20' ) start [2025-02-01 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380983', 'tblTempUsageDetail_20' ) end [2025-02-01 21:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:07:23] Production.INFO: ==20601== Releasing lock... [2025-02-01 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:07:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:08:05 [end_date_ymd] => 2025-02-01 21:08:05 [RateCDR] => 1 ) [2025-02-01 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:08:05' and `end` < '2025-02-01 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:08:18] Production.INFO: count ==1707 [2025-02-01 21:08:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:08:05 - End Time 2025-02-01 21:08:05 [2025-02-01 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380988', 'tblTempUsageDetail_20' ) start [2025-02-01 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380988', 'tblTempUsageDetail_20' ) end [2025-02-01 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380988', 'tblTempVendorCDR_20' ) start [2025-02-01 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380988', 'tblTempVendorCDR_20' ) end [2025-02-01 21:08:18] Production.INFO: ProcessCDR(1,14380988,1,1,2) [2025-02-01 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380988', 'tblTempUsageDetail_20' ) start [2025-02-01 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380988', 'tblTempUsageDetail_20' ) end [2025-02-01 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:08:22] Production.INFO: ==20671== Releasing lock... [2025-02-01 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:08:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:09:05 [end_date_ymd] => 2025-02-01 21:09:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:09:05' and `end` < '2025-02-01 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-01 21:09:18] Production.INFO: count ==1708 [2025-02-01 21:09:19] Production.ERROR: pbx CDR StartTime 2025-02-01 18:09:05 - End Time 2025-02-01 21:09:05 [2025-02-01 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380993', 'tblTempUsageDetail_20' ) start [2025-02-01 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380993', 'tblTempUsageDetail_20' ) end [2025-02-01 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380993', 'tblTempVendorCDR_20' ) start [2025-02-01 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380993', 'tblTempVendorCDR_20' ) end [2025-02-01 21:09:19] Production.INFO: ProcessCDR(1,14380993,1,1,2) [2025-02-01 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380993', 'tblTempUsageDetail_20' ) start [2025-02-01 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380993', 'tblTempUsageDetail_20' ) end [2025-02-01 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:09:22] Production.INFO: ==20742== Releasing lock... [2025-02-01 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:09:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:10:06 [end_date_ymd] => 2025-02-01 21:10:06 [RateCDR] => 1 ) [2025-02-01 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-01 18:10:06' and `end` < '2025-02-01 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-01 21:10:19] Production.INFO: count ==1709 [2025-02-01 21:10:19] Production.ERROR: pbx CDR StartTime 2025-02-01 18:10:06 - End Time 2025-02-01 21:10:06 [2025-02-01 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380999', 'tblTempUsageDetail_20' ) start [2025-02-01 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14380999', 'tblTempUsageDetail_20' ) end [2025-02-01 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380999', 'tblTempVendorCDR_20' ) start [2025-02-01 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14380999', 'tblTempVendorCDR_20' ) end [2025-02-01 21:10:19] Production.INFO: ProcessCDR(1,14380999,1,1,2) [2025-02-01 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14380999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14380999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14380999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14380999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380999', 'tblTempUsageDetail_20' ) start [2025-02-01 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14380999', 'tblTempUsageDetail_20' ) end [2025-02-01 21:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:10:24] Production.INFO: ==20817== Releasing lock... [2025-02-01 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:10:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-01 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:11:05 [end_date_ymd] => 2025-02-01 21:11:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:11:05' and `end` < '2025-02-01 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-01 21:11:18] Production.INFO: count ==1655 [2025-02-01 21:11:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:11:05 - End Time 2025-02-01 21:11:05 [2025-02-01 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381004', 'tblTempUsageDetail_20' ) start [2025-02-01 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381004', 'tblTempUsageDetail_20' ) end [2025-02-01 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381004', 'tblTempVendorCDR_20' ) start [2025-02-01 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381004', 'tblTempVendorCDR_20' ) end [2025-02-01 21:11:18] Production.INFO: ProcessCDR(1,14381004,1,1,2) [2025-02-01 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381004', 'tblTempUsageDetail_20' ) start [2025-02-01 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381004', 'tblTempUsageDetail_20' ) end [2025-02-01 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:11:23] Production.INFO: ==20893== Releasing lock... [2025-02-01 21:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:11:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-01 21:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:12:04 [end_date_ymd] => 2025-02-01 21:12:04 [RateCDR] => 1 ) [2025-02-01 21:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:12:04' and `end` < '2025-02-01 21:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:12:17] Production.INFO: count ==1658 [2025-02-01 21:12:17] Production.ERROR: pbx CDR StartTime 2025-02-01 18:12:04 - End Time 2025-02-01 21:12:04 [2025-02-01 21:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381009', 'tblTempUsageDetail_20' ) start [2025-02-01 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381009', 'tblTempUsageDetail_20' ) end [2025-02-01 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381009', 'tblTempVendorCDR_20' ) start [2025-02-01 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381009', 'tblTempVendorCDR_20' ) end [2025-02-01 21:12:17] Production.INFO: ProcessCDR(1,14381009,1,1,2) [2025-02-01 21:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381009', 'tblTempUsageDetail_20' ) start [2025-02-01 21:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381009', 'tblTempUsageDetail_20' ) end [2025-02-01 21:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:12:20] Production.INFO: ==20975== Releasing lock... [2025-02-01 21:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:12:20] Production.INFO: 40 MB #Memory Used# [2025-02-01 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:13:05 [end_date_ymd] => 2025-02-01 21:13:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:13:05' and `end` < '2025-02-01 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-01 21:13:18] Production.INFO: count ==1661 [2025-02-01 21:13:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:13:05 - End Time 2025-02-01 21:13:05 [2025-02-01 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381014', 'tblTempUsageDetail_20' ) start [2025-02-01 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381014', 'tblTempUsageDetail_20' ) end [2025-02-01 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381014', 'tblTempVendorCDR_20' ) start [2025-02-01 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381014', 'tblTempVendorCDR_20' ) end [2025-02-01 21:13:18] Production.INFO: ProcessCDR(1,14381014,1,1,2) [2025-02-01 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381014', 'tblTempUsageDetail_20' ) start [2025-02-01 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381014', 'tblTempUsageDetail_20' ) end [2025-02-01 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:13:21] Production.INFO: ==21078== Releasing lock... [2025-02-01 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:13:21] Production.INFO: 40 MB #Memory Used# [2025-02-01 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:14:06 [end_date_ymd] => 2025-02-01 21:14:06 [RateCDR] => 1 ) [2025-02-01 21:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:14:06' and `end` < '2025-02-01 21:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:14:19] Production.INFO: count ==1647 [2025-02-01 21:14:19] Production.ERROR: pbx CDR StartTime 2025-02-01 18:14:06 - End Time 2025-02-01 21:14:06 [2025-02-01 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381019', 'tblTempUsageDetail_20' ) start [2025-02-01 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381019', 'tblTempUsageDetail_20' ) end [2025-02-01 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381019', 'tblTempVendorCDR_20' ) start [2025-02-01 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381019', 'tblTempVendorCDR_20' ) end [2025-02-01 21:14:19] Production.INFO: ProcessCDR(1,14381019,1,1,2) [2025-02-01 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381019', 'tblTempUsageDetail_20' ) start [2025-02-01 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381019', 'tblTempUsageDetail_20' ) end [2025-02-01 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:14:22] Production.INFO: ==21180== Releasing lock... [2025-02-01 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:14:22] Production.INFO: 40 MB #Memory Used# [2025-02-01 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:15:05 [end_date_ymd] => 2025-02-01 21:15:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:15:05' and `end` < '2025-02-01 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-01 21:15:18] Production.INFO: count ==1634 [2025-02-01 21:15:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:15:05 - End Time 2025-02-01 21:15:05 [2025-02-01 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381024', 'tblTempUsageDetail_20' ) start [2025-02-01 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381024', 'tblTempUsageDetail_20' ) end [2025-02-01 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381024', 'tblTempVendorCDR_20' ) start [2025-02-01 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381024', 'tblTempVendorCDR_20' ) end [2025-02-01 21:15:18] Production.INFO: ProcessCDR(1,14381024,1,1,2) [2025-02-01 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381024', 'tblTempUsageDetail_20' ) start [2025-02-01 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381024', 'tblTempUsageDetail_20' ) end [2025-02-01 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:15:22] Production.INFO: ==21329== Releasing lock... [2025-02-01 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:15:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-01 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:16:06 [end_date_ymd] => 2025-02-01 21:16:06 [RateCDR] => 1 ) [2025-02-01 21:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:16:06' and `end` < '2025-02-01 21:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:16:19] Production.INFO: count ==1631 [2025-02-01 21:16:19] Production.ERROR: pbx CDR StartTime 2025-02-01 18:16:06 - End Time 2025-02-01 21:16:06 [2025-02-01 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381029', 'tblTempUsageDetail_20' ) start [2025-02-01 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381029', 'tblTempUsageDetail_20' ) end [2025-02-01 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381029', 'tblTempVendorCDR_20' ) start [2025-02-01 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381029', 'tblTempVendorCDR_20' ) end [2025-02-01 21:16:19] Production.INFO: ProcessCDR(1,14381029,1,1,2) [2025-02-01 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381029', 'tblTempUsageDetail_20' ) start [2025-02-01 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381029', 'tblTempUsageDetail_20' ) end [2025-02-01 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:16:22] Production.INFO: ==21440== Releasing lock... [2025-02-01 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:16:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-01 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:17:05 [end_date_ymd] => 2025-02-01 21:17:05 [RateCDR] => 1 ) [2025-02-01 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:17:05' and `end` < '2025-02-01 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:17:19] Production.INFO: count ==1627 [2025-02-01 21:17:20] Production.ERROR: pbx CDR StartTime 2025-02-01 18:17:05 - End Time 2025-02-01 21:17:05 [2025-02-01 21:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381034', 'tblTempUsageDetail_20' ) start [2025-02-01 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381034', 'tblTempUsageDetail_20' ) end [2025-02-01 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381034', 'tblTempVendorCDR_20' ) start [2025-02-01 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381034', 'tblTempVendorCDR_20' ) end [2025-02-01 21:17:20] Production.INFO: ProcessCDR(1,14381034,1,1,2) [2025-02-01 21:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381034', 'tblTempUsageDetail_20' ) start [2025-02-01 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381034', 'tblTempUsageDetail_20' ) end [2025-02-01 21:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:17:23] Production.INFO: ==21547== Releasing lock... [2025-02-01 21:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:17:23] Production.INFO: 40 MB #Memory Used# [2025-02-01 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:18:05 [end_date_ymd] => 2025-02-01 21:18:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:18:05' and `end` < '2025-02-01 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-01 21:18:18] Production.INFO: count ==1625 [2025-02-01 21:18:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:18:05 - End Time 2025-02-01 21:18:05 [2025-02-01 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381039', 'tblTempUsageDetail_20' ) start [2025-02-01 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381039', 'tblTempUsageDetail_20' ) end [2025-02-01 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381039', 'tblTempVendorCDR_20' ) start [2025-02-01 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381039', 'tblTempVendorCDR_20' ) end [2025-02-01 21:18:18] Production.INFO: ProcessCDR(1,14381039,1,1,2) [2025-02-01 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381039', 'tblTempUsageDetail_20' ) start [2025-02-01 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381039', 'tblTempUsageDetail_20' ) end [2025-02-01 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:18:21] Production.INFO: ==21659== Releasing lock... [2025-02-01 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:18:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-01 21:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:19:04 [end_date_ymd] => 2025-02-01 21:19:04 [RateCDR] => 1 ) [2025-02-01 21:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:19:04' and `end` < '2025-02-01 21:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:19:17] Production.INFO: count ==1622 [2025-02-01 21:19:17] Production.ERROR: pbx CDR StartTime 2025-02-01 18:19:04 - End Time 2025-02-01 21:19:04 [2025-02-01 21:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381044', 'tblTempUsageDetail_20' ) start [2025-02-01 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381044', 'tblTempUsageDetail_20' ) end [2025-02-01 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381044', 'tblTempVendorCDR_20' ) start [2025-02-01 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381044', 'tblTempVendorCDR_20' ) end [2025-02-01 21:19:17] Production.INFO: ProcessCDR(1,14381044,1,1,2) [2025-02-01 21:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381044', 'tblTempUsageDetail_20' ) start [2025-02-01 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381044', 'tblTempUsageDetail_20' ) end [2025-02-01 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:19:21] Production.INFO: ==21767== Releasing lock... [2025-02-01 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:19:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-01 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:20:06 [end_date_ymd] => 2025-02-01 21:20:06 [RateCDR] => 1 ) [2025-02-01 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-01 18:20:06' and `end` < '2025-02-01 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-01 21:20:19] Production.INFO: count ==1618 [2025-02-01 21:20:19] Production.ERROR: pbx CDR StartTime 2025-02-01 18:20:06 - End Time 2025-02-01 21:20:06 [2025-02-01 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381050', 'tblTempUsageDetail_20' ) start [2025-02-01 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381050', 'tblTempUsageDetail_20' ) end [2025-02-01 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381050', 'tblTempVendorCDR_20' ) start [2025-02-01 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381050', 'tblTempVendorCDR_20' ) end [2025-02-01 21:20:19] Production.INFO: ProcessCDR(1,14381050,1,1,2) [2025-02-01 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381050', 'tblTempUsageDetail_20' ) start [2025-02-01 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381050', 'tblTempUsageDetail_20' ) end [2025-02-01 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:20:22] Production.INFO: ==21878== Releasing lock... [2025-02-01 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:20:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-01 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:21:05 [end_date_ymd] => 2025-02-01 21:21:05 [RateCDR] => 1 ) [2025-02-01 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:21:05' and `end` < '2025-02-01 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:21:19] Production.INFO: count ==1595 [2025-02-01 21:21:19] Production.ERROR: pbx CDR StartTime 2025-02-01 18:21:05 - End Time 2025-02-01 21:21:05 [2025-02-01 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381055', 'tblTempUsageDetail_20' ) start [2025-02-01 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381055', 'tblTempUsageDetail_20' ) end [2025-02-01 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381055', 'tblTempVendorCDR_20' ) start [2025-02-01 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381055', 'tblTempVendorCDR_20' ) end [2025-02-01 21:21:19] Production.INFO: ProcessCDR(1,14381055,1,1,2) [2025-02-01 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381055', 'tblTempUsageDetail_20' ) start [2025-02-01 21:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381055', 'tblTempUsageDetail_20' ) end [2025-02-01 21:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:21:24] Production.INFO: ==21977== Releasing lock... [2025-02-01 21:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:21:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-01 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:22:05 [end_date_ymd] => 2025-02-01 21:22:05 [RateCDR] => 1 ) [2025-02-01 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:22:05' and `end` < '2025-02-01 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:22:18] Production.INFO: count ==1593 [2025-02-01 21:22:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:22:05 - End Time 2025-02-01 21:22:05 [2025-02-01 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381060', 'tblTempUsageDetail_20' ) start [2025-02-01 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381060', 'tblTempUsageDetail_20' ) end [2025-02-01 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381060', 'tblTempVendorCDR_20' ) start [2025-02-01 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381060', 'tblTempVendorCDR_20' ) end [2025-02-01 21:22:18] Production.INFO: ProcessCDR(1,14381060,1,1,2) [2025-02-01 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381060', 'tblTempUsageDetail_20' ) start [2025-02-01 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381060', 'tblTempUsageDetail_20' ) end [2025-02-01 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:22:21] Production.INFO: ==22055== Releasing lock... [2025-02-01 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:22:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-01 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:23:05 [end_date_ymd] => 2025-02-01 21:23:05 [RateCDR] => 1 ) [2025-02-01 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:23:05' and `end` < '2025-02-01 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:23:18] Production.INFO: count ==1591 [2025-02-01 21:23:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:23:05 - End Time 2025-02-01 21:23:05 [2025-02-01 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381065', 'tblTempUsageDetail_20' ) start [2025-02-01 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381065', 'tblTempUsageDetail_20' ) end [2025-02-01 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381065', 'tblTempVendorCDR_20' ) start [2025-02-01 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381065', 'tblTempVendorCDR_20' ) end [2025-02-01 21:23:18] Production.INFO: ProcessCDR(1,14381065,1,1,2) [2025-02-01 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381065', 'tblTempUsageDetail_20' ) start [2025-02-01 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381065', 'tblTempUsageDetail_20' ) end [2025-02-01 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:23:21] Production.INFO: ==22133== Releasing lock... [2025-02-01 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:23:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-01 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:24:05 [end_date_ymd] => 2025-02-01 21:24:05 [RateCDR] => 1 ) [2025-02-01 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:24:05' and `end` < '2025-02-01 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:24:18] Production.INFO: count ==1587 [2025-02-01 21:24:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:24:05 - End Time 2025-02-01 21:24:05 [2025-02-01 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381070', 'tblTempUsageDetail_20' ) start [2025-02-01 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381070', 'tblTempUsageDetail_20' ) end [2025-02-01 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381070', 'tblTempVendorCDR_20' ) start [2025-02-01 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381070', 'tblTempVendorCDR_20' ) end [2025-02-01 21:24:18] Production.INFO: ProcessCDR(1,14381070,1,1,2) [2025-02-01 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381070', 'tblTempUsageDetail_20' ) start [2025-02-01 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381070', 'tblTempUsageDetail_20' ) end [2025-02-01 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:24:21] Production.INFO: ==22217== Releasing lock... [2025-02-01 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:24:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-01 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:25:05 [end_date_ymd] => 2025-02-01 21:25:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:25:05' and `end` < '2025-02-01 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-01 21:25:18] Production.INFO: count ==1587 [2025-02-01 21:25:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:25:05 - End Time 2025-02-01 21:25:05 [2025-02-01 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381075', 'tblTempUsageDetail_20' ) start [2025-02-01 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381075', 'tblTempUsageDetail_20' ) end [2025-02-01 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381075', 'tblTempVendorCDR_20' ) start [2025-02-01 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381075', 'tblTempVendorCDR_20' ) end [2025-02-01 21:25:18] Production.INFO: ProcessCDR(1,14381075,1,1,2) [2025-02-01 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381075', 'tblTempUsageDetail_20' ) start [2025-02-01 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381075', 'tblTempUsageDetail_20' ) end [2025-02-01 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:25:23] Production.INFO: ==22295== Releasing lock... [2025-02-01 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:25:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-01 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:26:05 [end_date_ymd] => 2025-02-01 21:26:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:26:05' and `end` < '2025-02-01 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-01 21:26:18] Production.INFO: count ==1586 [2025-02-01 21:26:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:26:05 - End Time 2025-02-01 21:26:05 [2025-02-01 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381080', 'tblTempUsageDetail_20' ) start [2025-02-01 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381080', 'tblTempUsageDetail_20' ) end [2025-02-01 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381080', 'tblTempVendorCDR_20' ) start [2025-02-01 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381080', 'tblTempVendorCDR_20' ) end [2025-02-01 21:26:18] Production.INFO: ProcessCDR(1,14381080,1,1,2) [2025-02-01 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381080', 'tblTempUsageDetail_20' ) start [2025-02-01 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381080', 'tblTempUsageDetail_20' ) end [2025-02-01 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:26:21] Production.INFO: ==22376== Releasing lock... [2025-02-01 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:26:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-01 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:27:05 [end_date_ymd] => 2025-02-01 21:27:05 [RateCDR] => 1 ) [2025-02-01 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:27:05' and `end` < '2025-02-01 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:27:18] Production.INFO: count ==1590 [2025-02-01 21:27:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:27:05 - End Time 2025-02-01 21:27:05 [2025-02-01 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381085', 'tblTempUsageDetail_20' ) start [2025-02-01 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381085', 'tblTempUsageDetail_20' ) end [2025-02-01 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381085', 'tblTempVendorCDR_20' ) start [2025-02-01 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381085', 'tblTempVendorCDR_20' ) end [2025-02-01 21:27:18] Production.INFO: ProcessCDR(1,14381085,1,1,2) [2025-02-01 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381085', 'tblTempUsageDetail_20' ) start [2025-02-01 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381085', 'tblTempUsageDetail_20' ) end [2025-02-01 21:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:27:23] Production.INFO: ==22458== Releasing lock... [2025-02-01 21:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:27:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-01 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:28:05 [end_date_ymd] => 2025-02-01 21:28:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:28:05' and `end` < '2025-02-01 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-01 21:28:18] Production.INFO: count ==1588 [2025-02-01 21:28:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:28:05 - End Time 2025-02-01 21:28:05 [2025-02-01 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381090', 'tblTempUsageDetail_20' ) start [2025-02-01 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381090', 'tblTempUsageDetail_20' ) end [2025-02-01 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381090', 'tblTempVendorCDR_20' ) start [2025-02-01 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381090', 'tblTempVendorCDR_20' ) end [2025-02-01 21:28:18] Production.INFO: ProcessCDR(1,14381090,1,1,2) [2025-02-01 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381090', 'tblTempUsageDetail_20' ) start [2025-02-01 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381090', 'tblTempUsageDetail_20' ) end [2025-02-01 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:28:22] Production.INFO: ==22536== Releasing lock... [2025-02-01 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:28:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-01 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:29:05 [end_date_ymd] => 2025-02-01 21:29:05 [RateCDR] => 1 ) [2025-02-01 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:29:05' and `end` < '2025-02-01 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:29:19] Production.INFO: count ==1589 [2025-02-01 21:29:19] Production.ERROR: pbx CDR StartTime 2025-02-01 18:29:05 - End Time 2025-02-01 21:29:05 [2025-02-01 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381095', 'tblTempUsageDetail_20' ) start [2025-02-01 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381095', 'tblTempUsageDetail_20' ) end [2025-02-01 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381095', 'tblTempVendorCDR_20' ) start [2025-02-01 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381095', 'tblTempVendorCDR_20' ) end [2025-02-01 21:29:19] Production.INFO: ProcessCDR(1,14381095,1,1,2) [2025-02-01 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381095', 'tblTempUsageDetail_20' ) start [2025-02-01 21:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381095', 'tblTempUsageDetail_20' ) end [2025-02-01 21:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:29:24] Production.INFO: ==22614== Releasing lock... [2025-02-01 21:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:29:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-01 21:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:30:07 [end_date_ymd] => 2025-02-01 21:30:07 [RateCDR] => 1 ) [2025-02-01 21: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-01 18:30:07' and `end` < '2025-02-01 21: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-01 21:30:20] Production.INFO: count ==1585 [2025-02-01 21:30:20] Production.ERROR: pbx CDR StartTime 2025-02-01 18:30:07 - End Time 2025-02-01 21:30:07 [2025-02-01 21:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381101', 'tblTempUsageDetail_20' ) start [2025-02-01 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381101', 'tblTempUsageDetail_20' ) end [2025-02-01 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381101', 'tblTempVendorCDR_20' ) start [2025-02-01 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381101', 'tblTempVendorCDR_20' ) end [2025-02-01 21:30:20] Production.INFO: ProcessCDR(1,14381101,1,1,2) [2025-02-01 21:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381101', 'tblTempUsageDetail_20' ) start [2025-02-01 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381101', 'tblTempUsageDetail_20' ) end [2025-02-01 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:30:23] Production.INFO: ==22697== Releasing lock... [2025-02-01 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:30:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-01 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:31:05 [end_date_ymd] => 2025-02-01 21:31:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:31:05' and `end` < '2025-02-01 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-01 21:31:18] Production.INFO: count ==1542 [2025-02-01 21:31:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:31:05 - End Time 2025-02-01 21:31:05 [2025-02-01 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381106', 'tblTempUsageDetail_20' ) start [2025-02-01 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381106', 'tblTempUsageDetail_20' ) end [2025-02-01 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381106', 'tblTempVendorCDR_20' ) start [2025-02-01 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381106', 'tblTempVendorCDR_20' ) end [2025-02-01 21:31:18] Production.INFO: ProcessCDR(1,14381106,1,1,2) [2025-02-01 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381106', 'tblTempUsageDetail_20' ) start [2025-02-01 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381106', 'tblTempUsageDetail_20' ) end [2025-02-01 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:31:22] Production.INFO: ==22817== Releasing lock... [2025-02-01 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:31:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:32:05 [end_date_ymd] => 2025-02-01 21:32:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:32:05' and `end` < '2025-02-01 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-01 21:32:18] Production.INFO: count ==1542 [2025-02-01 21:32:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:32:05 - End Time 2025-02-01 21:32:05 [2025-02-01 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381111', 'tblTempUsageDetail_20' ) start [2025-02-01 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381111', 'tblTempUsageDetail_20' ) end [2025-02-01 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381111', 'tblTempVendorCDR_20' ) start [2025-02-01 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381111', 'tblTempVendorCDR_20' ) end [2025-02-01 21:32:18] Production.INFO: ProcessCDR(1,14381111,1,1,2) [2025-02-01 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381111', 'tblTempUsageDetail_20' ) start [2025-02-01 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381111', 'tblTempUsageDetail_20' ) end [2025-02-01 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:32:23] Production.INFO: ==22898== Releasing lock... [2025-02-01 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:32:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:33:05 [end_date_ymd] => 2025-02-01 21:33:05 [RateCDR] => 1 ) [2025-02-01 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:33:05' and `end` < '2025-02-01 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:33:18] Production.INFO: count ==1537 [2025-02-01 21:33:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:33:05 - End Time 2025-02-01 21:33:05 [2025-02-01 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381116', 'tblTempUsageDetail_20' ) start [2025-02-01 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381116', 'tblTempUsageDetail_20' ) end [2025-02-01 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381116', 'tblTempVendorCDR_20' ) start [2025-02-01 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381116', 'tblTempVendorCDR_20' ) end [2025-02-01 21:33:18] Production.INFO: ProcessCDR(1,14381116,1,1,2) [2025-02-01 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381116', 'tblTempUsageDetail_20' ) start [2025-02-01 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381116', 'tblTempUsageDetail_20' ) end [2025-02-01 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:33:21] Production.INFO: ==22979== Releasing lock... [2025-02-01 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:33:21] Production.INFO: 39 MB #Memory Used# [2025-02-01 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:34:05 [end_date_ymd] => 2025-02-01 21:34:05 [RateCDR] => 1 ) [2025-02-01 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:34:05' and `end` < '2025-02-01 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:34:19] Production.INFO: count ==1530 [2025-02-01 21:34:19] Production.ERROR: pbx CDR StartTime 2025-02-01 18:34:05 - End Time 2025-02-01 21:34:05 [2025-02-01 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381121', 'tblTempUsageDetail_20' ) start [2025-02-01 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381121', 'tblTempUsageDetail_20' ) end [2025-02-01 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381121', 'tblTempVendorCDR_20' ) start [2025-02-01 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381121', 'tblTempVendorCDR_20' ) end [2025-02-01 21:34:19] Production.INFO: ProcessCDR(1,14381121,1,1,2) [2025-02-01 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381121', 'tblTempUsageDetail_20' ) start [2025-02-01 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381121', 'tblTempUsageDetail_20' ) end [2025-02-01 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:34:22] Production.INFO: ==23059== Releasing lock... [2025-02-01 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:34:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:35:05 [end_date_ymd] => 2025-02-01 21:35:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:35:05' and `end` < '2025-02-01 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-01 21:35:18] Production.INFO: count ==1526 [2025-02-01 21:35:19] Production.ERROR: pbx CDR StartTime 2025-02-01 18:35:05 - End Time 2025-02-01 21:35:05 [2025-02-01 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381126', 'tblTempUsageDetail_20' ) start [2025-02-01 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381126', 'tblTempUsageDetail_20' ) end [2025-02-01 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381126', 'tblTempVendorCDR_20' ) start [2025-02-01 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381126', 'tblTempVendorCDR_20' ) end [2025-02-01 21:35:19] Production.INFO: ProcessCDR(1,14381126,1,1,2) [2025-02-01 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381126', 'tblTempUsageDetail_20' ) start [2025-02-01 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381126', 'tblTempUsageDetail_20' ) end [2025-02-01 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:35:22] Production.INFO: ==23147== Releasing lock... [2025-02-01 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:35:22] Production.INFO: 39 MB #Memory Used# [2025-02-01 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:36:05 [end_date_ymd] => 2025-02-01 21:36:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:36:05' and `end` < '2025-02-01 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-01 21:36:18] Production.INFO: count ==1523 [2025-02-01 21:36:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:36:05 - End Time 2025-02-01 21:36:05 [2025-02-01 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381131', 'tblTempUsageDetail_20' ) start [2025-02-01 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381131', 'tblTempUsageDetail_20' ) end [2025-02-01 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381131', 'tblTempVendorCDR_20' ) start [2025-02-01 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381131', 'tblTempVendorCDR_20' ) end [2025-02-01 21:36:18] Production.INFO: ProcessCDR(1,14381131,1,1,2) [2025-02-01 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381131', 'tblTempUsageDetail_20' ) start [2025-02-01 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381131', 'tblTempUsageDetail_20' ) end [2025-02-01 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:36:22] Production.INFO: ==23229== Releasing lock... [2025-02-01 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:36:22] Production.INFO: 39 MB #Memory Used# [2025-02-01 21:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:37:04 [end_date_ymd] => 2025-02-01 21:37:04 [RateCDR] => 1 ) [2025-02-01 21: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-01 18:37:04' and `end` < '2025-02-01 21: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-01 21:37:17] Production.INFO: count ==1523 [2025-02-01 21:37:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:37:04 - End Time 2025-02-01 21:37:04 [2025-02-01 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381135', 'tblTempUsageDetail_20' ) start [2025-02-01 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381135', 'tblTempUsageDetail_20' ) end [2025-02-01 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381135', 'tblTempVendorCDR_20' ) start [2025-02-01 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381135', 'tblTempVendorCDR_20' ) end [2025-02-01 21:37:18] Production.INFO: ProcessCDR(1,14381135,1,1,2) [2025-02-01 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381135', 'tblTempUsageDetail_20' ) start [2025-02-01 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381135', 'tblTempUsageDetail_20' ) end [2025-02-01 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:37:22] Production.INFO: ==23309== Releasing lock... [2025-02-01 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:37:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-01 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:38:05 [end_date_ymd] => 2025-02-01 21:38:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:38:05' and `end` < '2025-02-01 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-01 21:38:18] Production.INFO: count ==1522 [2025-02-01 21:38:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:38:05 - End Time 2025-02-01 21:38:05 [2025-02-01 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381141', 'tblTempUsageDetail_20' ) start [2025-02-01 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381141', 'tblTempUsageDetail_20' ) end [2025-02-01 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381141', 'tblTempVendorCDR_20' ) start [2025-02-01 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381141', 'tblTempVendorCDR_20' ) end [2025-02-01 21:38:18] Production.INFO: ProcessCDR(1,14381141,1,1,2) [2025-02-01 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381141', 'tblTempUsageDetail_20' ) start [2025-02-01 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381141', 'tblTempUsageDetail_20' ) end [2025-02-01 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:38:21] Production.INFO: ==23386== Releasing lock... [2025-02-01 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:38:21] Production.INFO: 39 MB #Memory Used# [2025-02-01 21:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:39:06 [end_date_ymd] => 2025-02-01 21:39:06 [RateCDR] => 1 ) [2025-02-01 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-01 18:39:06' and `end` < '2025-02-01 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-01 21:39:19] Production.INFO: count ==1525 [2025-02-01 21:39:19] Production.ERROR: pbx CDR StartTime 2025-02-01 18:39:06 - End Time 2025-02-01 21:39:06 [2025-02-01 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381146', 'tblTempUsageDetail_20' ) start [2025-02-01 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381146', 'tblTempUsageDetail_20' ) end [2025-02-01 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381146', 'tblTempVendorCDR_20' ) start [2025-02-01 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381146', 'tblTempVendorCDR_20' ) end [2025-02-01 21:39:19] Production.INFO: ProcessCDR(1,14381146,1,1,2) [2025-02-01 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381146', 'tblTempUsageDetail_20' ) start [2025-02-01 21:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381146', 'tblTempUsageDetail_20' ) end [2025-02-01 21:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:39:24] Production.INFO: ==23466== Releasing lock... [2025-02-01 21:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:39:24] Production.INFO: 39 MB #Memory Used# [2025-02-01 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:40:06 [end_date_ymd] => 2025-02-01 21:40:06 [RateCDR] => 1 ) [2025-02-01 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:40:06' and `end` < '2025-02-01 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:40:19] Production.INFO: count ==1519 [2025-02-01 21:40:19] Production.ERROR: pbx CDR StartTime 2025-02-01 18:40:06 - End Time 2025-02-01 21:40:06 [2025-02-01 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381152', 'tblTempUsageDetail_20' ) start [2025-02-01 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381152', 'tblTempUsageDetail_20' ) end [2025-02-01 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381152', 'tblTempVendorCDR_20' ) start [2025-02-01 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381152', 'tblTempVendorCDR_20' ) end [2025-02-01 21:40:19] Production.INFO: ProcessCDR(1,14381152,1,1,2) [2025-02-01 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381152', 'tblTempUsageDetail_20' ) start [2025-02-01 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381152', 'tblTempUsageDetail_20' ) end [2025-02-01 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:40:22] Production.INFO: ==23545== Releasing lock... [2025-02-01 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:40:22] Production.INFO: 39 MB #Memory Used# [2025-02-01 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:41:05 [end_date_ymd] => 2025-02-01 21:41:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:41:05' and `end` < '2025-02-01 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-01 21:41:18] Production.INFO: count ==1515 [2025-02-01 21:41:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:41:05 - End Time 2025-02-01 21:41:05 [2025-02-01 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381157', 'tblTempUsageDetail_20' ) start [2025-02-01 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381157', 'tblTempUsageDetail_20' ) end [2025-02-01 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381157', 'tblTempVendorCDR_20' ) start [2025-02-01 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381157', 'tblTempVendorCDR_20' ) end [2025-02-01 21:41:18] Production.INFO: ProcessCDR(1,14381157,1,1,2) [2025-02-01 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381157', 'tblTempUsageDetail_20' ) start [2025-02-01 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381157', 'tblTempUsageDetail_20' ) end [2025-02-01 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:41:22] Production.INFO: ==23638== Releasing lock... [2025-02-01 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:41:22] Production.INFO: 39 MB #Memory Used# [2025-02-01 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:42:05 [end_date_ymd] => 2025-02-01 21:42:05 [RateCDR] => 1 ) [2025-02-01 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:42:05' and `end` < '2025-02-01 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:42:18] Production.INFO: count ==1514 [2025-02-01 21:42:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:42:05 - End Time 2025-02-01 21:42:05 [2025-02-01 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381162', 'tblTempUsageDetail_20' ) start [2025-02-01 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381162', 'tblTempUsageDetail_20' ) end [2025-02-01 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381162', 'tblTempVendorCDR_20' ) start [2025-02-01 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381162', 'tblTempVendorCDR_20' ) end [2025-02-01 21:42:18] Production.INFO: ProcessCDR(1,14381162,1,1,2) [2025-02-01 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381162', 'tblTempUsageDetail_20' ) start [2025-02-01 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381162', 'tblTempUsageDetail_20' ) end [2025-02-01 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:42:21] Production.INFO: ==23739== Releasing lock... [2025-02-01 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:42:21] Production.INFO: 39 MB #Memory Used# [2025-02-01 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:43:05 [end_date_ymd] => 2025-02-01 21:43:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:43:05' and `end` < '2025-02-01 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-01 21:43:18] Production.INFO: count ==1513 [2025-02-01 21:43:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:43:05 - End Time 2025-02-01 21:43:05 [2025-02-01 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381167', 'tblTempUsageDetail_20' ) start [2025-02-01 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381167', 'tblTempUsageDetail_20' ) end [2025-02-01 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381167', 'tblTempVendorCDR_20' ) start [2025-02-01 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381167', 'tblTempVendorCDR_20' ) end [2025-02-01 21:43:18] Production.INFO: ProcessCDR(1,14381167,1,1,2) [2025-02-01 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381167', 'tblTempUsageDetail_20' ) start [2025-02-01 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381167', 'tblTempUsageDetail_20' ) end [2025-02-01 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:43:22] Production.INFO: ==23822== Releasing lock... [2025-02-01 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:43:22] Production.INFO: 39 MB #Memory Used# [2025-02-01 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:44:05 [end_date_ymd] => 2025-02-01 21:44:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:44:05' and `end` < '2025-02-01 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-01 21:44:18] Production.INFO: count ==1510 [2025-02-01 21:44:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:44:05 - End Time 2025-02-01 21:44:05 [2025-02-01 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381172', 'tblTempUsageDetail_20' ) start [2025-02-01 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381172', 'tblTempUsageDetail_20' ) end [2025-02-01 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381172', 'tblTempVendorCDR_20' ) start [2025-02-01 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381172', 'tblTempVendorCDR_20' ) end [2025-02-01 21:44:18] Production.INFO: ProcessCDR(1,14381172,1,1,2) [2025-02-01 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381172', 'tblTempUsageDetail_20' ) start [2025-02-01 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381172', 'tblTempUsageDetail_20' ) end [2025-02-01 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:44:21] Production.INFO: ==23914== Releasing lock... [2025-02-01 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:44:21] Production.INFO: 39 MB #Memory Used# [2025-02-01 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:45:05 [end_date_ymd] => 2025-02-01 21:45:05 [RateCDR] => 1 ) [2025-02-01 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:45:05' and `end` < '2025-02-01 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:45:18] Production.INFO: count ==1510 [2025-02-01 21:45:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:45:05 - End Time 2025-02-01 21:45:05 [2025-02-01 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381177', 'tblTempUsageDetail_20' ) start [2025-02-01 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381177', 'tblTempUsageDetail_20' ) end [2025-02-01 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381177', 'tblTempVendorCDR_20' ) start [2025-02-01 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381177', 'tblTempVendorCDR_20' ) end [2025-02-01 21:45:19] Production.INFO: ProcessCDR(1,14381177,1,1,2) [2025-02-01 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381177', 'tblTempUsageDetail_20' ) start [2025-02-01 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381177', 'tblTempUsageDetail_20' ) end [2025-02-01 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:45:22] Production.INFO: ==24002== Releasing lock... [2025-02-01 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:45:22] Production.INFO: 39 MB #Memory Used# [2025-02-01 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:46:05 [end_date_ymd] => 2025-02-01 21:46:05 [RateCDR] => 1 ) [2025-02-01 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:46:05' and `end` < '2025-02-01 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:46:18] Production.INFO: count ==1506 [2025-02-01 21:46:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:46:05 - End Time 2025-02-01 21:46:05 [2025-02-01 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381182', 'tblTempUsageDetail_20' ) start [2025-02-01 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381182', 'tblTempUsageDetail_20' ) end [2025-02-01 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381182', 'tblTempVendorCDR_20' ) start [2025-02-01 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381182', 'tblTempVendorCDR_20' ) end [2025-02-01 21:46:18] Production.INFO: ProcessCDR(1,14381182,1,1,2) [2025-02-01 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381182', 'tblTempUsageDetail_20' ) start [2025-02-01 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381182', 'tblTempUsageDetail_20' ) end [2025-02-01 21:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:46:23] Production.INFO: ==24128== Releasing lock... [2025-02-01 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:46:23] Production.INFO: 39 MB #Memory Used# [2025-02-01 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:47:05 [end_date_ymd] => 2025-02-01 21:47:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:47:05' and `end` < '2025-02-01 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-01 21:47:18] Production.INFO: count ==1505 [2025-02-01 21:47:19] Production.ERROR: pbx CDR StartTime 2025-02-01 18:47:05 - End Time 2025-02-01 21:47:05 [2025-02-01 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381187', 'tblTempUsageDetail_20' ) start [2025-02-01 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381187', 'tblTempUsageDetail_20' ) end [2025-02-01 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381187', 'tblTempVendorCDR_20' ) start [2025-02-01 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381187', 'tblTempVendorCDR_20' ) end [2025-02-01 21:47:19] Production.INFO: ProcessCDR(1,14381187,1,1,2) [2025-02-01 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381187', 'tblTempUsageDetail_20' ) start [2025-02-01 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381187', 'tblTempUsageDetail_20' ) end [2025-02-01 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:47:22] Production.INFO: ==24217== Releasing lock... [2025-02-01 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:47:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:48:05 [end_date_ymd] => 2025-02-01 21:48:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:48:05' and `end` < '2025-02-01 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-01 21:48:18] Production.INFO: count ==1506 [2025-02-01 21:48:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:48:05 - End Time 2025-02-01 21:48:05 [2025-02-01 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381192', 'tblTempUsageDetail_20' ) start [2025-02-01 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381192', 'tblTempUsageDetail_20' ) end [2025-02-01 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381192', 'tblTempVendorCDR_20' ) start [2025-02-01 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381192', 'tblTempVendorCDR_20' ) end [2025-02-01 21:48:18] Production.INFO: ProcessCDR(1,14381192,1,1,2) [2025-02-01 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381192', 'tblTempUsageDetail_20' ) start [2025-02-01 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381192', 'tblTempUsageDetail_20' ) end [2025-02-01 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:48:22] Production.INFO: ==24305== Releasing lock... [2025-02-01 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:48:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 21:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:49:06 [end_date_ymd] => 2025-02-01 21:49:06 [RateCDR] => 1 ) [2025-02-01 21: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-01 18:49:06' and `end` < '2025-02-01 21: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-01 21:49:19] Production.INFO: count ==1505 [2025-02-01 21:49:19] Production.ERROR: pbx CDR StartTime 2025-02-01 18:49:06 - End Time 2025-02-01 21:49:06 [2025-02-01 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381197', 'tblTempUsageDetail_20' ) start [2025-02-01 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381197', 'tblTempUsageDetail_20' ) end [2025-02-01 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381197', 'tblTempVendorCDR_20' ) start [2025-02-01 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381197', 'tblTempVendorCDR_20' ) end [2025-02-01 21:49:19] Production.INFO: ProcessCDR(1,14381197,1,1,2) [2025-02-01 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381197', 'tblTempUsageDetail_20' ) start [2025-02-01 21:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381197', 'tblTempUsageDetail_20' ) end [2025-02-01 21:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:49:24] Production.INFO: ==24394== Releasing lock... [2025-02-01 21:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:49:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:50:05 [end_date_ymd] => 2025-02-01 21:50:05 [RateCDR] => 1 ) [2025-02-01 21:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:50:05' and `end` < '2025-02-01 21:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:50:18] Production.INFO: count ==1501 [2025-02-01 21:50:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:50:05 - End Time 2025-02-01 21:50:05 [2025-02-01 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381203', 'tblTempUsageDetail_20' ) start [2025-02-01 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381203', 'tblTempUsageDetail_20' ) end [2025-02-01 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381203', 'tblTempVendorCDR_20' ) start [2025-02-01 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381203', 'tblTempVendorCDR_20' ) end [2025-02-01 21:50:18] Production.INFO: ProcessCDR(1,14381203,1,1,2) [2025-02-01 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381203', 'tblTempUsageDetail_20' ) start [2025-02-01 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381203', 'tblTempUsageDetail_20' ) end [2025-02-01 21:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:50:21] Production.INFO: ==24478== Releasing lock... [2025-02-01 21:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:50:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-01 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:51:06 [end_date_ymd] => 2025-02-01 21:51:06 [RateCDR] => 1 ) [2025-02-01 21: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-01 18:51:06' and `end` < '2025-02-01 21: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-01 21:51:19] Production.INFO: count ==1466 [2025-02-01 21:51:19] Production.ERROR: pbx CDR StartTime 2025-02-01 18:51:06 - End Time 2025-02-01 21:51:06 [2025-02-01 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381208', 'tblTempUsageDetail_20' ) start [2025-02-01 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381208', 'tblTempUsageDetail_20' ) end [2025-02-01 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381208', 'tblTempVendorCDR_20' ) start [2025-02-01 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381208', 'tblTempVendorCDR_20' ) end [2025-02-01 21:51:19] Production.INFO: ProcessCDR(1,14381208,1,1,2) [2025-02-01 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381208', 'tblTempUsageDetail_20' ) start [2025-02-01 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381208', 'tblTempUsageDetail_20' ) end [2025-02-01 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:51:22] Production.INFO: ==24568== Releasing lock... [2025-02-01 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:51:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:52:05 [end_date_ymd] => 2025-02-01 21:52:05 [RateCDR] => 1 ) [2025-02-01 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:52:05' and `end` < '2025-02-01 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:52:18] Production.INFO: count ==1466 [2025-02-01 21:52:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:52:05 - End Time 2025-02-01 21:52:05 [2025-02-01 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381213', 'tblTempUsageDetail_20' ) start [2025-02-01 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381213', 'tblTempUsageDetail_20' ) end [2025-02-01 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381213', 'tblTempVendorCDR_20' ) start [2025-02-01 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381213', 'tblTempVendorCDR_20' ) end [2025-02-01 21:52:18] Production.INFO: ProcessCDR(1,14381213,1,1,2) [2025-02-01 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381213', 'tblTempUsageDetail_20' ) start [2025-02-01 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381213', 'tblTempUsageDetail_20' ) end [2025-02-01 21:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:52:23] Production.INFO: ==24659== Releasing lock... [2025-02-01 21:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:52:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:53:05 [end_date_ymd] => 2025-02-01 21:53:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:53:05' and `end` < '2025-02-01 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-01 21:53:18] Production.INFO: count ==1458 [2025-02-01 21:53:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:53:05 - End Time 2025-02-01 21:53:05 [2025-02-01 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381218', 'tblTempUsageDetail_20' ) start [2025-02-01 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381218', 'tblTempUsageDetail_20' ) end [2025-02-01 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381218', 'tblTempVendorCDR_20' ) start [2025-02-01 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381218', 'tblTempVendorCDR_20' ) end [2025-02-01 21:53:18] Production.INFO: ProcessCDR(1,14381218,1,1,2) [2025-02-01 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381218', 'tblTempUsageDetail_20' ) start [2025-02-01 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381218', 'tblTempUsageDetail_20' ) end [2025-02-01 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:53:22] Production.INFO: ==24749== Releasing lock... [2025-02-01 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:53:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:54:05 [end_date_ymd] => 2025-02-01 21:54:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:54:05' and `end` < '2025-02-01 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-01 21:54:19] Production.INFO: count ==1461 [2025-02-01 21:54:19] Production.ERROR: pbx CDR StartTime 2025-02-01 18:54:05 - End Time 2025-02-01 21:54:05 [2025-02-01 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381223', 'tblTempUsageDetail_20' ) start [2025-02-01 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381223', 'tblTempUsageDetail_20' ) end [2025-02-01 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381223', 'tblTempVendorCDR_20' ) start [2025-02-01 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381223', 'tblTempVendorCDR_20' ) end [2025-02-01 21:54:19] Production.INFO: ProcessCDR(1,14381223,1,1,2) [2025-02-01 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381223', 'tblTempUsageDetail_20' ) start [2025-02-01 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381223', 'tblTempUsageDetail_20' ) end [2025-02-01 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:54:22] Production.INFO: ==24839== Releasing lock... [2025-02-01 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:54:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 21:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:55:04 [end_date_ymd] => 2025-02-01 21:55:04 [RateCDR] => 1 ) [2025-02-01 21:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:55:04' and `end` < '2025-02-01 21:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 21:55:17] Production.INFO: count ==1456 [2025-02-01 21:55:17] Production.ERROR: pbx CDR StartTime 2025-02-01 18:55:04 - End Time 2025-02-01 21:55:04 [2025-02-01 21:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381228', 'tblTempUsageDetail_20' ) start [2025-02-01 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381228', 'tblTempUsageDetail_20' ) end [2025-02-01 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381228', 'tblTempVendorCDR_20' ) start [2025-02-01 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381228', 'tblTempVendorCDR_20' ) end [2025-02-01 21:55:17] Production.INFO: ProcessCDR(1,14381228,1,1,2) [2025-02-01 21:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381228', 'tblTempUsageDetail_20' ) start [2025-02-01 21:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381228', 'tblTempUsageDetail_20' ) end [2025-02-01 21:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:55:20] Production.INFO: ==24931== Releasing lock... [2025-02-01 21:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:55:20] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:56:05 [end_date_ymd] => 2025-02-01 21:56:05 [RateCDR] => 1 ) [2025-02-01 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 18:56:05' and `end` < '2025-02-01 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-01 21:56:18] Production.INFO: count ==1452 [2025-02-01 21:56:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:56:05 - End Time 2025-02-01 21:56:05 [2025-02-01 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381233', 'tblTempUsageDetail_20' ) start [2025-02-01 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381233', 'tblTempUsageDetail_20' ) end [2025-02-01 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381233', 'tblTempVendorCDR_20' ) start [2025-02-01 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381233', 'tblTempVendorCDR_20' ) end [2025-02-01 21:56:18] Production.INFO: ProcessCDR(1,14381233,1,1,2) [2025-02-01 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381233', 'tblTempUsageDetail_20' ) start [2025-02-01 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381233', 'tblTempUsageDetail_20' ) end [2025-02-01 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:56:23] Production.INFO: ==25022== Releasing lock... [2025-02-01 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:56:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:57:05 [end_date_ymd] => 2025-02-01 21:57:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:57:05' and `end` < '2025-02-01 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-01 21:57:18] Production.INFO: count ==1447 [2025-02-01 21:57:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:57:05 - End Time 2025-02-01 21:57:05 [2025-02-01 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381238', 'tblTempUsageDetail_20' ) start [2025-02-01 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381238', 'tblTempUsageDetail_20' ) end [2025-02-01 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381238', 'tblTempVendorCDR_20' ) start [2025-02-01 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381238', 'tblTempVendorCDR_20' ) end [2025-02-01 21:57:18] Production.INFO: ProcessCDR(1,14381238,1,1,2) [2025-02-01 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381238', 'tblTempUsageDetail_20' ) start [2025-02-01 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381238', 'tblTempUsageDetail_20' ) end [2025-02-01 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:57:22] Production.INFO: ==25113== Releasing lock... [2025-02-01 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:57:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:58:05 [end_date_ymd] => 2025-02-01 21:58:05 [RateCDR] => 1 ) [2025-02-01 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-01 18:58:05' and `end` < '2025-02-01 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-01 21:58:18] Production.INFO: count ==1447 [2025-02-01 21:58:18] Production.ERROR: pbx CDR StartTime 2025-02-01 18:58:05 - End Time 2025-02-01 21:58:05 [2025-02-01 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381243', 'tblTempUsageDetail_20' ) start [2025-02-01 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381243', 'tblTempUsageDetail_20' ) end [2025-02-01 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381243', 'tblTempVendorCDR_20' ) start [2025-02-01 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381243', 'tblTempVendorCDR_20' ) end [2025-02-01 21:58:18] Production.INFO: ProcessCDR(1,14381243,1,1,2) [2025-02-01 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381243', 'tblTempUsageDetail_20' ) start [2025-02-01 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381243', 'tblTempUsageDetail_20' ) end [2025-02-01 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:58:21] Production.INFO: ==25196== Releasing lock... [2025-02-01 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:58:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 21:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 18:59:06 [end_date_ymd] => 2025-02-01 21:59:06 [RateCDR] => 1 ) [2025-02-01 21: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-01 18:59:06' and `end` < '2025-02-01 21: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-01 21:59:19] Production.INFO: count ==1443 [2025-02-01 21:59:19] Production.ERROR: pbx CDR StartTime 2025-02-01 18:59:06 - End Time 2025-02-01 21:59:06 [2025-02-01 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381248', 'tblTempUsageDetail_20' ) start [2025-02-01 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381248', 'tblTempUsageDetail_20' ) end [2025-02-01 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381248', 'tblTempVendorCDR_20' ) start [2025-02-01 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381248', 'tblTempVendorCDR_20' ) end [2025-02-01 21:59:19] Production.INFO: ProcessCDR(1,14381248,1,1,2) [2025-02-01 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381248', 'tblTempUsageDetail_20' ) start [2025-02-01 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381248', 'tblTempUsageDetail_20' ) end [2025-02-01 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 21:59:22] Production.INFO: ==25276== Releasing lock... [2025-02-01 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 21:59:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:00:06 [end_date_ymd] => 2025-02-01 22:00:06 [RateCDR] => 1 ) [2025-02-01 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-01 19:00:06' and `end` < '2025-02-01 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-01 22:00:19] Production.INFO: count ==1441 [2025-02-01 22:00:19] Production.ERROR: pbx CDR StartTime 2025-02-01 19:00:06 - End Time 2025-02-01 22:00:06 [2025-02-01 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381253', 'tblTempUsageDetail_20' ) start [2025-02-01 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381253', 'tblTempUsageDetail_20' ) end [2025-02-01 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381253', 'tblTempVendorCDR_20' ) start [2025-02-01 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381253', 'tblTempVendorCDR_20' ) end [2025-02-01 22:00:19] Production.INFO: ProcessCDR(1,14381253,1,1,2) [2025-02-01 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381253', 'tblTempUsageDetail_20' ) start [2025-02-01 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381253', 'tblTempUsageDetail_20' ) end [2025-02-01 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:00:22] Production.INFO: ==25363== Releasing lock... [2025-02-01 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:00:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-01 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:01:06 [end_date_ymd] => 2025-02-01 22:01:06 [RateCDR] => 1 ) [2025-02-01 22:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 19:01:06' and `end` < '2025-02-01 22:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 22:01:19] Production.INFO: count ==1378 [2025-02-01 22:01:19] Production.ERROR: pbx CDR StartTime 2025-02-01 19:01:06 - End Time 2025-02-01 22:01:06 [2025-02-01 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381259', 'tblTempUsageDetail_20' ) start [2025-02-01 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381259', 'tblTempUsageDetail_20' ) end [2025-02-01 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381259', 'tblTempVendorCDR_20' ) start [2025-02-01 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381259', 'tblTempVendorCDR_20' ) end [2025-02-01 22:01:19] Production.INFO: ProcessCDR(1,14381259,1,1,2) [2025-02-01 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381259', 'tblTempUsageDetail_20' ) start [2025-02-01 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381259', 'tblTempUsageDetail_20' ) end [2025-02-01 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:01:22] Production.INFO: ==25454== Releasing lock... [2025-02-01 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:01:22] Production.INFO: 38 MB #Memory Used# [2025-02-01 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:02:05 [end_date_ymd] => 2025-02-01 22:02:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:02:05' and `end` < '2025-02-01 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-01 22:02:19] Production.INFO: count ==1375 [2025-02-01 22:02:19] Production.ERROR: pbx CDR StartTime 2025-02-01 19:02:05 - End Time 2025-02-01 22:02:05 [2025-02-01 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381264', 'tblTempUsageDetail_20' ) start [2025-02-01 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381264', 'tblTempUsageDetail_20' ) end [2025-02-01 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381264', 'tblTempVendorCDR_20' ) start [2025-02-01 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381264', 'tblTempVendorCDR_20' ) end [2025-02-01 22:02:19] Production.INFO: ProcessCDR(1,14381264,1,1,2) [2025-02-01 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381264', 'tblTempUsageDetail_20' ) start [2025-02-01 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381264', 'tblTempUsageDetail_20' ) end [2025-02-01 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:02:22] Production.INFO: ==25574== Releasing lock... [2025-02-01 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:02:22] Production.INFO: 38 MB #Memory Used# [2025-02-01 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:03:05 [end_date_ymd] => 2025-02-01 22:03:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:03:05' and `end` < '2025-02-01 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-01 22:03:18] Production.INFO: count ==1374 [2025-02-01 22:03:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:03:05 - End Time 2025-02-01 22:03:05 [2025-02-01 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381269', 'tblTempUsageDetail_20' ) start [2025-02-01 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381269', 'tblTempUsageDetail_20' ) end [2025-02-01 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381269', 'tblTempVendorCDR_20' ) start [2025-02-01 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381269', 'tblTempVendorCDR_20' ) end [2025-02-01 22:03:18] Production.INFO: ProcessCDR(1,14381269,1,1,2) [2025-02-01 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381269', 'tblTempUsageDetail_20' ) start [2025-02-01 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381269', 'tblTempUsageDetail_20' ) end [2025-02-01 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:03:21] Production.INFO: ==25651== Releasing lock... [2025-02-01 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:03:21] Production.INFO: 38 MB #Memory Used# [2025-02-01 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:04:05 [end_date_ymd] => 2025-02-01 22:04:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:04:05' and `end` < '2025-02-01 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-01 22:04:18] Production.INFO: count ==1372 [2025-02-01 22:04:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:04:05 - End Time 2025-02-01 22:04:05 [2025-02-01 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381274', 'tblTempUsageDetail_20' ) start [2025-02-01 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381274', 'tblTempUsageDetail_20' ) end [2025-02-01 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381274', 'tblTempVendorCDR_20' ) start [2025-02-01 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381274', 'tblTempVendorCDR_20' ) end [2025-02-01 22:04:18] Production.INFO: ProcessCDR(1,14381274,1,1,2) [2025-02-01 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381274', 'tblTempUsageDetail_20' ) start [2025-02-01 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381274', 'tblTempUsageDetail_20' ) end [2025-02-01 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:04:21] Production.INFO: ==25732== Releasing lock... [2025-02-01 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:04:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-01 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:05:05 [end_date_ymd] => 2025-02-01 22:05:05 [RateCDR] => 1 ) [2025-02-01 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 19:05:05' and `end` < '2025-02-01 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 22:05:18] Production.INFO: count ==1372 [2025-02-01 22:05:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:05:05 - End Time 2025-02-01 22:05:05 [2025-02-01 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381279', 'tblTempUsageDetail_20' ) start [2025-02-01 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381279', 'tblTempUsageDetail_20' ) end [2025-02-01 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381279', 'tblTempVendorCDR_20' ) start [2025-02-01 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381279', 'tblTempVendorCDR_20' ) end [2025-02-01 22:05:18] Production.INFO: ProcessCDR(1,14381279,1,1,2) [2025-02-01 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381279', 'tblTempUsageDetail_20' ) start [2025-02-01 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381279', 'tblTempUsageDetail_20' ) end [2025-02-01 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:05:21] Production.INFO: ==25820== Releasing lock... [2025-02-01 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:05:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-01 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:06:05 [end_date_ymd] => 2025-02-01 22:06:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:06:05' and `end` < '2025-02-01 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-01 22:06:18] Production.INFO: count ==1368 [2025-02-01 22:06:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:06:05 - End Time 2025-02-01 22:06:05 [2025-02-01 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381284', 'tblTempUsageDetail_20' ) start [2025-02-01 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381284', 'tblTempUsageDetail_20' ) end [2025-02-01 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381284', 'tblTempVendorCDR_20' ) start [2025-02-01 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381284', 'tblTempVendorCDR_20' ) end [2025-02-01 22:06:18] Production.INFO: ProcessCDR(1,14381284,1,1,2) [2025-02-01 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381284', 'tblTempUsageDetail_20' ) start [2025-02-01 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381284', 'tblTempUsageDetail_20' ) end [2025-02-01 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:06:22] Production.INFO: ==25901== Releasing lock... [2025-02-01 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:06:22] Production.INFO: 38 MB #Memory Used# [2025-02-01 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:07:05 [end_date_ymd] => 2025-02-01 22:07:05 [RateCDR] => 1 ) [2025-02-01 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 19:07:05' and `end` < '2025-02-01 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 22:07:18] Production.INFO: count ==1368 [2025-02-01 22:07:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:07:05 - End Time 2025-02-01 22:07:05 [2025-02-01 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381289', 'tblTempUsageDetail_20' ) start [2025-02-01 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381289', 'tblTempUsageDetail_20' ) end [2025-02-01 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381289', 'tblTempVendorCDR_20' ) start [2025-02-01 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381289', 'tblTempVendorCDR_20' ) end [2025-02-01 22:07:18] Production.INFO: ProcessCDR(1,14381289,1,1,2) [2025-02-01 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381289', 'tblTempUsageDetail_20' ) start [2025-02-01 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381289', 'tblTempUsageDetail_20' ) end [2025-02-01 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:07:21] Production.INFO: ==25983== Releasing lock... [2025-02-01 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:07:21] Production.INFO: 38 MB #Memory Used# [2025-02-01 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:08:05 [end_date_ymd] => 2025-02-01 22:08:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:08:05' and `end` < '2025-02-01 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-01 22:08:19] Production.INFO: count ==1363 [2025-02-01 22:08:19] Production.ERROR: pbx CDR StartTime 2025-02-01 19:08:05 - End Time 2025-02-01 22:08:05 [2025-02-01 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381294', 'tblTempUsageDetail_20' ) start [2025-02-01 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381294', 'tblTempUsageDetail_20' ) end [2025-02-01 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381294', 'tblTempVendorCDR_20' ) start [2025-02-01 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381294', 'tblTempVendorCDR_20' ) end [2025-02-01 22:08:19] Production.INFO: ProcessCDR(1,14381294,1,1,2) [2025-02-01 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381294', 'tblTempUsageDetail_20' ) start [2025-02-01 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381294', 'tblTempUsageDetail_20' ) end [2025-02-01 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:08:22] Production.INFO: ==26064== Releasing lock... [2025-02-01 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:08:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-01 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:09:05 [end_date_ymd] => 2025-02-01 22:09:05 [RateCDR] => 1 ) [2025-02-01 22: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-01 19:09:05' and `end` < '2025-02-01 22: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-01 22:09:18] Production.INFO: count ==1363 [2025-02-01 22:09:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:09:05 - End Time 2025-02-01 22:09:05 [2025-02-01 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381299', 'tblTempUsageDetail_20' ) start [2025-02-01 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381299', 'tblTempUsageDetail_20' ) end [2025-02-01 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381299', 'tblTempVendorCDR_20' ) start [2025-02-01 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381299', 'tblTempVendorCDR_20' ) end [2025-02-01 22:09:18] Production.INFO: ProcessCDR(1,14381299,1,1,2) [2025-02-01 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381299', 'tblTempUsageDetail_20' ) start [2025-02-01 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381299', 'tblTempUsageDetail_20' ) end [2025-02-01 22:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:09:23] Production.INFO: ==26144== Releasing lock... [2025-02-01 22:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:09:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-01 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:10:06 [end_date_ymd] => 2025-02-01 22:10:06 [RateCDR] => 1 ) [2025-02-01 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 19:10:06' and `end` < '2025-02-01 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 22:10:19] Production.INFO: count ==1359 [2025-02-01 22:10:19] Production.ERROR: pbx CDR StartTime 2025-02-01 19:10:06 - End Time 2025-02-01 22:10:06 [2025-02-01 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381305', 'tblTempUsageDetail_20' ) start [2025-02-01 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381305', 'tblTempUsageDetail_20' ) end [2025-02-01 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381305', 'tblTempVendorCDR_20' ) start [2025-02-01 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381305', 'tblTempVendorCDR_20' ) end [2025-02-01 22:10:19] Production.INFO: ProcessCDR(1,14381305,1,1,2) [2025-02-01 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381305', 'tblTempUsageDetail_20' ) start [2025-02-01 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381305', 'tblTempUsageDetail_20' ) end [2025-02-01 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:10:22] Production.INFO: ==26227== Releasing lock... [2025-02-01 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:10:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-01 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:11:05 [end_date_ymd] => 2025-02-01 22:11:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:11:05' and `end` < '2025-02-01 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-01 22:11:18] Production.INFO: count ==1312 [2025-02-01 22:11:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:11:05 - End Time 2025-02-01 22:11:05 [2025-02-01 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381310', 'tblTempUsageDetail_20' ) start [2025-02-01 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381310', 'tblTempUsageDetail_20' ) end [2025-02-01 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381310', 'tblTempVendorCDR_20' ) start [2025-02-01 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381310', 'tblTempVendorCDR_20' ) end [2025-02-01 22:11:18] Production.INFO: ProcessCDR(1,14381310,1,1,2) [2025-02-01 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381310', 'tblTempUsageDetail_20' ) start [2025-02-01 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381310', 'tblTempUsageDetail_20' ) end [2025-02-01 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:11:23] Production.INFO: ==26317== Releasing lock... [2025-02-01 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:11:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-01 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:12:06 [end_date_ymd] => 2025-02-01 22:12:06 [RateCDR] => 1 ) [2025-02-01 22: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-01 19:12:06' and `end` < '2025-02-01 22: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-01 22:12:20] Production.INFO: count ==1311 [2025-02-01 22:12:20] Production.ERROR: pbx CDR StartTime 2025-02-01 19:12:06 - End Time 2025-02-01 22:12:06 [2025-02-01 22:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381315', 'tblTempUsageDetail_20' ) start [2025-02-01 22:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381315', 'tblTempUsageDetail_20' ) end [2025-02-01 22:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381315', 'tblTempVendorCDR_20' ) start [2025-02-01 22:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381315', 'tblTempVendorCDR_20' ) end [2025-02-01 22:12:20] Production.INFO: ProcessCDR(1,14381315,1,1,2) [2025-02-01 22:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381315', 'tblTempUsageDetail_20' ) start [2025-02-01 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381315', 'tblTempUsageDetail_20' ) end [2025-02-01 22:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:12:23] Production.INFO: ==26399== Releasing lock... [2025-02-01 22:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:12:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-01 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:13:05 [end_date_ymd] => 2025-02-01 22:13:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:13:05' and `end` < '2025-02-01 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-01 22:13:18] Production.INFO: count ==1306 [2025-02-01 22:13:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:13:05 - End Time 2025-02-01 22:13:05 [2025-02-01 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381320', 'tblTempUsageDetail_20' ) start [2025-02-01 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381320', 'tblTempUsageDetail_20' ) end [2025-02-01 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381320', 'tblTempVendorCDR_20' ) start [2025-02-01 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381320', 'tblTempVendorCDR_20' ) end [2025-02-01 22:13:18] Production.INFO: ProcessCDR(1,14381320,1,1,2) [2025-02-01 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381320', 'tblTempUsageDetail_20' ) start [2025-02-01 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381320', 'tblTempUsageDetail_20' ) end [2025-02-01 22:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:13:23] Production.INFO: ==26476== Releasing lock... [2025-02-01 22:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:13:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-01 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:14:05 [end_date_ymd] => 2025-02-01 22:14:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:14:05' and `end` < '2025-02-01 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-01 22:14:18] Production.INFO: count ==1298 [2025-02-01 22:14:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:14:05 - End Time 2025-02-01 22:14:05 [2025-02-01 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381325', 'tblTempUsageDetail_20' ) start [2025-02-01 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381325', 'tblTempUsageDetail_20' ) end [2025-02-01 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381325', 'tblTempVendorCDR_20' ) start [2025-02-01 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381325', 'tblTempVendorCDR_20' ) end [2025-02-01 22:14:19] Production.INFO: ProcessCDR(1,14381325,1,1,2) [2025-02-01 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381325', 'tblTempUsageDetail_20' ) start [2025-02-01 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381325', 'tblTempUsageDetail_20' ) end [2025-02-01 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:14:22] Production.INFO: ==26564== Releasing lock... [2025-02-01 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:14:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-01 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:15:05 [end_date_ymd] => 2025-02-01 22:15:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:15:05' and `end` < '2025-02-01 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-01 22:15:18] Production.INFO: count ==1295 [2025-02-01 22:15:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:15:05 - End Time 2025-02-01 22:15:05 [2025-02-01 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381330', 'tblTempUsageDetail_20' ) start [2025-02-01 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381330', 'tblTempUsageDetail_20' ) end [2025-02-01 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381330', 'tblTempVendorCDR_20' ) start [2025-02-01 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381330', 'tblTempVendorCDR_20' ) end [2025-02-01 22:15:18] Production.INFO: ProcessCDR(1,14381330,1,1,2) [2025-02-01 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381330', 'tblTempUsageDetail_20' ) start [2025-02-01 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381330', 'tblTempUsageDetail_20' ) end [2025-02-01 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:15:21] Production.INFO: ==26643== Releasing lock... [2025-02-01 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:15:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-01 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:16:05 [end_date_ymd] => 2025-02-01 22:16:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:16:05' and `end` < '2025-02-01 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-01 22:16:18] Production.INFO: count ==1293 [2025-02-01 22:16:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:16:05 - End Time 2025-02-01 22:16:05 [2025-02-01 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381335', 'tblTempUsageDetail_20' ) start [2025-02-01 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381335', 'tblTempUsageDetail_20' ) end [2025-02-01 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381335', 'tblTempVendorCDR_20' ) start [2025-02-01 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381335', 'tblTempVendorCDR_20' ) end [2025-02-01 22:16:18] Production.INFO: ProcessCDR(1,14381335,1,1,2) [2025-02-01 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381335', 'tblTempUsageDetail_20' ) start [2025-02-01 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381335', 'tblTempUsageDetail_20' ) end [2025-02-01 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:16:21] Production.INFO: ==26723== Releasing lock... [2025-02-01 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:16:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-01 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:17:05 [end_date_ymd] => 2025-02-01 22:17:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:17:05' and `end` < '2025-02-01 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-01 22:17:19] Production.INFO: count ==1290 [2025-02-01 22:17:19] Production.ERROR: pbx CDR StartTime 2025-02-01 19:17:05 - End Time 2025-02-01 22:17:05 [2025-02-01 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381340', 'tblTempUsageDetail_20' ) start [2025-02-01 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381340', 'tblTempUsageDetail_20' ) end [2025-02-01 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381340', 'tblTempVendorCDR_20' ) start [2025-02-01 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381340', 'tblTempVendorCDR_20' ) end [2025-02-01 22:17:19] Production.INFO: ProcessCDR(1,14381340,1,1,2) [2025-02-01 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381340', 'tblTempUsageDetail_20' ) start [2025-02-01 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381340', 'tblTempUsageDetail_20' ) end [2025-02-01 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:17:23] Production.INFO: ==26845== Releasing lock... [2025-02-01 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:17:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-01 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:18:05 [end_date_ymd] => 2025-02-01 22:18:05 [RateCDR] => 1 ) [2025-02-01 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 19:18:05' and `end` < '2025-02-01 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 22:18:18] Production.INFO: count ==1282 [2025-02-01 22:18:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:18:05 - End Time 2025-02-01 22:18:05 [2025-02-01 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381341', 'tblTempUsageDetail_20' ) start [2025-02-01 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381341', 'tblTempUsageDetail_20' ) end [2025-02-01 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381341', 'tblTempVendorCDR_20' ) start [2025-02-01 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381341', 'tblTempVendorCDR_20' ) end [2025-02-01 22:18:18] Production.INFO: ProcessCDR(1,14381341,1,1,2) [2025-02-01 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381341', 'tblTempUsageDetail_20' ) start [2025-02-01 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381341', 'tblTempUsageDetail_20' ) end [2025-02-01 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:18:22] Production.INFO: ==26924== Releasing lock... [2025-02-01 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:18:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-01 22:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:19:04 [end_date_ymd] => 2025-02-01 22:19:04 [RateCDR] => 1 ) [2025-02-01 22:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 19:19:04' and `end` < '2025-02-01 22:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 22:19:17] Production.INFO: count ==1281 [2025-02-01 22:19:17] Production.ERROR: pbx CDR StartTime 2025-02-01 19:19:04 - End Time 2025-02-01 22:19:04 [2025-02-01 22:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381350', 'tblTempUsageDetail_20' ) start [2025-02-01 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381350', 'tblTempUsageDetail_20' ) end [2025-02-01 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381350', 'tblTempVendorCDR_20' ) start [2025-02-01 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381350', 'tblTempVendorCDR_20' ) end [2025-02-01 22:19:17] Production.INFO: ProcessCDR(1,14381350,1,1,2) [2025-02-01 22:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381350', 'tblTempUsageDetail_20' ) start [2025-02-01 22:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381350', 'tblTempUsageDetail_20' ) end [2025-02-01 22:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:19:20] Production.INFO: ==27000== Releasing lock... [2025-02-01 22:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:19:20] Production.INFO: 37.25 MB #Memory Used# [2025-02-01 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:20:06 [end_date_ymd] => 2025-02-01 22:20:06 [RateCDR] => 1 ) [2025-02-01 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-01 19:20:06' and `end` < '2025-02-01 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-01 22:20:18] Production.INFO: count ==1280 [2025-02-01 22:20:19] Production.ERROR: pbx CDR StartTime 2025-02-01 19:20:06 - End Time 2025-02-01 22:20:06 [2025-02-01 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381356', 'tblTempUsageDetail_20' ) start [2025-02-01 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381356', 'tblTempUsageDetail_20' ) end [2025-02-01 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381356', 'tblTempVendorCDR_20' ) start [2025-02-01 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381356', 'tblTempVendorCDR_20' ) end [2025-02-01 22:20:19] Production.INFO: ProcessCDR(1,14381356,1,1,2) [2025-02-01 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381356', 'tblTempUsageDetail_20' ) start [2025-02-01 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381356', 'tblTempUsageDetail_20' ) end [2025-02-01 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:20:22] Production.INFO: ==27082== Releasing lock... [2025-02-01 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:20:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-01 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:21:05 [end_date_ymd] => 2025-02-01 22:21:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:21:05' and `end` < '2025-02-01 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-01 22:21:18] Production.INFO: count ==1242 [2025-02-01 22:21:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:21:05 - End Time 2025-02-01 22:21:05 [2025-02-01 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381361', 'tblTempUsageDetail_20' ) start [2025-02-01 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381361', 'tblTempUsageDetail_20' ) end [2025-02-01 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381361', 'tblTempVendorCDR_20' ) start [2025-02-01 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381361', 'tblTempVendorCDR_20' ) end [2025-02-01 22:21:18] Production.INFO: ProcessCDR(1,14381361,1,1,2) [2025-02-01 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381361', 'tblTempUsageDetail_20' ) start [2025-02-01 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381361', 'tblTempUsageDetail_20' ) end [2025-02-01 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:21:22] Production.INFO: ==27167== Releasing lock... [2025-02-01 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:21:22] Production.INFO: 37 MB #Memory Used# [2025-02-01 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:22:05 [end_date_ymd] => 2025-02-01 22:22:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:22:05' and `end` < '2025-02-01 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-01 22:22:18] Production.INFO: count ==1242 [2025-02-01 22:22:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:22:05 - End Time 2025-02-01 22:22:05 [2025-02-01 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381366', 'tblTempUsageDetail_20' ) start [2025-02-01 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381366', 'tblTempUsageDetail_20' ) end [2025-02-01 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381366', 'tblTempVendorCDR_20' ) start [2025-02-01 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381366', 'tblTempVendorCDR_20' ) end [2025-02-01 22:22:18] Production.INFO: ProcessCDR(1,14381366,1,1,2) [2025-02-01 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381366', 'tblTempUsageDetail_20' ) start [2025-02-01 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381366', 'tblTempUsageDetail_20' ) end [2025-02-01 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:22:21] Production.INFO: ==27249== Releasing lock... [2025-02-01 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:22:21] Production.INFO: 37 MB #Memory Used# [2025-02-01 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:23:05 [end_date_ymd] => 2025-02-01 22:23:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:23:05' and `end` < '2025-02-01 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-01 22:23:18] Production.INFO: count ==1241 [2025-02-01 22:23:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:23:05 - End Time 2025-02-01 22:23:05 [2025-02-01 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381371', 'tblTempUsageDetail_20' ) start [2025-02-01 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381371', 'tblTempUsageDetail_20' ) end [2025-02-01 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381371', 'tblTempVendorCDR_20' ) start [2025-02-01 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381371', 'tblTempVendorCDR_20' ) end [2025-02-01 22:23:18] Production.INFO: ProcessCDR(1,14381371,1,1,2) [2025-02-01 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381371', 'tblTempUsageDetail_20' ) start [2025-02-01 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381371', 'tblTempUsageDetail_20' ) end [2025-02-01 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:23:21] Production.INFO: ==27329== Releasing lock... [2025-02-01 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:23:21] Production.INFO: 37 MB #Memory Used# [2025-02-01 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:24:05 [end_date_ymd] => 2025-02-01 22:24:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:24:05' and `end` < '2025-02-01 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-01 22:24:18] Production.INFO: count ==1238 [2025-02-01 22:24:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:24:05 - End Time 2025-02-01 22:24:05 [2025-02-01 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381376', 'tblTempUsageDetail_20' ) start [2025-02-01 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381376', 'tblTempUsageDetail_20' ) end [2025-02-01 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381376', 'tblTempVendorCDR_20' ) start [2025-02-01 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381376', 'tblTempVendorCDR_20' ) end [2025-02-01 22:24:18] Production.INFO: ProcessCDR(1,14381376,1,1,2) [2025-02-01 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381376', 'tblTempUsageDetail_20' ) start [2025-02-01 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381376', 'tblTempUsageDetail_20' ) end [2025-02-01 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:24:21] Production.INFO: ==27409== Releasing lock... [2025-02-01 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:24:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-01 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:25:06 [end_date_ymd] => 2025-02-01 22:25:06 [RateCDR] => 1 ) [2025-02-01 22: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-01 19:25:06' and `end` < '2025-02-01 22: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-01 22:25:18] Production.INFO: count ==1242 [2025-02-01 22:25:19] Production.ERROR: pbx CDR StartTime 2025-02-01 19:25:06 - End Time 2025-02-01 22:25:06 [2025-02-01 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381381', 'tblTempUsageDetail_20' ) start [2025-02-01 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381381', 'tblTempUsageDetail_20' ) end [2025-02-01 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381381', 'tblTempVendorCDR_20' ) start [2025-02-01 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381381', 'tblTempVendorCDR_20' ) end [2025-02-01 22:25:19] Production.INFO: ProcessCDR(1,14381381,1,1,2) [2025-02-01 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381381', 'tblTempUsageDetail_20' ) start [2025-02-01 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381381', 'tblTempUsageDetail_20' ) end [2025-02-01 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:25:22] Production.INFO: ==27484== Releasing lock... [2025-02-01 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:25:22] Production.INFO: 37 MB #Memory Used# [2025-02-01 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:26:04 [end_date_ymd] => 2025-02-01 22:26:04 [RateCDR] => 1 ) [2025-02-01 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-01 19:26:04' and `end` < '2025-02-01 22:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 22:26:17] Production.INFO: count ==1242 [2025-02-01 22:26:17] Production.ERROR: pbx CDR StartTime 2025-02-01 19:26:04 - End Time 2025-02-01 22:26:04 [2025-02-01 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381386', 'tblTempUsageDetail_20' ) start [2025-02-01 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381386', 'tblTempUsageDetail_20' ) end [2025-02-01 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381386', 'tblTempVendorCDR_20' ) start [2025-02-01 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381386', 'tblTempVendorCDR_20' ) end [2025-02-01 22:26:17] Production.INFO: ProcessCDR(1,14381386,1,1,2) [2025-02-01 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381386', 'tblTempUsageDetail_20' ) start [2025-02-01 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381386', 'tblTempUsageDetail_20' ) end [2025-02-01 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:26:22] Production.INFO: ==27565== Releasing lock... [2025-02-01 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:26:22] Production.INFO: 37 MB #Memory Used# [2025-02-01 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:27:05 [end_date_ymd] => 2025-02-01 22:27:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:27:05' and `end` < '2025-02-01 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-01 22:27:18] Production.INFO: count ==1225 [2025-02-01 22:27:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:27:05 - End Time 2025-02-01 22:27:05 [2025-02-01 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381391', 'tblTempUsageDetail_20' ) start [2025-02-01 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381391', 'tblTempUsageDetail_20' ) end [2025-02-01 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381391', 'tblTempVendorCDR_20' ) start [2025-02-01 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381391', 'tblTempVendorCDR_20' ) end [2025-02-01 22:27:18] Production.INFO: ProcessCDR(1,14381391,1,1,2) [2025-02-01 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381391', 'tblTempUsageDetail_20' ) start [2025-02-01 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381391', 'tblTempUsageDetail_20' ) end [2025-02-01 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:27:21] Production.INFO: ==27644== Releasing lock... [2025-02-01 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:27:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-01 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:28:05 [end_date_ymd] => 2025-02-01 22:28:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:28:05' and `end` < '2025-02-01 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-01 22:28:18] Production.INFO: count ==1224 [2025-02-01 22:28:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:28:05 - End Time 2025-02-01 22:28:05 [2025-02-01 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381396', 'tblTempUsageDetail_20' ) start [2025-02-01 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381396', 'tblTempUsageDetail_20' ) end [2025-02-01 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381396', 'tblTempVendorCDR_20' ) start [2025-02-01 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381396', 'tblTempVendorCDR_20' ) end [2025-02-01 22:28:18] Production.INFO: ProcessCDR(1,14381396,1,1,2) [2025-02-01 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381396', 'tblTempUsageDetail_20' ) start [2025-02-01 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381396', 'tblTempUsageDetail_20' ) end [2025-02-01 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:28:21] Production.INFO: ==27729== Releasing lock... [2025-02-01 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:28:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-01 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:29:05 [end_date_ymd] => 2025-02-01 22:29:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:29:05' and `end` < '2025-02-01 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-01 22:29:18] Production.INFO: count ==1223 [2025-02-01 22:29:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:29:05 - End Time 2025-02-01 22:29:05 [2025-02-01 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381401', 'tblTempUsageDetail_20' ) start [2025-02-01 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381401', 'tblTempUsageDetail_20' ) end [2025-02-01 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381401', 'tblTempVendorCDR_20' ) start [2025-02-01 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381401', 'tblTempVendorCDR_20' ) end [2025-02-01 22:29:18] Production.INFO: ProcessCDR(1,14381401,1,1,2) [2025-02-01 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381401', 'tblTempUsageDetail_20' ) start [2025-02-01 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381401', 'tblTempUsageDetail_20' ) end [2025-02-01 22:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:29:23] Production.INFO: ==27807== Releasing lock... [2025-02-01 22:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:29:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-01 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:30:06 [end_date_ymd] => 2025-02-01 22:30:06 [RateCDR] => 1 ) [2025-02-01 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-01 19:30:06' and `end` < '2025-02-01 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-01 22:30:19] Production.INFO: count ==1222 [2025-02-01 22:30:19] Production.ERROR: pbx CDR StartTime 2025-02-01 19:30:06 - End Time 2025-02-01 22:30:06 [2025-02-01 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381407', 'tblTempUsageDetail_20' ) start [2025-02-01 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381407', 'tblTempUsageDetail_20' ) end [2025-02-01 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381407', 'tblTempVendorCDR_20' ) start [2025-02-01 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381407', 'tblTempVendorCDR_20' ) end [2025-02-01 22:30:19] Production.INFO: ProcessCDR(1,14381407,1,1,2) [2025-02-01 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381407', 'tblTempUsageDetail_20' ) start [2025-02-01 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381407', 'tblTempUsageDetail_20' ) end [2025-02-01 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:30:22] Production.INFO: ==27892== Releasing lock... [2025-02-01 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:30:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-01 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:31:05 [end_date_ymd] => 2025-02-01 22:31:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:31:05' and `end` < '2025-02-01 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-01 22:31:18] Production.INFO: count ==1220 [2025-02-01 22:31:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:31:05 - End Time 2025-02-01 22:31:05 [2025-02-01 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381412', 'tblTempUsageDetail_20' ) start [2025-02-01 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381412', 'tblTempUsageDetail_20' ) end [2025-02-01 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381412', 'tblTempVendorCDR_20' ) start [2025-02-01 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381412', 'tblTempVendorCDR_20' ) end [2025-02-01 22:31:18] Production.INFO: ProcessCDR(1,14381412,1,1,2) [2025-02-01 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381412', 'tblTempUsageDetail_20' ) start [2025-02-01 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381412', 'tblTempUsageDetail_20' ) end [2025-02-01 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:31:21] Production.INFO: ==27972== Releasing lock... [2025-02-01 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:31:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-01 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:32:05 [end_date_ymd] => 2025-02-01 22:32:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:32:05' and `end` < '2025-02-01 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-01 22:32:18] Production.INFO: count ==1216 [2025-02-01 22:32:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:32:05 - End Time 2025-02-01 22:32:05 [2025-02-01 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381417', 'tblTempUsageDetail_20' ) start [2025-02-01 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381417', 'tblTempUsageDetail_20' ) end [2025-02-01 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381417', 'tblTempVendorCDR_20' ) start [2025-02-01 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381417', 'tblTempVendorCDR_20' ) end [2025-02-01 22:32:18] Production.INFO: ProcessCDR(1,14381417,1,1,2) [2025-02-01 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381417', 'tblTempUsageDetail_20' ) start [2025-02-01 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381417', 'tblTempUsageDetail_20' ) end [2025-02-01 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:32:21] Production.INFO: ==28051== Releasing lock... [2025-02-01 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:32:21] Production.INFO: 37 MB #Memory Used# [2025-02-01 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:33:05 [end_date_ymd] => 2025-02-01 22:33:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:33:05' and `end` < '2025-02-01 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-01 22:33:19] Production.INFO: count ==1202 [2025-02-01 22:33:19] Production.ERROR: pbx CDR StartTime 2025-02-01 19:33:05 - End Time 2025-02-01 22:33:05 [2025-02-01 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381422', 'tblTempUsageDetail_20' ) start [2025-02-01 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381422', 'tblTempUsageDetail_20' ) end [2025-02-01 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381422', 'tblTempVendorCDR_20' ) start [2025-02-01 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381422', 'tblTempVendorCDR_20' ) end [2025-02-01 22:33:19] Production.INFO: ProcessCDR(1,14381422,1,1,2) [2025-02-01 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381422', 'tblTempUsageDetail_20' ) start [2025-02-01 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381422', 'tblTempUsageDetail_20' ) end [2025-02-01 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:33:22] Production.INFO: ==28175== Releasing lock... [2025-02-01 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:33:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-01 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:34:05 [end_date_ymd] => 2025-02-01 22:34:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:34:05' and `end` < '2025-02-01 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-01 22:34:18] Production.INFO: count ==1201 [2025-02-01 22:34:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:34:05 - End Time 2025-02-01 22:34:05 [2025-02-01 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381427', 'tblTempUsageDetail_20' ) start [2025-02-01 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381427', 'tblTempUsageDetail_20' ) end [2025-02-01 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381427', 'tblTempVendorCDR_20' ) start [2025-02-01 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381427', 'tblTempVendorCDR_20' ) end [2025-02-01 22:34:18] Production.INFO: ProcessCDR(1,14381427,1,1,2) [2025-02-01 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381427', 'tblTempUsageDetail_20' ) start [2025-02-01 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381427', 'tblTempUsageDetail_20' ) end [2025-02-01 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:34:21] Production.INFO: ==28257== Releasing lock... [2025-02-01 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:34:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-01 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:35:05 [end_date_ymd] => 2025-02-01 22:35:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:35:05' and `end` < '2025-02-01 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-01 22:35:18] Production.INFO: count ==1203 [2025-02-01 22:35:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:35:05 - End Time 2025-02-01 22:35:05 [2025-02-01 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381432', 'tblTempUsageDetail_20' ) start [2025-02-01 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381432', 'tblTempUsageDetail_20' ) end [2025-02-01 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381432', 'tblTempVendorCDR_20' ) start [2025-02-01 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381432', 'tblTempVendorCDR_20' ) end [2025-02-01 22:35:18] Production.INFO: ProcessCDR(1,14381432,1,1,2) [2025-02-01 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381432', 'tblTempUsageDetail_20' ) start [2025-02-01 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381432', 'tblTempUsageDetail_20' ) end [2025-02-01 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:35:21] Production.INFO: ==28338== Releasing lock... [2025-02-01 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:35:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-01 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:36:05 [end_date_ymd] => 2025-02-01 22:36:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:36:05' and `end` < '2025-02-01 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-01 22:36:18] Production.INFO: count ==1203 [2025-02-01 22:36:19] Production.ERROR: pbx CDR StartTime 2025-02-01 19:36:05 - End Time 2025-02-01 22:36:05 [2025-02-01 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381437', 'tblTempUsageDetail_20' ) start [2025-02-01 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381437', 'tblTempUsageDetail_20' ) end [2025-02-01 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381437', 'tblTempVendorCDR_20' ) start [2025-02-01 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381437', 'tblTempVendorCDR_20' ) end [2025-02-01 22:36:19] Production.INFO: ProcessCDR(1,14381437,1,1,2) [2025-02-01 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381437', 'tblTempUsageDetail_20' ) start [2025-02-01 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381437', 'tblTempUsageDetail_20' ) end [2025-02-01 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:36:22] Production.INFO: ==28423== Releasing lock... [2025-02-01 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:36:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-01 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:37:05 [end_date_ymd] => 2025-02-01 22:37:05 [RateCDR] => 1 ) [2025-02-01 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 19:37:05' and `end` < '2025-02-01 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 22:37:18] Production.INFO: count ==1205 [2025-02-01 22:37:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:37:05 - End Time 2025-02-01 22:37:05 [2025-02-01 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381442', 'tblTempUsageDetail_20' ) start [2025-02-01 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381442', 'tblTempUsageDetail_20' ) end [2025-02-01 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381442', 'tblTempVendorCDR_20' ) start [2025-02-01 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381442', 'tblTempVendorCDR_20' ) end [2025-02-01 22:37:18] Production.INFO: ProcessCDR(1,14381442,1,1,2) [2025-02-01 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381442', 'tblTempUsageDetail_20' ) start [2025-02-01 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381442', 'tblTempUsageDetail_20' ) end [2025-02-01 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:37:21] Production.INFO: ==28503== Releasing lock... [2025-02-01 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:37:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-01 22:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:38:06 [end_date_ymd] => 2025-02-01 22:38:06 [RateCDR] => 1 ) [2025-02-01 22: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-01 19:38:06' and `end` < '2025-02-01 22: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-01 22:38:19] Production.INFO: count ==1205 [2025-02-01 22:38:19] Production.ERROR: pbx CDR StartTime 2025-02-01 19:38:06 - End Time 2025-02-01 22:38:06 [2025-02-01 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381447', 'tblTempUsageDetail_20' ) start [2025-02-01 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381447', 'tblTempUsageDetail_20' ) end [2025-02-01 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381447', 'tblTempVendorCDR_20' ) start [2025-02-01 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381447', 'tblTempVendorCDR_20' ) end [2025-02-01 22:38:19] Production.INFO: ProcessCDR(1,14381447,1,1,2) [2025-02-01 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381447', 'tblTempUsageDetail_20' ) start [2025-02-01 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381447', 'tblTempUsageDetail_20' ) end [2025-02-01 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:38:23] Production.INFO: ==28587== Releasing lock... [2025-02-01 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:38:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-01 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:39:05 [end_date_ymd] => 2025-02-01 22:39:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:39:05' and `end` < '2025-02-01 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-01 22:39:18] Production.INFO: count ==1201 [2025-02-01 22:39:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:39:05 - End Time 2025-02-01 22:39:05 [2025-02-01 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381452', 'tblTempUsageDetail_20' ) start [2025-02-01 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381452', 'tblTempUsageDetail_20' ) end [2025-02-01 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381452', 'tblTempVendorCDR_20' ) start [2025-02-01 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381452', 'tblTempVendorCDR_20' ) end [2025-02-01 22:39:18] Production.INFO: ProcessCDR(1,14381452,1,1,2) [2025-02-01 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381452', 'tblTempUsageDetail_20' ) start [2025-02-01 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381452', 'tblTempUsageDetail_20' ) end [2025-02-01 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:39:21] Production.INFO: ==28664== Releasing lock... [2025-02-01 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:39:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-01 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:40:06 [end_date_ymd] => 2025-02-01 22:40:06 [RateCDR] => 1 ) [2025-02-01 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-01 19:40:06' and `end` < '2025-02-01 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-01 22:40:19] Production.INFO: count ==1199 [2025-02-01 22:40:19] Production.ERROR: pbx CDR StartTime 2025-02-01 19:40:06 - End Time 2025-02-01 22:40:06 [2025-02-01 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381458', 'tblTempUsageDetail_20' ) start [2025-02-01 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381458', 'tblTempUsageDetail_20' ) end [2025-02-01 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381458', 'tblTempVendorCDR_20' ) start [2025-02-01 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381458', 'tblTempVendorCDR_20' ) end [2025-02-01 22:40:19] Production.INFO: ProcessCDR(1,14381458,1,1,2) [2025-02-01 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381458', 'tblTempUsageDetail_20' ) start [2025-02-01 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381458', 'tblTempUsageDetail_20' ) end [2025-02-01 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:40:22] Production.INFO: ==28746== Releasing lock... [2025-02-01 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:40:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-01 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:41:05 [end_date_ymd] => 2025-02-01 22:41:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:41:05' and `end` < '2025-02-01 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-01 22:41:18] Production.INFO: count ==1174 [2025-02-01 22:41:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:41:05 - End Time 2025-02-01 22:41:05 [2025-02-01 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381463', 'tblTempUsageDetail_20' ) start [2025-02-01 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381463', 'tblTempUsageDetail_20' ) end [2025-02-01 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381463', 'tblTempVendorCDR_20' ) start [2025-02-01 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381463', 'tblTempVendorCDR_20' ) end [2025-02-01 22:41:18] Production.INFO: ProcessCDR(1,14381463,1,1,2) [2025-02-01 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381463', 'tblTempUsageDetail_20' ) start [2025-02-01 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381463', 'tblTempUsageDetail_20' ) end [2025-02-01 22:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:41:23] Production.INFO: ==28825== Releasing lock... [2025-02-01 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:41:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-01 22:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:42:06 [end_date_ymd] => 2025-02-01 22:42:06 [RateCDR] => 1 ) [2025-02-01 22:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 19:42:06' and `end` < '2025-02-01 22:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 22:42:19] Production.INFO: count ==1167 [2025-02-01 22:42:19] Production.ERROR: pbx CDR StartTime 2025-02-01 19:42:06 - End Time 2025-02-01 22:42:06 [2025-02-01 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381468', 'tblTempUsageDetail_20' ) start [2025-02-01 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381468', 'tblTempUsageDetail_20' ) end [2025-02-01 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381468', 'tblTempVendorCDR_20' ) start [2025-02-01 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381468', 'tblTempVendorCDR_20' ) end [2025-02-01 22:42:19] Production.INFO: ProcessCDR(1,14381468,1,1,2) [2025-02-01 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381468', 'tblTempUsageDetail_20' ) start [2025-02-01 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381468', 'tblTempUsageDetail_20' ) end [2025-02-01 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:42:22] Production.INFO: ==28902== Releasing lock... [2025-02-01 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:42:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-01 22:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:43:04 [end_date_ymd] => 2025-02-01 22:43:04 [RateCDR] => 1 ) [2025-02-01 22:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 19:43:04' and `end` < '2025-02-01 22:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 22:43:17] Production.INFO: count ==1161 [2025-02-01 22:43:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:43:04 - End Time 2025-02-01 22:43:04 [2025-02-01 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381473', 'tblTempUsageDetail_20' ) start [2025-02-01 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381473', 'tblTempUsageDetail_20' ) end [2025-02-01 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381473', 'tblTempVendorCDR_20' ) start [2025-02-01 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381473', 'tblTempVendorCDR_20' ) end [2025-02-01 22:43:18] Production.INFO: ProcessCDR(1,14381473,1,1,2) [2025-02-01 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381473', 'tblTempUsageDetail_20' ) start [2025-02-01 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381473', 'tblTempUsageDetail_20' ) end [2025-02-01 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:43:21] Production.INFO: ==28975== Releasing lock... [2025-02-01 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:43:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-01 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:44:05 [end_date_ymd] => 2025-02-01 22:44:05 [RateCDR] => 1 ) [2025-02-01 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 19:44:05' and `end` < '2025-02-01 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 22:44:18] Production.INFO: count ==1161 [2025-02-01 22:44:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:44:05 - End Time 2025-02-01 22:44:05 [2025-02-01 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381478', 'tblTempUsageDetail_20' ) start [2025-02-01 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381478', 'tblTempUsageDetail_20' ) end [2025-02-01 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381478', 'tblTempVendorCDR_20' ) start [2025-02-01 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381478', 'tblTempVendorCDR_20' ) end [2025-02-01 22:44:18] Production.INFO: ProcessCDR(1,14381478,1,1,2) [2025-02-01 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381478', 'tblTempUsageDetail_20' ) start [2025-02-01 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381478', 'tblTempUsageDetail_20' ) end [2025-02-01 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:44:21] Production.INFO: ==29047== Releasing lock... [2025-02-01 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:44:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-01 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:45:05 [end_date_ymd] => 2025-02-01 22:45:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:45:05' and `end` < '2025-02-01 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-01 22:45:18] Production.INFO: count ==1161 [2025-02-01 22:45:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:45:05 - End Time 2025-02-01 22:45:05 [2025-02-01 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381483', 'tblTempUsageDetail_20' ) start [2025-02-01 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381483', 'tblTempUsageDetail_20' ) end [2025-02-01 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381483', 'tblTempVendorCDR_20' ) start [2025-02-01 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381483', 'tblTempVendorCDR_20' ) end [2025-02-01 22:45:18] Production.INFO: ProcessCDR(1,14381483,1,1,2) [2025-02-01 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381483', 'tblTempUsageDetail_20' ) start [2025-02-01 22:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381483', 'tblTempUsageDetail_20' ) end [2025-02-01 22:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:45:23] Production.INFO: ==29122== Releasing lock... [2025-02-01 22:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:45:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-01 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:46:05 [end_date_ymd] => 2025-02-01 22:46:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:46:05' and `end` < '2025-02-01 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-01 22:46:18] Production.INFO: count ==1164 [2025-02-01 22:46:19] Production.ERROR: pbx CDR StartTime 2025-02-01 19:46:05 - End Time 2025-02-01 22:46:05 [2025-02-01 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381488', 'tblTempUsageDetail_20' ) start [2025-02-01 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381488', 'tblTempUsageDetail_20' ) end [2025-02-01 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381488', 'tblTempVendorCDR_20' ) start [2025-02-01 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381488', 'tblTempVendorCDR_20' ) end [2025-02-01 22:46:19] Production.INFO: ProcessCDR(1,14381488,1,1,2) [2025-02-01 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381488', 'tblTempUsageDetail_20' ) start [2025-02-01 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381488', 'tblTempUsageDetail_20' ) end [2025-02-01 22:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:46:23] Production.INFO: ==29194== Releasing lock... [2025-02-01 22:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:46:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-01 22:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:47:06 [end_date_ymd] => 2025-02-01 22:47:06 [RateCDR] => 1 ) [2025-02-01 22: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-01 19:47:06' and `end` < '2025-02-01 22: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-01 22:47:19] Production.INFO: count ==1162 [2025-02-01 22:47:20] Production.ERROR: pbx CDR StartTime 2025-02-01 19:47:06 - End Time 2025-02-01 22:47:06 [2025-02-01 22:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381493', 'tblTempUsageDetail_20' ) start [2025-02-01 22:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381493', 'tblTempUsageDetail_20' ) end [2025-02-01 22:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381493', 'tblTempVendorCDR_20' ) start [2025-02-01 22:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381493', 'tblTempVendorCDR_20' ) end [2025-02-01 22:47:20] Production.INFO: ProcessCDR(1,14381493,1,1,2) [2025-02-01 22:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381493', 'tblTempUsageDetail_20' ) start [2025-02-01 22:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381493', 'tblTempUsageDetail_20' ) end [2025-02-01 22:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:47:24] Production.INFO: ==29268== Releasing lock... [2025-02-01 22:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:47:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-01 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:48:05 [end_date_ymd] => 2025-02-01 22:48:05 [RateCDR] => 1 ) [2025-02-01 22: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-01 19:48:05' and `end` < '2025-02-01 22: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-01 22:48:18] Production.INFO: count ==1156 [2025-02-01 22:48:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:48:05 - End Time 2025-02-01 22:48:05 [2025-02-01 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381498', 'tblTempUsageDetail_20' ) start [2025-02-01 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381498', 'tblTempUsageDetail_20' ) end [2025-02-01 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381498', 'tblTempVendorCDR_20' ) start [2025-02-01 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381498', 'tblTempVendorCDR_20' ) end [2025-02-01 22:48:18] Production.INFO: ProcessCDR(1,14381498,1,1,2) [2025-02-01 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381498', 'tblTempUsageDetail_20' ) start [2025-02-01 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381498', 'tblTempUsageDetail_20' ) end [2025-02-01 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:48:21] Production.INFO: ==29376== Releasing lock... [2025-02-01 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:48:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-01 22:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:49:06 [end_date_ymd] => 2025-02-01 22:49:06 [RateCDR] => 1 ) [2025-02-01 22: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-01 19:49:06' and `end` < '2025-02-01 22: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-01 22:49:19] Production.INFO: count ==1155 [2025-02-01 22:49:19] Production.ERROR: pbx CDR StartTime 2025-02-01 19:49:06 - End Time 2025-02-01 22:49:06 [2025-02-01 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381503', 'tblTempUsageDetail_20' ) start [2025-02-01 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381503', 'tblTempUsageDetail_20' ) end [2025-02-01 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381503', 'tblTempVendorCDR_20' ) start [2025-02-01 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381503', 'tblTempVendorCDR_20' ) end [2025-02-01 22:49:19] Production.INFO: ProcessCDR(1,14381503,1,1,2) [2025-02-01 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381503', 'tblTempUsageDetail_20' ) start [2025-02-01 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381503', 'tblTempUsageDetail_20' ) end [2025-02-01 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:49:22] Production.INFO: ==29451== Releasing lock... [2025-02-01 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:49:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-01 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:50:06 [end_date_ymd] => 2025-02-01 22:50:06 [RateCDR] => 1 ) [2025-02-01 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-01 19:50:06' and `end` < '2025-02-01 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-01 22:50:19] Production.INFO: count ==1151 [2025-02-01 22:50:19] Production.ERROR: pbx CDR StartTime 2025-02-01 19:50:06 - End Time 2025-02-01 22:50:06 [2025-02-01 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381508', 'tblTempUsageDetail_20' ) start [2025-02-01 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381508', 'tblTempUsageDetail_20' ) end [2025-02-01 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381508', 'tblTempVendorCDR_20' ) start [2025-02-01 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381508', 'tblTempVendorCDR_20' ) end [2025-02-01 22:50:19] Production.INFO: ProcessCDR(1,14381508,1,1,2) [2025-02-01 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381508', 'tblTempUsageDetail_20' ) start [2025-02-01 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381508', 'tblTempUsageDetail_20' ) end [2025-02-01 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:50:23] Production.INFO: ==29524== Releasing lock... [2025-02-01 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:50:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-01 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:51:04 [end_date_ymd] => 2025-02-01 22:51:04 [RateCDR] => 1 ) [2025-02-01 22:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 19:51:04' and `end` < '2025-02-01 22:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 22:51:17] Production.INFO: count ==1137 [2025-02-01 22:51:17] Production.ERROR: pbx CDR StartTime 2025-02-01 19:51:04 - End Time 2025-02-01 22:51:04 [2025-02-01 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381514', 'tblTempUsageDetail_20' ) start [2025-02-01 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381514', 'tblTempUsageDetail_20' ) end [2025-02-01 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381514', 'tblTempVendorCDR_20' ) start [2025-02-01 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381514', 'tblTempVendorCDR_20' ) end [2025-02-01 22:51:17] Production.INFO: ProcessCDR(1,14381514,1,1,2) [2025-02-01 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381514', 'tblTempUsageDetail_20' ) start [2025-02-01 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381514', 'tblTempUsageDetail_20' ) end [2025-02-01 22:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:51:20] Production.INFO: ==29607== Releasing lock... [2025-02-01 22:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:51:20] Production.INFO: 36 MB #Memory Used# [2025-02-01 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:52:05 [end_date_ymd] => 2025-02-01 22:52:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:52:05' and `end` < '2025-02-01 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-01 22:52:18] Production.INFO: count ==1136 [2025-02-01 22:52:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:52:05 - End Time 2025-02-01 22:52:05 [2025-02-01 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381519', 'tblTempUsageDetail_20' ) start [2025-02-01 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381519', 'tblTempUsageDetail_20' ) end [2025-02-01 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381519', 'tblTempVendorCDR_20' ) start [2025-02-01 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381519', 'tblTempVendorCDR_20' ) end [2025-02-01 22:52:18] Production.INFO: ProcessCDR(1,14381519,1,1,2) [2025-02-01 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381519', 'tblTempUsageDetail_20' ) start [2025-02-01 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381519', 'tblTempUsageDetail_20' ) end [2025-02-01 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:52:21] Production.INFO: ==29679== Releasing lock... [2025-02-01 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:52:21] Production.INFO: 36 MB #Memory Used# [2025-02-01 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:53:05 [end_date_ymd] => 2025-02-01 22:53:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:53:05' and `end` < '2025-02-01 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-01 22:53:20] Production.INFO: count ==1134 [2025-02-01 22:53:20] Production.ERROR: pbx CDR StartTime 2025-02-01 19:53:05 - End Time 2025-02-01 22:53:05 [2025-02-01 22:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381524', 'tblTempUsageDetail_20' ) start [2025-02-01 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381524', 'tblTempUsageDetail_20' ) end [2025-02-01 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381524', 'tblTempVendorCDR_20' ) start [2025-02-01 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381524', 'tblTempVendorCDR_20' ) end [2025-02-01 22:53:20] Production.INFO: ProcessCDR(1,14381524,1,1,2) [2025-02-01 22:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381524', 'tblTempUsageDetail_20' ) start [2025-02-01 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381524', 'tblTempUsageDetail_20' ) end [2025-02-01 22:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:53:23] Production.INFO: ==29762== Releasing lock... [2025-02-01 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:53:23] Production.INFO: 36 MB #Memory Used# [2025-02-01 22:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:54:05 [end_date_ymd] => 2025-02-01 22:54:05 [RateCDR] => 1 ) [2025-02-01 22:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 19:54:05' and `end` < '2025-02-01 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-01 22:54:19] Production.INFO: count ==1133 [2025-02-01 22:54:19] Production.ERROR: pbx CDR StartTime 2025-02-01 19:54:05 - End Time 2025-02-01 22:54:05 [2025-02-01 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381529', 'tblTempUsageDetail_20' ) start [2025-02-01 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381529', 'tblTempUsageDetail_20' ) end [2025-02-01 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381529', 'tblTempVendorCDR_20' ) start [2025-02-01 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381529', 'tblTempVendorCDR_20' ) end [2025-02-01 22:54:19] Production.INFO: ProcessCDR(1,14381529,1,1,2) [2025-02-01 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381529', 'tblTempUsageDetail_20' ) start [2025-02-01 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381529', 'tblTempUsageDetail_20' ) end [2025-02-01 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:54:22] Production.INFO: ==29832== Releasing lock... [2025-02-01 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:54:22] Production.INFO: 36 MB #Memory Used# [2025-02-01 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:55:05 [end_date_ymd] => 2025-02-01 22:55:05 [RateCDR] => 1 ) [2025-02-01 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 19:55:05' and `end` < '2025-02-01 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 22:55:18] Production.INFO: count ==1128 [2025-02-01 22:55:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:55:05 - End Time 2025-02-01 22:55:05 [2025-02-01 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381534', 'tblTempUsageDetail_20' ) start [2025-02-01 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381534', 'tblTempUsageDetail_20' ) end [2025-02-01 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381534', 'tblTempVendorCDR_20' ) start [2025-02-01 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381534', 'tblTempVendorCDR_20' ) end [2025-02-01 22:55:18] Production.INFO: ProcessCDR(1,14381534,1,1,2) [2025-02-01 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381534', 'tblTempUsageDetail_20' ) start [2025-02-01 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381534', 'tblTempUsageDetail_20' ) end [2025-02-01 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:55:21] Production.INFO: ==29904== Releasing lock... [2025-02-01 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:55:21] Production.INFO: 36 MB #Memory Used# [2025-02-01 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:56:05 [end_date_ymd] => 2025-02-01 22:56:05 [RateCDR] => 1 ) [2025-02-01 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 19:56:05' and `end` < '2025-02-01 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-01 22:56:18] Production.INFO: count ==1125 [2025-02-01 22:56:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:56:05 - End Time 2025-02-01 22:56:05 [2025-02-01 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381539', 'tblTempUsageDetail_20' ) start [2025-02-01 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381539', 'tblTempUsageDetail_20' ) end [2025-02-01 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381539', 'tblTempVendorCDR_20' ) start [2025-02-01 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381539', 'tblTempVendorCDR_20' ) end [2025-02-01 22:56:18] Production.INFO: ProcessCDR(1,14381539,1,1,2) [2025-02-01 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381539', 'tblTempUsageDetail_20' ) start [2025-02-01 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381539', 'tblTempUsageDetail_20' ) end [2025-02-01 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:56:21] Production.INFO: ==29974== Releasing lock... [2025-02-01 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:56:21] Production.INFO: 36 MB #Memory Used# [2025-02-01 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:57:05 [end_date_ymd] => 2025-02-01 22:57:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:57:05' and `end` < '2025-02-01 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-01 22:57:18] Production.INFO: count ==1124 [2025-02-01 22:57:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:57:05 - End Time 2025-02-01 22:57:05 [2025-02-01 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381544', 'tblTempUsageDetail_20' ) start [2025-02-01 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381544', 'tblTempUsageDetail_20' ) end [2025-02-01 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381544', 'tblTempVendorCDR_20' ) start [2025-02-01 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381544', 'tblTempVendorCDR_20' ) end [2025-02-01 22:57:18] Production.INFO: ProcessCDR(1,14381544,1,1,2) [2025-02-01 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381544', 'tblTempUsageDetail_20' ) start [2025-02-01 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381544', 'tblTempUsageDetail_20' ) end [2025-02-01 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:57:21] Production.INFO: ==30049== Releasing lock... [2025-02-01 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:57:21] Production.INFO: 36 MB #Memory Used# [2025-02-01 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:58:05 [end_date_ymd] => 2025-02-01 22:58:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:58:05' and `end` < '2025-02-01 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-01 22:58:18] Production.INFO: count ==1116 [2025-02-01 22:58:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:58:05 - End Time 2025-02-01 22:58:05 [2025-02-01 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381549', 'tblTempUsageDetail_20' ) start [2025-02-01 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381549', 'tblTempUsageDetail_20' ) end [2025-02-01 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381549', 'tblTempVendorCDR_20' ) start [2025-02-01 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381549', 'tblTempVendorCDR_20' ) end [2025-02-01 22:58:18] Production.INFO: ProcessCDR(1,14381549,1,1,2) [2025-02-01 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381549', 'tblTempUsageDetail_20' ) start [2025-02-01 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381549', 'tblTempUsageDetail_20' ) end [2025-02-01 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:58:21] Production.INFO: ==30118== Releasing lock... [2025-02-01 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:58:21] Production.INFO: 36 MB #Memory Used# [2025-02-01 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 19:59:05 [end_date_ymd] => 2025-02-01 22:59:05 [RateCDR] => 1 ) [2025-02-01 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-01 19:59:05' and `end` < '2025-02-01 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-01 22:59:18] Production.INFO: count ==1118 [2025-02-01 22:59:18] Production.ERROR: pbx CDR StartTime 2025-02-01 19:59:05 - End Time 2025-02-01 22:59:05 [2025-02-01 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381554', 'tblTempUsageDetail_20' ) start [2025-02-01 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381554', 'tblTempUsageDetail_20' ) end [2025-02-01 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381554', 'tblTempVendorCDR_20' ) start [2025-02-01 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381554', 'tblTempVendorCDR_20' ) end [2025-02-01 22:59:18] Production.INFO: ProcessCDR(1,14381554,1,1,2) [2025-02-01 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381554', 'tblTempUsageDetail_20' ) start [2025-02-01 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381554', 'tblTempUsageDetail_20' ) end [2025-02-01 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 22:59:21] Production.INFO: ==30193== Releasing lock... [2025-02-01 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 22:59:21] Production.INFO: 36 MB #Memory Used# [2025-02-01 23:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:00:07 [end_date_ymd] => 2025-02-01 23:00:07 [RateCDR] => 1 ) [2025-02-01 23: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-01 20:00:07' and `end` < '2025-02-01 23: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-01 23:00:19] Production.INFO: count ==1119 [2025-02-01 23:00:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:00:07 - End Time 2025-02-01 23:00:07 [2025-02-01 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381560', 'tblTempUsageDetail_20' ) start [2025-02-01 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381560', 'tblTempUsageDetail_20' ) end [2025-02-01 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381560', 'tblTempVendorCDR_20' ) start [2025-02-01 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381560', 'tblTempVendorCDR_20' ) end [2025-02-01 23:00:20] Production.INFO: ProcessCDR(1,14381560,1,1,2) [2025-02-01 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381560', 'tblTempUsageDetail_20' ) start [2025-02-01 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381560', 'tblTempUsageDetail_20' ) end [2025-02-01 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:00:23] Production.INFO: ==30269== Releasing lock... [2025-02-01 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:00:23] Production.INFO: 36 MB #Memory Used# [2025-02-01 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:01:05 [end_date_ymd] => 2025-02-01 23:01:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:01:05' and `end` < '2025-02-01 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-01 23:01:18] Production.INFO: count ==1088 [2025-02-01 23:01:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:01:05 - End Time 2025-02-01 23:01:05 [2025-02-01 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381565', 'tblTempUsageDetail_20' ) start [2025-02-01 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381565', 'tblTempUsageDetail_20' ) end [2025-02-01 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381565', 'tblTempVendorCDR_20' ) start [2025-02-01 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381565', 'tblTempVendorCDR_20' ) end [2025-02-01 23:01:18] Production.INFO: ProcessCDR(1,14381565,1,1,2) [2025-02-01 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381565', 'tblTempUsageDetail_20' ) start [2025-02-01 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381565', 'tblTempUsageDetail_20' ) end [2025-02-01 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:01:21] Production.INFO: ==30432== Releasing lock... [2025-02-01 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:01:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-01 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:02:05 [end_date_ymd] => 2025-02-01 23:02:05 [RateCDR] => 1 ) [2025-02-01 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 20:02:05' and `end` < '2025-02-01 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 23:02:18] Production.INFO: count ==1088 [2025-02-01 23:02:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:02:05 - End Time 2025-02-01 23:02:05 [2025-02-01 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381570', 'tblTempUsageDetail_20' ) start [2025-02-01 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381570', 'tblTempUsageDetail_20' ) end [2025-02-01 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381570', 'tblTempVendorCDR_20' ) start [2025-02-01 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381570', 'tblTempVendorCDR_20' ) end [2025-02-01 23:02:18] Production.INFO: ProcessCDR(1,14381570,1,1,2) [2025-02-01 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381570', 'tblTempUsageDetail_20' ) start [2025-02-01 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381570', 'tblTempUsageDetail_20' ) end [2025-02-01 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:02:22] Production.INFO: ==30504== Releasing lock... [2025-02-01 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:02:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-01 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:03:05 [end_date_ymd] => 2025-02-01 23:03:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:03:05' and `end` < '2025-02-01 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-01 23:03:17] Production.INFO: count ==1085 [2025-02-01 23:03:17] Production.ERROR: pbx CDR StartTime 2025-02-01 20:03:05 - End Time 2025-02-01 23:03:05 [2025-02-01 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381575', 'tblTempUsageDetail_20' ) start [2025-02-01 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381575', 'tblTempUsageDetail_20' ) end [2025-02-01 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381575', 'tblTempVendorCDR_20' ) start [2025-02-01 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381575', 'tblTempVendorCDR_20' ) end [2025-02-01 23:03:17] Production.INFO: ProcessCDR(1,14381575,1,1,2) [2025-02-01 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381575', 'tblTempUsageDetail_20' ) start [2025-02-01 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381575', 'tblTempUsageDetail_20' ) end [2025-02-01 23:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:03:20] Production.INFO: ==30616== Releasing lock... [2025-02-01 23:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:03:20] Production.INFO: 35.75 MB #Memory Used# [2025-02-01 23:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:04:06 [end_date_ymd] => 2025-02-01 23:04:06 [RateCDR] => 1 ) [2025-02-01 23:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 20:04:06' and `end` < '2025-02-01 23:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 23:04:19] Production.INFO: count ==1081 [2025-02-01 23:04:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:04:06 - End Time 2025-02-01 23:04:06 [2025-02-01 23:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381580', 'tblTempUsageDetail_20' ) start [2025-02-01 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381580', 'tblTempUsageDetail_20' ) end [2025-02-01 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381580', 'tblTempVendorCDR_20' ) start [2025-02-01 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381580', 'tblTempVendorCDR_20' ) end [2025-02-01 23:04:19] Production.INFO: ProcessCDR(1,14381580,1,1,2) [2025-02-01 23:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381580', 'tblTempUsageDetail_20' ) start [2025-02-01 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381580', 'tblTempUsageDetail_20' ) end [2025-02-01 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:04:22] Production.INFO: ==30688== Releasing lock... [2025-02-01 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:04:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-01 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:05:05 [end_date_ymd] => 2025-02-01 23:05:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:05:05' and `end` < '2025-02-01 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-01 23:05:18] Production.INFO: count ==1077 [2025-02-01 23:05:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:05:05 - End Time 2025-02-01 23:05:05 [2025-02-01 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381585', 'tblTempUsageDetail_20' ) start [2025-02-01 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381585', 'tblTempUsageDetail_20' ) end [2025-02-01 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381585', 'tblTempVendorCDR_20' ) start [2025-02-01 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381585', 'tblTempVendorCDR_20' ) end [2025-02-01 23:05:18] Production.INFO: ProcessCDR(1,14381585,1,1,2) [2025-02-01 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381585', 'tblTempUsageDetail_20' ) start [2025-02-01 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381585', 'tblTempUsageDetail_20' ) end [2025-02-01 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:05:21] Production.INFO: ==30837== Releasing lock... [2025-02-01 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:05:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-01 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:06:05 [end_date_ymd] => 2025-02-01 23:06:05 [RateCDR] => 1 ) [2025-02-01 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 20:06:05' and `end` < '2025-02-01 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 23:06:18] Production.INFO: count ==1081 [2025-02-01 23:06:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:06:05 - End Time 2025-02-01 23:06:05 [2025-02-01 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381590', 'tblTempUsageDetail_20' ) start [2025-02-01 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381590', 'tblTempUsageDetail_20' ) end [2025-02-01 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381590', 'tblTempVendorCDR_20' ) start [2025-02-01 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381590', 'tblTempVendorCDR_20' ) end [2025-02-01 23:06:18] Production.INFO: ProcessCDR(1,14381590,1,1,2) [2025-02-01 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381590', 'tblTempUsageDetail_20' ) start [2025-02-01 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381590', 'tblTempUsageDetail_20' ) end [2025-02-01 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:06:22] Production.INFO: ==30914== Releasing lock... [2025-02-01 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:06:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-01 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:07:05 [end_date_ymd] => 2025-02-01 23:07:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:07:05' and `end` < '2025-02-01 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-01 23:07:18] Production.INFO: count ==1076 [2025-02-01 23:07:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:07:05 - End Time 2025-02-01 23:07:05 [2025-02-01 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381595', 'tblTempUsageDetail_20' ) start [2025-02-01 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381595', 'tblTempUsageDetail_20' ) end [2025-02-01 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381595', 'tblTempVendorCDR_20' ) start [2025-02-01 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381595', 'tblTempVendorCDR_20' ) end [2025-02-01 23:07:18] Production.INFO: ProcessCDR(1,14381595,1,1,2) [2025-02-01 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381595', 'tblTempUsageDetail_20' ) start [2025-02-01 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381595', 'tblTempUsageDetail_20' ) end [2025-02-01 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:07:21] Production.INFO: ==30985== Releasing lock... [2025-02-01 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:07:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-01 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:08:05 [end_date_ymd] => 2025-02-01 23:08:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:08:05' and `end` < '2025-02-01 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-01 23:08:19] Production.INFO: count ==1072 [2025-02-01 23:08:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:08:05 - End Time 2025-02-01 23:08:05 [2025-02-01 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381600', 'tblTempUsageDetail_20' ) start [2025-02-01 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381600', 'tblTempUsageDetail_20' ) end [2025-02-01 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381600', 'tblTempVendorCDR_20' ) start [2025-02-01 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381600', 'tblTempVendorCDR_20' ) end [2025-02-01 23:08:19] Production.INFO: ProcessCDR(1,14381600,1,1,2) [2025-02-01 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381600', 'tblTempUsageDetail_20' ) start [2025-02-01 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381600', 'tblTempUsageDetail_20' ) end [2025-02-01 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:08:22] Production.INFO: ==31136== Releasing lock... [2025-02-01 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:08:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-01 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:09:05 [end_date_ymd] => 2025-02-01 23:09:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:09:05' and `end` < '2025-02-01 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-01 23:09:17] Production.INFO: count ==1072 [2025-02-01 23:09:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:09:05 - End Time 2025-02-01 23:09:05 [2025-02-01 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381605', 'tblTempUsageDetail_20' ) start [2025-02-01 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381605', 'tblTempUsageDetail_20' ) end [2025-02-01 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381605', 'tblTempVendorCDR_20' ) start [2025-02-01 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381605', 'tblTempVendorCDR_20' ) end [2025-02-01 23:09:18] Production.INFO: ProcessCDR(1,14381605,1,1,2) [2025-02-01 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381605', 'tblTempUsageDetail_20' ) start [2025-02-01 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381605', 'tblTempUsageDetail_20' ) end [2025-02-01 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:09:21] Production.INFO: ==31209== Releasing lock... [2025-02-01 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:09:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-01 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:10:06 [end_date_ymd] => 2025-02-01 23:10:06 [RateCDR] => 1 ) [2025-02-01 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-01 20:10:06' and `end` < '2025-02-01 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-01 23:10:18] Production.INFO: count ==1069 [2025-02-01 23:10:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:10:06 - End Time 2025-02-01 23:10:06 [2025-02-01 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381611', 'tblTempUsageDetail_20' ) start [2025-02-01 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381611', 'tblTempUsageDetail_20' ) end [2025-02-01 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381611', 'tblTempVendorCDR_20' ) start [2025-02-01 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381611', 'tblTempVendorCDR_20' ) end [2025-02-01 23:10:19] Production.INFO: ProcessCDR(1,14381611,1,1,2) [2025-02-01 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381611', 'tblTempUsageDetail_20' ) start [2025-02-01 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381611', 'tblTempUsageDetail_20' ) end [2025-02-01 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:10:22] Production.INFO: ==31282== Releasing lock... [2025-02-01 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:10:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-01 23:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:11:06 [end_date_ymd] => 2025-02-01 23:11:06 [RateCDR] => 1 ) [2025-02-01 23:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 20:11:06' and `end` < '2025-02-01 23:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 23:11:18] Production.INFO: count ==1030 [2025-02-01 23:11:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:11:06 - End Time 2025-02-01 23:11:06 [2025-02-01 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381616', 'tblTempUsageDetail_20' ) start [2025-02-01 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381616', 'tblTempUsageDetail_20' ) end [2025-02-01 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381616', 'tblTempVendorCDR_20' ) start [2025-02-01 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381616', 'tblTempVendorCDR_20' ) end [2025-02-01 23:11:18] Production.INFO: ProcessCDR(1,14381616,1,1,2) [2025-02-01 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381616', 'tblTempUsageDetail_20' ) start [2025-02-01 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381616', 'tblTempUsageDetail_20' ) end [2025-02-01 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:11:21] Production.INFO: ==31356== Releasing lock... [2025-02-01 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:11:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-01 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:12:05 [end_date_ymd] => 2025-02-01 23:12:05 [RateCDR] => 1 ) [2025-02-01 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 20:12:05' and `end` < '2025-02-01 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 23:12:18] Production.INFO: count ==1029 [2025-02-01 23:12:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:12:05 - End Time 2025-02-01 23:12:05 [2025-02-01 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381621', 'tblTempUsageDetail_20' ) start [2025-02-01 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381621', 'tblTempUsageDetail_20' ) end [2025-02-01 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381621', 'tblTempVendorCDR_20' ) start [2025-02-01 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381621', 'tblTempVendorCDR_20' ) end [2025-02-01 23:12:18] Production.INFO: ProcessCDR(1,14381621,1,1,2) [2025-02-01 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381621', 'tblTempUsageDetail_20' ) start [2025-02-01 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381621', 'tblTempUsageDetail_20' ) end [2025-02-01 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:12:21] Production.INFO: ==31511== Releasing lock... [2025-02-01 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:12:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 23:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:13:06 [end_date_ymd] => 2025-02-01 23:13:06 [RateCDR] => 1 ) [2025-02-01 23:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 20:13:06' and `end` < '2025-02-01 23:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 23:13:18] Production.INFO: count ==1027 [2025-02-01 23:13:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:13:06 - End Time 2025-02-01 23:13:06 [2025-02-01 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381626', 'tblTempUsageDetail_20' ) start [2025-02-01 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381626', 'tblTempUsageDetail_20' ) end [2025-02-01 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381626', 'tblTempVendorCDR_20' ) start [2025-02-01 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381626', 'tblTempVendorCDR_20' ) end [2025-02-01 23:13:18] Production.INFO: ProcessCDR(1,14381626,1,1,2) [2025-02-01 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381626', 'tblTempUsageDetail_20' ) start [2025-02-01 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381626', 'tblTempUsageDetail_20' ) end [2025-02-01 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:13:21] Production.INFO: ==31584== Releasing lock... [2025-02-01 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:13:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:14:05 [end_date_ymd] => 2025-02-01 23:14:05 [RateCDR] => 1 ) [2025-02-01 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 20:14:05' and `end` < '2025-02-01 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 23:14:17] Production.INFO: count ==1027 [2025-02-01 23:14:17] Production.ERROR: pbx CDR StartTime 2025-02-01 20:14:05 - End Time 2025-02-01 23:14:05 [2025-02-01 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381631', 'tblTempUsageDetail_20' ) start [2025-02-01 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381631', 'tblTempUsageDetail_20' ) end [2025-02-01 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381631', 'tblTempVendorCDR_20' ) start [2025-02-01 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381631', 'tblTempVendorCDR_20' ) end [2025-02-01 23:14:17] Production.INFO: ProcessCDR(1,14381631,1,1,2) [2025-02-01 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381631', 'tblTempUsageDetail_20' ) start [2025-02-01 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381631', 'tblTempUsageDetail_20' ) end [2025-02-01 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:14:22] Production.INFO: ==31654== Releasing lock... [2025-02-01 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:14:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:15:05 [end_date_ymd] => 2025-02-01 23:15:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:15:05' and `end` < '2025-02-01 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-01 23:15:18] Production.INFO: count ==1024 [2025-02-01 23:15:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:15:05 - End Time 2025-02-01 23:15:05 [2025-02-01 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381636', 'tblTempUsageDetail_20' ) start [2025-02-01 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381636', 'tblTempUsageDetail_20' ) end [2025-02-01 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381636', 'tblTempVendorCDR_20' ) start [2025-02-01 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381636', 'tblTempVendorCDR_20' ) end [2025-02-01 23:15:18] Production.INFO: ProcessCDR(1,14381636,1,1,2) [2025-02-01 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381636', 'tblTempUsageDetail_20' ) start [2025-02-01 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381636', 'tblTempUsageDetail_20' ) end [2025-02-01 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:15:22] Production.INFO: ==31805== Releasing lock... [2025-02-01 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:15:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:16:05 [end_date_ymd] => 2025-02-01 23:16:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:16:05' and `end` < '2025-02-01 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-01 23:16:17] Production.INFO: count ==1024 [2025-02-01 23:16:17] Production.ERROR: pbx CDR StartTime 2025-02-01 20:16:05 - End Time 2025-02-01 23:16:05 [2025-02-01 23:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381641', 'tblTempUsageDetail_20' ) start [2025-02-01 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381641', 'tblTempUsageDetail_20' ) end [2025-02-01 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381641', 'tblTempVendorCDR_20' ) start [2025-02-01 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381641', 'tblTempVendorCDR_20' ) end [2025-02-01 23:16:17] Production.INFO: ProcessCDR(1,14381641,1,1,2) [2025-02-01 23:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381641', 'tblTempUsageDetail_20' ) start [2025-02-01 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381641', 'tblTempUsageDetail_20' ) end [2025-02-01 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:16:21] Production.INFO: ==31876== Releasing lock... [2025-02-01 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:16:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:17:05 [end_date_ymd] => 2025-02-01 23:17:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:17:05' and `end` < '2025-02-01 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-01 23:17:19] Production.INFO: count ==1020 [2025-02-01 23:17:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:17:05 - End Time 2025-02-01 23:17:05 [2025-02-01 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381646', 'tblTempUsageDetail_20' ) start [2025-02-01 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381646', 'tblTempUsageDetail_20' ) end [2025-02-01 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381646', 'tblTempVendorCDR_20' ) start [2025-02-01 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381646', 'tblTempVendorCDR_20' ) end [2025-02-01 23:17:19] Production.INFO: ProcessCDR(1,14381646,1,1,2) [2025-02-01 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381646', 'tblTempUsageDetail_20' ) start [2025-02-01 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381646', 'tblTempUsageDetail_20' ) end [2025-02-01 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:17:22] Production.INFO: ==31952== Releasing lock... [2025-02-01 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:17:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 23:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:18:06 [end_date_ymd] => 2025-02-01 23:18:06 [RateCDR] => 1 ) [2025-02-01 23:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 20:18:06' and `end` < '2025-02-01 23:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 23:18:18] Production.INFO: count ==1024 [2025-02-01 23:18:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:18:06 - End Time 2025-02-01 23:18:06 [2025-02-01 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381651', 'tblTempUsageDetail_20' ) start [2025-02-01 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381651', 'tblTempUsageDetail_20' ) end [2025-02-01 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381651', 'tblTempVendorCDR_20' ) start [2025-02-01 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381651', 'tblTempVendorCDR_20' ) end [2025-02-01 23:18:19] Production.INFO: ProcessCDR(1,14381651,1,1,2) [2025-02-01 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381651', 'tblTempUsageDetail_20' ) start [2025-02-01 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381651', 'tblTempUsageDetail_20' ) end [2025-02-01 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:18:22] Production.INFO: ==32024== Releasing lock... [2025-02-01 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:18:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:19:04 [end_date_ymd] => 2025-02-01 23:19:04 [RateCDR] => 1 ) [2025-02-01 23:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 20:19:04' and `end` < '2025-02-01 23:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 23:19:17] Production.INFO: count ==1024 [2025-02-01 23:19:17] Production.ERROR: pbx CDR StartTime 2025-02-01 20:19:04 - End Time 2025-02-01 23:19:04 [2025-02-01 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381656', 'tblTempUsageDetail_20' ) start [2025-02-01 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381656', 'tblTempUsageDetail_20' ) end [2025-02-01 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381656', 'tblTempVendorCDR_20' ) start [2025-02-01 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381656', 'tblTempVendorCDR_20' ) end [2025-02-01 23:19:17] Production.INFO: ProcessCDR(1,14381656,1,1,2) [2025-02-01 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381656', 'tblTempUsageDetail_20' ) start [2025-02-01 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381656', 'tblTempUsageDetail_20' ) end [2025-02-01 23:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:19:20] Production.INFO: ==32136== Releasing lock... [2025-02-01 23:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:19:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:20:06 [end_date_ymd] => 2025-02-01 23:20:06 [RateCDR] => 1 ) [2025-02-01 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-01 20:20:06' and `end` < '2025-02-01 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-01 23:20:19] Production.INFO: count ==1021 [2025-02-01 23:20:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:20:06 - End Time 2025-02-01 23:20:06 [2025-02-01 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381662', 'tblTempUsageDetail_20' ) start [2025-02-01 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381662', 'tblTempUsageDetail_20' ) end [2025-02-01 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381662', 'tblTempVendorCDR_20' ) start [2025-02-01 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381662', 'tblTempVendorCDR_20' ) end [2025-02-01 23:20:19] Production.INFO: ProcessCDR(1,14381662,1,1,2) [2025-02-01 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381662', 'tblTempUsageDetail_20' ) start [2025-02-01 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381662', 'tblTempUsageDetail_20' ) end [2025-02-01 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:20:22] Production.INFO: ==32210== Releasing lock... [2025-02-01 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:20:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:21:05 [end_date_ymd] => 2025-02-01 23:21:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:21:05' and `end` < '2025-02-01 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-01 23:21:18] Production.INFO: count ==1025 [2025-02-01 23:21:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:21:05 - End Time 2025-02-01 23:21:05 [2025-02-01 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381667', 'tblTempUsageDetail_20' ) start [2025-02-01 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381667', 'tblTempUsageDetail_20' ) end [2025-02-01 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381667', 'tblTempVendorCDR_20' ) start [2025-02-01 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381667', 'tblTempVendorCDR_20' ) end [2025-02-01 23:21:18] Production.INFO: ProcessCDR(1,14381667,1,1,2) [2025-02-01 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381667', 'tblTempUsageDetail_20' ) start [2025-02-01 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381667', 'tblTempUsageDetail_20' ) end [2025-02-01 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:21:22] Production.INFO: ==32288== Releasing lock... [2025-02-01 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:21:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:22:05 [end_date_ymd] => 2025-02-01 23:22:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:22:05' and `end` < '2025-02-01 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-01 23:22:18] Production.INFO: count ==1028 [2025-02-01 23:22:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:22:05 - End Time 2025-02-01 23:22:05 [2025-02-01 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381672', 'tblTempUsageDetail_20' ) start [2025-02-01 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381672', 'tblTempUsageDetail_20' ) end [2025-02-01 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381672', 'tblTempVendorCDR_20' ) start [2025-02-01 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381672', 'tblTempVendorCDR_20' ) end [2025-02-01 23:22:18] Production.INFO: ProcessCDR(1,14381672,1,1,2) [2025-02-01 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381672', 'tblTempUsageDetail_20' ) start [2025-02-01 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381672', 'tblTempUsageDetail_20' ) end [2025-02-01 23:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:22:23] Production.INFO: ==32361== Releasing lock... [2025-02-01 23:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:22:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 23:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:23:04 [end_date_ymd] => 2025-02-01 23:23:04 [RateCDR] => 1 ) [2025-02-01 23: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-01 20:23:04' and `end` < '2025-02-01 23: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-01 23:23:18] Production.INFO: count ==1029 [2025-02-01 23:23:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:23:04 - End Time 2025-02-01 23:23:04 [2025-02-01 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381677', 'tblTempUsageDetail_20' ) start [2025-02-01 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381677', 'tblTempUsageDetail_20' ) end [2025-02-01 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381677', 'tblTempVendorCDR_20' ) start [2025-02-01 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381677', 'tblTempVendorCDR_20' ) end [2025-02-01 23:23:18] Production.INFO: ProcessCDR(1,14381677,1,1,2) [2025-02-01 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381677', 'tblTempUsageDetail_20' ) start [2025-02-01 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381677', 'tblTempUsageDetail_20' ) end [2025-02-01 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:23:21] Production.INFO: ==32436== Releasing lock... [2025-02-01 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:23:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:24:05 [end_date_ymd] => 2025-02-01 23:24:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:24:05' and `end` < '2025-02-01 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-01 23:24:19] Production.INFO: count ==1027 [2025-02-01 23:24:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:24:05 - End Time 2025-02-01 23:24:05 [2025-02-01 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381682', 'tblTempUsageDetail_20' ) start [2025-02-01 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381682', 'tblTempUsageDetail_20' ) end [2025-02-01 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381682', 'tblTempVendorCDR_20' ) start [2025-02-01 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381682', 'tblTempVendorCDR_20' ) end [2025-02-01 23:24:19] Production.INFO: ProcessCDR(1,14381682,1,1,2) [2025-02-01 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381682', 'tblTempUsageDetail_20' ) start [2025-02-01 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381682', 'tblTempUsageDetail_20' ) end [2025-02-01 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:24:22] Production.INFO: ==32511== Releasing lock... [2025-02-01 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:24:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:25:05 [end_date_ymd] => 2025-02-01 23:25:05 [RateCDR] => 1 ) [2025-02-01 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 20:25:05' and `end` < '2025-02-01 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 23:25:18] Production.INFO: count ==1025 [2025-02-01 23:25:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:25:05 - End Time 2025-02-01 23:25:05 [2025-02-01 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381687', 'tblTempUsageDetail_20' ) start [2025-02-01 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381687', 'tblTempUsageDetail_20' ) end [2025-02-01 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381687', 'tblTempVendorCDR_20' ) start [2025-02-01 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381687', 'tblTempVendorCDR_20' ) end [2025-02-01 23:25:18] Production.INFO: ProcessCDR(1,14381687,1,1,2) [2025-02-01 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381687', 'tblTempUsageDetail_20' ) start [2025-02-01 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381687', 'tblTempUsageDetail_20' ) end [2025-02-01 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:25:21] Production.INFO: ==32579== Releasing lock... [2025-02-01 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:25:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:26:05 [end_date_ymd] => 2025-02-01 23:26:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:26:05' and `end` < '2025-02-01 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-01 23:26:19] Production.INFO: count ==1027 [2025-02-01 23:26:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:26:05 - End Time 2025-02-01 23:26:05 [2025-02-01 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381692', 'tblTempUsageDetail_20' ) start [2025-02-01 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381692', 'tblTempUsageDetail_20' ) end [2025-02-01 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381692', 'tblTempVendorCDR_20' ) start [2025-02-01 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381692', 'tblTempVendorCDR_20' ) end [2025-02-01 23:26:19] Production.INFO: ProcessCDR(1,14381692,1,1,2) [2025-02-01 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381692', 'tblTempUsageDetail_20' ) start [2025-02-01 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381692', 'tblTempUsageDetail_20' ) end [2025-02-01 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:26:22] Production.INFO: ==32650== Releasing lock... [2025-02-01 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:26:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:27:05 [end_date_ymd] => 2025-02-01 23:27:05 [RateCDR] => 1 ) [2025-02-01 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 20:27:05' and `end` < '2025-02-01 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 23:27:18] Production.INFO: count ==1027 [2025-02-01 23:27:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:27:05 - End Time 2025-02-01 23:27:05 [2025-02-01 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381697', 'tblTempUsageDetail_20' ) start [2025-02-01 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381697', 'tblTempUsageDetail_20' ) end [2025-02-01 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381697', 'tblTempVendorCDR_20' ) start [2025-02-01 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381697', 'tblTempVendorCDR_20' ) end [2025-02-01 23:27:18] Production.INFO: ProcessCDR(1,14381697,1,1,2) [2025-02-01 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381697', 'tblTempUsageDetail_20' ) start [2025-02-01 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381697', 'tblTempUsageDetail_20' ) end [2025-02-01 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:27:21] Production.INFO: ==32722== Releasing lock... [2025-02-01 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:27:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 23:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:28:06 [end_date_ymd] => 2025-02-01 23:28:06 [RateCDR] => 1 ) [2025-02-01 23:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 20:28:06' and `end` < '2025-02-01 23:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 23:28:19] Production.INFO: count ==1030 [2025-02-01 23:28:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:28:06 - End Time 2025-02-01 23:28:06 [2025-02-01 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381702', 'tblTempUsageDetail_20' ) start [2025-02-01 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381702', 'tblTempUsageDetail_20' ) end [2025-02-01 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381702', 'tblTempVendorCDR_20' ) start [2025-02-01 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381702', 'tblTempVendorCDR_20' ) end [2025-02-01 23:28:19] Production.INFO: ProcessCDR(1,14381702,1,1,2) [2025-02-01 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381702', 'tblTempUsageDetail_20' ) start [2025-02-01 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381702', 'tblTempUsageDetail_20' ) end [2025-02-01 23:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:28:23] Production.INFO: ==332== Releasing lock... [2025-02-01 23:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:28:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:29:05 [end_date_ymd] => 2025-02-01 23:29:05 [RateCDR] => 1 ) [2025-02-01 23: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-01 20:29:05' and `end` < '2025-02-01 23: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-01 23:29:19] Production.INFO: count ==1029 [2025-02-01 23:29:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:29:05 - End Time 2025-02-01 23:29:05 [2025-02-01 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381707', 'tblTempUsageDetail_20' ) start [2025-02-01 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381707', 'tblTempUsageDetail_20' ) end [2025-02-01 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381707', 'tblTempVendorCDR_20' ) start [2025-02-01 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381707', 'tblTempVendorCDR_20' ) end [2025-02-01 23:29:19] Production.INFO: ProcessCDR(1,14381707,1,1,2) [2025-02-01 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381707', 'tblTempUsageDetail_20' ) start [2025-02-01 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381707', 'tblTempUsageDetail_20' ) end [2025-02-01 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:29:22] Production.INFO: ==415== Releasing lock... [2025-02-01 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:29:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:30:06 [end_date_ymd] => 2025-02-01 23:30:06 [RateCDR] => 1 ) [2025-02-01 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-01 20:30:06' and `end` < '2025-02-01 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-01 23:30:19] Production.INFO: count ==1020 [2025-02-01 23:30:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:30:06 - End Time 2025-02-01 23:30:06 [2025-02-01 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381713', 'tblTempUsageDetail_20' ) start [2025-02-01 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381713', 'tblTempUsageDetail_20' ) end [2025-02-01 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381713', 'tblTempVendorCDR_20' ) start [2025-02-01 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381713', 'tblTempVendorCDR_20' ) end [2025-02-01 23:30:19] Production.INFO: ProcessCDR(1,14381713,1,1,2) [2025-02-01 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381713', 'tblTempUsageDetail_20' ) start [2025-02-01 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381713', 'tblTempUsageDetail_20' ) end [2025-02-01 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:30:22] Production.INFO: ==492== Releasing lock... [2025-02-01 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:30:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-01 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:31:05 [end_date_ymd] => 2025-02-01 23:31:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:31:05' and `end` < '2025-02-01 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-01 23:31:19] Production.INFO: count ==1004 [2025-02-01 23:31:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:31:05 - End Time 2025-02-01 23:31:05 [2025-02-01 23:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381718', 'tblTempUsageDetail_20' ) start [2025-02-01 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381718', 'tblTempUsageDetail_20' ) end [2025-02-01 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381718', 'tblTempVendorCDR_20' ) start [2025-02-01 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381718', 'tblTempVendorCDR_20' ) end [2025-02-01 23:31:19] Production.INFO: ProcessCDR(1,14381718,1,1,2) [2025-02-01 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381718', 'tblTempUsageDetail_20' ) start [2025-02-01 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381718', 'tblTempUsageDetail_20' ) end [2025-02-01 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:31:22] Production.INFO: ==574== Releasing lock... [2025-02-01 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:31:22] Production.INFO: 35 MB #Memory Used# [2025-02-01 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:32:05 [end_date_ymd] => 2025-02-01 23:32:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:32:05' and `end` < '2025-02-01 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-01 23:32:19] Production.INFO: count ==1005 [2025-02-01 23:32:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:32:05 - End Time 2025-02-01 23:32:05 [2025-02-01 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381723', 'tblTempUsageDetail_20' ) start [2025-02-01 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381723', 'tblTempUsageDetail_20' ) end [2025-02-01 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381723', 'tblTempVendorCDR_20' ) start [2025-02-01 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381723', 'tblTempVendorCDR_20' ) end [2025-02-01 23:32:19] Production.INFO: ProcessCDR(1,14381723,1,1,2) [2025-02-01 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381723', 'tblTempUsageDetail_20' ) start [2025-02-01 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381723', 'tblTempUsageDetail_20' ) end [2025-02-01 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:32:22] Production.INFO: ==652== Releasing lock... [2025-02-01 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:32:22] Production.INFO: 35 MB #Memory Used# [2025-02-01 23:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:33:04 [end_date_ymd] => 2025-02-01 23:33:04 [RateCDR] => 1 ) [2025-02-01 23:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 20:33:04' and `end` < '2025-02-01 23:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 23:33:17] Production.INFO: count ==1003 [2025-02-01 23:33:17] Production.ERROR: pbx CDR StartTime 2025-02-01 20:33:04 - End Time 2025-02-01 23:33:04 [2025-02-01 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381728', 'tblTempUsageDetail_20' ) start [2025-02-01 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381728', 'tblTempUsageDetail_20' ) end [2025-02-01 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381728', 'tblTempVendorCDR_20' ) start [2025-02-01 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381728', 'tblTempVendorCDR_20' ) end [2025-02-01 23:33:17] Production.INFO: ProcessCDR(1,14381728,1,1,2) [2025-02-01 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381728', 'tblTempUsageDetail_20' ) start [2025-02-01 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381728', 'tblTempUsageDetail_20' ) end [2025-02-01 23:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:33:20] Production.INFO: ==749== Releasing lock... [2025-02-01 23:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:33:20] Production.INFO: 35 MB #Memory Used# [2025-02-01 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:34:05 [end_date_ymd] => 2025-02-01 23:34:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:34:05' and `end` < '2025-02-01 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-01 23:34:18] Production.INFO: count ==1003 [2025-02-01 23:34:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:34:05 - End Time 2025-02-01 23:34:05 [2025-02-01 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381733', 'tblTempUsageDetail_20' ) start [2025-02-01 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381733', 'tblTempUsageDetail_20' ) end [2025-02-01 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381733', 'tblTempVendorCDR_20' ) start [2025-02-01 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381733', 'tblTempVendorCDR_20' ) end [2025-02-01 23:34:19] Production.INFO: ProcessCDR(1,14381733,1,1,2) [2025-02-01 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381733', 'tblTempUsageDetail_20' ) start [2025-02-01 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381733', 'tblTempUsageDetail_20' ) end [2025-02-01 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:34:22] Production.INFO: ==860== Releasing lock... [2025-02-01 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:34:22] Production.INFO: 35 MB #Memory Used# [2025-02-01 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:35:05 [end_date_ymd] => 2025-02-01 23:35:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:35:05' and `end` < '2025-02-01 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-01 23:35:19] Production.INFO: count ==1000 [2025-02-01 23:35:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:35:05 - End Time 2025-02-01 23:35:05 [2025-02-01 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381738', 'tblTempUsageDetail_20' ) start [2025-02-01 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381738', 'tblTempUsageDetail_20' ) end [2025-02-01 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381738', 'tblTempVendorCDR_20' ) start [2025-02-01 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381738', 'tblTempVendorCDR_20' ) end [2025-02-01 23:35:19] Production.INFO: ProcessCDR(1,14381738,1,1,2) [2025-02-01 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381738', 'tblTempUsageDetail_20' ) start [2025-02-01 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381738', 'tblTempUsageDetail_20' ) end [2025-02-01 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:35:22] Production.INFO: ==931== Releasing lock... [2025-02-01 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:35:22] Production.INFO: 35 MB #Memory Used# [2025-02-01 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:36:05 [end_date_ymd] => 2025-02-01 23:36:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:36:05' and `end` < '2025-02-01 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-01 23:36:19] Production.INFO: count ==999 [2025-02-01 23:36:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:36:05 - End Time 2025-02-01 23:36:05 [2025-02-01 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381743', 'tblTempUsageDetail_20' ) start [2025-02-01 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381743', 'tblTempUsageDetail_20' ) end [2025-02-01 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381743', 'tblTempVendorCDR_20' ) start [2025-02-01 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381743', 'tblTempVendorCDR_20' ) end [2025-02-01 23:36:19] Production.INFO: ProcessCDR(1,14381743,1,1,2) [2025-02-01 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381743', 'tblTempUsageDetail_20' ) start [2025-02-01 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381743', 'tblTempUsageDetail_20' ) end [2025-02-01 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:36:22] Production.INFO: ==1009== Releasing lock... [2025-02-01 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:36:22] Production.INFO: 35 MB #Memory Used# [2025-02-01 23:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:37:06 [end_date_ymd] => 2025-02-01 23:37:06 [RateCDR] => 1 ) [2025-02-01 23: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-01 20:37:06' and `end` < '2025-02-01 23: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-01 23:37:19] Production.INFO: count ==1001 [2025-02-01 23:37:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:37:06 - End Time 2025-02-01 23:37:06 [2025-02-01 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381748', 'tblTempUsageDetail_20' ) start [2025-02-01 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381748', 'tblTempUsageDetail_20' ) end [2025-02-01 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381748', 'tblTempVendorCDR_20' ) start [2025-02-01 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381748', 'tblTempVendorCDR_20' ) end [2025-02-01 23:37:19] Production.INFO: ProcessCDR(1,14381748,1,1,2) [2025-02-01 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381748', 'tblTempUsageDetail_20' ) start [2025-02-01 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381748', 'tblTempUsageDetail_20' ) end [2025-02-01 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:37:22] Production.INFO: ==1082== Releasing lock... [2025-02-01 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:37:22] Production.INFO: 35 MB #Memory Used# [2025-02-01 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:38:05 [end_date_ymd] => 2025-02-01 23:38:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:38:05' and `end` < '2025-02-01 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-01 23:38:18] Production.INFO: count ==1001 [2025-02-01 23:38:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:38:05 - End Time 2025-02-01 23:38:05 [2025-02-01 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381753', 'tblTempUsageDetail_20' ) start [2025-02-01 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381753', 'tblTempUsageDetail_20' ) end [2025-02-01 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381753', 'tblTempVendorCDR_20' ) start [2025-02-01 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381753', 'tblTempVendorCDR_20' ) end [2025-02-01 23:38:18] Production.INFO: ProcessCDR(1,14381753,1,1,2) [2025-02-01 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381753', 'tblTempUsageDetail_20' ) start [2025-02-01 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381753', 'tblTempUsageDetail_20' ) end [2025-02-01 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:38:21] Production.INFO: ==1158== Releasing lock... [2025-02-01 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:38:21] Production.INFO: 35 MB #Memory Used# [2025-02-01 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:39:05 [end_date_ymd] => 2025-02-01 23:39:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:39:05' and `end` < '2025-02-01 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-01 23:39:19] Production.INFO: count ==1000 [2025-02-01 23:39:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:39:05 - End Time 2025-02-01 23:39:05 [2025-02-01 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381758', 'tblTempUsageDetail_20' ) start [2025-02-01 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381758', 'tblTempUsageDetail_20' ) end [2025-02-01 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381758', 'tblTempVendorCDR_20' ) start [2025-02-01 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381758', 'tblTempVendorCDR_20' ) end [2025-02-01 23:39:19] Production.INFO: ProcessCDR(1,14381758,1,1,2) [2025-02-01 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381758', 'tblTempUsageDetail_20' ) start [2025-02-01 23:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381758', 'tblTempUsageDetail_20' ) end [2025-02-01 23:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:39:24] Production.INFO: ==1235== Releasing lock... [2025-02-01 23:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:39:24] Production.INFO: 35 MB #Memory Used# [2025-02-01 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:40:06 [end_date_ymd] => 2025-02-01 23:40:06 [RateCDR] => 1 ) [2025-02-01 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-01 20:40:06' and `end` < '2025-02-01 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-01 23:40:19] Production.INFO: count ==996 [2025-02-01 23:40:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:40:06 - End Time 2025-02-01 23:40:06 [2025-02-01 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381764', 'tblTempUsageDetail_20' ) start [2025-02-01 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381764', 'tblTempUsageDetail_20' ) end [2025-02-01 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381764', 'tblTempVendorCDR_20' ) start [2025-02-01 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381764', 'tblTempVendorCDR_20' ) end [2025-02-01 23:40:19] Production.INFO: ProcessCDR(1,14381764,1,1,2) [2025-02-01 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381764', 'tblTempUsageDetail_20' ) start [2025-02-01 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381764', 'tblTempUsageDetail_20' ) end [2025-02-01 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:40:22] Production.INFO: ==1319== Releasing lock... [2025-02-01 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:40:22] Production.INFO: 35 MB #Memory Used# [2025-02-01 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:41:05 [end_date_ymd] => 2025-02-01 23:41:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:41:05' and `end` < '2025-02-01 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-01 23:41:19] Production.INFO: count ==942 [2025-02-01 23:41:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:41:05 - End Time 2025-02-01 23:41:05 [2025-02-01 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381769', 'tblTempUsageDetail_20' ) start [2025-02-01 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381769', 'tblTempUsageDetail_20' ) end [2025-02-01 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381769', 'tblTempVendorCDR_20' ) start [2025-02-01 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381769', 'tblTempVendorCDR_20' ) end [2025-02-01 23:41:19] Production.INFO: ProcessCDR(1,14381769,1,1,2) [2025-02-01 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381769', 'tblTempUsageDetail_20' ) start [2025-02-01 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381769', 'tblTempUsageDetail_20' ) end [2025-02-01 23:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:41:23] Production.INFO: ==1397== Releasing lock... [2025-02-01 23:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:41:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-01 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:42:05 [end_date_ymd] => 2025-02-01 23:42:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:42:05' and `end` < '2025-02-01 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-01 23:42:19] Production.INFO: count ==940 [2025-02-01 23:42:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:42:05 - End Time 2025-02-01 23:42:05 [2025-02-01 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381774', 'tblTempUsageDetail_20' ) start [2025-02-01 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381774', 'tblTempUsageDetail_20' ) end [2025-02-01 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381774', 'tblTempVendorCDR_20' ) start [2025-02-01 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381774', 'tblTempVendorCDR_20' ) end [2025-02-01 23:42:19] Production.INFO: ProcessCDR(1,14381774,1,1,2) [2025-02-01 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381774', 'tblTempUsageDetail_20' ) start [2025-02-01 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381774', 'tblTempUsageDetail_20' ) end [2025-02-01 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:42:22] Production.INFO: ==1470== Releasing lock... [2025-02-01 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:42:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-01 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:43:05 [end_date_ymd] => 2025-02-01 23:43:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:43:05' and `end` < '2025-02-01 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-01 23:43:18] Production.INFO: count ==938 [2025-02-01 23:43:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:43:05 - End Time 2025-02-01 23:43:05 [2025-02-01 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381779', 'tblTempUsageDetail_20' ) start [2025-02-01 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381779', 'tblTempUsageDetail_20' ) end [2025-02-01 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381779', 'tblTempVendorCDR_20' ) start [2025-02-01 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381779', 'tblTempVendorCDR_20' ) end [2025-02-01 23:43:18] Production.INFO: ProcessCDR(1,14381779,1,1,2) [2025-02-01 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381779', 'tblTempUsageDetail_20' ) start [2025-02-01 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381779', 'tblTempUsageDetail_20' ) end [2025-02-01 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:43:21] Production.INFO: ==1580== Releasing lock... [2025-02-01 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:43:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-01 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:44:05 [end_date_ymd] => 2025-02-01 23:44:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:44:05' and `end` < '2025-02-01 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-01 23:44:18] Production.INFO: count ==941 [2025-02-01 23:44:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:44:05 - End Time 2025-02-01 23:44:05 [2025-02-01 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381784', 'tblTempUsageDetail_20' ) start [2025-02-01 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381784', 'tblTempUsageDetail_20' ) end [2025-02-01 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381784', 'tblTempVendorCDR_20' ) start [2025-02-01 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381784', 'tblTempVendorCDR_20' ) end [2025-02-01 23:44:18] Production.INFO: ProcessCDR(1,14381784,1,1,2) [2025-02-01 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381784', 'tblTempUsageDetail_20' ) start [2025-02-01 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381784', 'tblTempUsageDetail_20' ) end [2025-02-01 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:44:22] Production.INFO: ==1670== Releasing lock... [2025-02-01 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:44:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-01 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:45:05 [end_date_ymd] => 2025-02-01 23:45:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:45:05' and `end` < '2025-02-01 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-01 23:45:18] Production.INFO: count ==935 [2025-02-01 23:45:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:45:05 - End Time 2025-02-01 23:45:05 [2025-02-01 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381789', 'tblTempUsageDetail_20' ) start [2025-02-01 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381789', 'tblTempUsageDetail_20' ) end [2025-02-01 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381789', 'tblTempVendorCDR_20' ) start [2025-02-01 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381789', 'tblTempVendorCDR_20' ) end [2025-02-01 23:45:18] Production.INFO: ProcessCDR(1,14381789,1,1,2) [2025-02-01 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381789', 'tblTempUsageDetail_20' ) start [2025-02-01 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381789', 'tblTempUsageDetail_20' ) end [2025-02-01 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:45:22] Production.INFO: ==1754== Releasing lock... [2025-02-01 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:45:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-01 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:46:05 [end_date_ymd] => 2025-02-01 23:46:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:46:05' and `end` < '2025-02-01 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-01 23:46:18] Production.INFO: count ==932 [2025-02-01 23:46:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:46:05 - End Time 2025-02-01 23:46:05 [2025-02-01 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381794', 'tblTempUsageDetail_20' ) start [2025-02-01 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381794', 'tblTempUsageDetail_20' ) end [2025-02-01 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381794', 'tblTempVendorCDR_20' ) start [2025-02-01 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381794', 'tblTempVendorCDR_20' ) end [2025-02-01 23:46:18] Production.INFO: ProcessCDR(1,14381794,1,1,2) [2025-02-01 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381794', 'tblTempUsageDetail_20' ) start [2025-02-01 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381794', 'tblTempUsageDetail_20' ) end [2025-02-01 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:46:21] Production.INFO: ==1847== Releasing lock... [2025-02-01 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:46:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-01 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:47:05 [end_date_ymd] => 2025-02-01 23:47:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:47:05' and `end` < '2025-02-01 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-01 23:47:18] Production.INFO: count ==929 [2025-02-01 23:47:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:47:05 - End Time 2025-02-01 23:47:05 [2025-02-01 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381799', 'tblTempUsageDetail_20' ) start [2025-02-01 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381799', 'tblTempUsageDetail_20' ) end [2025-02-01 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381799', 'tblTempVendorCDR_20' ) start [2025-02-01 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381799', 'tblTempVendorCDR_20' ) end [2025-02-01 23:47:18] Production.INFO: ProcessCDR(1,14381799,1,1,2) [2025-02-01 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381799', 'tblTempUsageDetail_20' ) start [2025-02-01 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381799', 'tblTempUsageDetail_20' ) end [2025-02-01 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:47:23] Production.INFO: ==1929== Releasing lock... [2025-02-01 23:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:47:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-01 23:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:48:06 [end_date_ymd] => 2025-02-01 23:48:06 [RateCDR] => 1 ) [2025-02-01 23: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-01 20:48:06' and `end` < '2025-02-01 23: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-01 23:48:20] Production.INFO: count ==932 [2025-02-01 23:48:20] Production.ERROR: pbx CDR StartTime 2025-02-01 20:48:06 - End Time 2025-02-01 23:48:06 [2025-02-01 23:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381804', 'tblTempUsageDetail_20' ) start [2025-02-01 23:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381804', 'tblTempUsageDetail_20' ) end [2025-02-01 23:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381804', 'tblTempVendorCDR_20' ) start [2025-02-01 23:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381804', 'tblTempVendorCDR_20' ) end [2025-02-01 23:48:20] Production.INFO: ProcessCDR(1,14381804,1,1,2) [2025-02-01 23:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381804', 'tblTempUsageDetail_20' ) start [2025-02-01 23:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381804', 'tblTempUsageDetail_20' ) end [2025-02-01 23:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:48:24] Production.INFO: ==2011== Releasing lock... [2025-02-01 23:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:48:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-01 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:49:05 [end_date_ymd] => 2025-02-01 23:49:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:49:05' and `end` < '2025-02-01 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-01 23:49:17] Production.INFO: count ==932 [2025-02-01 23:49:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:49:05 - End Time 2025-02-01 23:49:05 [2025-02-01 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381809', 'tblTempUsageDetail_20' ) start [2025-02-01 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381809', 'tblTempUsageDetail_20' ) end [2025-02-01 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381809', 'tblTempVendorCDR_20' ) start [2025-02-01 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381809', 'tblTempVendorCDR_20' ) end [2025-02-01 23:49:18] Production.INFO: ProcessCDR(1,14381809,1,1,2) [2025-02-01 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381809', 'tblTempUsageDetail_20' ) start [2025-02-01 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381809', 'tblTempUsageDetail_20' ) end [2025-02-01 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:49:21] Production.INFO: ==2098== Releasing lock... [2025-02-01 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:49:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-01 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:50:06 [end_date_ymd] => 2025-02-01 23:50:06 [RateCDR] => 1 ) [2025-02-01 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-01 20:50:06' and `end` < '2025-02-01 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-01 23:50:19] Production.INFO: count ==932 [2025-02-01 23:50:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:50:06 - End Time 2025-02-01 23:50:06 [2025-02-01 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381815', 'tblTempUsageDetail_20' ) start [2025-02-01 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381815', 'tblTempUsageDetail_20' ) end [2025-02-01 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381815', 'tblTempVendorCDR_20' ) start [2025-02-01 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381815', 'tblTempVendorCDR_20' ) end [2025-02-01 23:50:19] Production.INFO: ProcessCDR(1,14381815,1,1,2) [2025-02-01 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381815', 'tblTempUsageDetail_20' ) start [2025-02-01 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381815', 'tblTempUsageDetail_20' ) end [2025-02-01 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:50:22] Production.INFO: ==2229== Releasing lock... [2025-02-01 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:50:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-01 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:51:05 [end_date_ymd] => 2025-02-01 23:51:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:51:05' and `end` < '2025-02-01 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-01 23:51:18] Production.INFO: count ==899 [2025-02-01 23:51:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:51:05 - End Time 2025-02-01 23:51:05 [2025-02-01 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381820', 'tblTempUsageDetail_20' ) start [2025-02-01 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381820', 'tblTempUsageDetail_20' ) end [2025-02-01 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381820', 'tblTempVendorCDR_20' ) start [2025-02-01 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381820', 'tblTempVendorCDR_20' ) end [2025-02-01 23:51:18] Production.INFO: ProcessCDR(1,14381820,1,1,2) [2025-02-01 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381820', 'tblTempUsageDetail_20' ) start [2025-02-01 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381820', 'tblTempUsageDetail_20' ) end [2025-02-01 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:51:21] Production.INFO: ==2312== Releasing lock... [2025-02-01 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:51:21] Production.INFO: 34 MB #Memory Used# [2025-02-01 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:52:05 [end_date_ymd] => 2025-02-01 23:52:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:52:05' and `end` < '2025-02-01 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-01 23:52:19] Production.INFO: count ==899 [2025-02-01 23:52:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:52:05 - End Time 2025-02-01 23:52:05 [2025-02-01 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381825', 'tblTempUsageDetail_20' ) start [2025-02-01 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381825', 'tblTempUsageDetail_20' ) end [2025-02-01 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381825', 'tblTempVendorCDR_20' ) start [2025-02-01 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381825', 'tblTempVendorCDR_20' ) end [2025-02-01 23:52:19] Production.INFO: ProcessCDR(1,14381825,1,1,2) [2025-02-01 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381825', 'tblTempUsageDetail_20' ) start [2025-02-01 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381825', 'tblTempUsageDetail_20' ) end [2025-02-01 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:52:23] Production.INFO: ==2401== Releasing lock... [2025-02-01 23:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:52:23] Production.INFO: 34 MB #Memory Used# [2025-02-01 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:53:05 [end_date_ymd] => 2025-02-01 23:53:05 [RateCDR] => 1 ) [2025-02-01 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 20:53:05' and `end` < '2025-02-01 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 23:53:18] Production.INFO: count ==899 [2025-02-01 23:53:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:53:05 - End Time 2025-02-01 23:53:05 [2025-02-01 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381830', 'tblTempUsageDetail_20' ) start [2025-02-01 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381830', 'tblTempUsageDetail_20' ) end [2025-02-01 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381830', 'tblTempVendorCDR_20' ) start [2025-02-01 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381830', 'tblTempVendorCDR_20' ) end [2025-02-01 23:53:18] Production.INFO: ProcessCDR(1,14381830,1,1,2) [2025-02-01 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381830', 'tblTempUsageDetail_20' ) start [2025-02-01 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381830', 'tblTempUsageDetail_20' ) end [2025-02-01 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:53:21] Production.INFO: ==2491== Releasing lock... [2025-02-01 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:53:21] Production.INFO: 34 MB #Memory Used# [2025-02-01 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:54:05 [end_date_ymd] => 2025-02-01 23:54:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:54:05' and `end` < '2025-02-01 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-01 23:54:19] Production.INFO: count ==897 [2025-02-01 23:54:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:54:05 - End Time 2025-02-01 23:54:05 [2025-02-01 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381835', 'tblTempUsageDetail_20' ) start [2025-02-01 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381835', 'tblTempUsageDetail_20' ) end [2025-02-01 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381835', 'tblTempVendorCDR_20' ) start [2025-02-01 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381835', 'tblTempVendorCDR_20' ) end [2025-02-01 23:54:19] Production.INFO: ProcessCDR(1,14381835,1,1,2) [2025-02-01 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381835', 'tblTempUsageDetail_20' ) start [2025-02-01 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381835', 'tblTempUsageDetail_20' ) end [2025-02-01 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:54:22] Production.INFO: ==2575== Releasing lock... [2025-02-01 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:54:22] Production.INFO: 34 MB #Memory Used# [2025-02-01 23:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:55:04 [end_date_ymd] => 2025-02-01 23:55:04 [RateCDR] => 1 ) [2025-02-01 23:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 20:55:04' and `end` < '2025-02-01 23:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 23:55:17] Production.INFO: count ==893 [2025-02-01 23:55:17] Production.ERROR: pbx CDR StartTime 2025-02-01 20:55:04 - End Time 2025-02-01 23:55:04 [2025-02-01 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381840', 'tblTempUsageDetail_20' ) start [2025-02-01 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381840', 'tblTempUsageDetail_20' ) end [2025-02-01 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381840', 'tblTempVendorCDR_20' ) start [2025-02-01 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381840', 'tblTempVendorCDR_20' ) end [2025-02-01 23:55:17] Production.INFO: ProcessCDR(1,14381840,1,1,2) [2025-02-01 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381840', 'tblTempUsageDetail_20' ) start [2025-02-01 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381840', 'tblTempUsageDetail_20' ) end [2025-02-01 23:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:55:20] Production.INFO: ==2662== Releasing lock... [2025-02-01 23:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:55:20] Production.INFO: 34 MB #Memory Used# [2025-02-01 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:56:05 [end_date_ymd] => 2025-02-01 23:56:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:56:05' and `end` < '2025-02-01 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-01 23:56:18] Production.INFO: count ==891 [2025-02-01 23:56:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:56:05 - End Time 2025-02-01 23:56:05 [2025-02-01 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381845', 'tblTempUsageDetail_20' ) start [2025-02-01 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381845', 'tblTempUsageDetail_20' ) end [2025-02-01 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381845', 'tblTempVendorCDR_20' ) start [2025-02-01 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381845', 'tblTempVendorCDR_20' ) end [2025-02-01 23:56:18] Production.INFO: ProcessCDR(1,14381845,1,1,2) [2025-02-01 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381845', 'tblTempUsageDetail_20' ) start [2025-02-01 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381845', 'tblTempUsageDetail_20' ) end [2025-02-01 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:56:21] Production.INFO: ==2748== Releasing lock... [2025-02-01 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:56:21] Production.INFO: 34 MB #Memory Used# [2025-02-01 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:57:05 [end_date_ymd] => 2025-02-01 23:57:05 [RateCDR] => 1 ) [2025-02-01 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-01 20:57:05' and `end` < '2025-02-01 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-01 23:57:19] Production.INFO: count ==891 [2025-02-01 23:57:19] Production.ERROR: pbx CDR StartTime 2025-02-01 20:57:05 - End Time 2025-02-01 23:57:05 [2025-02-01 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381850', 'tblTempUsageDetail_20' ) start [2025-02-01 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381850', 'tblTempUsageDetail_20' ) end [2025-02-01 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381850', 'tblTempVendorCDR_20' ) start [2025-02-01 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381850', 'tblTempVendorCDR_20' ) end [2025-02-01 23:57:19] Production.INFO: ProcessCDR(1,14381850,1,1,2) [2025-02-01 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381850', 'tblTempUsageDetail_20' ) start [2025-02-01 23:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381850', 'tblTempUsageDetail_20' ) end [2025-02-01 23:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:57:24] Production.INFO: ==2834== Releasing lock... [2025-02-01 23:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:57:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-01 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:58:05 [end_date_ymd] => 2025-02-01 23:58:05 [RateCDR] => 1 ) [2025-02-01 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 20:58:05' and `end` < '2025-02-01 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 23:58:18] Production.INFO: count ==887 [2025-02-01 23:58:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:58:05 - End Time 2025-02-01 23:58:05 [2025-02-01 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381855', 'tblTempUsageDetail_20' ) start [2025-02-01 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381855', 'tblTempUsageDetail_20' ) end [2025-02-01 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381855', 'tblTempVendorCDR_20' ) start [2025-02-01 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381855', 'tblTempVendorCDR_20' ) end [2025-02-01 23:58:18] Production.INFO: ProcessCDR(1,14381855,1,1,2) [2025-02-01 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381855', 'tblTempUsageDetail_20' ) start [2025-02-01 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381855', 'tblTempUsageDetail_20' ) end [2025-02-01 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:58:21] Production.INFO: ==2925== Releasing lock... [2025-02-01 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:58:21] Production.INFO: 33.75 MB #Memory Used# [2025-02-01 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-01 20:59:05 [end_date_ymd] => 2025-02-01 23:59:05 [RateCDR] => 1 ) [2025-02-01 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-01 20:59:05' and `end` < '2025-02-01 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-01 23:59:18] Production.INFO: count ==883 [2025-02-01 23:59:18] Production.ERROR: pbx CDR StartTime 2025-02-01 20:59:05 - End Time 2025-02-01 23:59:05 [2025-02-01 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-01 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381860', 'tblTempUsageDetail_20' ) start [2025-02-01 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14381860', 'tblTempUsageDetail_20' ) end [2025-02-01 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381860', 'tblTempVendorCDR_20' ) start [2025-02-01 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14381860', 'tblTempVendorCDR_20' ) end [2025-02-01 23:59:18] Production.INFO: ProcessCDR(1,14381860,1,1,2) [2025-02-01 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14381860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14381860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-01 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14381860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14381860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-01 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381860', 'tblTempUsageDetail_20' ) start [2025-02-01 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14381860', 'tblTempUsageDetail_20' ) end [2025-02-01 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-01 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-01 23:59:21] Production.INFO: ==3012== Releasing lock... [2025-02-01 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-01 23:59:21] Production.INFO: 33.75 MB #Memory Used#