[2025-01-01 00:00:04] Production.INFO: next invoice date [2025-01-01 00:00:04] Production.INFO: 2025-02-01 [2025-01-01 00:00:04] Production.INFO: getdaysdiff [2025-01-01 00:00:04] Production.INFO: +31 [2025-01-01 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (105,11,1,31,31,'RMScheduler',2025-01-01 00:00:04,1,0,,,0) [2025-01-01 00:00:04] Production.INFO: next invoice date [2025-01-01 00:00:04] Production.INFO: 2025-02-01 [2025-01-01 00:00:04] Production.INFO: getdaysdiff [2025-01-01 00:00:04] Production.INFO: +31 [2025-01-01 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (3,9,2,31,31,'RMScheduler',2025-01-01 00:00:04,1,0,,,0) [2025-01-01 00:00:05] Production.INFO: next invoice date [2025-01-01 00:00:05] Production.INFO: 2025-02-01 [2025-01-01 00:00:05] Production.INFO: getdaysdiff [2025-01-01 00:00:05] Production.INFO: +31 [2025-01-01 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (113,11,1,31,31,'RMScheduler',2025-01-01 00:00:04,1,0,,,0) [2025-01-01 00:00:05] Production.INFO: next invoice date [2025-01-01 00:00:05] Production.INFO: 2025-02-01 [2025-01-01 00:00:05] Production.INFO: getdaysdiff [2025-01-01 00:00:05] Production.INFO: +31 [2025-01-01 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (114,11,1,31,31,'RMScheduler',2025-01-01 00:00:04,1,0,,,0) [2025-01-01 00:00:05] Production.INFO: next invoice date [2025-01-01 00:00:05] Production.INFO: 2025-02-01 [2025-01-01 00:00:05] Production.INFO: getdaysdiff [2025-01-01 00:00:05] Production.INFO: +31 [2025-01-01 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (3,16,1,31,31,'RMScheduler',2025-01-01 00:00:04,1,0,,,0) [2025-01-01 00:00:05] Production.INFO: next invoice date [2025-01-01 00:00:05] Production.INFO: 2025-02-01 [2025-01-01 00:00:05] Production.INFO: getdaysdiff [2025-01-01 00:00:05] Production.INFO: +31 [2025-01-01 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (147,11,1,31,31,'RMScheduler',2025-01-01 00:00:04,1,0,,,0) [2025-01-01 00:00:05] Production.INFO: next invoice date [2025-01-01 00:00:05] Production.INFO: 2025-02-01 [2025-01-01 00:00:05] Production.INFO: getdaysdiff [2025-01-01 00:00:05] Production.INFO: +31 [2025-01-01 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (148,11,1,31,31,'RMScheduler',2025-01-01 00:00:04,1,0,,,0) [2025-01-01 00:00:05] Production.INFO: next invoice date [2025-01-01 00:00:05] Production.INFO: 2025-02-01 [2025-01-01 00:00:05] Production.INFO: getdaysdiff [2025-01-01 00:00:05] Production.INFO: +31 [2025-01-01 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (66,11,1,31,31,'RMScheduler',2025-01-01 00:00:04,1,0,,,0) [2025-01-01 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:00:06 [end_date_ymd] => 2025-01-01 00:00:06 [RateCDR] => 1 ) [2025-01-01 00: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` >= '2024-12-31 21:00:06' and `end` < '2025-01-01 00: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-01-01 00:00:36] Production.INFO: count ==2409 [2025-01-01 00:00:37] Production.ERROR: pbx CDR StartTime 2024-12-31 21:00:06 - End Time 2025-01-01 00:00:06 [2025-01-01 00:00:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147066', 'tblTempUsageDetail_20' ) start [2025-01-01 00:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147066', 'tblTempUsageDetail_20' ) end [2025-01-01 00:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147066', 'tblTempVendorCDR_20' ) start [2025-01-01 00:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147066', 'tblTempVendorCDR_20' ) end [2025-01-01 00:00:37] Production.INFO: ProcessCDR(1,14147066,1,1,2) [2025-01-01 00:00:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:00:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:00:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:00:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:00:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147066', 'tblTempUsageDetail_20' ) start [2025-01-01 00:00:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147066', 'tblTempUsageDetail_20' ) end [2025-01-01 00:00:41] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:00:41] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:00:42] Production.INFO: ==12392== Releasing lock... [2025-01-01 00:00:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:00:42] Production.INFO: 47.5 MB #Memory Used# [2025-01-01 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:01:05 [end_date_ymd] => 2025-01-01 00:01:05 [RateCDR] => 1 ) [2025-01-01 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 21:01:05' and `end` < '2025-01-01 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 00:01:24] Production.INFO: count ==2386 [2025-01-01 00:01:25] Production.ERROR: pbx CDR StartTime 2024-12-31 21:01:05 - End Time 2025-01-01 00:01:05 [2025-01-01 00:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147071', 'tblTempUsageDetail_20' ) start [2025-01-01 00:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147071', 'tblTempUsageDetail_20' ) end [2025-01-01 00:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147071', 'tblTempVendorCDR_20' ) start [2025-01-01 00:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147071', 'tblTempVendorCDR_20' ) end [2025-01-01 00:01:25] Production.INFO: ProcessCDR(1,14147071,1,1,2) [2025-01-01 00:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147071', 'tblTempUsageDetail_20' ) start [2025-01-01 00:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147071', 'tblTempUsageDetail_20' ) end [2025-01-01 00:01:28] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:01:28] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:01:28] Production.INFO: ==12511== Releasing lock... [2025-01-01 00:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:01:28] Production.INFO: 46 MB #Memory Used# [2025-01-01 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:02:05 [end_date_ymd] => 2025-01-01 00:02:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:02:05' and `end` < '2025-01-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-01-01 00:02:31] Production.INFO: count ==1511 [2025-01-01 00:02:31] Production.ERROR: pbx CDR StartTime 2024-12-31 21:02:05 - End Time 2025-01-01 00:02:05 [2025-01-01 00:02:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147076', 'tblTempUsageDetail_20' ) start [2025-01-01 00:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147076', 'tblTempUsageDetail_20' ) end [2025-01-01 00:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147076', 'tblTempVendorCDR_20' ) start [2025-01-01 00:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147076', 'tblTempVendorCDR_20' ) end [2025-01-01 00:02:31] Production.INFO: ProcessCDR(1,14147076,1,1,2) [2025-01-01 00:02:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:02:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:02:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147076', 'tblTempUsageDetail_20' ) start [2025-01-01 00:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147076', 'tblTempUsageDetail_20' ) end [2025-01-01 00:02:36] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:02:36] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:02:36] Production.INFO: ==12595== Releasing lock... [2025-01-01 00:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:02:36] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:03:05 [end_date_ymd] => 2025-01-01 00:03:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:03:05' and `end` < '2025-01-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-01-01 00:03:23] Production.INFO: count ==1511 [2025-01-01 00:03:23] Production.ERROR: pbx CDR StartTime 2024-12-31 21:03:05 - End Time 2025-01-01 00:03:05 [2025-01-01 00:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147081', 'tblTempUsageDetail_20' ) start [2025-01-01 00:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147081', 'tblTempUsageDetail_20' ) end [2025-01-01 00:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147081', 'tblTempVendorCDR_20' ) start [2025-01-01 00:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147081', 'tblTempVendorCDR_20' ) end [2025-01-01 00:03:23] Production.INFO: ProcessCDR(1,14147081,1,1,2) [2025-01-01 00:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147081', 'tblTempUsageDetail_20' ) start [2025-01-01 00:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147081', 'tblTempUsageDetail_20' ) end [2025-01-01 00:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:03:26] Production.INFO: ==12670== Releasing lock... [2025-01-01 00:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:03:26] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:04:05 [end_date_ymd] => 2025-01-01 00:04:05 [RateCDR] => 1 ) [2025-01-01 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 21:04:05' and `end` < '2025-01-01 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 00:04:21] Production.INFO: count ==1508 [2025-01-01 00:04:22] Production.ERROR: pbx CDR StartTime 2024-12-31 21:04:05 - End Time 2025-01-01 00:04:05 [2025-01-01 00:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147086', 'tblTempUsageDetail_20' ) start [2025-01-01 00:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147086', 'tblTempUsageDetail_20' ) end [2025-01-01 00:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147086', 'tblTempVendorCDR_20' ) start [2025-01-01 00:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147086', 'tblTempVendorCDR_20' ) end [2025-01-01 00:04:22] Production.INFO: ProcessCDR(1,14147086,1,1,2) [2025-01-01 00:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147086', 'tblTempUsageDetail_20' ) start [2025-01-01 00:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147086', 'tblTempUsageDetail_20' ) end [2025-01-01 00:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:04:25] Production.INFO: ==12747== Releasing lock... [2025-01-01 00:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:04:25] Production.INFO: 39.5 MB #Memory Used# [2025-01-01 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:05:05 [end_date_ymd] => 2025-01-01 00:05:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:05:05' and `end` < '2025-01-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-01-01 00:05:21] Production.INFO: count ==1507 [2025-01-01 00:05:21] Production.ERROR: pbx CDR StartTime 2024-12-31 21:05:05 - End Time 2025-01-01 00:05:05 [2025-01-01 00:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147091', 'tblTempUsageDetail_20' ) start [2025-01-01 00:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147091', 'tblTempUsageDetail_20' ) end [2025-01-01 00:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147091', 'tblTempVendorCDR_20' ) start [2025-01-01 00:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147091', 'tblTempVendorCDR_20' ) end [2025-01-01 00:05:21] Production.INFO: ProcessCDR(1,14147091,1,1,2) [2025-01-01 00:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147091', 'tblTempUsageDetail_20' ) start [2025-01-01 00:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147091', 'tblTempUsageDetail_20' ) end [2025-01-01 00:05:25] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:05:25] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:05:25] Production.INFO: ==12821== Releasing lock... [2025-01-01 00:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:05:25] Production.INFO: 39.5 MB #Memory Used# [2025-01-01 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:06:05 [end_date_ymd] => 2025-01-01 00:06:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:06:05' and `end` < '2025-01-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-01-01 00:06:19] Production.INFO: count ==1503 [2025-01-01 00:06:20] Production.ERROR: pbx CDR StartTime 2024-12-31 21:06:05 - End Time 2025-01-01 00:06:05 [2025-01-01 00:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147096', 'tblTempUsageDetail_20' ) start [2025-01-01 00:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147096', 'tblTempUsageDetail_20' ) end [2025-01-01 00:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147096', 'tblTempVendorCDR_20' ) start [2025-01-01 00:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147096', 'tblTempVendorCDR_20' ) end [2025-01-01 00:06:20] Production.INFO: ProcessCDR(1,14147096,1,1,2) [2025-01-01 00:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147096', 'tblTempUsageDetail_20' ) start [2025-01-01 00:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147096', 'tblTempUsageDetail_20' ) end [2025-01-01 00:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:06:23] Production.INFO: ==12892== Releasing lock... [2025-01-01 00:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:06:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:07:05 [end_date_ymd] => 2025-01-01 00:07:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:07:05' and `end` < '2025-01-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-01-01 00:07:18] Production.INFO: count ==1499 [2025-01-01 00:07:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:07:05 - End Time 2025-01-01 00:07:05 [2025-01-01 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147101', 'tblTempUsageDetail_20' ) start [2025-01-01 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147101', 'tblTempUsageDetail_20' ) end [2025-01-01 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147101', 'tblTempVendorCDR_20' ) start [2025-01-01 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147101', 'tblTempVendorCDR_20' ) end [2025-01-01 00:07:18] Production.INFO: ProcessCDR(1,14147101,1,1,2) [2025-01-01 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147101', 'tblTempUsageDetail_20' ) start [2025-01-01 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147101', 'tblTempUsageDetail_20' ) end [2025-01-01 00:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:07:22] Production.INFO: ==12963== Releasing lock... [2025-01-01 00:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:07:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-01 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:08:05 [end_date_ymd] => 2025-01-01 00:08:05 [RateCDR] => 1 ) [2025-01-01 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 21:08:05' and `end` < '2025-01-01 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 00:08:18] Production.INFO: count ==1492 [2025-01-01 00:08:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:08:05 - End Time 2025-01-01 00:08:05 [2025-01-01 00:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147106', 'tblTempUsageDetail_20' ) start [2025-01-01 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147106', 'tblTempUsageDetail_20' ) end [2025-01-01 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147106', 'tblTempVendorCDR_20' ) start [2025-01-01 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147106', 'tblTempVendorCDR_20' ) end [2025-01-01 00:08:19] Production.INFO: ProcessCDR(1,14147106,1,1,2) [2025-01-01 00:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147106', 'tblTempUsageDetail_20' ) start [2025-01-01 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147106', 'tblTempUsageDetail_20' ) end [2025-01-01 00:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:08:22] Production.INFO: ==13076== Releasing lock... [2025-01-01 00:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:08:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:09:05 [end_date_ymd] => 2025-01-01 00:09:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:09:05' and `end` < '2025-01-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-01-01 00:09:17] Production.INFO: count ==1493 [2025-01-01 00:09:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:09:05 - End Time 2025-01-01 00:09:05 [2025-01-01 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147111', 'tblTempUsageDetail_20' ) start [2025-01-01 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147111', 'tblTempUsageDetail_20' ) end [2025-01-01 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147111', 'tblTempVendorCDR_20' ) start [2025-01-01 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147111', 'tblTempVendorCDR_20' ) end [2025-01-01 00:09:18] Production.INFO: ProcessCDR(1,14147111,1,1,2) [2025-01-01 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147111', 'tblTempUsageDetail_20' ) start [2025-01-01 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147111', 'tblTempUsageDetail_20' ) end [2025-01-01 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:09:21] Production.INFO: ==13151== Releasing lock... [2025-01-01 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:09:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:10:06 [end_date_ymd] => 2025-01-01 00:10:06 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:10:06' and `end` < '2025-01-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-01-01 00:10:19] Production.INFO: count ==1501 [2025-01-01 00:10:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:10:06 - End Time 2025-01-01 00:10:06 [2025-01-01 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147116', 'tblTempUsageDetail_20' ) start [2025-01-01 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147116', 'tblTempUsageDetail_20' ) end [2025-01-01 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147116', 'tblTempVendorCDR_20' ) start [2025-01-01 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147116', 'tblTempVendorCDR_20' ) end [2025-01-01 00:10:19] Production.INFO: ProcessCDR(1,14147116,1,1,2) [2025-01-01 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147116', 'tblTempUsageDetail_20' ) start [2025-01-01 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147116', 'tblTempUsageDetail_20' ) end [2025-01-01 00:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:10:23] Production.INFO: ==13227== Releasing lock... [2025-01-01 00:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:10:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-01 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:11:05 [end_date_ymd] => 2025-01-01 00:11:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:11:05' and `end` < '2025-01-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-01-01 00:11:18] Production.INFO: count ==1517 [2025-01-01 00:11:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:11:05 - End Time 2025-01-01 00:11:05 [2025-01-01 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147122', 'tblTempUsageDetail_20' ) start [2025-01-01 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147122', 'tblTempUsageDetail_20' ) end [2025-01-01 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147122', 'tblTempVendorCDR_20' ) start [2025-01-01 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147122', 'tblTempVendorCDR_20' ) end [2025-01-01 00:11:18] Production.INFO: ProcessCDR(1,14147122,1,1,2) [2025-01-01 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147122', 'tblTempUsageDetail_20' ) start [2025-01-01 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147122', 'tblTempUsageDetail_20' ) end [2025-01-01 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:11:22] Production.INFO: ==13302== Releasing lock... [2025-01-01 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:11:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:12:05 [end_date_ymd] => 2025-01-01 00:12:05 [RateCDR] => 1 ) [2025-01-01 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 21:12:05' and `end` < '2025-01-01 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 00:12:18] Production.INFO: count ==1517 [2025-01-01 00:12:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:12:05 - End Time 2025-01-01 00:12:05 [2025-01-01 00:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147127', 'tblTempUsageDetail_20' ) start [2025-01-01 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147127', 'tblTempUsageDetail_20' ) end [2025-01-01 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147127', 'tblTempVendorCDR_20' ) start [2025-01-01 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147127', 'tblTempVendorCDR_20' ) end [2025-01-01 00:12:19] Production.INFO: ProcessCDR(1,14147127,1,1,2) [2025-01-01 00:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147127', 'tblTempUsageDetail_20' ) start [2025-01-01 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147127', 'tblTempUsageDetail_20' ) end [2025-01-01 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:12:22] Production.INFO: ==13373== Releasing lock... [2025-01-01 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:12:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:13:05 [end_date_ymd] => 2025-01-01 00:13:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:13:05' and `end` < '2025-01-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-01-01 00:13:18] Production.INFO: count ==1511 [2025-01-01 00:13:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:13:05 - End Time 2025-01-01 00:13:05 [2025-01-01 00:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147132', 'tblTempUsageDetail_20' ) start [2025-01-01 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147132', 'tblTempUsageDetail_20' ) end [2025-01-01 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147132', 'tblTempVendorCDR_20' ) start [2025-01-01 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147132', 'tblTempVendorCDR_20' ) end [2025-01-01 00:13:19] Production.INFO: ProcessCDR(1,14147132,1,1,2) [2025-01-01 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147132', 'tblTempUsageDetail_20' ) start [2025-01-01 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147132', 'tblTempUsageDetail_20' ) end [2025-01-01 00:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:13:23] Production.INFO: ==13451== Releasing lock... [2025-01-01 00:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:13:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:14:05 [end_date_ymd] => 2025-01-01 00:14:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:14:05' and `end` < '2025-01-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-01-01 00:14:18] Production.INFO: count ==1495 [2025-01-01 00:14:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:14:05 - End Time 2025-01-01 00:14:05 [2025-01-01 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147137', 'tblTempUsageDetail_20' ) start [2025-01-01 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147137', 'tblTempUsageDetail_20' ) end [2025-01-01 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147137', 'tblTempVendorCDR_20' ) start [2025-01-01 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147137', 'tblTempVendorCDR_20' ) end [2025-01-01 00:14:19] Production.INFO: ProcessCDR(1,14147137,1,1,2) [2025-01-01 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147137', 'tblTempUsageDetail_20' ) start [2025-01-01 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147137', 'tblTempUsageDetail_20' ) end [2025-01-01 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:14:22] Production.INFO: ==13533== Releasing lock... [2025-01-01 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:14:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-01 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:15:05 [end_date_ymd] => 2025-01-01 00:15:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:15:05' and `end` < '2025-01-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-01-01 00:15:17] Production.INFO: count ==1482 [2025-01-01 00:15:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:15:05 - End Time 2025-01-01 00:15:05 [2025-01-01 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147142', 'tblTempUsageDetail_20' ) start [2025-01-01 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147142', 'tblTempUsageDetail_20' ) end [2025-01-01 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147142', 'tblTempVendorCDR_20' ) start [2025-01-01 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147142', 'tblTempVendorCDR_20' ) end [2025-01-01 00:15:18] Production.INFO: ProcessCDR(1,14147142,1,1,2) [2025-01-01 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147142', 'tblTempUsageDetail_20' ) start [2025-01-01 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147142', 'tblTempUsageDetail_20' ) end [2025-01-01 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:15:21] Production.INFO: ==13609== Releasing lock... [2025-01-01 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:15:21] Production.INFO: 40 MB #Memory Used# [2025-01-01 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:16:05 [end_date_ymd] => 2025-01-01 00:16:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:16:05' and `end` < '2025-01-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-01-01 00:16:18] Production.INFO: count ==1471 [2025-01-01 00:16:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:16:05 - End Time 2025-01-01 00:16:05 [2025-01-01 00:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147147', 'tblTempUsageDetail_20' ) start [2025-01-01 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147147', 'tblTempUsageDetail_20' ) end [2025-01-01 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147147', 'tblTempVendorCDR_20' ) start [2025-01-01 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147147', 'tblTempVendorCDR_20' ) end [2025-01-01 00:16:19] Production.INFO: ProcessCDR(1,14147147,1,1,2) [2025-01-01 00:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147147', 'tblTempUsageDetail_20' ) start [2025-01-01 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147147', 'tblTempUsageDetail_20' ) end [2025-01-01 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:16:22] Production.INFO: ==13684== Releasing lock... [2025-01-01 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:16:22] Production.INFO: 40 MB #Memory Used# [2025-01-01 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:17:05 [end_date_ymd] => 2025-01-01 00:17:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:17:05' and `end` < '2025-01-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-01-01 00:17:17] Production.INFO: count ==1465 [2025-01-01 00:17:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:17:05 - End Time 2025-01-01 00:17:05 [2025-01-01 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147152', 'tblTempUsageDetail_20' ) start [2025-01-01 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147152', 'tblTempUsageDetail_20' ) end [2025-01-01 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147152', 'tblTempVendorCDR_20' ) start [2025-01-01 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147152', 'tblTempVendorCDR_20' ) end [2025-01-01 00:17:18] Production.INFO: ProcessCDR(1,14147152,1,1,2) [2025-01-01 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147152', 'tblTempUsageDetail_20' ) start [2025-01-01 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147152', 'tblTempUsageDetail_20' ) end [2025-01-01 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:17:22] Production.INFO: ==13771== Releasing lock... [2025-01-01 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:17:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-01 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:18:05 [end_date_ymd] => 2025-01-01 00:18:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:18:05' and `end` < '2025-01-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-01-01 00:18:18] Production.INFO: count ==1465 [2025-01-01 00:18:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:18:05 - End Time 2025-01-01 00:18:05 [2025-01-01 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147157', 'tblTempUsageDetail_20' ) start [2025-01-01 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147157', 'tblTempUsageDetail_20' ) end [2025-01-01 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147157', 'tblTempVendorCDR_20' ) start [2025-01-01 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147157', 'tblTempVendorCDR_20' ) end [2025-01-01 00:18:19] Production.INFO: ProcessCDR(1,14147157,1,1,2) [2025-01-01 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147157', 'tblTempUsageDetail_20' ) start [2025-01-01 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147157', 'tblTempUsageDetail_20' ) end [2025-01-01 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:18:22] Production.INFO: ==13842== Releasing lock... [2025-01-01 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:18:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-01 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:19:05 [end_date_ymd] => 2025-01-01 00:19:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:19:05' and `end` < '2025-01-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-01-01 00:19:19] Production.INFO: count ==1458 [2025-01-01 00:19:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:19:05 - End Time 2025-01-01 00:19:05 [2025-01-01 00:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147162', 'tblTempUsageDetail_20' ) start [2025-01-01 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147162', 'tblTempUsageDetail_20' ) end [2025-01-01 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147162', 'tblTempVendorCDR_20' ) start [2025-01-01 00:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147162', 'tblTempVendorCDR_20' ) end [2025-01-01 00:19:19] Production.INFO: ProcessCDR(1,14147162,1,1,2) [2025-01-01 00:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147162', 'tblTempUsageDetail_20' ) start [2025-01-01 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147162', 'tblTempUsageDetail_20' ) end [2025-01-01 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:19:22] Production.INFO: ==13917== Releasing lock... [2025-01-01 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:19:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-01 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:20:05 [end_date_ymd] => 2025-01-01 00:20:05 [RateCDR] => 1 ) [2025-01-01 00: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` >= '2024-12-31 21:20:05' and `end` < '2025-01-01 00: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-01-01 00:20:18] Production.INFO: count ==1454 [2025-01-01 00:20:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:20:05 - End Time 2025-01-01 00:20:05 [2025-01-01 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147167', 'tblTempUsageDetail_20' ) start [2025-01-01 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147167', 'tblTempUsageDetail_20' ) end [2025-01-01 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147167', 'tblTempVendorCDR_20' ) start [2025-01-01 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147167', 'tblTempVendorCDR_20' ) end [2025-01-01 00:20:19] Production.INFO: ProcessCDR(1,14147167,1,1,2) [2025-01-01 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147167', 'tblTempUsageDetail_20' ) start [2025-01-01 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147167', 'tblTempUsageDetail_20' ) end [2025-01-01 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:20:22] Production.INFO: ==14015== Releasing lock... [2025-01-01 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:20:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-01 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:21:05 [end_date_ymd] => 2025-01-01 00:21:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:21:05' and `end` < '2025-01-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-01-01 00:21:18] Production.INFO: count ==1470 [2025-01-01 00:21:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:21:05 - End Time 2025-01-01 00:21:05 [2025-01-01 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147173', 'tblTempUsageDetail_20' ) start [2025-01-01 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147173', 'tblTempUsageDetail_20' ) end [2025-01-01 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147173', 'tblTempVendorCDR_20' ) start [2025-01-01 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147173', 'tblTempVendorCDR_20' ) end [2025-01-01 00:21:19] Production.INFO: ProcessCDR(1,14147173,1,1,2) [2025-01-01 00:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147173', 'tblTempUsageDetail_20' ) start [2025-01-01 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147173', 'tblTempUsageDetail_20' ) end [2025-01-01 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:21:22] Production.INFO: ==14091== Releasing lock... [2025-01-01 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:21:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:22:05 [end_date_ymd] => 2025-01-01 00:22:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:22:05' and `end` < '2025-01-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-01-01 00:22:18] Production.INFO: count ==1459 [2025-01-01 00:22:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:22:05 - End Time 2025-01-01 00:22:05 [2025-01-01 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147178', 'tblTempUsageDetail_20' ) start [2025-01-01 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147178', 'tblTempUsageDetail_20' ) end [2025-01-01 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147178', 'tblTempVendorCDR_20' ) start [2025-01-01 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147178', 'tblTempVendorCDR_20' ) end [2025-01-01 00:22:18] Production.INFO: ProcessCDR(1,14147178,1,1,2) [2025-01-01 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147178', 'tblTempUsageDetail_20' ) start [2025-01-01 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147178', 'tblTempUsageDetail_20' ) end [2025-01-01 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:22:21] Production.INFO: ==14163== Releasing lock... [2025-01-01 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:22:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-01 00:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:23:04 [end_date_ymd] => 2025-01-01 00:23:04 [RateCDR] => 1 ) [2025-01-01 00: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` >= '2024-12-31 21:23:04' and `end` < '2025-01-01 00: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-01-01 00:23:17] Production.INFO: count ==1443 [2025-01-01 00:23:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:23:04 - End Time 2025-01-01 00:23:04 [2025-01-01 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147183', 'tblTempUsageDetail_20' ) start [2025-01-01 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147183', 'tblTempUsageDetail_20' ) end [2025-01-01 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147183', 'tblTempVendorCDR_20' ) start [2025-01-01 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147183', 'tblTempVendorCDR_20' ) end [2025-01-01 00:23:18] Production.INFO: ProcessCDR(1,14147183,1,1,2) [2025-01-01 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147183', 'tblTempUsageDetail_20' ) start [2025-01-01 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147183', 'tblTempUsageDetail_20' ) end [2025-01-01 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:23:21] Production.INFO: ==14234== Releasing lock... [2025-01-01 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:23:21] Production.INFO: 39 MB #Memory Used# [2025-01-01 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:24:05 [end_date_ymd] => 2025-01-01 00:24:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:24:05' and `end` < '2025-01-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-01-01 00:24:18] Production.INFO: count ==1432 [2025-01-01 00:24:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:24:05 - End Time 2025-01-01 00:24:05 [2025-01-01 00:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147188', 'tblTempUsageDetail_20' ) start [2025-01-01 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147188', 'tblTempUsageDetail_20' ) end [2025-01-01 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147188', 'tblTempVendorCDR_20' ) start [2025-01-01 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147188', 'tblTempVendorCDR_20' ) end [2025-01-01 00:24:19] Production.INFO: ProcessCDR(1,14147188,1,1,2) [2025-01-01 00:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147188', 'tblTempUsageDetail_20' ) start [2025-01-01 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147188', 'tblTempUsageDetail_20' ) end [2025-01-01 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:24:22] Production.INFO: ==14348== Releasing lock... [2025-01-01 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:24:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-01 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:25:04 [end_date_ymd] => 2025-01-01 00:25:04 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:25:04' and `end` < '2025-01-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-01-01 00:25:17] Production.INFO: count ==1429 [2025-01-01 00:25:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:25:04 - End Time 2025-01-01 00:25:04 [2025-01-01 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147193', 'tblTempUsageDetail_20' ) start [2025-01-01 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147193', 'tblTempUsageDetail_20' ) end [2025-01-01 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147193', 'tblTempVendorCDR_20' ) start [2025-01-01 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147193', 'tblTempVendorCDR_20' ) end [2025-01-01 00:25:18] Production.INFO: ProcessCDR(1,14147193,1,1,2) [2025-01-01 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147193', 'tblTempUsageDetail_20' ) start [2025-01-01 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147193', 'tblTempUsageDetail_20' ) end [2025-01-01 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:25:21] Production.INFO: ==14421== Releasing lock... [2025-01-01 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:25:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-01 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:26:05 [end_date_ymd] => 2025-01-01 00:26:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:26:05' and `end` < '2025-01-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-01-01 00:26:18] Production.INFO: count ==1428 [2025-01-01 00:26:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:26:05 - End Time 2025-01-01 00:26:05 [2025-01-01 00:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147198', 'tblTempUsageDetail_20' ) start [2025-01-01 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147198', 'tblTempUsageDetail_20' ) end [2025-01-01 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147198', 'tblTempVendorCDR_20' ) start [2025-01-01 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147198', 'tblTempVendorCDR_20' ) end [2025-01-01 00:26:19] Production.INFO: ProcessCDR(1,14147198,1,1,2) [2025-01-01 00:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147198', 'tblTempUsageDetail_20' ) start [2025-01-01 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147198', 'tblTempUsageDetail_20' ) end [2025-01-01 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:26:22] Production.INFO: ==14497== Releasing lock... [2025-01-01 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:26:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-01 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:27:05 [end_date_ymd] => 2025-01-01 00:27:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:27:05' and `end` < '2025-01-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-01-01 00:27:17] Production.INFO: count ==1429 [2025-01-01 00:27:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:27:05 - End Time 2025-01-01 00:27:05 [2025-01-01 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147203', 'tblTempUsageDetail_20' ) start [2025-01-01 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147203', 'tblTempUsageDetail_20' ) end [2025-01-01 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147203', 'tblTempVendorCDR_20' ) start [2025-01-01 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147203', 'tblTempVendorCDR_20' ) end [2025-01-01 00:27:18] Production.INFO: ProcessCDR(1,14147203,1,1,2) [2025-01-01 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147203', 'tblTempUsageDetail_20' ) start [2025-01-01 00:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147203', 'tblTempUsageDetail_20' ) end [2025-01-01 00:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:27:23] Production.INFO: ==14574== Releasing lock... [2025-01-01 00:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:27:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-01 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:28:05 [end_date_ymd] => 2025-01-01 00:28:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:28:05' and `end` < '2025-01-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-01-01 00:28:18] Production.INFO: count ==1428 [2025-01-01 00:28:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:28:05 - End Time 2025-01-01 00:28:05 [2025-01-01 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147208', 'tblTempUsageDetail_20' ) start [2025-01-01 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147208', 'tblTempUsageDetail_20' ) end [2025-01-01 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147208', 'tblTempVendorCDR_20' ) start [2025-01-01 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147208', 'tblTempVendorCDR_20' ) end [2025-01-01 00:28:18] Production.INFO: ProcessCDR(1,14147208,1,1,2) [2025-01-01 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147208', 'tblTempUsageDetail_20' ) start [2025-01-01 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147208', 'tblTempUsageDetail_20' ) end [2025-01-01 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:28:21] Production.INFO: ==14645== Releasing lock... [2025-01-01 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:28:21] Production.INFO: 39 MB #Memory Used# [2025-01-01 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:29:05 [end_date_ymd] => 2025-01-01 00:29:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:29:05' and `end` < '2025-01-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-01-01 00:29:17] Production.INFO: count ==1428 [2025-01-01 00:29:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:29:05 - End Time 2025-01-01 00:29:05 [2025-01-01 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147213', 'tblTempUsageDetail_20' ) start [2025-01-01 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147213', 'tblTempUsageDetail_20' ) end [2025-01-01 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147213', 'tblTempVendorCDR_20' ) start [2025-01-01 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147213', 'tblTempVendorCDR_20' ) end [2025-01-01 00:29:18] Production.INFO: ProcessCDR(1,14147213,1,1,2) [2025-01-01 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147213', 'tblTempUsageDetail_20' ) start [2025-01-01 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147213', 'tblTempUsageDetail_20' ) end [2025-01-01 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:29:21] Production.INFO: ==14717== Releasing lock... [2025-01-01 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:29:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-01 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:30:05 [end_date_ymd] => 2025-01-01 00:30:05 [RateCDR] => 1 ) [2025-01-01 00: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` >= '2024-12-31 21:30:05' and `end` < '2025-01-01 00: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-01-01 00:30:18] Production.INFO: count ==1431 [2025-01-01 00:30:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:30:05 - End Time 2025-01-01 00:30:05 [2025-01-01 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147218', 'tblTempUsageDetail_20' ) start [2025-01-01 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147218', 'tblTempUsageDetail_20' ) end [2025-01-01 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147218', 'tblTempVendorCDR_20' ) start [2025-01-01 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147218', 'tblTempVendorCDR_20' ) end [2025-01-01 00:30:19] Production.INFO: ProcessCDR(1,14147218,1,1,2) [2025-01-01 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147218', 'tblTempUsageDetail_20' ) start [2025-01-01 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147218', 'tblTempUsageDetail_20' ) end [2025-01-01 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:30:22] Production.INFO: ==14797== Releasing lock... [2025-01-01 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:30:22] Production.INFO: 39 MB #Memory Used# [2025-01-01 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:31:05 [end_date_ymd] => 2025-01-01 00:31:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:31:05' and `end` < '2025-01-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-01-01 00:31:18] Production.INFO: count ==1491 [2025-01-01 00:31:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:31:05 - End Time 2025-01-01 00:31:05 [2025-01-01 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147224', 'tblTempUsageDetail_20' ) start [2025-01-01 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147224', 'tblTempUsageDetail_20' ) end [2025-01-01 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147224', 'tblTempVendorCDR_20' ) start [2025-01-01 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147224', 'tblTempVendorCDR_20' ) end [2025-01-01 00:31:18] Production.INFO: ProcessCDR(1,14147224,1,1,2) [2025-01-01 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147224', 'tblTempUsageDetail_20' ) start [2025-01-01 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147224', 'tblTempUsageDetail_20' ) end [2025-01-01 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:31:21] Production.INFO: ==14875== Releasing lock... [2025-01-01 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:31:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-01 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:32:05 [end_date_ymd] => 2025-01-01 00:32:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:32:05' and `end` < '2025-01-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-01-01 00:32:18] Production.INFO: count ==1496 [2025-01-01 00:32:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:32:05 - End Time 2025-01-01 00:32:05 [2025-01-01 00:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147229', 'tblTempUsageDetail_20' ) start [2025-01-01 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147229', 'tblTempUsageDetail_20' ) end [2025-01-01 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147229', 'tblTempVendorCDR_20' ) start [2025-01-01 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147229', 'tblTempVendorCDR_20' ) end [2025-01-01 00:32:19] Production.INFO: ProcessCDR(1,14147229,1,1,2) [2025-01-01 00:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147229', 'tblTempUsageDetail_20' ) start [2025-01-01 00:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147229', 'tblTempUsageDetail_20' ) end [2025-01-01 00:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:32:23] Production.INFO: ==14951== Releasing lock... [2025-01-01 00:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:32:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:33:04 [end_date_ymd] => 2025-01-01 00:33:04 [RateCDR] => 1 ) [2025-01-01 00: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` >= '2024-12-31 21:33:04' and `end` < '2025-01-01 00: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-01-01 00:33:17] Production.INFO: count ==1496 [2025-01-01 00:33:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:33:04 - End Time 2025-01-01 00:33:04 [2025-01-01 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147234', 'tblTempUsageDetail_20' ) start [2025-01-01 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147234', 'tblTempUsageDetail_20' ) end [2025-01-01 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147234', 'tblTempVendorCDR_20' ) start [2025-01-01 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147234', 'tblTempVendorCDR_20' ) end [2025-01-01 00:33:18] Production.INFO: ProcessCDR(1,14147234,1,1,2) [2025-01-01 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147234', 'tblTempUsageDetail_20' ) start [2025-01-01 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147234', 'tblTempUsageDetail_20' ) end [2025-01-01 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:33:21] Production.INFO: ==15026== Releasing lock... [2025-01-01 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:33:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:34:05 [end_date_ymd] => 2025-01-01 00:34:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:34:05' and `end` < '2025-01-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-01-01 00:34:18] Production.INFO: count ==1499 [2025-01-01 00:34:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:34:05 - End Time 2025-01-01 00:34:05 [2025-01-01 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147239', 'tblTempUsageDetail_20' ) start [2025-01-01 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147239', 'tblTempUsageDetail_20' ) end [2025-01-01 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147239', 'tblTempVendorCDR_20' ) start [2025-01-01 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147239', 'tblTempVendorCDR_20' ) end [2025-01-01 00:34:19] Production.INFO: ProcessCDR(1,14147239,1,1,2) [2025-01-01 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147239', 'tblTempUsageDetail_20' ) start [2025-01-01 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147239', 'tblTempUsageDetail_20' ) end [2025-01-01 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:34:22] Production.INFO: ==15117== Releasing lock... [2025-01-01 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:34:22] Production.INFO: 40 MB #Memory Used# [2025-01-01 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:35:05 [end_date_ymd] => 2025-01-01 00:35:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:35:05' and `end` < '2025-01-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-01-01 00:35:17] Production.INFO: count ==1496 [2025-01-01 00:35:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:35:05 - End Time 2025-01-01 00:35:05 [2025-01-01 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147244', 'tblTempUsageDetail_20' ) start [2025-01-01 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147244', 'tblTempUsageDetail_20' ) end [2025-01-01 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147244', 'tblTempVendorCDR_20' ) start [2025-01-01 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147244', 'tblTempVendorCDR_20' ) end [2025-01-01 00:35:18] Production.INFO: ProcessCDR(1,14147244,1,1,2) [2025-01-01 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147244', 'tblTempUsageDetail_20' ) start [2025-01-01 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147244', 'tblTempUsageDetail_20' ) end [2025-01-01 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:35:21] Production.INFO: ==15209== Releasing lock... [2025-01-01 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:35:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:36:05 [end_date_ymd] => 2025-01-01 00:36:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:36:05' and `end` < '2025-01-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-01-01 00:36:25] Production.INFO: count ==1497 [2025-01-01 00:36:25] Production.ERROR: pbx CDR StartTime 2024-12-31 21:36:05 - End Time 2025-01-01 00:36:05 [2025-01-01 00:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147249', 'tblTempUsageDetail_20' ) start [2025-01-01 00:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147249', 'tblTempUsageDetail_20' ) end [2025-01-01 00:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147249', 'tblTempVendorCDR_20' ) start [2025-01-01 00:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147249', 'tblTempVendorCDR_20' ) end [2025-01-01 00:36:25] Production.INFO: ProcessCDR(1,14147249,1,1,2) [2025-01-01 00:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147249', 'tblTempUsageDetail_20' ) start [2025-01-01 00:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147249', 'tblTempUsageDetail_20' ) end [2025-01-01 00:36:29] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:36:29] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:36:29] Production.INFO: ==15301== Releasing lock... [2025-01-01 00:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:36:29] Production.INFO: 39.5 MB #Memory Used# [2025-01-01 00:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:37:04 [end_date_ymd] => 2025-01-01 00:37:04 [RateCDR] => 1 ) [2025-01-01 00:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 21:37:04' and `end` < '2025-01-01 00:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 00:37:17] Production.INFO: count ==1500 [2025-01-01 00:37:17] Production.ERROR: pbx CDR StartTime 2024-12-31 21:37:04 - End Time 2025-01-01 00:37:04 [2025-01-01 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147254', 'tblTempUsageDetail_20' ) start [2025-01-01 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147254', 'tblTempUsageDetail_20' ) end [2025-01-01 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147254', 'tblTempVendorCDR_20' ) start [2025-01-01 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147254', 'tblTempVendorCDR_20' ) end [2025-01-01 00:37:17] Production.INFO: ProcessCDR(1,14147254,1,1,2) [2025-01-01 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147254', 'tblTempUsageDetail_20' ) start [2025-01-01 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147254', 'tblTempUsageDetail_20' ) end [2025-01-01 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:37:21] Production.INFO: ==15387== Releasing lock... [2025-01-01 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:37:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:38:05 [end_date_ymd] => 2025-01-01 00:38:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:38:05' and `end` < '2025-01-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-01-01 00:38:18] Production.INFO: count ==1498 [2025-01-01 00:38:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:38:05 - End Time 2025-01-01 00:38:05 [2025-01-01 00:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147259', 'tblTempUsageDetail_20' ) start [2025-01-01 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147259', 'tblTempUsageDetail_20' ) end [2025-01-01 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147259', 'tblTempVendorCDR_20' ) start [2025-01-01 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147259', 'tblTempVendorCDR_20' ) end [2025-01-01 00:38:19] Production.INFO: ProcessCDR(1,14147259,1,1,2) [2025-01-01 00:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147259', 'tblTempUsageDetail_20' ) start [2025-01-01 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147259', 'tblTempUsageDetail_20' ) end [2025-01-01 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:38:22] Production.INFO: ==15474== Releasing lock... [2025-01-01 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:38:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:39:05 [end_date_ymd] => 2025-01-01 00:39:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:39:05' and `end` < '2025-01-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-01-01 00:39:18] Production.INFO: count ==1499 [2025-01-01 00:39:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:39:05 - End Time 2025-01-01 00:39:05 [2025-01-01 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147264', 'tblTempUsageDetail_20' ) start [2025-01-01 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147264', 'tblTempUsageDetail_20' ) end [2025-01-01 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147264', 'tblTempVendorCDR_20' ) start [2025-01-01 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147264', 'tblTempVendorCDR_20' ) end [2025-01-01 00:39:19] Production.INFO: ProcessCDR(1,14147264,1,1,2) [2025-01-01 00:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147264', 'tblTempUsageDetail_20' ) start [2025-01-01 00:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147264', 'tblTempUsageDetail_20' ) end [2025-01-01 00:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:39:23] Production.INFO: ==15603== Releasing lock... [2025-01-01 00:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:39:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:40:05 [end_date_ymd] => 2025-01-01 00:40:05 [RateCDR] => 1 ) [2025-01-01 00: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` >= '2024-12-31 21:40:05' and `end` < '2025-01-01 00: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-01-01 00:40:25] Production.INFO: count ==1506 [2025-01-01 00:40:26] Production.ERROR: pbx CDR StartTime 2024-12-31 21:40:05 - End Time 2025-01-01 00:40:05 [2025-01-01 00:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147269', 'tblTempUsageDetail_20' ) start [2025-01-01 00:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147269', 'tblTempUsageDetail_20' ) end [2025-01-01 00:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147269', 'tblTempVendorCDR_20' ) start [2025-01-01 00:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147269', 'tblTempVendorCDR_20' ) end [2025-01-01 00:40:26] Production.INFO: ProcessCDR(1,14147269,1,1,2) [2025-01-01 00:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147269', 'tblTempUsageDetail_20' ) start [2025-01-01 00:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147269', 'tblTempUsageDetail_20' ) end [2025-01-01 00:40:30] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:40:30] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:40:30] Production.INFO: ==15682== Releasing lock... [2025-01-01 00:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:40:30] Production.INFO: 39.5 MB #Memory Used# [2025-01-01 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:41:05 [end_date_ymd] => 2025-01-01 00:41:05 [RateCDR] => 1 ) [2025-01-01 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 21:41:05' and `end` < '2025-01-01 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 00:41:20] Production.INFO: count ==1533 [2025-01-01 00:41:21] Production.ERROR: pbx CDR StartTime 2024-12-31 21:41:05 - End Time 2025-01-01 00:41:05 [2025-01-01 00:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147275', 'tblTempUsageDetail_20' ) start [2025-01-01 00:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147275', 'tblTempUsageDetail_20' ) end [2025-01-01 00:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147275', 'tblTempVendorCDR_20' ) start [2025-01-01 00:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147275', 'tblTempVendorCDR_20' ) end [2025-01-01 00:41:21] Production.INFO: ProcessCDR(1,14147275,1,1,2) [2025-01-01 00:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147275', 'tblTempUsageDetail_20' ) start [2025-01-01 00:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147275', 'tblTempUsageDetail_20' ) end [2025-01-01 00:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:41:25] Production.INFO: ==15759== Releasing lock... [2025-01-01 00:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:41:25] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:42:04 [end_date_ymd] => 2025-01-01 00:42:04 [RateCDR] => 1 ) [2025-01-01 00: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` >= '2024-12-31 21:42:04' and `end` < '2025-01-01 00: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-01-01 00:42:20] Production.INFO: count ==1533 [2025-01-01 00:42:21] Production.ERROR: pbx CDR StartTime 2024-12-31 21:42:04 - End Time 2025-01-01 00:42:04 [2025-01-01 00:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147280', 'tblTempUsageDetail_20' ) start [2025-01-01 00:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147280', 'tblTempUsageDetail_20' ) end [2025-01-01 00:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147280', 'tblTempVendorCDR_20' ) start [2025-01-01 00:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147280', 'tblTempVendorCDR_20' ) end [2025-01-01 00:42:21] Production.INFO: ProcessCDR(1,14147280,1,1,2) [2025-01-01 00:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147280', 'tblTempUsageDetail_20' ) start [2025-01-01 00:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147280', 'tblTempUsageDetail_20' ) end [2025-01-01 00:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:42:24] Production.INFO: ==15834== Releasing lock... [2025-01-01 00:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:42:24] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:43:05 [end_date_ymd] => 2025-01-01 00:43:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:43:05' and `end` < '2025-01-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-01-01 00:43:19] Production.INFO: count ==1530 [2025-01-01 00:43:20] Production.ERROR: pbx CDR StartTime 2024-12-31 21:43:05 - End Time 2025-01-01 00:43:05 [2025-01-01 00:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147285', 'tblTempUsageDetail_20' ) start [2025-01-01 00:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147285', 'tblTempUsageDetail_20' ) end [2025-01-01 00:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147285', 'tblTempVendorCDR_20' ) start [2025-01-01 00:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147285', 'tblTempVendorCDR_20' ) end [2025-01-01 00:43:20] Production.INFO: ProcessCDR(1,14147285,1,1,2) [2025-01-01 00:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147285', 'tblTempUsageDetail_20' ) start [2025-01-01 00:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147285', 'tblTempUsageDetail_20' ) end [2025-01-01 00:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:43:24] Production.INFO: ==15906== Releasing lock... [2025-01-01 00:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:43:24] Production.INFO: 40 MB #Memory Used# [2025-01-01 00:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:44:04 [end_date_ymd] => 2025-01-01 00:44:04 [RateCDR] => 1 ) [2025-01-01 00: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` >= '2024-12-31 21:44:04' and `end` < '2025-01-01 00: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-01-01 00:44:17] Production.INFO: count ==1530 [2025-01-01 00:44:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:44:04 - End Time 2025-01-01 00:44:04 [2025-01-01 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147290', 'tblTempUsageDetail_20' ) start [2025-01-01 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147290', 'tblTempUsageDetail_20' ) end [2025-01-01 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147290', 'tblTempVendorCDR_20' ) start [2025-01-01 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147290', 'tblTempVendorCDR_20' ) end [2025-01-01 00:44:18] Production.INFO: ProcessCDR(1,14147290,1,1,2) [2025-01-01 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147290', 'tblTempUsageDetail_20' ) start [2025-01-01 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147290', 'tblTempUsageDetail_20' ) end [2025-01-01 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:44:22] Production.INFO: ==15980== Releasing lock... [2025-01-01 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:44:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:45:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:45:06 [end_date_ymd] => 2025-01-01 00:45:06 [RateCDR] => 1 ) [2025-01-01 00: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` >= '2024-12-31 21:45:06' and `end` < '2025-01-01 00: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-01-01 00:45:22] Production.INFO: count ==1533 [2025-01-01 00:45:23] Production.ERROR: pbx CDR StartTime 2024-12-31 21:45:06 - End Time 2025-01-01 00:45:06 [2025-01-01 00:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147295', 'tblTempUsageDetail_20' ) start [2025-01-01 00:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147295', 'tblTempUsageDetail_20' ) end [2025-01-01 00:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147295', 'tblTempVendorCDR_20' ) start [2025-01-01 00:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147295', 'tblTempVendorCDR_20' ) end [2025-01-01 00:45:23] Production.INFO: ProcessCDR(1,14147295,1,1,2) [2025-01-01 00:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147295', 'tblTempUsageDetail_20' ) start [2025-01-01 00:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147295', 'tblTempUsageDetail_20' ) end [2025-01-01 00:45:26] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:45:26] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:45:26] Production.INFO: ==16061== Releasing lock... [2025-01-01 00:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:45:26] Production.INFO: 40 MB #Memory Used# [2025-01-01 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:46:05 [end_date_ymd] => 2025-01-01 00:46:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:46:05' and `end` < '2025-01-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-01-01 00:46:18] Production.INFO: count ==1531 [2025-01-01 00:46:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:46:05 - End Time 2025-01-01 00:46:05 [2025-01-01 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147300', 'tblTempUsageDetail_20' ) start [2025-01-01 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147300', 'tblTempUsageDetail_20' ) end [2025-01-01 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147300', 'tblTempVendorCDR_20' ) start [2025-01-01 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147300', 'tblTempVendorCDR_20' ) end [2025-01-01 00:46:18] Production.INFO: ProcessCDR(1,14147300,1,1,2) [2025-01-01 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147300', 'tblTempUsageDetail_20' ) start [2025-01-01 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147300', 'tblTempUsageDetail_20' ) end [2025-01-01 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:46:21] Production.INFO: ==16133== Releasing lock... [2025-01-01 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:46:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:47:05 [end_date_ymd] => 2025-01-01 00:47:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:47:05' and `end` < '2025-01-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-01-01 00:47:18] Production.INFO: count ==1531 [2025-01-01 00:47:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:47:05 - End Time 2025-01-01 00:47:05 [2025-01-01 00:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147305', 'tblTempUsageDetail_20' ) start [2025-01-01 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147305', 'tblTempUsageDetail_20' ) end [2025-01-01 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147305', 'tblTempVendorCDR_20' ) start [2025-01-01 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147305', 'tblTempVendorCDR_20' ) end [2025-01-01 00:47:19] Production.INFO: ProcessCDR(1,14147305,1,1,2) [2025-01-01 00:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147305', 'tblTempUsageDetail_20' ) start [2025-01-01 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147305', 'tblTempUsageDetail_20' ) end [2025-01-01 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:47:22] Production.INFO: ==16217== Releasing lock... [2025-01-01 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:47:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:48:05 [end_date_ymd] => 2025-01-01 00:48:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:48:05' and `end` < '2025-01-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-01-01 00:48:18] Production.INFO: count ==1527 [2025-01-01 00:48:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:48:05 - End Time 2025-01-01 00:48:05 [2025-01-01 00:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147310', 'tblTempUsageDetail_20' ) start [2025-01-01 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147310', 'tblTempUsageDetail_20' ) end [2025-01-01 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147310', 'tblTempVendorCDR_20' ) start [2025-01-01 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147310', 'tblTempVendorCDR_20' ) end [2025-01-01 00:48:19] Production.INFO: ProcessCDR(1,14147310,1,1,2) [2025-01-01 00:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147310', 'tblTempUsageDetail_20' ) start [2025-01-01 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147310', 'tblTempUsageDetail_20' ) end [2025-01-01 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:48:22] Production.INFO: ==16290== Releasing lock... [2025-01-01 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:48:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:49:04 [end_date_ymd] => 2025-01-01 00:49:04 [RateCDR] => 1 ) [2025-01-01 00: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` >= '2024-12-31 21:49:04' and `end` < '2025-01-01 00: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-01-01 00:49:17] Production.INFO: count ==1524 [2025-01-01 00:49:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:49:04 - End Time 2025-01-01 00:49:04 [2025-01-01 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147315', 'tblTempUsageDetail_20' ) start [2025-01-01 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147315', 'tblTempUsageDetail_20' ) end [2025-01-01 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147315', 'tblTempVendorCDR_20' ) start [2025-01-01 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147315', 'tblTempVendorCDR_20' ) end [2025-01-01 00:49:18] Production.INFO: ProcessCDR(1,14147315,1,1,2) [2025-01-01 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147315', 'tblTempUsageDetail_20' ) start [2025-01-01 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147315', 'tblTempUsageDetail_20' ) end [2025-01-01 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:49:21] Production.INFO: ==16367== Releasing lock... [2025-01-01 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:49:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:50:06 [end_date_ymd] => 2025-01-01 00:50:06 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:50:06' and `end` < '2025-01-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-01-01 00:50:18] Production.INFO: count ==1532 [2025-01-01 00:50:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:50:06 - End Time 2025-01-01 00:50:06 [2025-01-01 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147321', 'tblTempUsageDetail_20' ) start [2025-01-01 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147321', 'tblTempUsageDetail_20' ) end [2025-01-01 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147321', 'tblTempVendorCDR_20' ) start [2025-01-01 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147321', 'tblTempVendorCDR_20' ) end [2025-01-01 00:50:19] Production.INFO: ProcessCDR(1,14147321,1,1,2) [2025-01-01 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147321', 'tblTempUsageDetail_20' ) start [2025-01-01 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147321', 'tblTempUsageDetail_20' ) end [2025-01-01 00:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:50:23] Production.INFO: ==16446== Releasing lock... [2025-01-01 00:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:50:23] Production.INFO: 40 MB #Memory Used# [2025-01-01 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:51:05 [end_date_ymd] => 2025-01-01 00:51:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:51:05' and `end` < '2025-01-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-01-01 00:51:18] Production.INFO: count ==1563 [2025-01-01 00:51:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:51:05 - End Time 2025-01-01 00:51:05 [2025-01-01 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147326', 'tblTempUsageDetail_20' ) start [2025-01-01 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147326', 'tblTempUsageDetail_20' ) end [2025-01-01 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147326', 'tblTempVendorCDR_20' ) start [2025-01-01 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147326', 'tblTempVendorCDR_20' ) end [2025-01-01 00:51:18] Production.INFO: ProcessCDR(1,14147326,1,1,2) [2025-01-01 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147326', 'tblTempUsageDetail_20' ) start [2025-01-01 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147326', 'tblTempUsageDetail_20' ) end [2025-01-01 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:51:22] Production.INFO: ==16531== Releasing lock... [2025-01-01 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:51:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-01 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:52:05 [end_date_ymd] => 2025-01-01 00:52:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:52:05' and `end` < '2025-01-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-01-01 00:52:18] Production.INFO: count ==1563 [2025-01-01 00:52:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:52:05 - End Time 2025-01-01 00:52:05 [2025-01-01 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147331', 'tblTempUsageDetail_20' ) start [2025-01-01 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147331', 'tblTempUsageDetail_20' ) end [2025-01-01 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147331', 'tblTempVendorCDR_20' ) start [2025-01-01 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147331', 'tblTempVendorCDR_20' ) end [2025-01-01 00:52:19] Production.INFO: ProcessCDR(1,14147331,1,1,2) [2025-01-01 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147331', 'tblTempUsageDetail_20' ) start [2025-01-01 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147331', 'tblTempUsageDetail_20' ) end [2025-01-01 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:52:22] Production.INFO: ==16612== Releasing lock... [2025-01-01 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:52:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-01 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:53:05 [end_date_ymd] => 2025-01-01 00:53:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:53:05' and `end` < '2025-01-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-01-01 00:53:18] Production.INFO: count ==1565 [2025-01-01 00:53:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:53:05 - End Time 2025-01-01 00:53:05 [2025-01-01 00:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147336', 'tblTempUsageDetail_20' ) start [2025-01-01 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147336', 'tblTempUsageDetail_20' ) end [2025-01-01 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147336', 'tblTempVendorCDR_20' ) start [2025-01-01 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147336', 'tblTempVendorCDR_20' ) end [2025-01-01 00:53:19] Production.INFO: ProcessCDR(1,14147336,1,1,2) [2025-01-01 00:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147336', 'tblTempUsageDetail_20' ) start [2025-01-01 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147336', 'tblTempUsageDetail_20' ) end [2025-01-01 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:53:22] Production.INFO: ==16691== Releasing lock... [2025-01-01 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:53:22] Production.INFO: 40 MB #Memory Used# [2025-01-01 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:54:05 [end_date_ymd] => 2025-01-01 00:54:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:54:05' and `end` < '2025-01-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-01-01 00:54:18] Production.INFO: count ==1565 [2025-01-01 00:54:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:54:05 - End Time 2025-01-01 00:54:05 [2025-01-01 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147341', 'tblTempUsageDetail_20' ) start [2025-01-01 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147341', 'tblTempUsageDetail_20' ) end [2025-01-01 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147341', 'tblTempVendorCDR_20' ) start [2025-01-01 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147341', 'tblTempVendorCDR_20' ) end [2025-01-01 00:54:18] Production.INFO: ProcessCDR(1,14147341,1,1,2) [2025-01-01 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147341', 'tblTempUsageDetail_20' ) start [2025-01-01 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147341', 'tblTempUsageDetail_20' ) end [2025-01-01 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:54:21] Production.INFO: ==16769== Releasing lock... [2025-01-01 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:54:21] Production.INFO: 40 MB #Memory Used# [2025-01-01 00:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:55:04 [end_date_ymd] => 2025-01-01 00:55:04 [RateCDR] => 1 ) [2025-01-01 00: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` >= '2024-12-31 21:55:04' and `end` < '2025-01-01 00: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-01-01 00:55:17] Production.INFO: count ==1561 [2025-01-01 00:55:17] Production.ERROR: pbx CDR StartTime 2024-12-31 21:55:04 - End Time 2025-01-01 00:55:04 [2025-01-01 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147346', 'tblTempUsageDetail_20' ) start [2025-01-01 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147346', 'tblTempUsageDetail_20' ) end [2025-01-01 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147346', 'tblTempVendorCDR_20' ) start [2025-01-01 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147346', 'tblTempVendorCDR_20' ) end [2025-01-01 00:55:17] Production.INFO: ProcessCDR(1,14147346,1,1,2) [2025-01-01 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147346', 'tblTempUsageDetail_20' ) start [2025-01-01 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147346', 'tblTempUsageDetail_20' ) end [2025-01-01 00:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:55:20] Production.INFO: ==16901== Releasing lock... [2025-01-01 00:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:55:20] Production.INFO: 40 MB #Memory Used# [2025-01-01 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:56:05 [end_date_ymd] => 2025-01-01 00:56:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:56:05' and `end` < '2025-01-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-01-01 00:56:17] Production.INFO: count ==1561 [2025-01-01 00:56:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:56:05 - End Time 2025-01-01 00:56:05 [2025-01-01 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147351', 'tblTempUsageDetail_20' ) start [2025-01-01 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147351', 'tblTempUsageDetail_20' ) end [2025-01-01 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147351', 'tblTempVendorCDR_20' ) start [2025-01-01 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147351', 'tblTempVendorCDR_20' ) end [2025-01-01 00:56:18] Production.INFO: ProcessCDR(1,14147351,1,1,2) [2025-01-01 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147351', 'tblTempUsageDetail_20' ) start [2025-01-01 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147351', 'tblTempUsageDetail_20' ) end [2025-01-01 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:56:22] Production.INFO: ==17000== Releasing lock... [2025-01-01 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:56:22] Production.INFO: 40 MB #Memory Used# [2025-01-01 00:57:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:57:06 [end_date_ymd] => 2025-01-01 00:57:06 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:57:06' and `end` < '2025-01-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-01-01 00:57:19] Production.INFO: count ==1559 [2025-01-01 00:57:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:57:06 - End Time 2025-01-01 00:57:06 [2025-01-01 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147356', 'tblTempUsageDetail_20' ) start [2025-01-01 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147356', 'tblTempUsageDetail_20' ) end [2025-01-01 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147356', 'tblTempVendorCDR_20' ) start [2025-01-01 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147356', 'tblTempVendorCDR_20' ) end [2025-01-01 00:57:19] Production.INFO: ProcessCDR(1,14147356,1,1,2) [2025-01-01 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147356', 'tblTempUsageDetail_20' ) start [2025-01-01 00:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147356', 'tblTempUsageDetail_20' ) end [2025-01-01 00:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:57:23] Production.INFO: ==17100== Releasing lock... [2025-01-01 00:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:57:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-01 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:58:05 [end_date_ymd] => 2025-01-01 00:58:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:58:05' and `end` < '2025-01-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-01-01 00:58:18] Production.INFO: count ==1559 [2025-01-01 00:58:18] Production.ERROR: pbx CDR StartTime 2024-12-31 21:58:05 - End Time 2025-01-01 00:58:05 [2025-01-01 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147361', 'tblTempUsageDetail_20' ) start [2025-01-01 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147361', 'tblTempUsageDetail_20' ) end [2025-01-01 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147361', 'tblTempVendorCDR_20' ) start [2025-01-01 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147361', 'tblTempVendorCDR_20' ) end [2025-01-01 00:58:18] Production.INFO: ProcessCDR(1,14147361,1,1,2) [2025-01-01 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147361', 'tblTempUsageDetail_20' ) start [2025-01-01 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147361', 'tblTempUsageDetail_20' ) end [2025-01-01 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:58:21] Production.INFO: ==17186== Releasing lock... [2025-01-01 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:58:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-01 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 21:59:05 [end_date_ymd] => 2025-01-01 00:59:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 21:59:05' and `end` < '2025-01-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-01-01 00:59:18] Production.INFO: count ==1557 [2025-01-01 00:59:19] Production.ERROR: pbx CDR StartTime 2024-12-31 21:59:05 - End Time 2025-01-01 00:59:05 [2025-01-01 00:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147366', 'tblTempUsageDetail_20' ) start [2025-01-01 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147366', 'tblTempUsageDetail_20' ) end [2025-01-01 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147366', 'tblTempVendorCDR_20' ) start [2025-01-01 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147366', 'tblTempVendorCDR_20' ) end [2025-01-01 00:59:19] Production.INFO: ProcessCDR(1,14147366,1,1,2) [2025-01-01 00:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147366', 'tblTempUsageDetail_20' ) start [2025-01-01 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147366', 'tblTempUsageDetail_20' ) end [2025-01-01 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 00:59:22] Production.INFO: ==17264== Releasing lock... [2025-01-01 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 00:59:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-01 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:00:05 [end_date_ymd] => 2025-01-01 01:00:05 [RateCDR] => 1 ) [2025-01-01 01: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` >= '2024-12-31 22:00:05' and `end` < '2025-01-01 01: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-01-01 01:00:18] Production.INFO: count ==1563 [2025-01-01 01:00:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:00:05 - End Time 2025-01-01 01:00:05 [2025-01-01 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147372', 'tblTempUsageDetail_20' ) start [2025-01-01 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147372', 'tblTempUsageDetail_20' ) end [2025-01-01 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147372', 'tblTempVendorCDR_20' ) start [2025-01-01 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147372', 'tblTempVendorCDR_20' ) end [2025-01-01 01:00:19] Production.INFO: ProcessCDR(1,14147372,1,1,2) [2025-01-01 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147372', 'tblTempUsageDetail_20' ) start [2025-01-01 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147372', 'tblTempUsageDetail_20' ) end [2025-01-01 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:00:22] Production.INFO: ==17342== Releasing lock... [2025-01-01 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:00:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-01 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:01:05 [end_date_ymd] => 2025-01-01 01:01:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:01:05' and `end` < '2025-01-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-01-01 01:01:18] Production.INFO: count ==1609 [2025-01-01 01:01:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:01:05 - End Time 2025-01-01 01:01:05 [2025-01-01 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147377', 'tblTempUsageDetail_20' ) start [2025-01-01 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147377', 'tblTempUsageDetail_20' ) end [2025-01-01 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147377', 'tblTempVendorCDR_20' ) start [2025-01-01 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147377', 'tblTempVendorCDR_20' ) end [2025-01-01 01:01:18] Production.INFO: ProcessCDR(1,14147377,1,1,2) [2025-01-01 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147377', 'tblTempUsageDetail_20' ) start [2025-01-01 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147377', 'tblTempUsageDetail_20' ) end [2025-01-01 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:01:21] Production.INFO: ==17448== Releasing lock... [2025-01-01 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:01:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-01 01:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:02:04 [end_date_ymd] => 2025-01-01 01:02:04 [RateCDR] => 1 ) [2025-01-01 01:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 22:02:04' and `end` < '2025-01-01 01:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 01:02:17] Production.INFO: count ==1606 [2025-01-01 01:02:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:02:04 - End Time 2025-01-01 01:02:04 [2025-01-01 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147382', 'tblTempUsageDetail_20' ) start [2025-01-01 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147382', 'tblTempUsageDetail_20' ) end [2025-01-01 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147382', 'tblTempVendorCDR_20' ) start [2025-01-01 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147382', 'tblTempVendorCDR_20' ) end [2025-01-01 01:02:18] Production.INFO: ProcessCDR(1,14147382,1,1,2) [2025-01-01 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147382', 'tblTempUsageDetail_20' ) start [2025-01-01 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147382', 'tblTempUsageDetail_20' ) end [2025-01-01 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:02:21] Production.INFO: ==17563== Releasing lock... [2025-01-01 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:02:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-01 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:03:05 [end_date_ymd] => 2025-01-01 01:03:05 [RateCDR] => 1 ) [2025-01-01 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 22:03:05' and `end` < '2025-01-01 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 01:03:18] Production.INFO: count ==1605 [2025-01-01 01:03:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:03:05 - End Time 2025-01-01 01:03:05 [2025-01-01 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147387', 'tblTempUsageDetail_20' ) start [2025-01-01 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147387', 'tblTempUsageDetail_20' ) end [2025-01-01 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147387', 'tblTempVendorCDR_20' ) start [2025-01-01 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147387', 'tblTempVendorCDR_20' ) end [2025-01-01 01:03:19] Production.INFO: ProcessCDR(1,14147387,1,1,2) [2025-01-01 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147387', 'tblTempUsageDetail_20' ) start [2025-01-01 01:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147387', 'tblTempUsageDetail_20' ) end [2025-01-01 01:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:03:23] Production.INFO: ==17673== Releasing lock... [2025-01-01 01:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:03:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-01 01:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:04:04 [end_date_ymd] => 2025-01-01 01:04:04 [RateCDR] => 1 ) [2025-01-01 01:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 22:04:04' and `end` < '2025-01-01 01:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 01:04:17] Production.INFO: count ==1607 [2025-01-01 01:04:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:04:04 - End Time 2025-01-01 01:04:04 [2025-01-01 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147392', 'tblTempUsageDetail_20' ) start [2025-01-01 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147392', 'tblTempUsageDetail_20' ) end [2025-01-01 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147392', 'tblTempVendorCDR_20' ) start [2025-01-01 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147392', 'tblTempVendorCDR_20' ) end [2025-01-01 01:04:18] Production.INFO: ProcessCDR(1,14147392,1,1,2) [2025-01-01 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147392', 'tblTempUsageDetail_20' ) start [2025-01-01 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147392', 'tblTempUsageDetail_20' ) end [2025-01-01 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:04:23] Production.INFO: ==17766== Releasing lock... [2025-01-01 01:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:04:23] Production.INFO: 41 MB #Memory Used# [2025-01-01 01:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:05:04 [end_date_ymd] => 2025-01-01 01:05:04 [RateCDR] => 1 ) [2025-01-01 01: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` >= '2024-12-31 22:05:04' and `end` < '2025-01-01 01: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-01-01 01:05:17] Production.INFO: count ==1602 [2025-01-01 01:05:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:05:04 - End Time 2025-01-01 01:05:04 [2025-01-01 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147397', 'tblTempUsageDetail_20' ) start [2025-01-01 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147397', 'tblTempUsageDetail_20' ) end [2025-01-01 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147397', 'tblTempVendorCDR_20' ) start [2025-01-01 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147397', 'tblTempVendorCDR_20' ) end [2025-01-01 01:05:18] Production.INFO: ProcessCDR(1,14147397,1,1,2) [2025-01-01 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147397', 'tblTempUsageDetail_20' ) start [2025-01-01 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147397', 'tblTempUsageDetail_20' ) end [2025-01-01 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:05:21] Production.INFO: ==17846== Releasing lock... [2025-01-01 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:05:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-01 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:06:05 [end_date_ymd] => 2025-01-01 01:06:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:06:05' and `end` < '2025-01-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-01-01 01:06:18] Production.INFO: count ==1604 [2025-01-01 01:06:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:06:05 - End Time 2025-01-01 01:06:05 [2025-01-01 01:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147402', 'tblTempUsageDetail_20' ) start [2025-01-01 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147402', 'tblTempUsageDetail_20' ) end [2025-01-01 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147402', 'tblTempVendorCDR_20' ) start [2025-01-01 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147402', 'tblTempVendorCDR_20' ) end [2025-01-01 01:06:19] Production.INFO: ProcessCDR(1,14147402,1,1,2) [2025-01-01 01:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147402', 'tblTempUsageDetail_20' ) start [2025-01-01 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147402', 'tblTempUsageDetail_20' ) end [2025-01-01 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:06:22] Production.INFO: ==17923== Releasing lock... [2025-01-01 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:06:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-01 01:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:07:04 [end_date_ymd] => 2025-01-01 01:07:04 [RateCDR] => 1 ) [2025-01-01 01: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` >= '2024-12-31 22:07:04' and `end` < '2025-01-01 01: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-01-01 01:07:17] Production.INFO: count ==1603 [2025-01-01 01:07:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:07:04 - End Time 2025-01-01 01:07:04 [2025-01-01 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147407', 'tblTempUsageDetail_20' ) start [2025-01-01 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147407', 'tblTempUsageDetail_20' ) end [2025-01-01 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147407', 'tblTempVendorCDR_20' ) start [2025-01-01 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147407', 'tblTempVendorCDR_20' ) end [2025-01-01 01:07:18] Production.INFO: ProcessCDR(1,14147407,1,1,2) [2025-01-01 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147407', 'tblTempUsageDetail_20' ) start [2025-01-01 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147407', 'tblTempUsageDetail_20' ) end [2025-01-01 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:07:21] Production.INFO: ==18007== Releasing lock... [2025-01-01 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:07:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-01 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:08:05 [end_date_ymd] => 2025-01-01 01:08:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:08:05' and `end` < '2025-01-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-01-01 01:08:18] Production.INFO: count ==1606 [2025-01-01 01:08:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:08:05 - End Time 2025-01-01 01:08:05 [2025-01-01 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147412', 'tblTempUsageDetail_20' ) start [2025-01-01 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147412', 'tblTempUsageDetail_20' ) end [2025-01-01 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147412', 'tblTempVendorCDR_20' ) start [2025-01-01 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147412', 'tblTempVendorCDR_20' ) end [2025-01-01 01:08:19] Production.INFO: ProcessCDR(1,14147412,1,1,2) [2025-01-01 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147412', 'tblTempUsageDetail_20' ) start [2025-01-01 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147412', 'tblTempUsageDetail_20' ) end [2025-01-01 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:08:22] Production.INFO: ==18080== Releasing lock... [2025-01-01 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:08:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-01 01:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:09:04 [end_date_ymd] => 2025-01-01 01:09:04 [RateCDR] => 1 ) [2025-01-01 01: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` >= '2024-12-31 22:09:04' and `end` < '2025-01-01 01: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-01-01 01:09:17] Production.INFO: count ==1606 [2025-01-01 01:09:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:09:04 - End Time 2025-01-01 01:09:04 [2025-01-01 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147417', 'tblTempUsageDetail_20' ) start [2025-01-01 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147417', 'tblTempUsageDetail_20' ) end [2025-01-01 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147417', 'tblTempVendorCDR_20' ) start [2025-01-01 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147417', 'tblTempVendorCDR_20' ) end [2025-01-01 01:09:18] Production.INFO: ProcessCDR(1,14147417,1,1,2) [2025-01-01 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147417', 'tblTempUsageDetail_20' ) start [2025-01-01 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147417', 'tblTempUsageDetail_20' ) end [2025-01-01 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:09:21] Production.INFO: ==18153== Releasing lock... [2025-01-01 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:09:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-01 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:10:06 [end_date_ymd] => 2025-01-01 01:10:06 [RateCDR] => 1 ) [2025-01-01 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 22:10:06' and `end` < '2025-01-01 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 01:10:18] Production.INFO: count ==1614 [2025-01-01 01:10:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:10:06 - End Time 2025-01-01 01:10:06 [2025-01-01 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147423', 'tblTempUsageDetail_20' ) start [2025-01-01 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147423', 'tblTempUsageDetail_20' ) end [2025-01-01 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147423', 'tblTempVendorCDR_20' ) start [2025-01-01 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147423', 'tblTempVendorCDR_20' ) end [2025-01-01 01:10:19] Production.INFO: ProcessCDR(1,14147423,1,1,2) [2025-01-01 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147423', 'tblTempUsageDetail_20' ) start [2025-01-01 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147423', 'tblTempUsageDetail_20' ) end [2025-01-01 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:10:22] Production.INFO: ==18233== Releasing lock... [2025-01-01 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:10:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-01 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:11:05 [end_date_ymd] => 2025-01-01 01:11:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:11:05' and `end` < '2025-01-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-01-01 01:11:17] Production.INFO: count ==1632 [2025-01-01 01:11:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:11:05 - End Time 2025-01-01 01:11:05 [2025-01-01 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147428', 'tblTempUsageDetail_20' ) start [2025-01-01 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147428', 'tblTempUsageDetail_20' ) end [2025-01-01 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147428', 'tblTempVendorCDR_20' ) start [2025-01-01 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147428', 'tblTempVendorCDR_20' ) end [2025-01-01 01:11:18] Production.INFO: ProcessCDR(1,14147428,1,1,2) [2025-01-01 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147428', 'tblTempUsageDetail_20' ) start [2025-01-01 01:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147428', 'tblTempUsageDetail_20' ) end [2025-01-01 01:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:11:23] Production.INFO: ==18349== Releasing lock... [2025-01-01 01:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:11:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-01 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:12:05 [end_date_ymd] => 2025-01-01 01:12:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:12:05' and `end` < '2025-01-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-01-01 01:12:18] Production.INFO: count ==1635 [2025-01-01 01:12:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:12:05 - End Time 2025-01-01 01:12:05 [2025-01-01 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147433', 'tblTempUsageDetail_20' ) start [2025-01-01 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147433', 'tblTempUsageDetail_20' ) end [2025-01-01 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147433', 'tblTempVendorCDR_20' ) start [2025-01-01 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147433', 'tblTempVendorCDR_20' ) end [2025-01-01 01:12:18] Production.INFO: ProcessCDR(1,14147433,1,1,2) [2025-01-01 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147433', 'tblTempUsageDetail_20' ) start [2025-01-01 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147433', 'tblTempUsageDetail_20' ) end [2025-01-01 01:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:12:23] Production.INFO: ==18422== Releasing lock... [2025-01-01 01:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:12:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-01 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:13:05 [end_date_ymd] => 2025-01-01 01:13:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:13:05' and `end` < '2025-01-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-01-01 01:13:17] Production.INFO: count ==1637 [2025-01-01 01:13:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:13:05 - End Time 2025-01-01 01:13:05 [2025-01-01 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147438', 'tblTempUsageDetail_20' ) start [2025-01-01 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147438', 'tblTempUsageDetail_20' ) end [2025-01-01 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147438', 'tblTempVendorCDR_20' ) start [2025-01-01 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147438', 'tblTempVendorCDR_20' ) end [2025-01-01 01:13:18] Production.INFO: ProcessCDR(1,14147438,1,1,2) [2025-01-01 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147438', 'tblTempUsageDetail_20' ) start [2025-01-01 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147438', 'tblTempUsageDetail_20' ) end [2025-01-01 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:13:23] Production.INFO: ==18492== Releasing lock... [2025-01-01 01:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:13:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-01 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:14:05 [end_date_ymd] => 2025-01-01 01:14:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:14:05' and `end` < '2025-01-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-01-01 01:14:18] Production.INFO: count ==1633 [2025-01-01 01:14:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:14:05 - End Time 2025-01-01 01:14:05 [2025-01-01 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147443', 'tblTempUsageDetail_20' ) start [2025-01-01 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147443', 'tblTempUsageDetail_20' ) end [2025-01-01 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147443', 'tblTempVendorCDR_20' ) start [2025-01-01 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147443', 'tblTempVendorCDR_20' ) end [2025-01-01 01:14:19] Production.INFO: ProcessCDR(1,14147443,1,1,2) [2025-01-01 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147443', 'tblTempUsageDetail_20' ) start [2025-01-01 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147443', 'tblTempUsageDetail_20' ) end [2025-01-01 01:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:14:23] Production.INFO: ==18566== Releasing lock... [2025-01-01 01:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:14:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-01 01:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:15:04 [end_date_ymd] => 2025-01-01 01:15:04 [RateCDR] => 1 ) [2025-01-01 01: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` >= '2024-12-31 22:15:04' and `end` < '2025-01-01 01: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-01-01 01:15:17] Production.INFO: count ==1636 [2025-01-01 01:15:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:15:04 - End Time 2025-01-01 01:15:04 [2025-01-01 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147448', 'tblTempUsageDetail_20' ) start [2025-01-01 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147448', 'tblTempUsageDetail_20' ) end [2025-01-01 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147448', 'tblTempVendorCDR_20' ) start [2025-01-01 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147448', 'tblTempVendorCDR_20' ) end [2025-01-01 01:15:18] Production.INFO: ProcessCDR(1,14147448,1,1,2) [2025-01-01 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147448', 'tblTempUsageDetail_20' ) start [2025-01-01 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147448', 'tblTempUsageDetail_20' ) end [2025-01-01 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:15:21] Production.INFO: ==18636== Releasing lock... [2025-01-01 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:15:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-01 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:16:05 [end_date_ymd] => 2025-01-01 01:16:05 [RateCDR] => 1 ) [2025-01-01 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 22:16:05' and `end` < '2025-01-01 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 01:16:18] Production.INFO: count ==1636 [2025-01-01 01:16:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:16:05 - End Time 2025-01-01 01:16:05 [2025-01-01 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147453', 'tblTempUsageDetail_20' ) start [2025-01-01 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147453', 'tblTempUsageDetail_20' ) end [2025-01-01 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147453', 'tblTempVendorCDR_20' ) start [2025-01-01 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147453', 'tblTempVendorCDR_20' ) end [2025-01-01 01:16:18] Production.INFO: ProcessCDR(1,14147453,1,1,2) [2025-01-01 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147453', 'tblTempUsageDetail_20' ) start [2025-01-01 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147453', 'tblTempUsageDetail_20' ) end [2025-01-01 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:16:21] Production.INFO: ==18718== Releasing lock... [2025-01-01 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:16:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-01 01:17:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:17:06 [end_date_ymd] => 2025-01-01 01:17:06 [RateCDR] => 1 ) [2025-01-01 01:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 22:17:06' and `end` < '2025-01-01 01:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 01:17:19] Production.INFO: count ==1635 [2025-01-01 01:17:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:17:06 - End Time 2025-01-01 01:17:06 [2025-01-01 01:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147458', 'tblTempUsageDetail_20' ) start [2025-01-01 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147458', 'tblTempUsageDetail_20' ) end [2025-01-01 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147458', 'tblTempVendorCDR_20' ) start [2025-01-01 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147458', 'tblTempVendorCDR_20' ) end [2025-01-01 01:17:19] Production.INFO: ProcessCDR(1,14147458,1,1,2) [2025-01-01 01:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147458', 'tblTempUsageDetail_20' ) start [2025-01-01 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147458', 'tblTempUsageDetail_20' ) end [2025-01-01 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:17:22] Production.INFO: ==18801== Releasing lock... [2025-01-01 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:17:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-01 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:18:05 [end_date_ymd] => 2025-01-01 01:18:05 [RateCDR] => 1 ) [2025-01-01 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 22:18:05' and `end` < '2025-01-01 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 01:18:18] Production.INFO: count ==1635 [2025-01-01 01:18:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:18:05 - End Time 2025-01-01 01:18:05 [2025-01-01 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147463', 'tblTempUsageDetail_20' ) start [2025-01-01 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147463', 'tblTempUsageDetail_20' ) end [2025-01-01 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147463', 'tblTempVendorCDR_20' ) start [2025-01-01 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147463', 'tblTempVendorCDR_20' ) end [2025-01-01 01:18:18] Production.INFO: ProcessCDR(1,14147463,1,1,2) [2025-01-01 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147463', 'tblTempUsageDetail_20' ) start [2025-01-01 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147463', 'tblTempUsageDetail_20' ) end [2025-01-01 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:18:22] Production.INFO: ==18877== Releasing lock... [2025-01-01 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:18:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-01 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:19:05 [end_date_ymd] => 2025-01-01 01:19:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:19:05' and `end` < '2025-01-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-01-01 01:19:18] Production.INFO: count ==1631 [2025-01-01 01:19:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:19:05 - End Time 2025-01-01 01:19:05 [2025-01-01 01:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147468', 'tblTempUsageDetail_20' ) start [2025-01-01 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147468', 'tblTempUsageDetail_20' ) end [2025-01-01 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147468', 'tblTempVendorCDR_20' ) start [2025-01-01 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147468', 'tblTempVendorCDR_20' ) end [2025-01-01 01:19:19] Production.INFO: ProcessCDR(1,14147468,1,1,2) [2025-01-01 01:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147468', 'tblTempUsageDetail_20' ) start [2025-01-01 01:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147468', 'tblTempUsageDetail_20' ) end [2025-01-01 01:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:19:23] Production.INFO: ==18957== Releasing lock... [2025-01-01 01:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:19:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-01 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:20:05 [end_date_ymd] => 2025-01-01 01:20:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:20:05' and `end` < '2025-01-01 01:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 01:20:18] Production.INFO: count ==1637 [2025-01-01 01:20:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:20:05 - End Time 2025-01-01 01:20:05 [2025-01-01 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147474', 'tblTempUsageDetail_20' ) start [2025-01-01 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147474', 'tblTempUsageDetail_20' ) end [2025-01-01 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147474', 'tblTempVendorCDR_20' ) start [2025-01-01 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147474', 'tblTempVendorCDR_20' ) end [2025-01-01 01:20:19] Production.INFO: ProcessCDR(1,14147474,1,1,2) [2025-01-01 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147474', 'tblTempUsageDetail_20' ) start [2025-01-01 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147474', 'tblTempUsageDetail_20' ) end [2025-01-01 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:20:22] Production.INFO: ==19049== Releasing lock... [2025-01-01 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:20:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-01 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:21:05 [end_date_ymd] => 2025-01-01 01:21:05 [RateCDR] => 1 ) [2025-01-01 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 22:21:05' and `end` < '2025-01-01 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 01:21:17] Production.INFO: count ==1661 [2025-01-01 01:21:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:21:05 - End Time 2025-01-01 01:21:05 [2025-01-01 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147479', 'tblTempUsageDetail_20' ) start [2025-01-01 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147479', 'tblTempUsageDetail_20' ) end [2025-01-01 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147479', 'tblTempVendorCDR_20' ) start [2025-01-01 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147479', 'tblTempVendorCDR_20' ) end [2025-01-01 01:21:18] Production.INFO: ProcessCDR(1,14147479,1,1,2) [2025-01-01 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147479', 'tblTempUsageDetail_20' ) start [2025-01-01 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147479', 'tblTempUsageDetail_20' ) end [2025-01-01 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:21:22] Production.INFO: ==19144== Releasing lock... [2025-01-01 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:21:22] Production.INFO: 41 MB #Memory Used# [2025-01-01 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:22:05 [end_date_ymd] => 2025-01-01 01:22:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:22:05' and `end` < '2025-01-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-01-01 01:22:18] Production.INFO: count ==1661 [2025-01-01 01:22:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:22:05 - End Time 2025-01-01 01:22:05 [2025-01-01 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147484', 'tblTempUsageDetail_20' ) start [2025-01-01 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147484', 'tblTempUsageDetail_20' ) end [2025-01-01 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147484', 'tblTempVendorCDR_20' ) start [2025-01-01 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147484', 'tblTempVendorCDR_20' ) end [2025-01-01 01:22:18] Production.INFO: ProcessCDR(1,14147484,1,1,2) [2025-01-01 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147484', 'tblTempUsageDetail_20' ) start [2025-01-01 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147484', 'tblTempUsageDetail_20' ) end [2025-01-01 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:22:21] Production.INFO: ==19240== Releasing lock... [2025-01-01 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:22:21] Production.INFO: 41 MB #Memory Used# [2025-01-01 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:23:05 [end_date_ymd] => 2025-01-01 01:23:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:23:05' and `end` < '2025-01-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-01-01 01:23:18] Production.INFO: count ==1659 [2025-01-01 01:23:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:23:05 - End Time 2025-01-01 01:23:05 [2025-01-01 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147489', 'tblTempUsageDetail_20' ) start [2025-01-01 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147489', 'tblTempUsageDetail_20' ) end [2025-01-01 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147489', 'tblTempVendorCDR_20' ) start [2025-01-01 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147489', 'tblTempVendorCDR_20' ) end [2025-01-01 01:23:19] Production.INFO: ProcessCDR(1,14147489,1,1,2) [2025-01-01 01:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147489', 'tblTempUsageDetail_20' ) start [2025-01-01 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147489', 'tblTempUsageDetail_20' ) end [2025-01-01 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:23:22] Production.INFO: ==19329== Releasing lock... [2025-01-01 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:23:22] Production.INFO: 41 MB #Memory Used# [2025-01-01 01:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:24:04 [end_date_ymd] => 2025-01-01 01:24:04 [RateCDR] => 1 ) [2025-01-01 01: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` >= '2024-12-31 22:24:04' and `end` < '2025-01-01 01: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-01-01 01:24:19] Production.INFO: count ==1658 [2025-01-01 01:24:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:24:04 - End Time 2025-01-01 01:24:04 [2025-01-01 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147494', 'tblTempUsageDetail_20' ) start [2025-01-01 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147494', 'tblTempUsageDetail_20' ) end [2025-01-01 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147494', 'tblTempVendorCDR_20' ) start [2025-01-01 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147494', 'tblTempVendorCDR_20' ) end [2025-01-01 01:24:19] Production.INFO: ProcessCDR(1,14147494,1,1,2) [2025-01-01 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147494', 'tblTempUsageDetail_20' ) start [2025-01-01 01:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147494', 'tblTempUsageDetail_20' ) end [2025-01-01 01:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:24:24] Production.INFO: ==19419== Releasing lock... [2025-01-01 01:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:24:24] Production.INFO: 41 MB #Memory Used# [2025-01-01 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:25:05 [end_date_ymd] => 2025-01-01 01:25:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:25:05' and `end` < '2025-01-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-01-01 01:25:17] Production.INFO: count ==1658 [2025-01-01 01:25:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:25:05 - End Time 2025-01-01 01:25:05 [2025-01-01 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147499', 'tblTempUsageDetail_20' ) start [2025-01-01 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147499', 'tblTempUsageDetail_20' ) end [2025-01-01 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147499', 'tblTempVendorCDR_20' ) start [2025-01-01 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147499', 'tblTempVendorCDR_20' ) end [2025-01-01 01:25:18] Production.INFO: ProcessCDR(1,14147499,1,1,2) [2025-01-01 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147499', 'tblTempUsageDetail_20' ) start [2025-01-01 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147499', 'tblTempUsageDetail_20' ) end [2025-01-01 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:25:21] Production.INFO: ==19516== Releasing lock... [2025-01-01 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:25:21] Production.INFO: 41 MB #Memory Used# [2025-01-01 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:26:05 [end_date_ymd] => 2025-01-01 01:26:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:26:05' and `end` < '2025-01-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-01-01 01:26:19] Production.INFO: count ==1652 [2025-01-01 01:26:20] Production.ERROR: pbx CDR StartTime 2024-12-31 22:26:05 - End Time 2025-01-01 01:26:05 [2025-01-01 01:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147504', 'tblTempUsageDetail_20' ) start [2025-01-01 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147504', 'tblTempUsageDetail_20' ) end [2025-01-01 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147504', 'tblTempVendorCDR_20' ) start [2025-01-01 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147504', 'tblTempVendorCDR_20' ) end [2025-01-01 01:26:20] Production.INFO: ProcessCDR(1,14147504,1,1,2) [2025-01-01 01:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147504', 'tblTempUsageDetail_20' ) start [2025-01-01 01:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147504', 'tblTempUsageDetail_20' ) end [2025-01-01 01:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:26:23] Production.INFO: ==19646== Releasing lock... [2025-01-01 01:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:26:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-01 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:27:05 [end_date_ymd] => 2025-01-01 01:27:05 [RateCDR] => 1 ) [2025-01-01 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 22:27:05' and `end` < '2025-01-01 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 01:27:17] Production.INFO: count ==1651 [2025-01-01 01:27:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:27:05 - End Time 2025-01-01 01:27:05 [2025-01-01 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147509', 'tblTempUsageDetail_20' ) start [2025-01-01 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147509', 'tblTempUsageDetail_20' ) end [2025-01-01 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147509', 'tblTempVendorCDR_20' ) start [2025-01-01 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147509', 'tblTempVendorCDR_20' ) end [2025-01-01 01:27:18] Production.INFO: ProcessCDR(1,14147509,1,1,2) [2025-01-01 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147509', 'tblTempUsageDetail_20' ) start [2025-01-01 01:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147509', 'tblTempUsageDetail_20' ) end [2025-01-01 01:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:27:23] Production.INFO: ==19741== Releasing lock... [2025-01-01 01:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:27:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-01 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:28:05 [end_date_ymd] => 2025-01-01 01:28:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:28:05' and `end` < '2025-01-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-01-01 01:28:19] Production.INFO: count ==1651 [2025-01-01 01:28:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:28:05 - End Time 2025-01-01 01:28:05 [2025-01-01 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147514', 'tblTempUsageDetail_20' ) start [2025-01-01 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147514', 'tblTempUsageDetail_20' ) end [2025-01-01 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147514', 'tblTempVendorCDR_20' ) start [2025-01-01 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147514', 'tblTempVendorCDR_20' ) end [2025-01-01 01:28:19] Production.INFO: ProcessCDR(1,14147514,1,1,2) [2025-01-01 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147514', 'tblTempUsageDetail_20' ) start [2025-01-01 01:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147514', 'tblTempUsageDetail_20' ) end [2025-01-01 01:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:28:24] Production.INFO: ==19830== Releasing lock... [2025-01-01 01:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:28:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-01 01:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:29:04 [end_date_ymd] => 2025-01-01 01:29:04 [RateCDR] => 1 ) [2025-01-01 01: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` >= '2024-12-31 22:29:04' and `end` < '2025-01-01 01: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-01-01 01:29:19] Production.INFO: count ==1651 [2025-01-01 01:29:20] Production.ERROR: pbx CDR StartTime 2024-12-31 22:29:04 - End Time 2025-01-01 01:29:04 [2025-01-01 01:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147519', 'tblTempUsageDetail_20' ) start [2025-01-01 01:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147519', 'tblTempUsageDetail_20' ) end [2025-01-01 01:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147519', 'tblTempVendorCDR_20' ) start [2025-01-01 01:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147519', 'tblTempVendorCDR_20' ) end [2025-01-01 01:29:20] Production.INFO: ProcessCDR(1,14147519,1,1,2) [2025-01-01 01:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147519', 'tblTempUsageDetail_20' ) start [2025-01-01 01:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147519', 'tblTempUsageDetail_20' ) end [2025-01-01 01:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:29:23] Production.INFO: ==19923== Releasing lock... [2025-01-01 01:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:29:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-01 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:30:05 [end_date_ymd] => 2025-01-01 01:30:05 [RateCDR] => 1 ) [2025-01-01 01: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` >= '2024-12-31 22:30:05' and `end` < '2025-01-01 01: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-01-01 01:30:18] Production.INFO: count ==1654 [2025-01-01 01:30:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:30:05 - End Time 2025-01-01 01:30:05 [2025-01-01 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147524', 'tblTempUsageDetail_20' ) start [2025-01-01 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147524', 'tblTempUsageDetail_20' ) end [2025-01-01 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147524', 'tblTempVendorCDR_20' ) start [2025-01-01 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147524', 'tblTempVendorCDR_20' ) end [2025-01-01 01:30:19] Production.INFO: ProcessCDR(1,14147524,1,1,2) [2025-01-01 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147524', 'tblTempUsageDetail_20' ) start [2025-01-01 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147524', 'tblTempUsageDetail_20' ) end [2025-01-01 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:30:22] Production.INFO: ==20020== Releasing lock... [2025-01-01 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:30:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-01 01:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:31:04 [end_date_ymd] => 2025-01-01 01:31:04 [RateCDR] => 1 ) [2025-01-01 01:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 22:31:04' and `end` < '2025-01-01 01:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 01:31:18] Production.INFO: count ==1673 [2025-01-01 01:31:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:31:04 - End Time 2025-01-01 01:31:04 [2025-01-01 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147530', 'tblTempUsageDetail_20' ) start [2025-01-01 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147530', 'tblTempUsageDetail_20' ) end [2025-01-01 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147530', 'tblTempVendorCDR_20' ) start [2025-01-01 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147530', 'tblTempVendorCDR_20' ) end [2025-01-01 01:31:18] Production.INFO: ProcessCDR(1,14147530,1,1,2) [2025-01-01 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147530', 'tblTempUsageDetail_20' ) start [2025-01-01 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147530', 'tblTempUsageDetail_20' ) end [2025-01-01 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:31:21] Production.INFO: ==20117== Releasing lock... [2025-01-01 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:31:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-01 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:32:05 [end_date_ymd] => 2025-01-01 01:32:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:32:05' and `end` < '2025-01-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-01-01 01:32:18] Production.INFO: count ==1675 [2025-01-01 01:32:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:32:05 - End Time 2025-01-01 01:32:05 [2025-01-01 01:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147535', 'tblTempUsageDetail_20' ) start [2025-01-01 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147535', 'tblTempUsageDetail_20' ) end [2025-01-01 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147535', 'tblTempVendorCDR_20' ) start [2025-01-01 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147535', 'tblTempVendorCDR_20' ) end [2025-01-01 01:32:19] Production.INFO: ProcessCDR(1,14147535,1,1,2) [2025-01-01 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147535', 'tblTempUsageDetail_20' ) start [2025-01-01 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147535', 'tblTempUsageDetail_20' ) end [2025-01-01 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:32:22] Production.INFO: ==20210== Releasing lock... [2025-01-01 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:32:22] Production.INFO: 41 MB #Memory Used# [2025-01-01 01:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:33:04 [end_date_ymd] => 2025-01-01 01:33:04 [RateCDR] => 1 ) [2025-01-01 01: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` >= '2024-12-31 22:33:04' and `end` < '2025-01-01 01: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-01-01 01:33:18] Production.INFO: count ==1677 [2025-01-01 01:33:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:33:04 - End Time 2025-01-01 01:33:04 [2025-01-01 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147540', 'tblTempUsageDetail_20' ) start [2025-01-01 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147540', 'tblTempUsageDetail_20' ) end [2025-01-01 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147540', 'tblTempVendorCDR_20' ) start [2025-01-01 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147540', 'tblTempVendorCDR_20' ) end [2025-01-01 01:33:18] Production.INFO: ProcessCDR(1,14147540,1,1,2) [2025-01-01 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147540', 'tblTempUsageDetail_20' ) start [2025-01-01 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147540', 'tblTempUsageDetail_20' ) end [2025-01-01 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:33:22] Production.INFO: ==20307== Releasing lock... [2025-01-01 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:33:22] Production.INFO: 41 MB #Memory Used# [2025-01-01 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:34:05 [end_date_ymd] => 2025-01-01 01:34:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:34:05' and `end` < '2025-01-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-01-01 01:34:18] Production.INFO: count ==1677 [2025-01-01 01:34:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:34:05 - End Time 2025-01-01 01:34:05 [2025-01-01 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147545', 'tblTempUsageDetail_20' ) start [2025-01-01 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147545', 'tblTempUsageDetail_20' ) end [2025-01-01 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147545', 'tblTempVendorCDR_20' ) start [2025-01-01 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147545', 'tblTempVendorCDR_20' ) end [2025-01-01 01:34:19] Production.INFO: ProcessCDR(1,14147545,1,1,2) [2025-01-01 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147545', 'tblTempUsageDetail_20' ) start [2025-01-01 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147545', 'tblTempUsageDetail_20' ) end [2025-01-01 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:34:22] Production.INFO: ==20409== Releasing lock... [2025-01-01 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:34:22] Production.INFO: 41 MB #Memory Used# [2025-01-01 01:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:35:04 [end_date_ymd] => 2025-01-01 01:35:04 [RateCDR] => 1 ) [2025-01-01 01: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` >= '2024-12-31 22:35:04' and `end` < '2025-01-01 01: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-01-01 01:35:17] Production.INFO: count ==1682 [2025-01-01 01:35:17] Production.ERROR: pbx CDR StartTime 2024-12-31 22:35:04 - End Time 2025-01-01 01:35:04 [2025-01-01 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147550', 'tblTempUsageDetail_20' ) start [2025-01-01 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147550', 'tblTempUsageDetail_20' ) end [2025-01-01 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147550', 'tblTempVendorCDR_20' ) start [2025-01-01 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147550', 'tblTempVendorCDR_20' ) end [2025-01-01 01:35:17] Production.INFO: ProcessCDR(1,14147550,1,1,2) [2025-01-01 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147550', 'tblTempUsageDetail_20' ) start [2025-01-01 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147550', 'tblTempUsageDetail_20' ) end [2025-01-01 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:35:21] Production.INFO: ==20508== Releasing lock... [2025-01-01 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:35:21] Production.INFO: 41 MB #Memory Used# [2025-01-01 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:36:05 [end_date_ymd] => 2025-01-01 01:36:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:36:05' and `end` < '2025-01-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-01-01 01:36:18] Production.INFO: count ==1680 [2025-01-01 01:36:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:36:05 - End Time 2025-01-01 01:36:05 [2025-01-01 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147555', 'tblTempUsageDetail_20' ) start [2025-01-01 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147555', 'tblTempUsageDetail_20' ) end [2025-01-01 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147555', 'tblTempVendorCDR_20' ) start [2025-01-01 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147555', 'tblTempVendorCDR_20' ) end [2025-01-01 01:36:18] Production.INFO: ProcessCDR(1,14147555,1,1,2) [2025-01-01 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147555', 'tblTempUsageDetail_20' ) start [2025-01-01 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147555', 'tblTempUsageDetail_20' ) end [2025-01-01 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:36:21] Production.INFO: ==20601== Releasing lock... [2025-01-01 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:36:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:37:05 [end_date_ymd] => 2025-01-01 01:37:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:37:05' and `end` < '2025-01-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-01-01 01:37:18] Production.INFO: count ==1680 [2025-01-01 01:37:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:37:05 - End Time 2025-01-01 01:37:05 [2025-01-01 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147560', 'tblTempUsageDetail_20' ) start [2025-01-01 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147560', 'tblTempUsageDetail_20' ) end [2025-01-01 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147560', 'tblTempVendorCDR_20' ) start [2025-01-01 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147560', 'tblTempVendorCDR_20' ) end [2025-01-01 01:37:18] Production.INFO: ProcessCDR(1,14147560,1,1,2) [2025-01-01 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147560', 'tblTempUsageDetail_20' ) start [2025-01-01 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147560', 'tblTempUsageDetail_20' ) end [2025-01-01 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:37:21] Production.INFO: ==20701== Releasing lock... [2025-01-01 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:37:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:38:05 [end_date_ymd] => 2025-01-01 01:38:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:38:05' and `end` < '2025-01-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-01-01 01:38:17] Production.INFO: count ==1680 [2025-01-01 01:38:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:38:05 - End Time 2025-01-01 01:38:05 [2025-01-01 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147565', 'tblTempUsageDetail_20' ) start [2025-01-01 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147565', 'tblTempUsageDetail_20' ) end [2025-01-01 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147565', 'tblTempVendorCDR_20' ) start [2025-01-01 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147565', 'tblTempVendorCDR_20' ) end [2025-01-01 01:38:18] Production.INFO: ProcessCDR(1,14147565,1,1,2) [2025-01-01 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147565', 'tblTempUsageDetail_20' ) start [2025-01-01 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147565', 'tblTempUsageDetail_20' ) end [2025-01-01 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:38:21] Production.INFO: ==20793== Releasing lock... [2025-01-01 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:38:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:39:05 [end_date_ymd] => 2025-01-01 01:39:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:39:05' and `end` < '2025-01-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-01-01 01:39:18] Production.INFO: count ==1681 [2025-01-01 01:39:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:39:05 - End Time 2025-01-01 01:39:05 [2025-01-01 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147570', 'tblTempUsageDetail_20' ) start [2025-01-01 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147570', 'tblTempUsageDetail_20' ) end [2025-01-01 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147570', 'tblTempVendorCDR_20' ) start [2025-01-01 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147570', 'tblTempVendorCDR_20' ) end [2025-01-01 01:39:18] Production.INFO: ProcessCDR(1,14147570,1,1,2) [2025-01-01 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147570', 'tblTempUsageDetail_20' ) start [2025-01-01 01:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147570', 'tblTempUsageDetail_20' ) end [2025-01-01 01:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:39:23] Production.INFO: ==20883== Releasing lock... [2025-01-01 01:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:39:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:40:05 [end_date_ymd] => 2025-01-01 01:40:05 [RateCDR] => 1 ) [2025-01-01 01: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` >= '2024-12-31 22:40:05' and `end` < '2025-01-01 01: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-01-01 01:40:18] Production.INFO: count ==1687 [2025-01-01 01:40:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:40:05 - End Time 2025-01-01 01:40:05 [2025-01-01 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147575', 'tblTempUsageDetail_20' ) start [2025-01-01 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147575', 'tblTempUsageDetail_20' ) end [2025-01-01 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147575', 'tblTempVendorCDR_20' ) start [2025-01-01 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147575', 'tblTempVendorCDR_20' ) end [2025-01-01 01:40:18] Production.INFO: ProcessCDR(1,14147575,1,1,2) [2025-01-01 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147575', 'tblTempUsageDetail_20' ) start [2025-01-01 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147575', 'tblTempUsageDetail_20' ) end [2025-01-01 01:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:40:21] Production.INFO: ==20974== Releasing lock... [2025-01-01 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:40:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-01 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:41:05 [end_date_ymd] => 2025-01-01 01:41:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:41:05' and `end` < '2025-01-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-01-01 01:41:18] Production.INFO: count ==1727 [2025-01-01 01:41:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:41:05 - End Time 2025-01-01 01:41:05 [2025-01-01 01:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147581', 'tblTempUsageDetail_20' ) start [2025-01-01 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147581', 'tblTempUsageDetail_20' ) end [2025-01-01 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147581', 'tblTempVendorCDR_20' ) start [2025-01-01 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147581', 'tblTempVendorCDR_20' ) end [2025-01-01 01:41:19] Production.INFO: ProcessCDR(1,14147581,1,1,2) [2025-01-01 01:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147581', 'tblTempUsageDetail_20' ) start [2025-01-01 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147581', 'tblTempUsageDetail_20' ) end [2025-01-01 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:41:22] Production.INFO: ==21060== Releasing lock... [2025-01-01 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:41:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-01 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:42:05 [end_date_ymd] => 2025-01-01 01:42:05 [RateCDR] => 1 ) [2025-01-01 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 22:42:05' and `end` < '2025-01-01 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 01:42:18] Production.INFO: count ==1724 [2025-01-01 01:42:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:42:05 - End Time 2025-01-01 01:42:05 [2025-01-01 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147586', 'tblTempUsageDetail_20' ) start [2025-01-01 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147586', 'tblTempUsageDetail_20' ) end [2025-01-01 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147586', 'tblTempVendorCDR_20' ) start [2025-01-01 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147586', 'tblTempVendorCDR_20' ) end [2025-01-01 01:42:19] Production.INFO: ProcessCDR(1,14147586,1,1,2) [2025-01-01 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147586', 'tblTempUsageDetail_20' ) start [2025-01-01 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147586', 'tblTempUsageDetail_20' ) end [2025-01-01 01:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:42:23] Production.INFO: ==21181== Releasing lock... [2025-01-01 01:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:42:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 01:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:43:04 [end_date_ymd] => 2025-01-01 01:43:04 [RateCDR] => 1 ) [2025-01-01 01: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` >= '2024-12-31 22:43:04' and `end` < '2025-01-01 01: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-01-01 01:43:18] Production.INFO: count ==1723 [2025-01-01 01:43:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:43:04 - End Time 2025-01-01 01:43:04 [2025-01-01 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147591', 'tblTempUsageDetail_20' ) start [2025-01-01 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147591', 'tblTempUsageDetail_20' ) end [2025-01-01 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147591', 'tblTempVendorCDR_20' ) start [2025-01-01 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147591', 'tblTempVendorCDR_20' ) end [2025-01-01 01:43:18] Production.INFO: ProcessCDR(1,14147591,1,1,2) [2025-01-01 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147591', 'tblTempUsageDetail_20' ) start [2025-01-01 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147591', 'tblTempUsageDetail_20' ) end [2025-01-01 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:43:21] Production.INFO: ==21261== Releasing lock... [2025-01-01 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:43:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:44:05 [end_date_ymd] => 2025-01-01 01:44:05 [RateCDR] => 1 ) [2025-01-01 01: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` >= '2024-12-31 22:44:05' and `end` < '2025-01-01 01: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-01-01 01:44:18] Production.INFO: count ==1722 [2025-01-01 01:44:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:44:05 - End Time 2025-01-01 01:44:05 [2025-01-01 01:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147596', 'tblTempUsageDetail_20' ) start [2025-01-01 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147596', 'tblTempUsageDetail_20' ) end [2025-01-01 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147596', 'tblTempVendorCDR_20' ) start [2025-01-01 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147596', 'tblTempVendorCDR_20' ) end [2025-01-01 01:44:19] Production.INFO: ProcessCDR(1,14147596,1,1,2) [2025-01-01 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147596', 'tblTempUsageDetail_20' ) start [2025-01-01 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147596', 'tblTempUsageDetail_20' ) end [2025-01-01 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:44:22] Production.INFO: ==21340== Releasing lock... [2025-01-01 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:44:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-01 01:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:45:04 [end_date_ymd] => 2025-01-01 01:45:04 [RateCDR] => 1 ) [2025-01-01 01: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` >= '2024-12-31 22:45:04' and `end` < '2025-01-01 01: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-01-01 01:45:17] Production.INFO: count ==1725 [2025-01-01 01:45:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:45:04 - End Time 2025-01-01 01:45:04 [2025-01-01 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147601', 'tblTempUsageDetail_20' ) start [2025-01-01 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147601', 'tblTempUsageDetail_20' ) end [2025-01-01 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147601', 'tblTempVendorCDR_20' ) start [2025-01-01 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147601', 'tblTempVendorCDR_20' ) end [2025-01-01 01:45:18] Production.INFO: ProcessCDR(1,14147601,1,1,2) [2025-01-01 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147601', 'tblTempUsageDetail_20' ) start [2025-01-01 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147601', 'tblTempUsageDetail_20' ) end [2025-01-01 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:45:21] Production.INFO: ==21416== Releasing lock... [2025-01-01 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:45:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:46:05 [end_date_ymd] => 2025-01-01 01:46:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:46:05' and `end` < '2025-01-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-01-01 01:46:18] Production.INFO: count ==1725 [2025-01-01 01:46:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:46:05 - End Time 2025-01-01 01:46:05 [2025-01-01 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147606', 'tblTempUsageDetail_20' ) start [2025-01-01 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147606', 'tblTempUsageDetail_20' ) end [2025-01-01 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147606', 'tblTempVendorCDR_20' ) start [2025-01-01 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147606', 'tblTempVendorCDR_20' ) end [2025-01-01 01:46:19] Production.INFO: ProcessCDR(1,14147606,1,1,2) [2025-01-01 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147606', 'tblTempUsageDetail_20' ) start [2025-01-01 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147606', 'tblTempUsageDetail_20' ) end [2025-01-01 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:46:22] Production.INFO: ==21496== Releasing lock... [2025-01-01 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:46:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 01:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:47:04 [end_date_ymd] => 2025-01-01 01:47:04 [RateCDR] => 1 ) [2025-01-01 01: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` >= '2024-12-31 22:47:04' and `end` < '2025-01-01 01: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-01-01 01:47:17] Production.INFO: count ==1722 [2025-01-01 01:47:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:47:04 - End Time 2025-01-01 01:47:04 [2025-01-01 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147611', 'tblTempUsageDetail_20' ) start [2025-01-01 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147611', 'tblTempUsageDetail_20' ) end [2025-01-01 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147611', 'tblTempVendorCDR_20' ) start [2025-01-01 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147611', 'tblTempVendorCDR_20' ) end [2025-01-01 01:47:18] Production.INFO: ProcessCDR(1,14147611,1,1,2) [2025-01-01 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147611', 'tblTempUsageDetail_20' ) start [2025-01-01 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147611', 'tblTempUsageDetail_20' ) end [2025-01-01 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:47:21] Production.INFO: ==21576== Releasing lock... [2025-01-01 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:47:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-01 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:48:05 [end_date_ymd] => 2025-01-01 01:48:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:48:05' and `end` < '2025-01-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-01-01 01:48:18] Production.INFO: count ==1722 [2025-01-01 01:48:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:48:05 - End Time 2025-01-01 01:48:05 [2025-01-01 01:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147616', 'tblTempUsageDetail_20' ) start [2025-01-01 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147616', 'tblTempUsageDetail_20' ) end [2025-01-01 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147616', 'tblTempVendorCDR_20' ) start [2025-01-01 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147616', 'tblTempVendorCDR_20' ) end [2025-01-01 01:48:19] Production.INFO: ProcessCDR(1,14147616,1,1,2) [2025-01-01 01:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147616', 'tblTempUsageDetail_20' ) start [2025-01-01 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147616', 'tblTempUsageDetail_20' ) end [2025-01-01 01:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:48:23] Production.INFO: ==21659== Releasing lock... [2025-01-01 01:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:48:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-01 01:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:49:04 [end_date_ymd] => 2025-01-01 01:49:04 [RateCDR] => 1 ) [2025-01-01 01: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` >= '2024-12-31 22:49:04' and `end` < '2025-01-01 01: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-01-01 01:49:17] Production.INFO: count ==1722 [2025-01-01 01:49:17] Production.ERROR: pbx CDR StartTime 2024-12-31 22:49:04 - End Time 2025-01-01 01:49:04 [2025-01-01 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147621', 'tblTempUsageDetail_20' ) start [2025-01-01 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147621', 'tblTempUsageDetail_20' ) end [2025-01-01 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147621', 'tblTempVendorCDR_20' ) start [2025-01-01 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147621', 'tblTempVendorCDR_20' ) end [2025-01-01 01:49:17] Production.INFO: ProcessCDR(1,14147621,1,1,2) [2025-01-01 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147621', 'tblTempUsageDetail_20' ) start [2025-01-01 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147621', 'tblTempUsageDetail_20' ) end [2025-01-01 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:49:22] Production.INFO: ==21734== Releasing lock... [2025-01-01 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:49:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-01 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:50:06 [end_date_ymd] => 2025-01-01 01:50:06 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:50:06' and `end` < '2025-01-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-01-01 01:50:20] Production.INFO: count ==1731 [2025-01-01 01:50:20] Production.ERROR: pbx CDR StartTime 2024-12-31 22:50:06 - End Time 2025-01-01 01:50:06 [2025-01-01 01:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147627', 'tblTempUsageDetail_20' ) start [2025-01-01 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147627', 'tblTempUsageDetail_20' ) end [2025-01-01 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147627', 'tblTempVendorCDR_20' ) start [2025-01-01 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147627', 'tblTempVendorCDR_20' ) end [2025-01-01 01:50:20] Production.INFO: ProcessCDR(1,14147627,1,1,2) [2025-01-01 01:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147627', 'tblTempUsageDetail_20' ) start [2025-01-01 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147627', 'tblTempUsageDetail_20' ) end [2025-01-01 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:50:23] Production.INFO: ==21809== Releasing lock... [2025-01-01 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:50:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:51:05 [end_date_ymd] => 2025-01-01 01:51:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:51:05' and `end` < '2025-01-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-01-01 01:51:19] Production.INFO: count ==1736 [2025-01-01 01:51:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:51:05 - End Time 2025-01-01 01:51:05 [2025-01-01 01:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147632', 'tblTempUsageDetail_20' ) start [2025-01-01 01:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147632', 'tblTempUsageDetail_20' ) end [2025-01-01 01:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147632', 'tblTempVendorCDR_20' ) start [2025-01-01 01:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147632', 'tblTempVendorCDR_20' ) end [2025-01-01 01:51:20] Production.INFO: ProcessCDR(1,14147632,1,1,2) [2025-01-01 01:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147632', 'tblTempUsageDetail_20' ) start [2025-01-01 01:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147632', 'tblTempUsageDetail_20' ) end [2025-01-01 01:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:51:23] Production.INFO: ==21881== Releasing lock... [2025-01-01 01:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:51:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:52:05 [end_date_ymd] => 2025-01-01 01:52:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:52:05' and `end` < '2025-01-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-01-01 01:52:18] Production.INFO: count ==1736 [2025-01-01 01:52:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:52:05 - End Time 2025-01-01 01:52:05 [2025-01-01 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147637', 'tblTempUsageDetail_20' ) start [2025-01-01 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147637', 'tblTempUsageDetail_20' ) end [2025-01-01 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147637', 'tblTempVendorCDR_20' ) start [2025-01-01 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147637', 'tblTempVendorCDR_20' ) end [2025-01-01 01:52:18] Production.INFO: ProcessCDR(1,14147637,1,1,2) [2025-01-01 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147637', 'tblTempUsageDetail_20' ) start [2025-01-01 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147637', 'tblTempUsageDetail_20' ) end [2025-01-01 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:52:22] Production.INFO: ==21954== Releasing lock... [2025-01-01 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:52:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:53:05 [end_date_ymd] => 2025-01-01 01:53:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:53:05' and `end` < '2025-01-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-01-01 01:53:19] Production.INFO: count ==1736 [2025-01-01 01:53:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:53:05 - End Time 2025-01-01 01:53:05 [2025-01-01 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147642', 'tblTempUsageDetail_20' ) start [2025-01-01 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147642', 'tblTempUsageDetail_20' ) end [2025-01-01 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147642', 'tblTempVendorCDR_20' ) start [2025-01-01 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147642', 'tblTempVendorCDR_20' ) end [2025-01-01 01:53:19] Production.INFO: ProcessCDR(1,14147642,1,1,2) [2025-01-01 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147642', 'tblTempUsageDetail_20' ) start [2025-01-01 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147642', 'tblTempUsageDetail_20' ) end [2025-01-01 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:53:22] Production.INFO: ==22027== Releasing lock... [2025-01-01 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:53:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 01:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:54:04 [end_date_ymd] => 2025-01-01 01:54:04 [RateCDR] => 1 ) [2025-01-01 01: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` >= '2024-12-31 22:54:04' and `end` < '2025-01-01 01: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-01-01 01:54:17] Production.INFO: count ==1736 [2025-01-01 01:54:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:54:04 - End Time 2025-01-01 01:54:04 [2025-01-01 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147647', 'tblTempUsageDetail_20' ) start [2025-01-01 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147647', 'tblTempUsageDetail_20' ) end [2025-01-01 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147647', 'tblTempVendorCDR_20' ) start [2025-01-01 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147647', 'tblTempVendorCDR_20' ) end [2025-01-01 01:54:18] Production.INFO: ProcessCDR(1,14147647,1,1,2) [2025-01-01 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147647', 'tblTempUsageDetail_20' ) start [2025-01-01 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147647', 'tblTempUsageDetail_20' ) end [2025-01-01 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:54:21] Production.INFO: ==22099== Releasing lock... [2025-01-01 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:54:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:55:05 [end_date_ymd] => 2025-01-01 01:55:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:55:05' and `end` < '2025-01-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-01-01 01:55:18] Production.INFO: count ==1736 [2025-01-01 01:55:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:55:05 - End Time 2025-01-01 01:55:05 [2025-01-01 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147652', 'tblTempUsageDetail_20' ) start [2025-01-01 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147652', 'tblTempUsageDetail_20' ) end [2025-01-01 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147652', 'tblTempVendorCDR_20' ) start [2025-01-01 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147652', 'tblTempVendorCDR_20' ) end [2025-01-01 01:55:18] Production.INFO: ProcessCDR(1,14147652,1,1,2) [2025-01-01 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147652', 'tblTempUsageDetail_20' ) start [2025-01-01 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147652', 'tblTempUsageDetail_20' ) end [2025-01-01 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:55:21] Production.INFO: ==22171== Releasing lock... [2025-01-01 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:55:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:56:05 [end_date_ymd] => 2025-01-01 01:56:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:56:05' and `end` < '2025-01-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-01-01 01:56:17] Production.INFO: count ==1733 [2025-01-01 01:56:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:56:05 - End Time 2025-01-01 01:56:05 [2025-01-01 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147657', 'tblTempUsageDetail_20' ) start [2025-01-01 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147657', 'tblTempUsageDetail_20' ) end [2025-01-01 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147657', 'tblTempVendorCDR_20' ) start [2025-01-01 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147657', 'tblTempVendorCDR_20' ) end [2025-01-01 01:56:18] Production.INFO: ProcessCDR(1,14147657,1,1,2) [2025-01-01 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147657', 'tblTempUsageDetail_20' ) start [2025-01-01 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147657', 'tblTempUsageDetail_20' ) end [2025-01-01 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:56:21] Production.INFO: ==22242== Releasing lock... [2025-01-01 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:56:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:57:05 [end_date_ymd] => 2025-01-01 01:57:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:57:05' and `end` < '2025-01-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-01-01 01:57:18] Production.INFO: count ==1737 [2025-01-01 01:57:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:57:05 - End Time 2025-01-01 01:57:05 [2025-01-01 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147662', 'tblTempUsageDetail_20' ) start [2025-01-01 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147662', 'tblTempUsageDetail_20' ) end [2025-01-01 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147662', 'tblTempVendorCDR_20' ) start [2025-01-01 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147662', 'tblTempVendorCDR_20' ) end [2025-01-01 01:57:18] Production.INFO: ProcessCDR(1,14147662,1,1,2) [2025-01-01 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147662', 'tblTempUsageDetail_20' ) start [2025-01-01 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147662', 'tblTempUsageDetail_20' ) end [2025-01-01 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:57:22] Production.INFO: ==22314== Releasing lock... [2025-01-01 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:57:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-01 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:58:05 [end_date_ymd] => 2025-01-01 01:58:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:58:05' and `end` < '2025-01-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-01-01 01:58:18] Production.INFO: count ==1734 [2025-01-01 01:58:19] Production.ERROR: pbx CDR StartTime 2024-12-31 22:58:05 - End Time 2025-01-01 01:58:05 [2025-01-01 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147667', 'tblTempUsageDetail_20' ) start [2025-01-01 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147667', 'tblTempUsageDetail_20' ) end [2025-01-01 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147667', 'tblTempVendorCDR_20' ) start [2025-01-01 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147667', 'tblTempVendorCDR_20' ) end [2025-01-01 01:58:19] Production.INFO: ProcessCDR(1,14147667,1,1,2) [2025-01-01 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147667', 'tblTempUsageDetail_20' ) start [2025-01-01 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147667', 'tblTempUsageDetail_20' ) end [2025-01-01 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:58:22] Production.INFO: ==22426== Releasing lock... [2025-01-01 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:58:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-01 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 22:59:05 [end_date_ymd] => 2025-01-01 01:59:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 22:59:05' and `end` < '2025-01-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-01-01 01:59:18] Production.INFO: count ==1733 [2025-01-01 01:59:18] Production.ERROR: pbx CDR StartTime 2024-12-31 22:59:05 - End Time 2025-01-01 01:59:05 [2025-01-01 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147672', 'tblTempUsageDetail_20' ) start [2025-01-01 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147672', 'tblTempUsageDetail_20' ) end [2025-01-01 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147672', 'tblTempVendorCDR_20' ) start [2025-01-01 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147672', 'tblTempVendorCDR_20' ) end [2025-01-01 01:59:18] Production.INFO: ProcessCDR(1,14147672,1,1,2) [2025-01-01 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147672', 'tblTempUsageDetail_20' ) start [2025-01-01 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147672', 'tblTempUsageDetail_20' ) end [2025-01-01 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 01:59:21] Production.INFO: ==22503== Releasing lock... [2025-01-01 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 01:59:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:00:06 [end_date_ymd] => 2025-01-01 02:00:06 [RateCDR] => 1 ) [2025-01-01 02: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` >= '2024-12-31 23:00:06' and `end` < '2025-01-01 02: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-01-01 02:00:19] Production.INFO: count ==1745 [2025-01-01 02:00:20] Production.ERROR: pbx CDR StartTime 2024-12-31 23:00:06 - End Time 2025-01-01 02:00:06 [2025-01-01 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147678', 'tblTempUsageDetail_20' ) start [2025-01-01 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147678', 'tblTempUsageDetail_20' ) end [2025-01-01 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147678', 'tblTempVendorCDR_20' ) start [2025-01-01 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147678', 'tblTempVendorCDR_20' ) end [2025-01-01 02:00:20] Production.INFO: ProcessCDR(1,14147678,1,1,2) [2025-01-01 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147678', 'tblTempUsageDetail_20' ) start [2025-01-01 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147678', 'tblTempUsageDetail_20' ) end [2025-01-01 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:00:23] Production.INFO: ==22578== Releasing lock... [2025-01-01 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:00:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:01:05 [end_date_ymd] => 2025-01-01 02:01:05 [RateCDR] => 1 ) [2025-01-01 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 23:01:05' and `end` < '2025-01-01 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 02:01:18] Production.INFO: count ==1761 [2025-01-01 02:01:19] Production.ERROR: pbx CDR StartTime 2024-12-31 23:01:05 - End Time 2025-01-01 02:01:05 [2025-01-01 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147683', 'tblTempUsageDetail_20' ) start [2025-01-01 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147683', 'tblTempUsageDetail_20' ) end [2025-01-01 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147683', 'tblTempVendorCDR_20' ) start [2025-01-01 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147683', 'tblTempVendorCDR_20' ) end [2025-01-01 02:01:19] Production.INFO: ProcessCDR(1,14147683,1,1,2) [2025-01-01 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147683', 'tblTempUsageDetail_20' ) start [2025-01-01 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147683', 'tblTempUsageDetail_20' ) end [2025-01-01 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:01:22] Production.INFO: ==22753== Releasing lock... [2025-01-01 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:01:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-01 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:02:05 [end_date_ymd] => 2025-01-01 02:02:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:02:05' and `end` < '2025-01-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-01-01 02:02:17] Production.INFO: count ==1761 [2025-01-01 02:02:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:02:05 - End Time 2025-01-01 02:02:05 [2025-01-01 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147688', 'tblTempUsageDetail_20' ) start [2025-01-01 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147688', 'tblTempUsageDetail_20' ) end [2025-01-01 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147688', 'tblTempVendorCDR_20' ) start [2025-01-01 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147688', 'tblTempVendorCDR_20' ) end [2025-01-01 02:02:18] Production.INFO: ProcessCDR(1,14147688,1,1,2) [2025-01-01 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147688', 'tblTempUsageDetail_20' ) start [2025-01-01 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147688', 'tblTempUsageDetail_20' ) end [2025-01-01 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:02:21] Production.INFO: ==22832== Releasing lock... [2025-01-01 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:02:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-01 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:03:05 [end_date_ymd] => 2025-01-01 02:03:05 [RateCDR] => 1 ) [2025-01-01 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 23:03:05' and `end` < '2025-01-01 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 02:03:18] Production.INFO: count ==1762 [2025-01-01 02:03:19] Production.ERROR: pbx CDR StartTime 2024-12-31 23:03:05 - End Time 2025-01-01 02:03:05 [2025-01-01 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147693', 'tblTempUsageDetail_20' ) start [2025-01-01 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147693', 'tblTempUsageDetail_20' ) end [2025-01-01 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147693', 'tblTempVendorCDR_20' ) start [2025-01-01 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147693', 'tblTempVendorCDR_20' ) end [2025-01-01 02:03:19] Production.INFO: ProcessCDR(1,14147693,1,1,2) [2025-01-01 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147693', 'tblTempUsageDetail_20' ) start [2025-01-01 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147693', 'tblTempUsageDetail_20' ) end [2025-01-01 02:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:03:23] Production.INFO: ==22907== Releasing lock... [2025-01-01 02:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:03:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-01 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:04:05 [end_date_ymd] => 2025-01-01 02:04:05 [RateCDR] => 1 ) [2025-01-01 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 23:04:05' and `end` < '2025-01-01 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 02:04:18] Production.INFO: count ==1762 [2025-01-01 02:04:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:04:05 - End Time 2025-01-01 02:04:05 [2025-01-01 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147698', 'tblTempUsageDetail_20' ) start [2025-01-01 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147698', 'tblTempUsageDetail_20' ) end [2025-01-01 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147698', 'tblTempVendorCDR_20' ) start [2025-01-01 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147698', 'tblTempVendorCDR_20' ) end [2025-01-01 02:04:18] Production.INFO: ProcessCDR(1,14147698,1,1,2) [2025-01-01 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147698', 'tblTempUsageDetail_20' ) start [2025-01-01 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147698', 'tblTempUsageDetail_20' ) end [2025-01-01 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:04:22] Production.INFO: ==22978== Releasing lock... [2025-01-01 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:04:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-01 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:05:05 [end_date_ymd] => 2025-01-01 02:05:05 [RateCDR] => 1 ) [2025-01-01 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 23:05:05' and `end` < '2025-01-01 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 02:05:18] Production.INFO: count ==1760 [2025-01-01 02:05:19] Production.ERROR: pbx CDR StartTime 2024-12-31 23:05:05 - End Time 2025-01-01 02:05:05 [2025-01-01 02:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147703', 'tblTempUsageDetail_20' ) start [2025-01-01 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147703', 'tblTempUsageDetail_20' ) end [2025-01-01 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147703', 'tblTempVendorCDR_20' ) start [2025-01-01 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147703', 'tblTempVendorCDR_20' ) end [2025-01-01 02:05:19] Production.INFO: ProcessCDR(1,14147703,1,1,2) [2025-01-01 02:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147703', 'tblTempUsageDetail_20' ) start [2025-01-01 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147703', 'tblTempUsageDetail_20' ) end [2025-01-01 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:05:22] Production.INFO: ==23053== Releasing lock... [2025-01-01 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:05:22] Production.INFO: 42 MB #Memory Used# [2025-01-01 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:06:04 [end_date_ymd] => 2025-01-01 02:06:04 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:06:04' and `end` < '2025-01-01 02: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-01-01 02:06:18] Production.INFO: count ==1759 [2025-01-01 02:06:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:06:04 - End Time 2025-01-01 02:06:04 [2025-01-01 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147708', 'tblTempUsageDetail_20' ) start [2025-01-01 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147708', 'tblTempUsageDetail_20' ) end [2025-01-01 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147708', 'tblTempVendorCDR_20' ) start [2025-01-01 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147708', 'tblTempVendorCDR_20' ) end [2025-01-01 02:06:19] Production.INFO: ProcessCDR(1,14147708,1,1,2) [2025-01-01 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147708', 'tblTempUsageDetail_20' ) start [2025-01-01 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147708', 'tblTempUsageDetail_20' ) end [2025-01-01 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:06:22] Production.INFO: ==23123== Releasing lock... [2025-01-01 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:06:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-01 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:07:05 [end_date_ymd] => 2025-01-01 02:07:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:07:05' and `end` < '2025-01-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-01-01 02:07:17] Production.INFO: count ==1757 [2025-01-01 02:07:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:07:05 - End Time 2025-01-01 02:07:05 [2025-01-01 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147713', 'tblTempUsageDetail_20' ) start [2025-01-01 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147713', 'tblTempUsageDetail_20' ) end [2025-01-01 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147713', 'tblTempVendorCDR_20' ) start [2025-01-01 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147713', 'tblTempVendorCDR_20' ) end [2025-01-01 02:07:18] Production.INFO: ProcessCDR(1,14147713,1,1,2) [2025-01-01 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147713', 'tblTempUsageDetail_20' ) start [2025-01-01 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147713', 'tblTempUsageDetail_20' ) end [2025-01-01 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:07:21] Production.INFO: ==23194== Releasing lock... [2025-01-01 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:07:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:08:05 [end_date_ymd] => 2025-01-01 02:08:05 [RateCDR] => 1 ) [2025-01-01 02: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` >= '2024-12-31 23:08:05' and `end` < '2025-01-01 02: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-01-01 02:08:18] Production.INFO: count ==1756 [2025-01-01 02:08:19] Production.ERROR: pbx CDR StartTime 2024-12-31 23:08:05 - End Time 2025-01-01 02:08:05 [2025-01-01 02:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147718', 'tblTempUsageDetail_20' ) start [2025-01-01 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147718', 'tblTempUsageDetail_20' ) end [2025-01-01 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147718', 'tblTempVendorCDR_20' ) start [2025-01-01 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147718', 'tblTempVendorCDR_20' ) end [2025-01-01 02:08:19] Production.INFO: ProcessCDR(1,14147718,1,1,2) [2025-01-01 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147718', 'tblTempUsageDetail_20' ) start [2025-01-01 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147718', 'tblTempUsageDetail_20' ) end [2025-01-01 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:08:22] Production.INFO: ==23265== Releasing lock... [2025-01-01 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:08:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:09:05 [end_date_ymd] => 2025-01-01 02:09:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:09:05' and `end` < '2025-01-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-01-01 02:09:18] Production.INFO: count ==1758 [2025-01-01 02:09:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:09:05 - End Time 2025-01-01 02:09:05 [2025-01-01 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147723', 'tblTempUsageDetail_20' ) start [2025-01-01 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147723', 'tblTempUsageDetail_20' ) end [2025-01-01 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147723', 'tblTempVendorCDR_20' ) start [2025-01-01 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147723', 'tblTempVendorCDR_20' ) end [2025-01-01 02:09:18] Production.INFO: ProcessCDR(1,14147723,1,1,2) [2025-01-01 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147723', 'tblTempUsageDetail_20' ) start [2025-01-01 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147723', 'tblTempUsageDetail_20' ) end [2025-01-01 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:09:22] Production.INFO: ==23334== Releasing lock... [2025-01-01 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:09:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-01 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:10:06 [end_date_ymd] => 2025-01-01 02:10:06 [RateCDR] => 1 ) [2025-01-01 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 23:10:06' and `end` < '2025-01-01 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 02:10:19] Production.INFO: count ==1766 [2025-01-01 02:10:19] Production.ERROR: pbx CDR StartTime 2024-12-31 23:10:06 - End Time 2025-01-01 02:10:06 [2025-01-01 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147729', 'tblTempUsageDetail_20' ) start [2025-01-01 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147729', 'tblTempUsageDetail_20' ) end [2025-01-01 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147729', 'tblTempVendorCDR_20' ) start [2025-01-01 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147729', 'tblTempVendorCDR_20' ) end [2025-01-01 02:10:19] Production.INFO: ProcessCDR(1,14147729,1,1,2) [2025-01-01 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147729', 'tblTempUsageDetail_20' ) start [2025-01-01 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147729', 'tblTempUsageDetail_20' ) end [2025-01-01 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:10:22] Production.INFO: ==23406== Releasing lock... [2025-01-01 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:10:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-01 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:11:05 [end_date_ymd] => 2025-01-01 02:11:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:11:05' and `end` < '2025-01-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-01-01 02:11:18] Production.INFO: count ==1774 [2025-01-01 02:11:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:11:05 - End Time 2025-01-01 02:11:05 [2025-01-01 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147734', 'tblTempUsageDetail_20' ) start [2025-01-01 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147734', 'tblTempUsageDetail_20' ) end [2025-01-01 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147734', 'tblTempVendorCDR_20' ) start [2025-01-01 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147734', 'tblTempVendorCDR_20' ) end [2025-01-01 02:11:18] Production.INFO: ProcessCDR(1,14147734,1,1,2) [2025-01-01 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147734', 'tblTempUsageDetail_20' ) start [2025-01-01 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147734', 'tblTempUsageDetail_20' ) end [2025-01-01 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:11:21] Production.INFO: ==23479== Releasing lock... [2025-01-01 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:11:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:12:05 [end_date_ymd] => 2025-01-01 02:12:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:12:05' and `end` < '2025-01-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-01-01 02:12:18] Production.INFO: count ==1774 [2025-01-01 02:12:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:12:05 - End Time 2025-01-01 02:12:05 [2025-01-01 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147739', 'tblTempUsageDetail_20' ) start [2025-01-01 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147739', 'tblTempUsageDetail_20' ) end [2025-01-01 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147739', 'tblTempVendorCDR_20' ) start [2025-01-01 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147739', 'tblTempVendorCDR_20' ) end [2025-01-01 02:12:18] Production.INFO: ProcessCDR(1,14147739,1,1,2) [2025-01-01 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147739', 'tblTempUsageDetail_20' ) start [2025-01-01 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147739', 'tblTempUsageDetail_20' ) end [2025-01-01 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:12:22] Production.INFO: ==23553== Releasing lock... [2025-01-01 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:12:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:13:05 [end_date_ymd] => 2025-01-01 02:13:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:13:05' and `end` < '2025-01-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-01-01 02:13:18] Production.INFO: count ==1774 [2025-01-01 02:13:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:13:05 - End Time 2025-01-01 02:13:05 [2025-01-01 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147744', 'tblTempUsageDetail_20' ) start [2025-01-01 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147744', 'tblTempUsageDetail_20' ) end [2025-01-01 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147744', 'tblTempVendorCDR_20' ) start [2025-01-01 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147744', 'tblTempVendorCDR_20' ) end [2025-01-01 02:13:19] Production.INFO: ProcessCDR(1,14147744,1,1,2) [2025-01-01 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147744', 'tblTempUsageDetail_20' ) start [2025-01-01 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147744', 'tblTempUsageDetail_20' ) end [2025-01-01 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:13:22] Production.INFO: ==23623== Releasing lock... [2025-01-01 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:13:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:14:05 [end_date_ymd] => 2025-01-01 02:14:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:14:05' and `end` < '2025-01-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-01-01 02:14:18] Production.INFO: count ==1774 [2025-01-01 02:14:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:14:05 - End Time 2025-01-01 02:14:05 [2025-01-01 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147749', 'tblTempUsageDetail_20' ) start [2025-01-01 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147749', 'tblTempUsageDetail_20' ) end [2025-01-01 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147749', 'tblTempVendorCDR_20' ) start [2025-01-01 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147749', 'tblTempVendorCDR_20' ) end [2025-01-01 02:14:18] Production.INFO: ProcessCDR(1,14147749,1,1,2) [2025-01-01 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147749', 'tblTempUsageDetail_20' ) start [2025-01-01 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147749', 'tblTempUsageDetail_20' ) end [2025-01-01 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:14:21] Production.INFO: ==23735== Releasing lock... [2025-01-01 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:14:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:15:05 [end_date_ymd] => 2025-01-01 02:15:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:15:05' and `end` < '2025-01-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-01-01 02:15:17] Production.INFO: count ==1710 [2025-01-01 02:15:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:15:05 - End Time 2025-01-01 02:15:05 [2025-01-01 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147754', 'tblTempUsageDetail_20' ) start [2025-01-01 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147754', 'tblTempUsageDetail_20' ) end [2025-01-01 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147754', 'tblTempVendorCDR_20' ) start [2025-01-01 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147754', 'tblTempVendorCDR_20' ) end [2025-01-01 02:15:18] Production.INFO: ProcessCDR(1,14147754,1,1,2) [2025-01-01 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147754', 'tblTempUsageDetail_20' ) start [2025-01-01 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147754', 'tblTempUsageDetail_20' ) end [2025-01-01 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:15:21] Production.INFO: ==23818== Releasing lock... [2025-01-01 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:15:21] Production.INFO: 41 MB #Memory Used# [2025-01-01 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:16:05 [end_date_ymd] => 2025-01-01 02:16:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:16:05' and `end` < '2025-01-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-01-01 02:16:18] Production.INFO: count ==1691 [2025-01-01 02:16:19] Production.ERROR: pbx CDR StartTime 2024-12-31 23:16:05 - End Time 2025-01-01 02:16:05 [2025-01-01 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147759', 'tblTempUsageDetail_20' ) start [2025-01-01 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147759', 'tblTempUsageDetail_20' ) end [2025-01-01 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147759', 'tblTempVendorCDR_20' ) start [2025-01-01 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147759', 'tblTempVendorCDR_20' ) end [2025-01-01 02:16:19] Production.INFO: ProcessCDR(1,14147759,1,1,2) [2025-01-01 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147759', 'tblTempUsageDetail_20' ) start [2025-01-01 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147759', 'tblTempUsageDetail_20' ) end [2025-01-01 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:16:22] Production.INFO: ==23905== Releasing lock... [2025-01-01 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:16:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:17:05 [end_date_ymd] => 2025-01-01 02:17:05 [RateCDR] => 1 ) [2025-01-01 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 23:17:05' and `end` < '2025-01-01 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 02:17:18] Production.INFO: count ==1615 [2025-01-01 02:17:19] Production.ERROR: pbx CDR StartTime 2024-12-31 23:17:05 - End Time 2025-01-01 02:17:05 [2025-01-01 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147764', 'tblTempUsageDetail_20' ) start [2025-01-01 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147764', 'tblTempUsageDetail_20' ) end [2025-01-01 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147764', 'tblTempVendorCDR_20' ) start [2025-01-01 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147764', 'tblTempVendorCDR_20' ) end [2025-01-01 02:17:19] Production.INFO: ProcessCDR(1,14147764,1,1,2) [2025-01-01 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147764', 'tblTempUsageDetail_20' ) start [2025-01-01 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147764', 'tblTempUsageDetail_20' ) end [2025-01-01 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:17:22] Production.INFO: ==23998== Releasing lock... [2025-01-01 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:17:22] Production.INFO: 41 MB #Memory Used# [2025-01-01 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:18:05 [end_date_ymd] => 2025-01-01 02:18:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:18:05' and `end` < '2025-01-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-01-01 02:18:18] Production.INFO: count ==1539 [2025-01-01 02:18:19] Production.ERROR: pbx CDR StartTime 2024-12-31 23:18:05 - End Time 2025-01-01 02:18:05 [2025-01-01 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147769', 'tblTempUsageDetail_20' ) start [2025-01-01 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147769', 'tblTempUsageDetail_20' ) end [2025-01-01 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147769', 'tblTempVendorCDR_20' ) start [2025-01-01 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147769', 'tblTempVendorCDR_20' ) end [2025-01-01 02:18:19] Production.INFO: ProcessCDR(1,14147769,1,1,2) [2025-01-01 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147769', 'tblTempUsageDetail_20' ) start [2025-01-01 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147769', 'tblTempUsageDetail_20' ) end [2025-01-01 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:18:22] Production.INFO: ==24083== Releasing lock... [2025-01-01 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:18:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:19:05 [end_date_ymd] => 2025-01-01 02:19:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:19:05' and `end` < '2025-01-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-01-01 02:19:17] Production.INFO: count ==1461 [2025-01-01 02:19:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:19:05 - End Time 2025-01-01 02:19:05 [2025-01-01 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147774', 'tblTempUsageDetail_20' ) start [2025-01-01 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147774', 'tblTempUsageDetail_20' ) end [2025-01-01 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147774', 'tblTempVendorCDR_20' ) start [2025-01-01 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147774', 'tblTempVendorCDR_20' ) end [2025-01-01 02:19:18] Production.INFO: ProcessCDR(1,14147774,1,1,2) [2025-01-01 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147774', 'tblTempUsageDetail_20' ) start [2025-01-01 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147774', 'tblTempUsageDetail_20' ) end [2025-01-01 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:19:21] Production.INFO: ==24168== Releasing lock... [2025-01-01 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:19:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-01 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:20:05 [end_date_ymd] => 2025-01-01 02:20:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:20:05' and `end` < '2025-01-01 02: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-01-01 02:20:18] Production.INFO: count ==1388 [2025-01-01 02:20:19] Production.ERROR: pbx CDR StartTime 2024-12-31 23:20:05 - End Time 2025-01-01 02:20:05 [2025-01-01 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147780', 'tblTempUsageDetail_20' ) start [2025-01-01 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147780', 'tblTempUsageDetail_20' ) end [2025-01-01 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147780', 'tblTempVendorCDR_20' ) start [2025-01-01 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147780', 'tblTempVendorCDR_20' ) end [2025-01-01 02:20:19] Production.INFO: ProcessCDR(1,14147780,1,1,2) [2025-01-01 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147780', 'tblTempUsageDetail_20' ) start [2025-01-01 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147780', 'tblTempUsageDetail_20' ) end [2025-01-01 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:20:22] Production.INFO: ==24251== Releasing lock... [2025-01-01 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:20:22] Production.INFO: 39 MB #Memory Used# [2025-01-01 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:21:05 [end_date_ymd] => 2025-01-01 02:21:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:21:05' and `end` < '2025-01-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-01-01 02:21:18] Production.INFO: count ==1324 [2025-01-01 02:21:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:21:05 - End Time 2025-01-01 02:21:05 [2025-01-01 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147785', 'tblTempUsageDetail_20' ) start [2025-01-01 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147785', 'tblTempUsageDetail_20' ) end [2025-01-01 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147785', 'tblTempVendorCDR_20' ) start [2025-01-01 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147785', 'tblTempVendorCDR_20' ) end [2025-01-01 02:21:18] Production.INFO: ProcessCDR(1,14147785,1,1,2) [2025-01-01 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147785', 'tblTempUsageDetail_20' ) start [2025-01-01 02:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147785', 'tblTempUsageDetail_20' ) end [2025-01-01 02:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:21:23] Production.INFO: ==24336== Releasing lock... [2025-01-01 02:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:21:23] Production.INFO: 39 MB #Memory Used# [2025-01-01 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:22:05 [end_date_ymd] => 2025-01-01 02:22:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:22:05' and `end` < '2025-01-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-01-01 02:22:17] Production.INFO: count ==1242 [2025-01-01 02:22:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:22:05 - End Time 2025-01-01 02:22:05 [2025-01-01 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147790', 'tblTempUsageDetail_20' ) start [2025-01-01 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147790', 'tblTempUsageDetail_20' ) end [2025-01-01 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147790', 'tblTempVendorCDR_20' ) start [2025-01-01 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147790', 'tblTempVendorCDR_20' ) end [2025-01-01 02:22:18] Production.INFO: ProcessCDR(1,14147790,1,1,2) [2025-01-01 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147790', 'tblTempUsageDetail_20' ) start [2025-01-01 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147790', 'tblTempUsageDetail_20' ) end [2025-01-01 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:22:23] Production.INFO: ==24421== Releasing lock... [2025-01-01 02:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:22:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:23:05 [end_date_ymd] => 2025-01-01 02:23:05 [RateCDR] => 1 ) [2025-01-01 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 23:23:05' and `end` < '2025-01-01 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 02:23:17] Production.INFO: count ==1162 [2025-01-01 02:23:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:23:05 - End Time 2025-01-01 02:23:05 [2025-01-01 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147795', 'tblTempUsageDetail_20' ) start [2025-01-01 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147795', 'tblTempUsageDetail_20' ) end [2025-01-01 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147795', 'tblTempVendorCDR_20' ) start [2025-01-01 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147795', 'tblTempVendorCDR_20' ) end [2025-01-01 02:23:18] Production.INFO: ProcessCDR(1,14147795,1,1,2) [2025-01-01 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147795', 'tblTempUsageDetail_20' ) start [2025-01-01 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147795', 'tblTempUsageDetail_20' ) end [2025-01-01 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:23:21] Production.INFO: ==24506== Releasing lock... [2025-01-01 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:23:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:24:05 [end_date_ymd] => 2025-01-01 02:24:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:24:05' and `end` < '2025-01-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-01-01 02:24:18] Production.INFO: count ==1081 [2025-01-01 02:24:19] Production.ERROR: pbx CDR StartTime 2024-12-31 23:24:05 - End Time 2025-01-01 02:24:05 [2025-01-01 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147800', 'tblTempUsageDetail_20' ) start [2025-01-01 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147800', 'tblTempUsageDetail_20' ) end [2025-01-01 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147800', 'tblTempVendorCDR_20' ) start [2025-01-01 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147800', 'tblTempVendorCDR_20' ) end [2025-01-01 02:24:19] Production.INFO: ProcessCDR(1,14147800,1,1,2) [2025-01-01 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147800', 'tblTempUsageDetail_20' ) start [2025-01-01 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147800', 'tblTempUsageDetail_20' ) end [2025-01-01 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:24:22] Production.INFO: ==24590== Releasing lock... [2025-01-01 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:24:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-01 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:25:05 [end_date_ymd] => 2025-01-01 02:25:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:25:05' and `end` < '2025-01-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-01-01 02:25:18] Production.INFO: count ==1004 [2025-01-01 02:25:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:25:05 - End Time 2025-01-01 02:25:05 [2025-01-01 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147805', 'tblTempUsageDetail_20' ) start [2025-01-01 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147805', 'tblTempUsageDetail_20' ) end [2025-01-01 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147805', 'tblTempVendorCDR_20' ) start [2025-01-01 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147805', 'tblTempVendorCDR_20' ) end [2025-01-01 02:25:18] Production.INFO: ProcessCDR(1,14147805,1,1,2) [2025-01-01 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147805', 'tblTempUsageDetail_20' ) start [2025-01-01 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147805', 'tblTempUsageDetail_20' ) end [2025-01-01 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:25:21] Production.INFO: ==24673== Releasing lock... [2025-01-01 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:25:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-01 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:26:05 [end_date_ymd] => 2025-01-01 02:26:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:26:05' and `end` < '2025-01-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-01-01 02:26:18] Production.INFO: count ==928 [2025-01-01 02:26:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:26:05 - End Time 2025-01-01 02:26:05 [2025-01-01 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147810', 'tblTempUsageDetail_20' ) start [2025-01-01 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147810', 'tblTempUsageDetail_20' ) end [2025-01-01 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147810', 'tblTempVendorCDR_20' ) start [2025-01-01 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147810', 'tblTempVendorCDR_20' ) end [2025-01-01 02:26:18] Production.INFO: ProcessCDR(1,14147810,1,1,2) [2025-01-01 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147810', 'tblTempUsageDetail_20' ) start [2025-01-01 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147810', 'tblTempUsageDetail_20' ) end [2025-01-01 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:26:21] Production.INFO: ==24758== Releasing lock... [2025-01-01 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:26:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 02:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:27:04 [end_date_ymd] => 2025-01-01 02:27:04 [RateCDR] => 1 ) [2025-01-01 02: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` >= '2024-12-31 23:27:04' and `end` < '2025-01-01 02: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-01-01 02:27:17] Production.INFO: count ==852 [2025-01-01 02:27:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:27:04 - End Time 2025-01-01 02:27:04 [2025-01-01 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147815', 'tblTempUsageDetail_20' ) start [2025-01-01 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147815', 'tblTempUsageDetail_20' ) end [2025-01-01 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147815', 'tblTempVendorCDR_20' ) start [2025-01-01 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147815', 'tblTempVendorCDR_20' ) end [2025-01-01 02:27:18] Production.INFO: ProcessCDR(1,14147815,1,1,2) [2025-01-01 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147815', 'tblTempUsageDetail_20' ) start [2025-01-01 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147815', 'tblTempUsageDetail_20' ) end [2025-01-01 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:27:21] Production.INFO: ==24842== Releasing lock... [2025-01-01 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:27:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-01 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:28:05 [end_date_ymd] => 2025-01-01 02:28:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:28:05' and `end` < '2025-01-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-01-01 02:28:17] Production.INFO: count ==772 [2025-01-01 02:28:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:28:05 - End Time 2025-01-01 02:28:05 [2025-01-01 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147820', 'tblTempUsageDetail_20' ) start [2025-01-01 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147820', 'tblTempUsageDetail_20' ) end [2025-01-01 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147820', 'tblTempVendorCDR_20' ) start [2025-01-01 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147820', 'tblTempVendorCDR_20' ) end [2025-01-01 02:28:18] Production.INFO: ProcessCDR(1,14147820,1,1,2) [2025-01-01 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147820', 'tblTempUsageDetail_20' ) start [2025-01-01 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147820', 'tblTempUsageDetail_20' ) end [2025-01-01 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:28:21] Production.INFO: ==24937== Releasing lock... [2025-01-01 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:28:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-01 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:29:05 [end_date_ymd] => 2025-01-01 02:29:05 [RateCDR] => 1 ) [2025-01-01 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 23:29:05' and `end` < '2025-01-01 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 02:29:18] Production.INFO: count ==696 [2025-01-01 02:29:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:29:05 - End Time 2025-01-01 02:29:05 [2025-01-01 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147825', 'tblTempUsageDetail_20' ) start [2025-01-01 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147825', 'tblTempUsageDetail_20' ) end [2025-01-01 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147825', 'tblTempVendorCDR_20' ) start [2025-01-01 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147825', 'tblTempVendorCDR_20' ) end [2025-01-01 02:29:18] Production.INFO: ProcessCDR(1,14147825,1,1,2) [2025-01-01 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147825', 'tblTempUsageDetail_20' ) start [2025-01-01 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147825', 'tblTempUsageDetail_20' ) end [2025-01-01 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:29:21] Production.INFO: ==25059== Releasing lock... [2025-01-01 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:29:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:30:05 [end_date_ymd] => 2025-01-01 02:30:05 [RateCDR] => 1 ) [2025-01-01 02: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` >= '2024-12-31 23:30:05' and `end` < '2025-01-01 02: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-01-01 02:30:18] Production.INFO: count ==694 [2025-01-01 02:30:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:30:05 - End Time 2025-01-01 02:30:05 [2025-01-01 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147830', 'tblTempUsageDetail_20' ) start [2025-01-01 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147830', 'tblTempUsageDetail_20' ) end [2025-01-01 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147830', 'tblTempVendorCDR_20' ) start [2025-01-01 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147830', 'tblTempVendorCDR_20' ) end [2025-01-01 02:30:18] Production.INFO: ProcessCDR(1,14147830,1,1,2) [2025-01-01 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147830', 'tblTempUsageDetail_20' ) start [2025-01-01 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147830', 'tblTempUsageDetail_20' ) end [2025-01-01 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:30:21] Production.INFO: ==25144== Releasing lock... [2025-01-01 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:30:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:31:05 [end_date_ymd] => 2025-01-01 02:31:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:31:05' and `end` < '2025-01-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-01-01 02:31:17] Production.INFO: count ==708 [2025-01-01 02:31:17] Production.ERROR: pbx CDR StartTime 2024-12-31 23:31:05 - End Time 2025-01-01 02:31:05 [2025-01-01 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147836', 'tblTempUsageDetail_20' ) start [2025-01-01 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147836', 'tblTempUsageDetail_20' ) end [2025-01-01 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147836', 'tblTempVendorCDR_20' ) start [2025-01-01 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147836', 'tblTempVendorCDR_20' ) end [2025-01-01 02:31:18] Production.INFO: ProcessCDR(1,14147836,1,1,2) [2025-01-01 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147836', 'tblTempUsageDetail_20' ) start [2025-01-01 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147836', 'tblTempUsageDetail_20' ) end [2025-01-01 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:31:21] Production.INFO: ==25233== Releasing lock... [2025-01-01 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:31:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 02:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:32:04 [end_date_ymd] => 2025-01-01 02:32:04 [RateCDR] => 1 ) [2025-01-01 02:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 23:32:04' and `end` < '2025-01-01 02:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 02:32:18] Production.INFO: count ==709 [2025-01-01 02:32:19] Production.ERROR: pbx CDR StartTime 2024-12-31 23:32:04 - End Time 2025-01-01 02:32:04 [2025-01-01 02:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147841', 'tblTempUsageDetail_20' ) start [2025-01-01 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147841', 'tblTempUsageDetail_20' ) end [2025-01-01 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147841', 'tblTempVendorCDR_20' ) start [2025-01-01 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147841', 'tblTempVendorCDR_20' ) end [2025-01-01 02:32:19] Production.INFO: ProcessCDR(1,14147841,1,1,2) [2025-01-01 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147841', 'tblTempUsageDetail_20' ) start [2025-01-01 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147841', 'tblTempUsageDetail_20' ) end [2025-01-01 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:32:22] Production.INFO: ==25315== Releasing lock... [2025-01-01 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:32:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 02:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:33:04 [end_date_ymd] => 2025-01-01 02:33:04 [RateCDR] => 1 ) [2025-01-01 02: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` >= '2024-12-31 23:33:04' and `end` < '2025-01-01 02: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-01-01 02:33:17] Production.INFO: count ==709 [2025-01-01 02:33:17] Production.ERROR: pbx CDR StartTime 2024-12-31 23:33:04 - End Time 2025-01-01 02:33:04 [2025-01-01 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147846', 'tblTempUsageDetail_20' ) start [2025-01-01 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147846', 'tblTempUsageDetail_20' ) end [2025-01-01 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147846', 'tblTempVendorCDR_20' ) start [2025-01-01 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147846', 'tblTempVendorCDR_20' ) end [2025-01-01 02:33:17] Production.INFO: ProcessCDR(1,14147846,1,1,2) [2025-01-01 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147846', 'tblTempUsageDetail_20' ) start [2025-01-01 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147846', 'tblTempUsageDetail_20' ) end [2025-01-01 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:33:21] Production.INFO: ==25399== Releasing lock... [2025-01-01 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:33:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 02:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:34:04 [end_date_ymd] => 2025-01-01 02:34:04 [RateCDR] => 1 ) [2025-01-01 02: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` >= '2024-12-31 23:34:04' and `end` < '2025-01-01 02: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-01-01 02:34:16] Production.INFO: count ==709 [2025-01-01 02:34:16] Production.ERROR: pbx CDR StartTime 2024-12-31 23:34:04 - End Time 2025-01-01 02:34:04 [2025-01-01 02:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147851', 'tblTempUsageDetail_20' ) start [2025-01-01 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147851', 'tblTempUsageDetail_20' ) end [2025-01-01 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147851', 'tblTempVendorCDR_20' ) start [2025-01-01 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147851', 'tblTempVendorCDR_20' ) end [2025-01-01 02:34:17] Production.INFO: ProcessCDR(1,14147851,1,1,2) [2025-01-01 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147851', 'tblTempUsageDetail_20' ) start [2025-01-01 02:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147851', 'tblTempUsageDetail_20' ) end [2025-01-01 02:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:34:20] Production.INFO: ==25482== Releasing lock... [2025-01-01 02:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:34:20] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:35:05 [end_date_ymd] => 2025-01-01 02:35:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:35:05' and `end` < '2025-01-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-01-01 02:35:18] Production.INFO: count ==702 [2025-01-01 02:35:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:35:05 - End Time 2025-01-01 02:35:05 [2025-01-01 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147856', 'tblTempUsageDetail_20' ) start [2025-01-01 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147856', 'tblTempUsageDetail_20' ) end [2025-01-01 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147856', 'tblTempVendorCDR_20' ) start [2025-01-01 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147856', 'tblTempVendorCDR_20' ) end [2025-01-01 02:35:18] Production.INFO: ProcessCDR(1,14147856,1,1,2) [2025-01-01 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147856', 'tblTempUsageDetail_20' ) start [2025-01-01 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147856', 'tblTempUsageDetail_20' ) end [2025-01-01 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:35:21] Production.INFO: ==25561== Releasing lock... [2025-01-01 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:35:21] Production.INFO: 33 MB #Memory Used# [2025-01-01 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:36:05 [end_date_ymd] => 2025-01-01 02:36:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:36:05' and `end` < '2025-01-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-01-01 02:36:18] Production.INFO: count ==702 [2025-01-01 02:36:19] Production.ERROR: pbx CDR StartTime 2024-12-31 23:36:05 - End Time 2025-01-01 02:36:05 [2025-01-01 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147861', 'tblTempUsageDetail_20' ) start [2025-01-01 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147861', 'tblTempUsageDetail_20' ) end [2025-01-01 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147861', 'tblTempVendorCDR_20' ) start [2025-01-01 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147861', 'tblTempVendorCDR_20' ) end [2025-01-01 02:36:19] Production.INFO: ProcessCDR(1,14147861,1,1,2) [2025-01-01 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147861', 'tblTempUsageDetail_20' ) start [2025-01-01 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147861', 'tblTempUsageDetail_20' ) end [2025-01-01 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:36:22] Production.INFO: ==25636== Releasing lock... [2025-01-01 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:36:22] Production.INFO: 33 MB #Memory Used# [2025-01-01 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:37:05 [end_date_ymd] => 2025-01-01 02:37:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:37:05' and `end` < '2025-01-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-01-01 02:37:18] Production.INFO: count ==702 [2025-01-01 02:37:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:37:05 - End Time 2025-01-01 02:37:05 [2025-01-01 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147866', 'tblTempUsageDetail_20' ) start [2025-01-01 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147866', 'tblTempUsageDetail_20' ) end [2025-01-01 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147866', 'tblTempVendorCDR_20' ) start [2025-01-01 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147866', 'tblTempVendorCDR_20' ) end [2025-01-01 02:37:18] Production.INFO: ProcessCDR(1,14147866,1,1,2) [2025-01-01 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147866', 'tblTempUsageDetail_20' ) start [2025-01-01 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147866', 'tblTempUsageDetail_20' ) end [2025-01-01 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:37:21] Production.INFO: ==25716== Releasing lock... [2025-01-01 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:37:21] Production.INFO: 33 MB #Memory Used# [2025-01-01 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:38:05 [end_date_ymd] => 2025-01-01 02:38:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:38:05' and `end` < '2025-01-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-01-01 02:38:19] Production.INFO: count ==704 [2025-01-01 02:38:19] Production.ERROR: pbx CDR StartTime 2024-12-31 23:38:05 - End Time 2025-01-01 02:38:05 [2025-01-01 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147871', 'tblTempUsageDetail_20' ) start [2025-01-01 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147871', 'tblTempUsageDetail_20' ) end [2025-01-01 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147871', 'tblTempVendorCDR_20' ) start [2025-01-01 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147871', 'tblTempVendorCDR_20' ) end [2025-01-01 02:38:19] Production.INFO: ProcessCDR(1,14147871,1,1,2) [2025-01-01 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147871', 'tblTempUsageDetail_20' ) start [2025-01-01 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147871', 'tblTempUsageDetail_20' ) end [2025-01-01 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:38:22] Production.INFO: ==25787== Releasing lock... [2025-01-01 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:38:22] Production.INFO: 33 MB #Memory Used# [2025-01-01 02:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:39:04 [end_date_ymd] => 2025-01-01 02:39:04 [RateCDR] => 1 ) [2025-01-01 02: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` >= '2024-12-31 23:39:04' and `end` < '2025-01-01 02: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-01-01 02:39:17] Production.INFO: count ==704 [2025-01-01 02:39:17] Production.ERROR: pbx CDR StartTime 2024-12-31 23:39:04 - End Time 2025-01-01 02:39:04 [2025-01-01 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147876', 'tblTempUsageDetail_20' ) start [2025-01-01 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147876', 'tblTempUsageDetail_20' ) end [2025-01-01 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147876', 'tblTempVendorCDR_20' ) start [2025-01-01 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147876', 'tblTempVendorCDR_20' ) end [2025-01-01 02:39:17] Production.INFO: ProcessCDR(1,14147876,1,1,2) [2025-01-01 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147876', 'tblTempUsageDetail_20' ) start [2025-01-01 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147876', 'tblTempUsageDetail_20' ) end [2025-01-01 02:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:39:20] Production.INFO: ==25858== Releasing lock... [2025-01-01 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:39:20] Production.INFO: 33 MB #Memory Used# [2025-01-01 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:40:06 [end_date_ymd] => 2025-01-01 02:40:06 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:40:06' and `end` < '2025-01-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-01-01 02:40:18] Production.INFO: count ==708 [2025-01-01 02:40:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:40:06 - End Time 2025-01-01 02:40:06 [2025-01-01 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147882', 'tblTempUsageDetail_20' ) start [2025-01-01 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147882', 'tblTempUsageDetail_20' ) end [2025-01-01 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147882', 'tblTempVendorCDR_20' ) start [2025-01-01 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147882', 'tblTempVendorCDR_20' ) end [2025-01-01 02:40:18] Production.INFO: ProcessCDR(1,14147882,1,1,2) [2025-01-01 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147882', 'tblTempUsageDetail_20' ) start [2025-01-01 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147882', 'tblTempUsageDetail_20' ) end [2025-01-01 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:40:21] Production.INFO: ==25933== Releasing lock... [2025-01-01 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:40:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 02:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:41:04 [end_date_ymd] => 2025-01-01 02:41:04 [RateCDR] => 1 ) [2025-01-01 02: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` >= '2024-12-31 23:41:04' and `end` < '2025-01-01 02: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-01-01 02:41:18] Production.INFO: count ==705 [2025-01-01 02:41:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:41:04 - End Time 2025-01-01 02:41:04 [2025-01-01 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147887', 'tblTempUsageDetail_20' ) start [2025-01-01 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147887', 'tblTempUsageDetail_20' ) end [2025-01-01 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147887', 'tblTempVendorCDR_20' ) start [2025-01-01 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147887', 'tblTempVendorCDR_20' ) end [2025-01-01 02:41:18] Production.INFO: ProcessCDR(1,14147887,1,1,2) [2025-01-01 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147887', 'tblTempUsageDetail_20' ) start [2025-01-01 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147887', 'tblTempUsageDetail_20' ) end [2025-01-01 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:41:21] Production.INFO: ==26007== Releasing lock... [2025-01-01 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:41:21] Production.INFO: 33 MB #Memory Used# [2025-01-01 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:42:05 [end_date_ymd] => 2025-01-01 02:42:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:42:05' and `end` < '2025-01-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-01-01 02:42:19] Production.INFO: count ==706 [2025-01-01 02:42:19] Production.ERROR: pbx CDR StartTime 2024-12-31 23:42:05 - End Time 2025-01-01 02:42:05 [2025-01-01 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147892', 'tblTempUsageDetail_20' ) start [2025-01-01 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147892', 'tblTempUsageDetail_20' ) end [2025-01-01 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147892', 'tblTempVendorCDR_20' ) start [2025-01-01 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147892', 'tblTempVendorCDR_20' ) end [2025-01-01 02:42:19] Production.INFO: ProcessCDR(1,14147892,1,1,2) [2025-01-01 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147892', 'tblTempUsageDetail_20' ) start [2025-01-01 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147892', 'tblTempUsageDetail_20' ) end [2025-01-01 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:42:22] Production.INFO: ==26078== Releasing lock... [2025-01-01 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:42:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:43:05 [end_date_ymd] => 2025-01-01 02:43:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:43:05' and `end` < '2025-01-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-01-01 02:43:18] Production.INFO: count ==703 [2025-01-01 02:43:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:43:05 - End Time 2025-01-01 02:43:05 [2025-01-01 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147897', 'tblTempUsageDetail_20' ) start [2025-01-01 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147897', 'tblTempUsageDetail_20' ) end [2025-01-01 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147897', 'tblTempVendorCDR_20' ) start [2025-01-01 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147897', 'tblTempVendorCDR_20' ) end [2025-01-01 02:43:18] Production.INFO: ProcessCDR(1,14147897,1,1,2) [2025-01-01 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147897', 'tblTempUsageDetail_20' ) start [2025-01-01 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147897', 'tblTempUsageDetail_20' ) end [2025-01-01 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:43:21] Production.INFO: ==26152== Releasing lock... [2025-01-01 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:43:21] Production.INFO: 33 MB #Memory Used# [2025-01-01 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:44:05 [end_date_ymd] => 2025-01-01 02:44:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:44:05' and `end` < '2025-01-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-01-01 02:44:20] Production.INFO: count ==702 [2025-01-01 02:44:20] Production.ERROR: pbx CDR StartTime 2024-12-31 23:44:05 - End Time 2025-01-01 02:44:05 [2025-01-01 02:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147902', 'tblTempUsageDetail_20' ) start [2025-01-01 02:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147902', 'tblTempUsageDetail_20' ) end [2025-01-01 02:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147902', 'tblTempVendorCDR_20' ) start [2025-01-01 02:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147902', 'tblTempVendorCDR_20' ) end [2025-01-01 02:44:20] Production.INFO: ProcessCDR(1,14147902,1,1,2) [2025-01-01 02:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147902', 'tblTempUsageDetail_20' ) start [2025-01-01 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147902', 'tblTempUsageDetail_20' ) end [2025-01-01 02:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:44:23] Production.INFO: ==26224== Releasing lock... [2025-01-01 02:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:44:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:45:05 [end_date_ymd] => 2025-01-01 02:45:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:45:05' and `end` < '2025-01-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-01-01 02:45:17] Production.INFO: count ==702 [2025-01-01 02:45:17] Production.ERROR: pbx CDR StartTime 2024-12-31 23:45:05 - End Time 2025-01-01 02:45:05 [2025-01-01 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147907', 'tblTempUsageDetail_20' ) start [2025-01-01 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147907', 'tblTempUsageDetail_20' ) end [2025-01-01 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147907', 'tblTempVendorCDR_20' ) start [2025-01-01 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147907', 'tblTempVendorCDR_20' ) end [2025-01-01 02:45:18] Production.INFO: ProcessCDR(1,14147907,1,1,2) [2025-01-01 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147907', 'tblTempUsageDetail_20' ) start [2025-01-01 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147907', 'tblTempUsageDetail_20' ) end [2025-01-01 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:45:21] Production.INFO: ==26332== Releasing lock... [2025-01-01 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:45:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 02:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:46:04 [end_date_ymd] => 2025-01-01 02:46:04 [RateCDR] => 1 ) [2025-01-01 02:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 23:46:04' and `end` < '2025-01-01 02:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 02:46:17] Production.INFO: count ==701 [2025-01-01 02:46:17] Production.ERROR: pbx CDR StartTime 2024-12-31 23:46:04 - End Time 2025-01-01 02:46:04 [2025-01-01 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147912', 'tblTempUsageDetail_20' ) start [2025-01-01 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147912', 'tblTempUsageDetail_20' ) end [2025-01-01 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147912', 'tblTempVendorCDR_20' ) start [2025-01-01 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147912', 'tblTempVendorCDR_20' ) end [2025-01-01 02:46:17] Production.INFO: ProcessCDR(1,14147912,1,1,2) [2025-01-01 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147912', 'tblTempUsageDetail_20' ) start [2025-01-01 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147912', 'tblTempUsageDetail_20' ) end [2025-01-01 02:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:46:20] Production.INFO: ==26402== Releasing lock... [2025-01-01 02:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:46:20] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:47:05 [end_date_ymd] => 2025-01-01 02:47:05 [RateCDR] => 1 ) [2025-01-01 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 23:47:05' and `end` < '2025-01-01 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 02:47:18] Production.INFO: count ==698 [2025-01-01 02:47:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:47:05 - End Time 2025-01-01 02:47:05 [2025-01-01 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147917', 'tblTempUsageDetail_20' ) start [2025-01-01 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147917', 'tblTempUsageDetail_20' ) end [2025-01-01 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147917', 'tblTempVendorCDR_20' ) start [2025-01-01 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147917', 'tblTempVendorCDR_20' ) end [2025-01-01 02:47:18] Production.INFO: ProcessCDR(1,14147917,1,1,2) [2025-01-01 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147917', 'tblTempUsageDetail_20' ) start [2025-01-01 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147917', 'tblTempUsageDetail_20' ) end [2025-01-01 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:47:21] Production.INFO: ==26475== Releasing lock... [2025-01-01 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:47:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:48:06 [end_date_ymd] => 2025-01-01 02:48:06 [RateCDR] => 1 ) [2025-01-01 02:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-31 23:48:06' and `end` < '2025-01-01 02:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 02:48:18] Production.INFO: count ==697 [2025-01-01 02:48:19] Production.ERROR: pbx CDR StartTime 2024-12-31 23:48:06 - End Time 2025-01-01 02:48:06 [2025-01-01 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147922', 'tblTempUsageDetail_20' ) start [2025-01-01 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147922', 'tblTempUsageDetail_20' ) end [2025-01-01 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147922', 'tblTempVendorCDR_20' ) start [2025-01-01 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147922', 'tblTempVendorCDR_20' ) end [2025-01-01 02:48:19] Production.INFO: ProcessCDR(1,14147922,1,1,2) [2025-01-01 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147922', 'tblTempUsageDetail_20' ) start [2025-01-01 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147922', 'tblTempUsageDetail_20' ) end [2025-01-01 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:48:22] Production.INFO: ==26549== Releasing lock... [2025-01-01 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:48:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 02:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:49:04 [end_date_ymd] => 2025-01-01 02:49:04 [RateCDR] => 1 ) [2025-01-01 02: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` >= '2024-12-31 23:49:04' and `end` < '2025-01-01 02: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-01-01 02:49:17] Production.INFO: count ==692 [2025-01-01 02:49:17] Production.ERROR: pbx CDR StartTime 2024-12-31 23:49:04 - End Time 2025-01-01 02:49:04 [2025-01-01 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147927', 'tblTempUsageDetail_20' ) start [2025-01-01 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147927', 'tblTempUsageDetail_20' ) end [2025-01-01 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147927', 'tblTempVendorCDR_20' ) start [2025-01-01 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147927', 'tblTempVendorCDR_20' ) end [2025-01-01 02:49:17] Production.INFO: ProcessCDR(1,14147927,1,1,2) [2025-01-01 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147927', 'tblTempUsageDetail_20' ) start [2025-01-01 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147927', 'tblTempUsageDetail_20' ) end [2025-01-01 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:49:22] Production.INFO: ==26619== Releasing lock... [2025-01-01 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:49:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:50:06 [end_date_ymd] => 2025-01-01 02:50:06 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:50:06' and `end` < '2025-01-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-01-01 02:50:18] Production.INFO: count ==700 [2025-01-01 02:50:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:50:06 - End Time 2025-01-01 02:50:06 [2025-01-01 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147933', 'tblTempUsageDetail_20' ) start [2025-01-01 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147933', 'tblTempUsageDetail_20' ) end [2025-01-01 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147933', 'tblTempVendorCDR_20' ) start [2025-01-01 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147933', 'tblTempVendorCDR_20' ) end [2025-01-01 02:50:18] Production.INFO: ProcessCDR(1,14147933,1,1,2) [2025-01-01 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147933', 'tblTempUsageDetail_20' ) start [2025-01-01 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147933', 'tblTempUsageDetail_20' ) end [2025-01-01 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:50:23] Production.INFO: ==26695== Releasing lock... [2025-01-01 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:50:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:51:05 [end_date_ymd] => 2025-01-01 02:51:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:51:05' and `end` < '2025-01-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-01-01 02:51:18] Production.INFO: count ==711 [2025-01-01 02:51:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:51:05 - End Time 2025-01-01 02:51:05 [2025-01-01 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147938', 'tblTempUsageDetail_20' ) start [2025-01-01 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147938', 'tblTempUsageDetail_20' ) end [2025-01-01 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147938', 'tblTempVendorCDR_20' ) start [2025-01-01 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147938', 'tblTempVendorCDR_20' ) end [2025-01-01 02:51:18] Production.INFO: ProcessCDR(1,14147938,1,1,2) [2025-01-01 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147938', 'tblTempUsageDetail_20' ) start [2025-01-01 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147938', 'tblTempUsageDetail_20' ) end [2025-01-01 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:51:22] Production.INFO: ==26767== Releasing lock... [2025-01-01 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:51:22] Production.INFO: 33 MB #Memory Used# [2025-01-01 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:52:05 [end_date_ymd] => 2025-01-01 02:52:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:52:05' and `end` < '2025-01-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-01-01 02:52:18] Production.INFO: count ==711 [2025-01-01 02:52:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:52:05 - End Time 2025-01-01 02:52:05 [2025-01-01 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147943', 'tblTempUsageDetail_20' ) start [2025-01-01 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147943', 'tblTempUsageDetail_20' ) end [2025-01-01 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147943', 'tblTempVendorCDR_20' ) start [2025-01-01 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147943', 'tblTempVendorCDR_20' ) end [2025-01-01 02:52:18] Production.INFO: ProcessCDR(1,14147943,1,1,2) [2025-01-01 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147943', 'tblTempUsageDetail_20' ) start [2025-01-01 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147943', 'tblTempUsageDetail_20' ) end [2025-01-01 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:52:21] Production.INFO: ==26837== Releasing lock... [2025-01-01 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:52:21] Production.INFO: 33 MB #Memory Used# [2025-01-01 02:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:53:04 [end_date_ymd] => 2025-01-01 02:53:04 [RateCDR] => 1 ) [2025-01-01 02: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` >= '2024-12-31 23:53:04' and `end` < '2025-01-01 02: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-01-01 02:53:18] Production.INFO: count ==711 [2025-01-01 02:53:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:53:04 - End Time 2025-01-01 02:53:04 [2025-01-01 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147948', 'tblTempUsageDetail_20' ) start [2025-01-01 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147948', 'tblTempUsageDetail_20' ) end [2025-01-01 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147948', 'tblTempVendorCDR_20' ) start [2025-01-01 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147948', 'tblTempVendorCDR_20' ) end [2025-01-01 02:53:18] Production.INFO: ProcessCDR(1,14147948,1,1,2) [2025-01-01 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147948', 'tblTempUsageDetail_20' ) start [2025-01-01 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147948', 'tblTempUsageDetail_20' ) end [2025-01-01 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:53:21] Production.INFO: ==26910== Releasing lock... [2025-01-01 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:53:21] Production.INFO: 33 MB #Memory Used# [2025-01-01 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:54:05 [end_date_ymd] => 2025-01-01 02:54:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:54:05' and `end` < '2025-01-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-01-01 02:54:18] Production.INFO: count ==711 [2025-01-01 02:54:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:54:05 - End Time 2025-01-01 02:54:05 [2025-01-01 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147953', 'tblTempUsageDetail_20' ) start [2025-01-01 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147953', 'tblTempUsageDetail_20' ) end [2025-01-01 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147953', 'tblTempVendorCDR_20' ) start [2025-01-01 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147953', 'tblTempVendorCDR_20' ) end [2025-01-01 02:54:18] Production.INFO: ProcessCDR(1,14147953,1,1,2) [2025-01-01 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147953', 'tblTempUsageDetail_20' ) start [2025-01-01 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147953', 'tblTempUsageDetail_20' ) end [2025-01-01 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:54:21] Production.INFO: ==26981== Releasing lock... [2025-01-01 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:54:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 02:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:55:04 [end_date_ymd] => 2025-01-01 02:55:04 [RateCDR] => 1 ) [2025-01-01 02: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` >= '2024-12-31 23:55:04' and `end` < '2025-01-01 02: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-01-01 02:55:17] Production.INFO: count ==710 [2025-01-01 02:55:17] Production.ERROR: pbx CDR StartTime 2024-12-31 23:55:04 - End Time 2025-01-01 02:55:04 [2025-01-01 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147958', 'tblTempUsageDetail_20' ) start [2025-01-01 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147958', 'tblTempUsageDetail_20' ) end [2025-01-01 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147958', 'tblTempVendorCDR_20' ) start [2025-01-01 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147958', 'tblTempVendorCDR_20' ) end [2025-01-01 02:55:17] Production.INFO: ProcessCDR(1,14147958,1,1,2) [2025-01-01 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147958', 'tblTempUsageDetail_20' ) start [2025-01-01 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147958', 'tblTempUsageDetail_20' ) end [2025-01-01 02:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:55:20] Production.INFO: ==27051== Releasing lock... [2025-01-01 02:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:55:20] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:56:05 [end_date_ymd] => 2025-01-01 02:56:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:56:05' and `end` < '2025-01-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-01-01 02:56:19] Production.INFO: count ==708 [2025-01-01 02:56:19] Production.ERROR: pbx CDR StartTime 2024-12-31 23:56:05 - End Time 2025-01-01 02:56:05 [2025-01-01 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147963', 'tblTempUsageDetail_20' ) start [2025-01-01 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147963', 'tblTempUsageDetail_20' ) end [2025-01-01 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147963', 'tblTempVendorCDR_20' ) start [2025-01-01 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147963', 'tblTempVendorCDR_20' ) end [2025-01-01 02:56:19] Production.INFO: ProcessCDR(1,14147963,1,1,2) [2025-01-01 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147963', 'tblTempUsageDetail_20' ) start [2025-01-01 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147963', 'tblTempUsageDetail_20' ) end [2025-01-01 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:56:22] Production.INFO: ==27124== Releasing lock... [2025-01-01 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:56:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 02:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:57:04 [end_date_ymd] => 2025-01-01 02:57:04 [RateCDR] => 1 ) [2025-01-01 02: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` >= '2024-12-31 23:57:04' and `end` < '2025-01-01 02: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-01-01 02:57:18] Production.INFO: count ==707 [2025-01-01 02:57:18] Production.ERROR: pbx CDR StartTime 2024-12-31 23:57:04 - End Time 2025-01-01 02:57:04 [2025-01-01 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147968', 'tblTempUsageDetail_20' ) start [2025-01-01 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147968', 'tblTempUsageDetail_20' ) end [2025-01-01 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147968', 'tblTempVendorCDR_20' ) start [2025-01-01 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147968', 'tblTempVendorCDR_20' ) end [2025-01-01 02:57:18] Production.INFO: ProcessCDR(1,14147968,1,1,2) [2025-01-01 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147968', 'tblTempUsageDetail_20' ) start [2025-01-01 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147968', 'tblTempUsageDetail_20' ) end [2025-01-01 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:57:21] Production.INFO: ==27193== Releasing lock... [2025-01-01 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:57:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:58:05 [end_date_ymd] => 2025-01-01 02:58:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:58:05' and `end` < '2025-01-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-01-01 02:58:17] Production.INFO: count ==707 [2025-01-01 02:58:17] Production.ERROR: pbx CDR StartTime 2024-12-31 23:58:05 - End Time 2025-01-01 02:58:05 [2025-01-01 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147973', 'tblTempUsageDetail_20' ) start [2025-01-01 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147973', 'tblTempUsageDetail_20' ) end [2025-01-01 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147973', 'tblTempVendorCDR_20' ) start [2025-01-01 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147973', 'tblTempVendorCDR_20' ) end [2025-01-01 02:58:17] Production.INFO: ProcessCDR(1,14147973,1,1,2) [2025-01-01 02:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147973', 'tblTempUsageDetail_20' ) start [2025-01-01 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147973', 'tblTempUsageDetail_20' ) end [2025-01-01 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:58:21] Production.INFO: ==27264== Releasing lock... [2025-01-01 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:58:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-31 23:59:05 [end_date_ymd] => 2025-01-01 02:59:05 [RateCDR] => 1 ) [2025-01-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` >= '2024-12-31 23:59:05' and `end` < '2025-01-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-01-01 02:59:18] Production.INFO: count ==707 [2025-01-01 02:59:19] Production.ERROR: pbx CDR StartTime 2024-12-31 23:59:05 - End Time 2025-01-01 02:59:05 [2025-01-01 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147978', 'tblTempUsageDetail_20' ) start [2025-01-01 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147978', 'tblTempUsageDetail_20' ) end [2025-01-01 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147978', 'tblTempVendorCDR_20' ) start [2025-01-01 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147978', 'tblTempVendorCDR_20' ) end [2025-01-01 02:59:19] Production.INFO: ProcessCDR(1,14147978,1,1,2) [2025-01-01 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147978', 'tblTempUsageDetail_20' ) start [2025-01-01 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147978', 'tblTempUsageDetail_20' ) end [2025-01-01 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 02:59:22] Production.INFO: ==27337== Releasing lock... [2025-01-01 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 02:59:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:00:06 [end_date_ymd] => 2025-01-01 03:00:06 [RateCDR] => 1 ) [2025-01-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-01-01 00:00:06' and `end` < '2025-01-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-01-01 03:00:18] Production.INFO: count ==717 [2025-01-01 03:00:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:00:06 - End Time 2025-01-01 03:00:06 [2025-01-01 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147984', 'tblTempUsageDetail_20' ) start [2025-01-01 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147984', 'tblTempUsageDetail_20' ) end [2025-01-01 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147984', 'tblTempVendorCDR_20' ) start [2025-01-01 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147984', 'tblTempVendorCDR_20' ) end [2025-01-01 03:00:18] Production.INFO: ProcessCDR(1,14147984,1,1,2) [2025-01-01 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147984', 'tblTempUsageDetail_20' ) start [2025-01-01 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147984', 'tblTempUsageDetail_20' ) end [2025-01-01 03:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:00:21] Production.INFO: ==27408== Releasing lock... [2025-01-01 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:00:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:01:04 [end_date_ymd] => 2025-01-01 03:01:04 [RateCDR] => 1 ) [2025-01-01 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 00:01:04' and `end` < '2025-01-01 03: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-01-01 03:01:17] Production.INFO: count ==717 [2025-01-01 03:01:17] Production.ERROR: pbx CDR StartTime 2025-01-01 00:01:04 - End Time 2025-01-01 03:01:04 [2025-01-01 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147989', 'tblTempUsageDetail_20' ) start [2025-01-01 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147989', 'tblTempUsageDetail_20' ) end [2025-01-01 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147989', 'tblTempVendorCDR_20' ) start [2025-01-01 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147989', 'tblTempVendorCDR_20' ) end [2025-01-01 03:01:17] Production.INFO: ProcessCDR(1,14147989,1,1,2) [2025-01-01 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147989', 'tblTempUsageDetail_20' ) start [2025-01-01 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147989', 'tblTempUsageDetail_20' ) end [2025-01-01 03:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:01:20] Production.INFO: ==27534== Releasing lock... [2025-01-01 03:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:01:20] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:02:05 [end_date_ymd] => 2025-01-01 03:02:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:02:05' and `end` < '2025-01-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-01-01 03:02:19] Production.INFO: count ==716 [2025-01-01 03:02:19] Production.ERROR: pbx CDR StartTime 2025-01-01 00:02:05 - End Time 2025-01-01 03:02:05 [2025-01-01 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147994', 'tblTempUsageDetail_20' ) start [2025-01-01 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147994', 'tblTempUsageDetail_20' ) end [2025-01-01 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147994', 'tblTempVendorCDR_20' ) start [2025-01-01 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147994', 'tblTempVendorCDR_20' ) end [2025-01-01 03:02:19] Production.INFO: ProcessCDR(1,14147994,1,1,2) [2025-01-01 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147994', 'tblTempUsageDetail_20' ) start [2025-01-01 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147994', 'tblTempUsageDetail_20' ) end [2025-01-01 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:02:22] Production.INFO: ==27694== Releasing lock... [2025-01-01 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:02:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:03:05 [end_date_ymd] => 2025-01-01 03:03:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:03:05' and `end` < '2025-01-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-01-01 03:03:18] Production.INFO: count ==716 [2025-01-01 03:03:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:03:05 - End Time 2025-01-01 03:03:05 [2025-01-01 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147999', 'tblTempUsageDetail_20' ) start [2025-01-01 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14147999', 'tblTempUsageDetail_20' ) end [2025-01-01 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147999', 'tblTempVendorCDR_20' ) start [2025-01-01 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14147999', 'tblTempVendorCDR_20' ) end [2025-01-01 03:03:18] Production.INFO: ProcessCDR(1,14147999,1,1,2) [2025-01-01 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14147999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14147999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14147999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14147999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147999', 'tblTempUsageDetail_20' ) start [2025-01-01 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14147999', 'tblTempUsageDetail_20' ) end [2025-01-01 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:03:22] Production.INFO: ==27786== Releasing lock... [2025-01-01 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:03:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:04:05 [end_date_ymd] => 2025-01-01 03:04:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:04:05' and `end` < '2025-01-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-01-01 03:04:18] Production.INFO: count ==719 [2025-01-01 03:04:19] Production.ERROR: pbx CDR StartTime 2025-01-01 00:04:05 - End Time 2025-01-01 03:04:05 [2025-01-01 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148004', 'tblTempUsageDetail_20' ) start [2025-01-01 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148004', 'tblTempUsageDetail_20' ) end [2025-01-01 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148004', 'tblTempVendorCDR_20' ) start [2025-01-01 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148004', 'tblTempVendorCDR_20' ) end [2025-01-01 03:04:19] Production.INFO: ProcessCDR(1,14148004,1,1,2) [2025-01-01 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148004', 'tblTempUsageDetail_20' ) start [2025-01-01 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148004', 'tblTempUsageDetail_20' ) end [2025-01-01 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:04:22] Production.INFO: ==27872== Releasing lock... [2025-01-01 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:04:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:05:05 [end_date_ymd] => 2025-01-01 03:05:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:05:05' and `end` < '2025-01-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-01-01 03:05:18] Production.INFO: count ==719 [2025-01-01 03:05:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:05:05 - End Time 2025-01-01 03:05:05 [2025-01-01 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148009', 'tblTempUsageDetail_20' ) start [2025-01-01 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148009', 'tblTempUsageDetail_20' ) end [2025-01-01 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148009', 'tblTempVendorCDR_20' ) start [2025-01-01 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148009', 'tblTempVendorCDR_20' ) end [2025-01-01 03:05:18] Production.INFO: ProcessCDR(1,14148009,1,1,2) [2025-01-01 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148009', 'tblTempUsageDetail_20' ) start [2025-01-01 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148009', 'tblTempUsageDetail_20' ) end [2025-01-01 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:05:21] Production.INFO: ==27957== Releasing lock... [2025-01-01 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:05:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:06:05 [end_date_ymd] => 2025-01-01 03:06:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:06:05' and `end` < '2025-01-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-01-01 03:06:19] Production.INFO: count ==719 [2025-01-01 03:06:19] Production.ERROR: pbx CDR StartTime 2025-01-01 00:06:05 - End Time 2025-01-01 03:06:05 [2025-01-01 03:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148014', 'tblTempUsageDetail_20' ) start [2025-01-01 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148014', 'tblTempUsageDetail_20' ) end [2025-01-01 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148014', 'tblTempVendorCDR_20' ) start [2025-01-01 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148014', 'tblTempVendorCDR_20' ) end [2025-01-01 03:06:19] Production.INFO: ProcessCDR(1,14148014,1,1,2) [2025-01-01 03:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148014', 'tblTempUsageDetail_20' ) start [2025-01-01 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148014', 'tblTempUsageDetail_20' ) end [2025-01-01 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:06:22] Production.INFO: ==28120== Releasing lock... [2025-01-01 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:06:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:07:04 [end_date_ymd] => 2025-01-01 03:07:04 [RateCDR] => 1 ) [2025-01-01 03: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-01-01 00:07:04' and `end` < '2025-01-01 03: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-01-01 03:07:17] Production.INFO: count ==719 [2025-01-01 03:07:17] Production.ERROR: pbx CDR StartTime 2025-01-01 00:07:04 - End Time 2025-01-01 03:07:04 [2025-01-01 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148019', 'tblTempUsageDetail_20' ) start [2025-01-01 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148019', 'tblTempUsageDetail_20' ) end [2025-01-01 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148019', 'tblTempVendorCDR_20' ) start [2025-01-01 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148019', 'tblTempVendorCDR_20' ) end [2025-01-01 03:07:17] Production.INFO: ProcessCDR(1,14148019,1,1,2) [2025-01-01 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148019', 'tblTempUsageDetail_20' ) start [2025-01-01 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148019', 'tblTempUsageDetail_20' ) end [2025-01-01 03:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:07:20] Production.INFO: ==28200== Releasing lock... [2025-01-01 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:07:20] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:08:05 [end_date_ymd] => 2025-01-01 03:08:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:08:05' and `end` < '2025-01-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-01-01 03:08:20] Production.INFO: count ==720 [2025-01-01 03:08:20] Production.ERROR: pbx CDR StartTime 2025-01-01 00:08:05 - End Time 2025-01-01 03:08:05 [2025-01-01 03:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148024', 'tblTempUsageDetail_20' ) start [2025-01-01 03:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148024', 'tblTempUsageDetail_20' ) end [2025-01-01 03:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148024', 'tblTempVendorCDR_20' ) start [2025-01-01 03:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148024', 'tblTempVendorCDR_20' ) end [2025-01-01 03:08:20] Production.INFO: ProcessCDR(1,14148024,1,1,2) [2025-01-01 03:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148024', 'tblTempUsageDetail_20' ) start [2025-01-01 03:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148024', 'tblTempUsageDetail_20' ) end [2025-01-01 03:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:08:23] Production.INFO: ==28271== Releasing lock... [2025-01-01 03:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:08:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:09:05 [end_date_ymd] => 2025-01-01 03:09:05 [RateCDR] => 1 ) [2025-01-01 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 00:09:05' and `end` < '2025-01-01 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 03:09:18] Production.INFO: count ==720 [2025-01-01 03:09:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:09:05 - End Time 2025-01-01 03:09:05 [2025-01-01 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148029', 'tblTempUsageDetail_20' ) start [2025-01-01 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148029', 'tblTempUsageDetail_20' ) end [2025-01-01 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148029', 'tblTempVendorCDR_20' ) start [2025-01-01 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148029', 'tblTempVendorCDR_20' ) end [2025-01-01 03:09:18] Production.INFO: ProcessCDR(1,14148029,1,1,2) [2025-01-01 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148029', 'tblTempUsageDetail_20' ) start [2025-01-01 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148029', 'tblTempUsageDetail_20' ) end [2025-01-01 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:09:21] Production.INFO: ==28423== Releasing lock... [2025-01-01 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:09:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:10:05 [end_date_ymd] => 2025-01-01 03:10:05 [RateCDR] => 1 ) [2025-01-01 03: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-01 00:10:05' and `end` < '2025-01-01 03: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-01-01 03:10:18] Production.INFO: count ==720 [2025-01-01 03:10:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:10:05 - End Time 2025-01-01 03:10:05 [2025-01-01 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148033', 'tblTempUsageDetail_20' ) start [2025-01-01 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148033', 'tblTempUsageDetail_20' ) end [2025-01-01 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148033', 'tblTempVendorCDR_20' ) start [2025-01-01 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148033', 'tblTempVendorCDR_20' ) end [2025-01-01 03:10:18] Production.INFO: ProcessCDR(1,14148033,1,1,2) [2025-01-01 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148033', 'tblTempUsageDetail_20' ) start [2025-01-01 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148033', 'tblTempUsageDetail_20' ) end [2025-01-01 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:10:21] Production.INFO: ==28499== Releasing lock... [2025-01-01 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:10:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:11:06 [end_date_ymd] => 2025-01-01 03:11:06 [RateCDR] => 1 ) [2025-01-01 03: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-01-01 00:11:06' and `end` < '2025-01-01 03: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-01-01 03:11:18] Production.INFO: count ==710 [2025-01-01 03:11:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:11:06 - End Time 2025-01-01 03:11:06 [2025-01-01 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148040', 'tblTempUsageDetail_20' ) start [2025-01-01 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148040', 'tblTempUsageDetail_20' ) end [2025-01-01 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148040', 'tblTempVendorCDR_20' ) start [2025-01-01 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148040', 'tblTempVendorCDR_20' ) end [2025-01-01 03:11:18] Production.INFO: ProcessCDR(1,14148040,1,1,2) [2025-01-01 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148040', 'tblTempUsageDetail_20' ) start [2025-01-01 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148040', 'tblTempUsageDetail_20' ) end [2025-01-01 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:11:21] Production.INFO: ==28572== Releasing lock... [2025-01-01 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:11:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:12:05 [end_date_ymd] => 2025-01-01 03:12:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:12:05' and `end` < '2025-01-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-01-01 03:12:18] Production.INFO: count ==710 [2025-01-01 03:12:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:12:05 - End Time 2025-01-01 03:12:05 [2025-01-01 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148045', 'tblTempUsageDetail_20' ) start [2025-01-01 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148045', 'tblTempUsageDetail_20' ) end [2025-01-01 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148045', 'tblTempVendorCDR_20' ) start [2025-01-01 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148045', 'tblTempVendorCDR_20' ) end [2025-01-01 03:12:18] Production.INFO: ProcessCDR(1,14148045,1,1,2) [2025-01-01 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148045', 'tblTempUsageDetail_20' ) start [2025-01-01 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148045', 'tblTempUsageDetail_20' ) end [2025-01-01 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:12:22] Production.INFO: ==28648== Releasing lock... [2025-01-01 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:12:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:13:05 [end_date_ymd] => 2025-01-01 03:13:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:13:05' and `end` < '2025-01-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-01-01 03:13:18] Production.INFO: count ==709 [2025-01-01 03:13:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:13:05 - End Time 2025-01-01 03:13:05 [2025-01-01 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148050', 'tblTempUsageDetail_20' ) start [2025-01-01 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148050', 'tblTempUsageDetail_20' ) end [2025-01-01 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148050', 'tblTempVendorCDR_20' ) start [2025-01-01 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148050', 'tblTempVendorCDR_20' ) end [2025-01-01 03:13:18] Production.INFO: ProcessCDR(1,14148050,1,1,2) [2025-01-01 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148050', 'tblTempUsageDetail_20' ) start [2025-01-01 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148050', 'tblTempUsageDetail_20' ) end [2025-01-01 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:13:21] Production.INFO: ==28805== Releasing lock... [2025-01-01 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:13:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:14:05 [end_date_ymd] => 2025-01-01 03:14:05 [RateCDR] => 1 ) [2025-01-01 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 00:14:05' and `end` < '2025-01-01 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 03:14:19] Production.INFO: count ==713 [2025-01-01 03:14:19] Production.ERROR: pbx CDR StartTime 2025-01-01 00:14:05 - End Time 2025-01-01 03:14:05 [2025-01-01 03:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148055', 'tblTempUsageDetail_20' ) start [2025-01-01 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148055', 'tblTempUsageDetail_20' ) end [2025-01-01 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148055', 'tblTempVendorCDR_20' ) start [2025-01-01 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148055', 'tblTempVendorCDR_20' ) end [2025-01-01 03:14:19] Production.INFO: ProcessCDR(1,14148055,1,1,2) [2025-01-01 03:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148055', 'tblTempUsageDetail_20' ) start [2025-01-01 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148055', 'tblTempUsageDetail_20' ) end [2025-01-01 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:14:22] Production.INFO: ==28879== Releasing lock... [2025-01-01 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:14:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:15:05 [end_date_ymd] => 2025-01-01 03:15:05 [RateCDR] => 1 ) [2025-01-01 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 00:15:05' and `end` < '2025-01-01 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 03:15:18] Production.INFO: count ==713 [2025-01-01 03:15:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:15:05 - End Time 2025-01-01 03:15:05 [2025-01-01 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148060', 'tblTempUsageDetail_20' ) start [2025-01-01 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148060', 'tblTempUsageDetail_20' ) end [2025-01-01 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148060', 'tblTempVendorCDR_20' ) start [2025-01-01 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148060', 'tblTempVendorCDR_20' ) end [2025-01-01 03:15:18] Production.INFO: ProcessCDR(1,14148060,1,1,2) [2025-01-01 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148060', 'tblTempUsageDetail_20' ) start [2025-01-01 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148060', 'tblTempUsageDetail_20' ) end [2025-01-01 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:15:21] Production.INFO: ==28962== Releasing lock... [2025-01-01 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:15:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:16:05 [end_date_ymd] => 2025-01-01 03:16:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:16:05' and `end` < '2025-01-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-01-01 03:16:17] Production.INFO: count ==713 [2025-01-01 03:16:17] Production.ERROR: pbx CDR StartTime 2025-01-01 00:16:05 - End Time 2025-01-01 03:16:05 [2025-01-01 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148065', 'tblTempUsageDetail_20' ) start [2025-01-01 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148065', 'tblTempUsageDetail_20' ) end [2025-01-01 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148065', 'tblTempVendorCDR_20' ) start [2025-01-01 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148065', 'tblTempVendorCDR_20' ) end [2025-01-01 03:16:17] Production.INFO: ProcessCDR(1,14148065,1,1,2) [2025-01-01 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148065', 'tblTempUsageDetail_20' ) start [2025-01-01 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148065', 'tblTempUsageDetail_20' ) end [2025-01-01 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:16:21] Production.INFO: ==29077== Releasing lock... [2025-01-01 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:16:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:17:05 [end_date_ymd] => 2025-01-01 03:17:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:17:05' and `end` < '2025-01-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-01-01 03:17:18] Production.INFO: count ==703 [2025-01-01 03:17:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:17:05 - End Time 2025-01-01 03:17:05 [2025-01-01 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148070', 'tblTempUsageDetail_20' ) start [2025-01-01 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148070', 'tblTempUsageDetail_20' ) end [2025-01-01 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148070', 'tblTempVendorCDR_20' ) start [2025-01-01 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148070', 'tblTempVendorCDR_20' ) end [2025-01-01 03:17:18] Production.INFO: ProcessCDR(1,14148070,1,1,2) [2025-01-01 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148070', 'tblTempUsageDetail_20' ) start [2025-01-01 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148070', 'tblTempUsageDetail_20' ) end [2025-01-01 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:17:21] Production.INFO: ==29235== Releasing lock... [2025-01-01 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:17:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:18:04 [end_date_ymd] => 2025-01-01 03:18:04 [RateCDR] => 1 ) [2025-01-01 03: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-01-01 00:18:04' and `end` < '2025-01-01 03: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-01-01 03:18:19] Production.INFO: count ==702 [2025-01-01 03:18:19] Production.ERROR: pbx CDR StartTime 2025-01-01 00:18:04 - End Time 2025-01-01 03:18:04 [2025-01-01 03:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148075', 'tblTempUsageDetail_20' ) start [2025-01-01 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148075', 'tblTempUsageDetail_20' ) end [2025-01-01 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148075', 'tblTempVendorCDR_20' ) start [2025-01-01 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148075', 'tblTempVendorCDR_20' ) end [2025-01-01 03:18:19] Production.INFO: ProcessCDR(1,14148075,1,1,2) [2025-01-01 03:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148075', 'tblTempUsageDetail_20' ) start [2025-01-01 03:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148075', 'tblTempUsageDetail_20' ) end [2025-01-01 03:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:18:24] Production.INFO: ==29311== Releasing lock... [2025-01-01 03:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:18:24] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:19:05 [end_date_ymd] => 2025-01-01 03:19:05 [RateCDR] => 1 ) [2025-01-01 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 00:19:05' and `end` < '2025-01-01 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 03:19:18] Production.INFO: count ==699 [2025-01-01 03:19:19] Production.ERROR: pbx CDR StartTime 2025-01-01 00:19:05 - End Time 2025-01-01 03:19:05 [2025-01-01 03:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148080', 'tblTempUsageDetail_20' ) start [2025-01-01 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148080', 'tblTempUsageDetail_20' ) end [2025-01-01 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148080', 'tblTempVendorCDR_20' ) start [2025-01-01 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148080', 'tblTempVendorCDR_20' ) end [2025-01-01 03:19:19] Production.INFO: ProcessCDR(1,14148080,1,1,2) [2025-01-01 03:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148080', 'tblTempUsageDetail_20' ) start [2025-01-01 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148080', 'tblTempUsageDetail_20' ) end [2025-01-01 03:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:19:22] Production.INFO: ==29394== Releasing lock... [2025-01-01 03:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:19:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:20:05 [end_date_ymd] => 2025-01-01 03:20:05 [RateCDR] => 1 ) [2025-01-01 03: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-01-01 00:20:05' and `end` < '2025-01-01 03: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-01-01 03:20:19] Production.INFO: count ==699 [2025-01-01 03:20:19] Production.ERROR: pbx CDR StartTime 2025-01-01 00:20:05 - End Time 2025-01-01 03:20:05 [2025-01-01 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148086', 'tblTempUsageDetail_20' ) start [2025-01-01 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148086', 'tblTempUsageDetail_20' ) end [2025-01-01 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148086', 'tblTempVendorCDR_20' ) start [2025-01-01 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148086', 'tblTempVendorCDR_20' ) end [2025-01-01 03:20:19] Production.INFO: ProcessCDR(1,14148086,1,1,2) [2025-01-01 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148086', 'tblTempUsageDetail_20' ) start [2025-01-01 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148086', 'tblTempUsageDetail_20' ) end [2025-01-01 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:20:22] Production.INFO: ==29479== Releasing lock... [2025-01-01 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:20:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:21:05 [end_date_ymd] => 2025-01-01 03:21:05 [RateCDR] => 1 ) [2025-01-01 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 00:21:05' and `end` < '2025-01-01 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 03:21:18] Production.INFO: count ==679 [2025-01-01 03:21:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:21:05 - End Time 2025-01-01 03:21:05 [2025-01-01 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148091', 'tblTempUsageDetail_20' ) start [2025-01-01 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148091', 'tblTempUsageDetail_20' ) end [2025-01-01 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148091', 'tblTempVendorCDR_20' ) start [2025-01-01 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148091', 'tblTempVendorCDR_20' ) end [2025-01-01 03:21:18] Production.INFO: ProcessCDR(1,14148091,1,1,2) [2025-01-01 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148091', 'tblTempUsageDetail_20' ) start [2025-01-01 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148091', 'tblTempUsageDetail_20' ) end [2025-01-01 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:21:21] Production.INFO: ==29568== Releasing lock... [2025-01-01 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:21:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 03:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:22:04 [end_date_ymd] => 2025-01-01 03:22:04 [RateCDR] => 1 ) [2025-01-01 03:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 00:22:04' and `end` < '2025-01-01 03:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 03:22:17] Production.INFO: count ==679 [2025-01-01 03:22:17] Production.ERROR: pbx CDR StartTime 2025-01-01 00:22:04 - End Time 2025-01-01 03:22:04 [2025-01-01 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148096', 'tblTempUsageDetail_20' ) start [2025-01-01 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148096', 'tblTempUsageDetail_20' ) end [2025-01-01 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148096', 'tblTempVendorCDR_20' ) start [2025-01-01 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148096', 'tblTempVendorCDR_20' ) end [2025-01-01 03:22:18] Production.INFO: ProcessCDR(1,14148096,1,1,2) [2025-01-01 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148096', 'tblTempUsageDetail_20' ) start [2025-01-01 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148096', 'tblTempUsageDetail_20' ) end [2025-01-01 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:22:21] Production.INFO: ==29653== Releasing lock... [2025-01-01 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:22:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:23:05 [end_date_ymd] => 2025-01-01 03:23:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:23:05' and `end` < '2025-01-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-01-01 03:23:18] Production.INFO: count ==679 [2025-01-01 03:23:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:23:05 - End Time 2025-01-01 03:23:05 [2025-01-01 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148101', 'tblTempUsageDetail_20' ) start [2025-01-01 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148101', 'tblTempUsageDetail_20' ) end [2025-01-01 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148101', 'tblTempVendorCDR_20' ) start [2025-01-01 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148101', 'tblTempVendorCDR_20' ) end [2025-01-01 03:23:18] Production.INFO: ProcessCDR(1,14148101,1,1,2) [2025-01-01 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148101', 'tblTempUsageDetail_20' ) start [2025-01-01 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148101', 'tblTempUsageDetail_20' ) end [2025-01-01 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:23:21] Production.INFO: ==29734== Releasing lock... [2025-01-01 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:23:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:24:05 [end_date_ymd] => 2025-01-01 03:24:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:24:05' and `end` < '2025-01-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-01-01 03:24:18] Production.INFO: count ==679 [2025-01-01 03:24:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:24:05 - End Time 2025-01-01 03:24:05 [2025-01-01 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148105', 'tblTempUsageDetail_20' ) start [2025-01-01 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148105', 'tblTempUsageDetail_20' ) end [2025-01-01 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148105', 'tblTempVendorCDR_20' ) start [2025-01-01 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148105', 'tblTempVendorCDR_20' ) end [2025-01-01 03:24:18] Production.INFO: ProcessCDR(1,14148105,1,1,2) [2025-01-01 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148105', 'tblTempUsageDetail_20' ) start [2025-01-01 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148105', 'tblTempUsageDetail_20' ) end [2025-01-01 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:24:21] Production.INFO: ==29816== Releasing lock... [2025-01-01 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:24:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:25:05 [end_date_ymd] => 2025-01-01 03:25:05 [RateCDR] => 1 ) [2025-01-01 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 00:25:05' and `end` < '2025-01-01 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 03:25:18] Production.INFO: count ==679 [2025-01-01 03:25:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:25:05 - End Time 2025-01-01 03:25:05 [2025-01-01 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148111', 'tblTempUsageDetail_20' ) start [2025-01-01 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148111', 'tblTempUsageDetail_20' ) end [2025-01-01 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148111', 'tblTempVendorCDR_20' ) start [2025-01-01 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148111', 'tblTempVendorCDR_20' ) end [2025-01-01 03:25:18] Production.INFO: ProcessCDR(1,14148111,1,1,2) [2025-01-01 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148111', 'tblTempUsageDetail_20' ) start [2025-01-01 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148111', 'tblTempUsageDetail_20' ) end [2025-01-01 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:25:21] Production.INFO: ==29894== Releasing lock... [2025-01-01 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:25:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:26:05 [end_date_ymd] => 2025-01-01 03:26:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:26:05' and `end` < '2025-01-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-01-01 03:26:18] Production.INFO: count ==676 [2025-01-01 03:26:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:26:05 - End Time 2025-01-01 03:26:05 [2025-01-01 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148116', 'tblTempUsageDetail_20' ) start [2025-01-01 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148116', 'tblTempUsageDetail_20' ) end [2025-01-01 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148116', 'tblTempVendorCDR_20' ) start [2025-01-01 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148116', 'tblTempVendorCDR_20' ) end [2025-01-01 03:26:18] Production.INFO: ProcessCDR(1,14148116,1,1,2) [2025-01-01 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148116', 'tblTempUsageDetail_20' ) start [2025-01-01 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148116', 'tblTempUsageDetail_20' ) end [2025-01-01 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:26:21] Production.INFO: ==29975== Releasing lock... [2025-01-01 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:26:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:27:05 [end_date_ymd] => 2025-01-01 03:27:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:27:05' and `end` < '2025-01-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-01-01 03:27:18] Production.INFO: count ==675 [2025-01-01 03:27:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:27:05 - End Time 2025-01-01 03:27:05 [2025-01-01 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148121', 'tblTempUsageDetail_20' ) start [2025-01-01 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148121', 'tblTempUsageDetail_20' ) end [2025-01-01 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148121', 'tblTempVendorCDR_20' ) start [2025-01-01 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148121', 'tblTempVendorCDR_20' ) end [2025-01-01 03:27:18] Production.INFO: ProcessCDR(1,14148121,1,1,2) [2025-01-01 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148121', 'tblTempUsageDetail_20' ) start [2025-01-01 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148121', 'tblTempUsageDetail_20' ) end [2025-01-01 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:27:21] Production.INFO: ==30055== Releasing lock... [2025-01-01 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:27:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:28:05 [end_date_ymd] => 2025-01-01 03:28:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:28:05' and `end` < '2025-01-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-01-01 03:28:19] Production.INFO: count ==675 [2025-01-01 03:28:19] Production.ERROR: pbx CDR StartTime 2025-01-01 00:28:05 - End Time 2025-01-01 03:28:05 [2025-01-01 03:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148126', 'tblTempUsageDetail_20' ) start [2025-01-01 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148126', 'tblTempUsageDetail_20' ) end [2025-01-01 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148126', 'tblTempVendorCDR_20' ) start [2025-01-01 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148126', 'tblTempVendorCDR_20' ) end [2025-01-01 03:28:19] Production.INFO: ProcessCDR(1,14148126,1,1,2) [2025-01-01 03:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148126', 'tblTempUsageDetail_20' ) start [2025-01-01 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148126', 'tblTempUsageDetail_20' ) end [2025-01-01 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:28:22] Production.INFO: ==30157== Releasing lock... [2025-01-01 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:28:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:29:05 [end_date_ymd] => 2025-01-01 03:29:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:29:05' and `end` < '2025-01-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-01-01 03:29:17] Production.INFO: count ==673 [2025-01-01 03:29:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:29:05 - End Time 2025-01-01 03:29:05 [2025-01-01 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148131', 'tblTempUsageDetail_20' ) start [2025-01-01 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148131', 'tblTempUsageDetail_20' ) end [2025-01-01 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148131', 'tblTempVendorCDR_20' ) start [2025-01-01 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148131', 'tblTempVendorCDR_20' ) end [2025-01-01 03:29:18] Production.INFO: ProcessCDR(1,14148131,1,1,2) [2025-01-01 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148131', 'tblTempUsageDetail_20' ) start [2025-01-01 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148131', 'tblTempUsageDetail_20' ) end [2025-01-01 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:29:21] Production.INFO: ==30259== Releasing lock... [2025-01-01 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:29:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:30:06 [end_date_ymd] => 2025-01-01 03:30:06 [RateCDR] => 1 ) [2025-01-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-01-01 00:30:06' and `end` < '2025-01-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-01-01 03:30:20] Production.INFO: count ==671 [2025-01-01 03:30:20] Production.ERROR: pbx CDR StartTime 2025-01-01 00:30:06 - End Time 2025-01-01 03:30:06 [2025-01-01 03:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148137', 'tblTempUsageDetail_20' ) start [2025-01-01 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148137', 'tblTempUsageDetail_20' ) end [2025-01-01 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148137', 'tblTempVendorCDR_20' ) start [2025-01-01 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148137', 'tblTempVendorCDR_20' ) end [2025-01-01 03:30:20] Production.INFO: ProcessCDR(1,14148137,1,1,2) [2025-01-01 03:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148137', 'tblTempUsageDetail_20' ) start [2025-01-01 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148137', 'tblTempUsageDetail_20' ) end [2025-01-01 03:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:30:23] Production.INFO: ==30348== Releasing lock... [2025-01-01 03:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:30:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 03:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:31:04 [end_date_ymd] => 2025-01-01 03:31:04 [RateCDR] => 1 ) [2025-01-01 03: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-01-01 00:31:04' and `end` < '2025-01-01 03: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-01-01 03:31:17] Production.INFO: count ==613 [2025-01-01 03:31:17] Production.ERROR: pbx CDR StartTime 2025-01-01 00:31:04 - End Time 2025-01-01 03:31:04 [2025-01-01 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148139', 'tblTempUsageDetail_20' ) start [2025-01-01 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148139', 'tblTempUsageDetail_20' ) end [2025-01-01 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148139', 'tblTempVendorCDR_20' ) start [2025-01-01 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148139', 'tblTempVendorCDR_20' ) end [2025-01-01 03:31:17] Production.INFO: ProcessCDR(1,14148139,1,1,2) [2025-01-01 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148139', 'tblTempUsageDetail_20' ) start [2025-01-01 03:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148139', 'tblTempUsageDetail_20' ) end [2025-01-01 03:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:31:20] Production.INFO: ==30427== Releasing lock... [2025-01-01 03:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:31:20] Production.INFO: 32 MB #Memory Used# [2025-01-01 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:32:05 [end_date_ymd] => 2025-01-01 03:32:05 [RateCDR] => 1 ) [2025-01-01 03: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-01 00:32:05' and `end` < '2025-01-01 03: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-01-01 03:32:20] Production.INFO: count ==608 [2025-01-01 03:32:20] Production.ERROR: pbx CDR StartTime 2025-01-01 00:32:05 - End Time 2025-01-01 03:32:05 [2025-01-01 03:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148147', 'tblTempUsageDetail_20' ) start [2025-01-01 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148147', 'tblTempUsageDetail_20' ) end [2025-01-01 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148147', 'tblTempVendorCDR_20' ) start [2025-01-01 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148147', 'tblTempVendorCDR_20' ) end [2025-01-01 03:32:20] Production.INFO: ProcessCDR(1,14148147,1,1,2) [2025-01-01 03:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148147', 'tblTempUsageDetail_20' ) start [2025-01-01 03:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148147', 'tblTempUsageDetail_20' ) end [2025-01-01 03:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:32:23] Production.INFO: ==30508== Releasing lock... [2025-01-01 03:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:32:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-01 03:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:33:04 [end_date_ymd] => 2025-01-01 03:33:04 [RateCDR] => 1 ) [2025-01-01 03: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-01-01 00:33:04' and `end` < '2025-01-01 03: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-01-01 03:33:17] Production.INFO: count ==608 [2025-01-01 03:33:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:33:04 - End Time 2025-01-01 03:33:04 [2025-01-01 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148152', 'tblTempUsageDetail_20' ) start [2025-01-01 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148152', 'tblTempUsageDetail_20' ) end [2025-01-01 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148152', 'tblTempVendorCDR_20' ) start [2025-01-01 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148152', 'tblTempVendorCDR_20' ) end [2025-01-01 03:33:18] Production.INFO: ProcessCDR(1,14148152,1,1,2) [2025-01-01 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148152', 'tblTempUsageDetail_20' ) start [2025-01-01 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148152', 'tblTempUsageDetail_20' ) end [2025-01-01 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:33:21] Production.INFO: ==30584== Releasing lock... [2025-01-01 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:33:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-01 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:34:05 [end_date_ymd] => 2025-01-01 03:34:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:34:05' and `end` < '2025-01-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-01-01 03:34:19] Production.INFO: count ==605 [2025-01-01 03:34:19] Production.ERROR: pbx CDR StartTime 2025-01-01 00:34:05 - End Time 2025-01-01 03:34:05 [2025-01-01 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148157', 'tblTempUsageDetail_20' ) start [2025-01-01 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148157', 'tblTempUsageDetail_20' ) end [2025-01-01 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148157', 'tblTempVendorCDR_20' ) start [2025-01-01 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148157', 'tblTempVendorCDR_20' ) end [2025-01-01 03:34:19] Production.INFO: ProcessCDR(1,14148157,1,1,2) [2025-01-01 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148157', 'tblTempUsageDetail_20' ) start [2025-01-01 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148157', 'tblTempUsageDetail_20' ) end [2025-01-01 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:34:22] Production.INFO: ==30705== Releasing lock... [2025-01-01 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:34:22] Production.INFO: 32 MB #Memory Used# [2025-01-01 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:35:05 [end_date_ymd] => 2025-01-01 03:35:05 [RateCDR] => 1 ) [2025-01-01 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 00:35:05' and `end` < '2025-01-01 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 03:35:17] Production.INFO: count ==605 [2025-01-01 03:35:17] Production.ERROR: pbx CDR StartTime 2025-01-01 00:35:05 - End Time 2025-01-01 03:35:05 [2025-01-01 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148162', 'tblTempUsageDetail_20' ) start [2025-01-01 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148162', 'tblTempUsageDetail_20' ) end [2025-01-01 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148162', 'tblTempVendorCDR_20' ) start [2025-01-01 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148162', 'tblTempVendorCDR_20' ) end [2025-01-01 03:35:17] Production.INFO: ProcessCDR(1,14148162,1,1,2) [2025-01-01 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148162', 'tblTempUsageDetail_20' ) start [2025-01-01 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148162', 'tblTempUsageDetail_20' ) end [2025-01-01 03:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:35:20] Production.INFO: ==30786== Releasing lock... [2025-01-01 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:35:20] Production.INFO: 32 MB #Memory Used# [2025-01-01 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:36:05 [end_date_ymd] => 2025-01-01 03:36:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:36:05' and `end` < '2025-01-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-01-01 03:36:18] Production.INFO: count ==604 [2025-01-01 03:36:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:36:05 - End Time 2025-01-01 03:36:05 [2025-01-01 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148167', 'tblTempUsageDetail_20' ) start [2025-01-01 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148167', 'tblTempUsageDetail_20' ) end [2025-01-01 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148167', 'tblTempVendorCDR_20' ) start [2025-01-01 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148167', 'tblTempVendorCDR_20' ) end [2025-01-01 03:36:18] Production.INFO: ProcessCDR(1,14148167,1,1,2) [2025-01-01 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148167', 'tblTempUsageDetail_20' ) start [2025-01-01 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148167', 'tblTempUsageDetail_20' ) end [2025-01-01 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:36:21] Production.INFO: ==30863== Releasing lock... [2025-01-01 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:36:21] Production.INFO: 32 MB #Memory Used# [2025-01-01 03:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:37:04 [end_date_ymd] => 2025-01-01 03:37:04 [RateCDR] => 1 ) [2025-01-01 03: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-01-01 00:37:04' and `end` < '2025-01-01 03: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-01-01 03:37:17] Production.INFO: count ==600 [2025-01-01 03:37:17] Production.ERROR: pbx CDR StartTime 2025-01-01 00:37:04 - End Time 2025-01-01 03:37:04 [2025-01-01 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148172', 'tblTempUsageDetail_20' ) start [2025-01-01 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148172', 'tblTempUsageDetail_20' ) end [2025-01-01 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148172', 'tblTempVendorCDR_20' ) start [2025-01-01 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148172', 'tblTempVendorCDR_20' ) end [2025-01-01 03:37:17] Production.INFO: ProcessCDR(1,14148172,1,1,2) [2025-01-01 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148172', 'tblTempUsageDetail_20' ) start [2025-01-01 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148172', 'tblTempUsageDetail_20' ) end [2025-01-01 03:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:37:20] Production.INFO: ==30938== Releasing lock... [2025-01-01 03:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:37:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-01 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:38:05 [end_date_ymd] => 2025-01-01 03:38:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:38:05' and `end` < '2025-01-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-01-01 03:38:19] Production.INFO: count ==600 [2025-01-01 03:38:19] Production.ERROR: pbx CDR StartTime 2025-01-01 00:38:05 - End Time 2025-01-01 03:38:05 [2025-01-01 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148177', 'tblTempUsageDetail_20' ) start [2025-01-01 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148177', 'tblTempUsageDetail_20' ) end [2025-01-01 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148177', 'tblTempVendorCDR_20' ) start [2025-01-01 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148177', 'tblTempVendorCDR_20' ) end [2025-01-01 03:38:19] Production.INFO: ProcessCDR(1,14148177,1,1,2) [2025-01-01 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148177', 'tblTempUsageDetail_20' ) start [2025-01-01 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148177', 'tblTempUsageDetail_20' ) end [2025-01-01 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:38:22] Production.INFO: ==31017== Releasing lock... [2025-01-01 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:38:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-01 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:39:05 [end_date_ymd] => 2025-01-01 03:39:05 [RateCDR] => 1 ) [2025-01-01 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 00:39:05' and `end` < '2025-01-01 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 03:39:17] Production.INFO: count ==599 [2025-01-01 03:39:17] Production.ERROR: pbx CDR StartTime 2025-01-01 00:39:05 - End Time 2025-01-01 03:39:05 [2025-01-01 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148182', 'tblTempUsageDetail_20' ) start [2025-01-01 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148182', 'tblTempUsageDetail_20' ) end [2025-01-01 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148182', 'tblTempVendorCDR_20' ) start [2025-01-01 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148182', 'tblTempVendorCDR_20' ) end [2025-01-01 03:39:17] Production.INFO: ProcessCDR(1,14148182,1,1,2) [2025-01-01 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148182', 'tblTempUsageDetail_20' ) start [2025-01-01 03:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148182', 'tblTempUsageDetail_20' ) end [2025-01-01 03:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:39:20] Production.INFO: ==31096== Releasing lock... [2025-01-01 03:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:39:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-01 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:40:07 [end_date_ymd] => 2025-01-01 03:40:07 [RateCDR] => 1 ) [2025-01-01 03:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 00:40:07' and `end` < '2025-01-01 03:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 03:40:19] Production.INFO: count ==591 [2025-01-01 03:40:19] Production.ERROR: pbx CDR StartTime 2025-01-01 00:40:07 - End Time 2025-01-01 03:40:07 [2025-01-01 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148188', 'tblTempUsageDetail_20' ) start [2025-01-01 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148188', 'tblTempUsageDetail_20' ) end [2025-01-01 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148188', 'tblTempVendorCDR_20' ) start [2025-01-01 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148188', 'tblTempVendorCDR_20' ) end [2025-01-01 03:40:19] Production.INFO: ProcessCDR(1,14148188,1,1,2) [2025-01-01 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148188', 'tblTempUsageDetail_20' ) start [2025-01-01 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148188', 'tblTempUsageDetail_20' ) end [2025-01-01 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:40:23] Production.INFO: ==31178== Releasing lock... [2025-01-01 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:40:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-01 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:41:05 [end_date_ymd] => 2025-01-01 03:41:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:41:05' and `end` < '2025-01-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-01-01 03:41:19] Production.INFO: count ==563 [2025-01-01 03:41:19] Production.ERROR: pbx CDR StartTime 2025-01-01 00:41:05 - End Time 2025-01-01 03:41:05 [2025-01-01 03:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148193', 'tblTempUsageDetail_20' ) start [2025-01-01 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148193', 'tblTempUsageDetail_20' ) end [2025-01-01 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148193', 'tblTempVendorCDR_20' ) start [2025-01-01 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148193', 'tblTempVendorCDR_20' ) end [2025-01-01 03:41:19] Production.INFO: ProcessCDR(1,14148193,1,1,2) [2025-01-01 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148193', 'tblTempUsageDetail_20' ) start [2025-01-01 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148193', 'tblTempUsageDetail_20' ) end [2025-01-01 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:41:22] Production.INFO: ==31263== Releasing lock... [2025-01-01 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:41:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:42:06 [end_date_ymd] => 2025-01-01 03:42:06 [RateCDR] => 1 ) [2025-01-01 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 00:42:06' and `end` < '2025-01-01 03:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 03:42:18] Production.INFO: count ==561 [2025-01-01 03:42:19] Production.ERROR: pbx CDR StartTime 2025-01-01 00:42:06 - End Time 2025-01-01 03:42:06 [2025-01-01 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148198', 'tblTempUsageDetail_20' ) start [2025-01-01 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148198', 'tblTempUsageDetail_20' ) end [2025-01-01 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148198', 'tblTempVendorCDR_20' ) start [2025-01-01 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148198', 'tblTempVendorCDR_20' ) end [2025-01-01 03:42:19] Production.INFO: ProcessCDR(1,14148198,1,1,2) [2025-01-01 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148198', 'tblTempUsageDetail_20' ) start [2025-01-01 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148198', 'tblTempUsageDetail_20' ) end [2025-01-01 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:42:22] Production.INFO: ==31343== Releasing lock... [2025-01-01 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:42:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-01 03:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:43:04 [end_date_ymd] => 2025-01-01 03:43:04 [RateCDR] => 1 ) [2025-01-01 03: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-01-01 00:43:04' and `end` < '2025-01-01 03: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-01-01 03:43:17] Production.INFO: count ==560 [2025-01-01 03:43:17] Production.ERROR: pbx CDR StartTime 2025-01-01 00:43:04 - End Time 2025-01-01 03:43:04 [2025-01-01 03:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148199', 'tblTempUsageDetail_20' ) start [2025-01-01 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148199', 'tblTempUsageDetail_20' ) end [2025-01-01 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148199', 'tblTempVendorCDR_20' ) start [2025-01-01 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148199', 'tblTempVendorCDR_20' ) end [2025-01-01 03:43:17] Production.INFO: ProcessCDR(1,14148199,1,1,2) [2025-01-01 03:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148199', 'tblTempUsageDetail_20' ) start [2025-01-01 03:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148199', 'tblTempUsageDetail_20' ) end [2025-01-01 03:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:43:20] Production.INFO: ==31423== Releasing lock... [2025-01-01 03:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:43:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:44:05 [end_date_ymd] => 2025-01-01 03:44:05 [RateCDR] => 1 ) [2025-01-01 03: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-01 00:44:05' and `end` < '2025-01-01 03: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-01-01 03:44:18] Production.INFO: count ==559 [2025-01-01 03:44:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:44:05 - End Time 2025-01-01 03:44:05 [2025-01-01 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148208', 'tblTempUsageDetail_20' ) start [2025-01-01 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148208', 'tblTempUsageDetail_20' ) end [2025-01-01 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148208', 'tblTempVendorCDR_20' ) start [2025-01-01 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148208', 'tblTempVendorCDR_20' ) end [2025-01-01 03:44:18] Production.INFO: ProcessCDR(1,14148208,1,1,2) [2025-01-01 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148208', 'tblTempUsageDetail_20' ) start [2025-01-01 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148208', 'tblTempUsageDetail_20' ) end [2025-01-01 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:44:21] Production.INFO: ==31505== Releasing lock... [2025-01-01 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:44:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-01 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:45:05 [end_date_ymd] => 2025-01-01 03:45:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:45:05' and `end` < '2025-01-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-01-01 03:45:18] Production.INFO: count ==559 [2025-01-01 03:45:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:45:05 - End Time 2025-01-01 03:45:05 [2025-01-01 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148213', 'tblTempUsageDetail_20' ) start [2025-01-01 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148213', 'tblTempUsageDetail_20' ) end [2025-01-01 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148213', 'tblTempVendorCDR_20' ) start [2025-01-01 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148213', 'tblTempVendorCDR_20' ) end [2025-01-01 03:45:18] Production.INFO: ProcessCDR(1,14148213,1,1,2) [2025-01-01 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148213', 'tblTempUsageDetail_20' ) start [2025-01-01 03:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148213', 'tblTempUsageDetail_20' ) end [2025-01-01 03:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:45:23] Production.INFO: ==31592== Releasing lock... [2025-01-01 03:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:45:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:46:05 [end_date_ymd] => 2025-01-01 03:46:05 [RateCDR] => 1 ) [2025-01-01 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 00:46:05' and `end` < '2025-01-01 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 03:46:18] Production.INFO: count ==559 [2025-01-01 03:46:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:46:05 - End Time 2025-01-01 03:46:05 [2025-01-01 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148218', 'tblTempUsageDetail_20' ) start [2025-01-01 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148218', 'tblTempUsageDetail_20' ) end [2025-01-01 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148218', 'tblTempVendorCDR_20' ) start [2025-01-01 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148218', 'tblTempVendorCDR_20' ) end [2025-01-01 03:46:18] Production.INFO: ProcessCDR(1,14148218,1,1,2) [2025-01-01 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148218', 'tblTempUsageDetail_20' ) start [2025-01-01 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148218', 'tblTempUsageDetail_20' ) end [2025-01-01 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:46:22] Production.INFO: ==31698== Releasing lock... [2025-01-01 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:46:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 03:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:47:04 [end_date_ymd] => 2025-01-01 03:47:04 [RateCDR] => 1 ) [2025-01-01 03: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-01-01 00:47:04' and `end` < '2025-01-01 03: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-01-01 03:47:18] Production.INFO: count ==559 [2025-01-01 03:47:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:47:04 - End Time 2025-01-01 03:47:04 [2025-01-01 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148223', 'tblTempUsageDetail_20' ) start [2025-01-01 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148223', 'tblTempUsageDetail_20' ) end [2025-01-01 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148223', 'tblTempVendorCDR_20' ) start [2025-01-01 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148223', 'tblTempVendorCDR_20' ) end [2025-01-01 03:47:18] Production.INFO: ProcessCDR(1,14148223,1,1,2) [2025-01-01 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148223', 'tblTempUsageDetail_20' ) start [2025-01-01 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148223', 'tblTempUsageDetail_20' ) end [2025-01-01 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:47:21] Production.INFO: ==31802== Releasing lock... [2025-01-01 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:47:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:48:05 [end_date_ymd] => 2025-01-01 03:48:05 [RateCDR] => 1 ) [2025-01-01 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 00:48:05' and `end` < '2025-01-01 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 03:48:19] Production.INFO: count ==556 [2025-01-01 03:48:19] Production.ERROR: pbx CDR StartTime 2025-01-01 00:48:05 - End Time 2025-01-01 03:48:05 [2025-01-01 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148228', 'tblTempUsageDetail_20' ) start [2025-01-01 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148228', 'tblTempUsageDetail_20' ) end [2025-01-01 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148228', 'tblTempVendorCDR_20' ) start [2025-01-01 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148228', 'tblTempVendorCDR_20' ) end [2025-01-01 03:48:19] Production.INFO: ProcessCDR(1,14148228,1,1,2) [2025-01-01 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148228', 'tblTempUsageDetail_20' ) start [2025-01-01 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148228', 'tblTempUsageDetail_20' ) end [2025-01-01 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:48:22] Production.INFO: ==31914== Releasing lock... [2025-01-01 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:48:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:49:05 [end_date_ymd] => 2025-01-01 03:49:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:49:05' and `end` < '2025-01-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-01-01 03:49:18] Production.INFO: count ==556 [2025-01-01 03:49:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:49:05 - End Time 2025-01-01 03:49:05 [2025-01-01 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148233', 'tblTempUsageDetail_20' ) start [2025-01-01 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148233', 'tblTempUsageDetail_20' ) end [2025-01-01 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148233', 'tblTempVendorCDR_20' ) start [2025-01-01 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148233', 'tblTempVendorCDR_20' ) end [2025-01-01 03:49:18] Production.INFO: ProcessCDR(1,14148233,1,1,2) [2025-01-01 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148233', 'tblTempUsageDetail_20' ) start [2025-01-01 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148233', 'tblTempUsageDetail_20' ) end [2025-01-01 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:49:21] Production.INFO: ==32056== Releasing lock... [2025-01-01 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:49:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:50:05 [end_date_ymd] => 2025-01-01 03:50:05 [RateCDR] => 1 ) [2025-01-01 03: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-01-01 00:50:05' and `end` < '2025-01-01 03: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-01-01 03:50:18] Production.INFO: count ==549 [2025-01-01 03:50:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:50:05 - End Time 2025-01-01 03:50:05 [2025-01-01 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148238', 'tblTempUsageDetail_20' ) start [2025-01-01 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148238', 'tblTempUsageDetail_20' ) end [2025-01-01 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148238', 'tblTempVendorCDR_20' ) start [2025-01-01 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148238', 'tblTempVendorCDR_20' ) end [2025-01-01 03:50:18] Production.INFO: ProcessCDR(1,14148238,1,1,2) [2025-01-01 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148238', 'tblTempUsageDetail_20' ) start [2025-01-01 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148238', 'tblTempUsageDetail_20' ) end [2025-01-01 03:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:50:21] Production.INFO: ==32161== Releasing lock... [2025-01-01 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:50:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-01 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:51:05 [end_date_ymd] => 2025-01-01 03:51:05 [RateCDR] => 1 ) [2025-01-01 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 00:51:05' and `end` < '2025-01-01 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 03:51:18] Production.INFO: count ==518 [2025-01-01 03:51:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:51:05 - End Time 2025-01-01 03:51:05 [2025-01-01 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148244', 'tblTempUsageDetail_20' ) start [2025-01-01 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148244', 'tblTempUsageDetail_20' ) end [2025-01-01 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148244', 'tblTempVendorCDR_20' ) start [2025-01-01 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148244', 'tblTempVendorCDR_20' ) end [2025-01-01 03:51:18] Production.INFO: ProcessCDR(1,14148244,1,1,2) [2025-01-01 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148244', 'tblTempUsageDetail_20' ) start [2025-01-01 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148244', 'tblTempUsageDetail_20' ) end [2025-01-01 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:51:21] Production.INFO: ==32270== Releasing lock... [2025-01-01 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:51:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-01 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:52:05 [end_date_ymd] => 2025-01-01 03:52:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:52:05' and `end` < '2025-01-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-01-01 03:52:18] Production.INFO: count ==514 [2025-01-01 03:52:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:52:05 - End Time 2025-01-01 03:52:05 [2025-01-01 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148249', 'tblTempUsageDetail_20' ) start [2025-01-01 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148249', 'tblTempUsageDetail_20' ) end [2025-01-01 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148249', 'tblTempVendorCDR_20' ) start [2025-01-01 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148249', 'tblTempVendorCDR_20' ) end [2025-01-01 03:52:19] Production.INFO: ProcessCDR(1,14148249,1,1,2) [2025-01-01 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148249', 'tblTempUsageDetail_20' ) start [2025-01-01 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148249', 'tblTempUsageDetail_20' ) end [2025-01-01 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:52:22] Production.INFO: ==32373== Releasing lock... [2025-01-01 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:52:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:53:05 [end_date_ymd] => 2025-01-01 03:53:05 [RateCDR] => 1 ) [2025-01-01 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 00:53:05' and `end` < '2025-01-01 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 03:53:18] Production.INFO: count ==514 [2025-01-01 03:53:19] Production.ERROR: pbx CDR StartTime 2025-01-01 00:53:05 - End Time 2025-01-01 03:53:05 [2025-01-01 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148254', 'tblTempUsageDetail_20' ) start [2025-01-01 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148254', 'tblTempUsageDetail_20' ) end [2025-01-01 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148254', 'tblTempVendorCDR_20' ) start [2025-01-01 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148254', 'tblTempVendorCDR_20' ) end [2025-01-01 03:53:19] Production.INFO: ProcessCDR(1,14148254,1,1,2) [2025-01-01 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148254', 'tblTempUsageDetail_20' ) start [2025-01-01 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148254', 'tblTempUsageDetail_20' ) end [2025-01-01 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:53:22] Production.INFO: ==32476== Releasing lock... [2025-01-01 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:53:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:54:05 [end_date_ymd] => 2025-01-01 03:54:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:54:05' and `end` < '2025-01-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-01-01 03:54:18] Production.INFO: count ==514 [2025-01-01 03:54:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:54:05 - End Time 2025-01-01 03:54:05 [2025-01-01 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148259', 'tblTempUsageDetail_20' ) start [2025-01-01 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148259', 'tblTempUsageDetail_20' ) end [2025-01-01 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148259', 'tblTempVendorCDR_20' ) start [2025-01-01 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148259', 'tblTempVendorCDR_20' ) end [2025-01-01 03:54:18] Production.INFO: ProcessCDR(1,14148259,1,1,2) [2025-01-01 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148259', 'tblTempUsageDetail_20' ) start [2025-01-01 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148259', 'tblTempUsageDetail_20' ) end [2025-01-01 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:54:22] Production.INFO: ==32583== Releasing lock... [2025-01-01 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:54:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:55:05 [end_date_ymd] => 2025-01-01 03:55:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:55:05' and `end` < '2025-01-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-01-01 03:55:18] Production.INFO: count ==514 [2025-01-01 03:55:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:55:05 - End Time 2025-01-01 03:55:05 [2025-01-01 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148264', 'tblTempUsageDetail_20' ) start [2025-01-01 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148264', 'tblTempUsageDetail_20' ) end [2025-01-01 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148264', 'tblTempVendorCDR_20' ) start [2025-01-01 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148264', 'tblTempVendorCDR_20' ) end [2025-01-01 03:55:18] Production.INFO: ProcessCDR(1,14148264,1,1,2) [2025-01-01 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148264', 'tblTempUsageDetail_20' ) start [2025-01-01 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148264', 'tblTempUsageDetail_20' ) end [2025-01-01 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:55:21] Production.INFO: ==32679== Releasing lock... [2025-01-01 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:55:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 03:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:56:04 [end_date_ymd] => 2025-01-01 03:56:04 [RateCDR] => 1 ) [2025-01-01 03: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-01-01 00:56:04' and `end` < '2025-01-01 03: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-01-01 03:56:17] Production.INFO: count ==513 [2025-01-01 03:56:17] Production.ERROR: pbx CDR StartTime 2025-01-01 00:56:04 - End Time 2025-01-01 03:56:04 [2025-01-01 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148269', 'tblTempUsageDetail_20' ) start [2025-01-01 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148269', 'tblTempUsageDetail_20' ) end [2025-01-01 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148269', 'tblTempVendorCDR_20' ) start [2025-01-01 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148269', 'tblTempVendorCDR_20' ) end [2025-01-01 03:56:18] Production.INFO: ProcessCDR(1,14148269,1,1,2) [2025-01-01 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148269', 'tblTempUsageDetail_20' ) start [2025-01-01 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148269', 'tblTempUsageDetail_20' ) end [2025-01-01 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:56:21] Production.INFO: ==307== Releasing lock... [2025-01-01 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:56:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:57:05 [end_date_ymd] => 2025-01-01 03:57:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:57:05' and `end` < '2025-01-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-01-01 03:57:19] Production.INFO: count ==513 [2025-01-01 03:57:19] Production.ERROR: pbx CDR StartTime 2025-01-01 00:57:05 - End Time 2025-01-01 03:57:05 [2025-01-01 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148274', 'tblTempUsageDetail_20' ) start [2025-01-01 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148274', 'tblTempUsageDetail_20' ) end [2025-01-01 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148274', 'tblTempVendorCDR_20' ) start [2025-01-01 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148274', 'tblTempVendorCDR_20' ) end [2025-01-01 03:57:19] Production.INFO: ProcessCDR(1,14148274,1,1,2) [2025-01-01 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148274', 'tblTempUsageDetail_20' ) start [2025-01-01 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148274', 'tblTempUsageDetail_20' ) end [2025-01-01 03:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:57:23] Production.INFO: ==429== Releasing lock... [2025-01-01 03:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:57:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:58:05 [end_date_ymd] => 2025-01-01 03:58:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:58:05' and `end` < '2025-01-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-01-01 03:58:18] Production.INFO: count ==513 [2025-01-01 03:58:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:58:05 - End Time 2025-01-01 03:58:05 [2025-01-01 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148279', 'tblTempUsageDetail_20' ) start [2025-01-01 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148279', 'tblTempUsageDetail_20' ) end [2025-01-01 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148279', 'tblTempVendorCDR_20' ) start [2025-01-01 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148279', 'tblTempVendorCDR_20' ) end [2025-01-01 03:58:18] Production.INFO: ProcessCDR(1,14148279,1,1,2) [2025-01-01 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148279', 'tblTempUsageDetail_20' ) start [2025-01-01 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148279', 'tblTempUsageDetail_20' ) end [2025-01-01 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:58:21] Production.INFO: ==524== Releasing lock... [2025-01-01 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:58:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 00:59:05 [end_date_ymd] => 2025-01-01 03:59:05 [RateCDR] => 1 ) [2025-01-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-01-01 00:59:05' and `end` < '2025-01-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-01-01 03:59:18] Production.INFO: count ==513 [2025-01-01 03:59:18] Production.ERROR: pbx CDR StartTime 2025-01-01 00:59:05 - End Time 2025-01-01 03:59:05 [2025-01-01 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148284', 'tblTempUsageDetail_20' ) start [2025-01-01 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148284', 'tblTempUsageDetail_20' ) end [2025-01-01 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148284', 'tblTempVendorCDR_20' ) start [2025-01-01 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148284', 'tblTempVendorCDR_20' ) end [2025-01-01 03:59:18] Production.INFO: ProcessCDR(1,14148284,1,1,2) [2025-01-01 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148284', 'tblTempUsageDetail_20' ) start [2025-01-01 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148284', 'tblTempUsageDetail_20' ) end [2025-01-01 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 03:59:21] Production.INFO: ==628== Releasing lock... [2025-01-01 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 03:59:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 04:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:00:05 [end_date_ymd] => 2025-01-01 04:00:05 [RateCDR] => 1 ) [2025-01-01 04: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-01-01 01:00:05' and `end` < '2025-01-01 04: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-01-01 04:00:18] Production.INFO: count ==509 [2025-01-01 04:00:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:00:05 - End Time 2025-01-01 04:00:05 [2025-01-01 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148291', 'tblTempUsageDetail_20' ) start [2025-01-01 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148291', 'tblTempUsageDetail_20' ) end [2025-01-01 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148291', 'tblTempVendorCDR_20' ) start [2025-01-01 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148291', 'tblTempVendorCDR_20' ) end [2025-01-01 04:00:18] Production.INFO: ProcessCDR(1,14148291,1,1,2) [2025-01-01 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148291', 'tblTempUsageDetail_20' ) start [2025-01-01 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148291', 'tblTempUsageDetail_20' ) end [2025-01-01 04:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:00:21] Production.INFO: ==758== Releasing lock... [2025-01-01 04:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:00:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:01:05 [end_date_ymd] => 2025-01-01 04:01:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:01:05' and `end` < '2025-01-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-01-01 04:01:19] Production.INFO: count ==463 [2025-01-01 04:01:19] Production.ERROR: pbx CDR StartTime 2025-01-01 01:01:05 - End Time 2025-01-01 04:01:05 [2025-01-01 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148296', 'tblTempUsageDetail_20' ) start [2025-01-01 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148296', 'tblTempUsageDetail_20' ) end [2025-01-01 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148296', 'tblTempVendorCDR_20' ) start [2025-01-01 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148296', 'tblTempVendorCDR_20' ) end [2025-01-01 04:01:19] Production.INFO: ProcessCDR(1,14148296,1,1,2) [2025-01-01 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148296', 'tblTempUsageDetail_20' ) start [2025-01-01 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148296', 'tblTempUsageDetail_20' ) end [2025-01-01 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:01:22] Production.INFO: ==862== Releasing lock... [2025-01-01 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:01:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-01 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:02:06 [end_date_ymd] => 2025-01-01 04:02:06 [RateCDR] => 1 ) [2025-01-01 04:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 01:02:06' and `end` < '2025-01-01 04:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 04:02:18] Production.INFO: count ==463 [2025-01-01 04:02:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:02:06 - End Time 2025-01-01 04:02:06 [2025-01-01 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148301', 'tblTempUsageDetail_20' ) start [2025-01-01 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148301', 'tblTempUsageDetail_20' ) end [2025-01-01 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148301', 'tblTempVendorCDR_20' ) start [2025-01-01 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148301', 'tblTempVendorCDR_20' ) end [2025-01-01 04:02:18] Production.INFO: ProcessCDR(1,14148301,1,1,2) [2025-01-01 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148301', 'tblTempUsageDetail_20' ) start [2025-01-01 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148301', 'tblTempUsageDetail_20' ) end [2025-01-01 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:02:22] Production.INFO: ==961== Releasing lock... [2025-01-01 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:02:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-01 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:03:05 [end_date_ymd] => 2025-01-01 04:03:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:03:05' and `end` < '2025-01-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-01-01 04:03:20] Production.INFO: count ==460 [2025-01-01 04:03:20] Production.ERROR: pbx CDR StartTime 2025-01-01 01:03:05 - End Time 2025-01-01 04:03:05 [2025-01-01 04:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148306', 'tblTempUsageDetail_20' ) start [2025-01-01 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148306', 'tblTempUsageDetail_20' ) end [2025-01-01 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148306', 'tblTempVendorCDR_20' ) start [2025-01-01 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148306', 'tblTempVendorCDR_20' ) end [2025-01-01 04:03:20] Production.INFO: ProcessCDR(1,14148306,1,1,2) [2025-01-01 04:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148306', 'tblTempUsageDetail_20' ) start [2025-01-01 04:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148306', 'tblTempUsageDetail_20' ) end [2025-01-01 04:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:03:23] Production.INFO: ==1064== Releasing lock... [2025-01-01 04:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:03:23] Production.INFO: 31 MB #Memory Used# [2025-01-01 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:04:05 [end_date_ymd] => 2025-01-01 04:04:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:04:05' and `end` < '2025-01-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-01-01 04:04:19] Production.INFO: count ==458 [2025-01-01 04:04:19] Production.ERROR: pbx CDR StartTime 2025-01-01 01:04:05 - End Time 2025-01-01 04:04:05 [2025-01-01 04:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148311', 'tblTempUsageDetail_20' ) start [2025-01-01 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148311', 'tblTempUsageDetail_20' ) end [2025-01-01 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148311', 'tblTempVendorCDR_20' ) start [2025-01-01 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148311', 'tblTempVendorCDR_20' ) end [2025-01-01 04:04:19] Production.INFO: ProcessCDR(1,14148311,1,1,2) [2025-01-01 04:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148311', 'tblTempUsageDetail_20' ) start [2025-01-01 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148311', 'tblTempUsageDetail_20' ) end [2025-01-01 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:04:22] Production.INFO: ==1172== Releasing lock... [2025-01-01 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:04:22] Production.INFO: 31 MB #Memory Used# [2025-01-01 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:05:05 [end_date_ymd] => 2025-01-01 04:05:05 [RateCDR] => 1 ) [2025-01-01 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 01:05:05' and `end` < '2025-01-01 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 04:05:17] Production.INFO: count ==456 [2025-01-01 04:05:17] Production.ERROR: pbx CDR StartTime 2025-01-01 01:05:05 - End Time 2025-01-01 04:05:05 [2025-01-01 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148316', 'tblTempUsageDetail_20' ) start [2025-01-01 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148316', 'tblTempUsageDetail_20' ) end [2025-01-01 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148316', 'tblTempVendorCDR_20' ) start [2025-01-01 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148316', 'tblTempVendorCDR_20' ) end [2025-01-01 04:05:17] Production.INFO: ProcessCDR(1,14148316,1,1,2) [2025-01-01 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148316', 'tblTempUsageDetail_20' ) start [2025-01-01 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148316', 'tblTempUsageDetail_20' ) end [2025-01-01 04:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:05:20] Production.INFO: ==1329== Releasing lock... [2025-01-01 04:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:05:20] Production.INFO: 31 MB #Memory Used# [2025-01-01 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:06:05 [end_date_ymd] => 2025-01-01 04:06:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:06:05' and `end` < '2025-01-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-01-01 04:06:17] Production.INFO: count ==452 [2025-01-01 04:06:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:06:05 - End Time 2025-01-01 04:06:05 [2025-01-01 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148321', 'tblTempUsageDetail_20' ) start [2025-01-01 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148321', 'tblTempUsageDetail_20' ) end [2025-01-01 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148321', 'tblTempVendorCDR_20' ) start [2025-01-01 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148321', 'tblTempVendorCDR_20' ) end [2025-01-01 04:06:18] Production.INFO: ProcessCDR(1,14148321,1,1,2) [2025-01-01 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148321', 'tblTempUsageDetail_20' ) start [2025-01-01 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148321', 'tblTempUsageDetail_20' ) end [2025-01-01 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:06:21] Production.INFO: ==1423== Releasing lock... [2025-01-01 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:06:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-01 04:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:07:04 [end_date_ymd] => 2025-01-01 04:07:04 [RateCDR] => 1 ) [2025-01-01 04: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-01-01 01:07:04' and `end` < '2025-01-01 04: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-01-01 04:07:17] Production.INFO: count ==449 [2025-01-01 04:07:17] Production.ERROR: pbx CDR StartTime 2025-01-01 01:07:04 - End Time 2025-01-01 04:07:04 [2025-01-01 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148326', 'tblTempUsageDetail_20' ) start [2025-01-01 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148326', 'tblTempUsageDetail_20' ) end [2025-01-01 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148326', 'tblTempVendorCDR_20' ) start [2025-01-01 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148326', 'tblTempVendorCDR_20' ) end [2025-01-01 04:07:17] Production.INFO: ProcessCDR(1,14148326,1,1,2) [2025-01-01 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148326', 'tblTempUsageDetail_20' ) start [2025-01-01 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148326', 'tblTempUsageDetail_20' ) end [2025-01-01 04:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:07:20] Production.INFO: ==1535== Releasing lock... [2025-01-01 04:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:07:20] Production.INFO: 31 MB #Memory Used# [2025-01-01 04:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:08:04 [end_date_ymd] => 2025-01-01 04:08:04 [RateCDR] => 1 ) [2025-01-01 04: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-01 01:08:04' and `end` < '2025-01-01 04: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-01-01 04:08:18] Production.INFO: count ==446 [2025-01-01 04:08:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:08:04 - End Time 2025-01-01 04:08:04 [2025-01-01 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148331', 'tblTempUsageDetail_20' ) start [2025-01-01 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148331', 'tblTempUsageDetail_20' ) end [2025-01-01 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148331', 'tblTempVendorCDR_20' ) start [2025-01-01 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148331', 'tblTempVendorCDR_20' ) end [2025-01-01 04:08:18] Production.INFO: ProcessCDR(1,14148331,1,1,2) [2025-01-01 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148331', 'tblTempUsageDetail_20' ) start [2025-01-01 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148331', 'tblTempUsageDetail_20' ) end [2025-01-01 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:08:21] Production.INFO: ==1617== Releasing lock... [2025-01-01 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:08:21] Production.INFO: 31 MB #Memory Used# [2025-01-01 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:09:05 [end_date_ymd] => 2025-01-01 04:09:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:09:05' and `end` < '2025-01-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-01-01 04:09:18] Production.INFO: count ==446 [2025-01-01 04:09:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:09:05 - End Time 2025-01-01 04:09:05 [2025-01-01 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148336', 'tblTempUsageDetail_20' ) start [2025-01-01 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148336', 'tblTempUsageDetail_20' ) end [2025-01-01 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148336', 'tblTempVendorCDR_20' ) start [2025-01-01 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148336', 'tblTempVendorCDR_20' ) end [2025-01-01 04:09:18] Production.INFO: ProcessCDR(1,14148336,1,1,2) [2025-01-01 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148336', 'tblTempUsageDetail_20' ) start [2025-01-01 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148336', 'tblTempUsageDetail_20' ) end [2025-01-01 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:09:21] Production.INFO: ==1695== Releasing lock... [2025-01-01 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:09:21] Production.INFO: 31 MB #Memory Used# [2025-01-01 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:10:05 [end_date_ymd] => 2025-01-01 04:10:05 [RateCDR] => 1 ) [2025-01-01 04: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-01 01:10:05' and `end` < '2025-01-01 04: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-01-01 04:10:18] Production.INFO: count ==442 [2025-01-01 04:10:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:10:05 - End Time 2025-01-01 04:10:05 [2025-01-01 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148342', 'tblTempUsageDetail_20' ) start [2025-01-01 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148342', 'tblTempUsageDetail_20' ) end [2025-01-01 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148342', 'tblTempVendorCDR_20' ) start [2025-01-01 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148342', 'tblTempVendorCDR_20' ) end [2025-01-01 04:10:18] Production.INFO: ProcessCDR(1,14148342,1,1,2) [2025-01-01 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148342', 'tblTempUsageDetail_20' ) start [2025-01-01 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148342', 'tblTempUsageDetail_20' ) end [2025-01-01 04:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:10:21] Production.INFO: ==1780== Releasing lock... [2025-01-01 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:10:21] Production.INFO: 31 MB #Memory Used# [2025-01-01 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:11:05 [end_date_ymd] => 2025-01-01 04:11:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:11:05' and `end` < '2025-01-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-01-01 04:11:19] Production.INFO: count ==424 [2025-01-01 04:11:19] Production.ERROR: pbx CDR StartTime 2025-01-01 01:11:05 - End Time 2025-01-01 04:11:05 [2025-01-01 04:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148347', 'tblTempUsageDetail_20' ) start [2025-01-01 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148347', 'tblTempUsageDetail_20' ) end [2025-01-01 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148347', 'tblTempVendorCDR_20' ) start [2025-01-01 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148347', 'tblTempVendorCDR_20' ) end [2025-01-01 04:11:19] Production.INFO: ProcessCDR(1,14148347,1,1,2) [2025-01-01 04:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148347', 'tblTempUsageDetail_20' ) start [2025-01-01 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148347', 'tblTempUsageDetail_20' ) end [2025-01-01 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:11:22] Production.INFO: ==1865== Releasing lock... [2025-01-01 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:11:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-01 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:12:05 [end_date_ymd] => 2025-01-01 04:12:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:12:05' and `end` < '2025-01-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-01-01 04:12:17] Production.INFO: count ==421 [2025-01-01 04:12:17] Production.ERROR: pbx CDR StartTime 2025-01-01 01:12:05 - End Time 2025-01-01 04:12:05 [2025-01-01 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148352', 'tblTempUsageDetail_20' ) start [2025-01-01 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148352', 'tblTempUsageDetail_20' ) end [2025-01-01 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148352', 'tblTempVendorCDR_20' ) start [2025-01-01 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148352', 'tblTempVendorCDR_20' ) end [2025-01-01 04:12:17] Production.INFO: ProcessCDR(1,14148352,1,1,2) [2025-01-01 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148352', 'tblTempUsageDetail_20' ) start [2025-01-01 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148352', 'tblTempUsageDetail_20' ) end [2025-01-01 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:12:21] Production.INFO: ==1945== Releasing lock... [2025-01-01 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:12:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-01 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:13:05 [end_date_ymd] => 2025-01-01 04:13:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:13:05' and `end` < '2025-01-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-01-01 04:13:18] Production.INFO: count ==419 [2025-01-01 04:13:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:13:05 - End Time 2025-01-01 04:13:05 [2025-01-01 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148357', 'tblTempUsageDetail_20' ) start [2025-01-01 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148357', 'tblTempUsageDetail_20' ) end [2025-01-01 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148357', 'tblTempVendorCDR_20' ) start [2025-01-01 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148357', 'tblTempVendorCDR_20' ) end [2025-01-01 04:13:18] Production.INFO: ProcessCDR(1,14148357,1,1,2) [2025-01-01 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148357', 'tblTempUsageDetail_20' ) start [2025-01-01 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148357', 'tblTempUsageDetail_20' ) end [2025-01-01 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:13:22] Production.INFO: ==2029== Releasing lock... [2025-01-01 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:13:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-01 04:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:14:04 [end_date_ymd] => 2025-01-01 04:14:04 [RateCDR] => 1 ) [2025-01-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-01-01 01:14:04' and `end` < '2025-01-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-01-01 04:14:17] Production.INFO: count ==416 [2025-01-01 04:14:17] Production.ERROR: pbx CDR StartTime 2025-01-01 01:14:04 - End Time 2025-01-01 04:14:04 [2025-01-01 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148362', 'tblTempUsageDetail_20' ) start [2025-01-01 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148362', 'tblTempUsageDetail_20' ) end [2025-01-01 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148362', 'tblTempVendorCDR_20' ) start [2025-01-01 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148362', 'tblTempVendorCDR_20' ) end [2025-01-01 04:14:18] Production.INFO: ProcessCDR(1,14148362,1,1,2) [2025-01-01 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148362', 'tblTempUsageDetail_20' ) start [2025-01-01 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148362', 'tblTempUsageDetail_20' ) end [2025-01-01 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:14:21] Production.INFO: ==2109== Releasing lock... [2025-01-01 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-01 04:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:15:04 [end_date_ymd] => 2025-01-01 04:15:04 [RateCDR] => 1 ) [2025-01-01 04: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-01-01 01:15:04' and `end` < '2025-01-01 04: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-01-01 04:15:17] Production.INFO: count ==416 [2025-01-01 04:15:17] Production.ERROR: pbx CDR StartTime 2025-01-01 01:15:04 - End Time 2025-01-01 04:15:04 [2025-01-01 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148367', 'tblTempUsageDetail_20' ) start [2025-01-01 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148367', 'tblTempUsageDetail_20' ) end [2025-01-01 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148367', 'tblTempVendorCDR_20' ) start [2025-01-01 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148367', 'tblTempVendorCDR_20' ) end [2025-01-01 04:15:17] Production.INFO: ProcessCDR(1,14148367,1,1,2) [2025-01-01 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148367', 'tblTempUsageDetail_20' ) start [2025-01-01 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148367', 'tblTempUsageDetail_20' ) end [2025-01-01 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:15:21] Production.INFO: ==2193== Releasing lock... [2025-01-01 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:15:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-01 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:16:05 [end_date_ymd] => 2025-01-01 04:16:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:16:05' and `end` < '2025-01-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-01-01 04:16:19] Production.INFO: count ==417 [2025-01-01 04:16:19] Production.ERROR: pbx CDR StartTime 2025-01-01 01:16:05 - End Time 2025-01-01 04:16:05 [2025-01-01 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148372', 'tblTempUsageDetail_20' ) start [2025-01-01 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148372', 'tblTempUsageDetail_20' ) end [2025-01-01 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148372', 'tblTempVendorCDR_20' ) start [2025-01-01 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148372', 'tblTempVendorCDR_20' ) end [2025-01-01 04:16:19] Production.INFO: ProcessCDR(1,14148372,1,1,2) [2025-01-01 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148372', 'tblTempUsageDetail_20' ) start [2025-01-01 04:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148372', 'tblTempUsageDetail_20' ) end [2025-01-01 04:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:16:23] Production.INFO: ==2275== Releasing lock... [2025-01-01 04:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:16:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-01 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:17:05 [end_date_ymd] => 2025-01-01 04:17:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:17:05' and `end` < '2025-01-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-01-01 04:17:18] Production.INFO: count ==417 [2025-01-01 04:17:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:17:05 - End Time 2025-01-01 04:17:05 [2025-01-01 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148377', 'tblTempUsageDetail_20' ) start [2025-01-01 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148377', 'tblTempUsageDetail_20' ) end [2025-01-01 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148377', 'tblTempVendorCDR_20' ) start [2025-01-01 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148377', 'tblTempVendorCDR_20' ) end [2025-01-01 04:17:18] Production.INFO: ProcessCDR(1,14148377,1,1,2) [2025-01-01 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148377', 'tblTempUsageDetail_20' ) start [2025-01-01 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148377', 'tblTempUsageDetail_20' ) end [2025-01-01 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:17:21] Production.INFO: ==2365== Releasing lock... [2025-01-01 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:17:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-01 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:18:05 [end_date_ymd] => 2025-01-01 04:18:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:18:05' and `end` < '2025-01-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-01-01 04:18:19] Production.INFO: count ==417 [2025-01-01 04:18:19] Production.ERROR: pbx CDR StartTime 2025-01-01 01:18:05 - End Time 2025-01-01 04:18:05 [2025-01-01 04:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148382', 'tblTempUsageDetail_20' ) start [2025-01-01 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148382', 'tblTempUsageDetail_20' ) end [2025-01-01 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148382', 'tblTempVendorCDR_20' ) start [2025-01-01 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148382', 'tblTempVendorCDR_20' ) end [2025-01-01 04:18:19] Production.INFO: ProcessCDR(1,14148382,1,1,2) [2025-01-01 04:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148382', 'tblTempUsageDetail_20' ) start [2025-01-01 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148382', 'tblTempUsageDetail_20' ) end [2025-01-01 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:18:22] Production.INFO: ==2455== Releasing lock... [2025-01-01 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:18:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-01 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:19:05 [end_date_ymd] => 2025-01-01 04:19:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:19:05' and `end` < '2025-01-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-01-01 04:19:18] Production.INFO: count ==416 [2025-01-01 04:19:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:19:05 - End Time 2025-01-01 04:19:05 [2025-01-01 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148387', 'tblTempUsageDetail_20' ) start [2025-01-01 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148387', 'tblTempUsageDetail_20' ) end [2025-01-01 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148387', 'tblTempVendorCDR_20' ) start [2025-01-01 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148387', 'tblTempVendorCDR_20' ) end [2025-01-01 04:19:18] Production.INFO: ProcessCDR(1,14148387,1,1,2) [2025-01-01 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148387', 'tblTempUsageDetail_20' ) start [2025-01-01 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148387', 'tblTempUsageDetail_20' ) end [2025-01-01 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:19:21] Production.INFO: ==2535== Releasing lock... [2025-01-01 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-01 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:20:06 [end_date_ymd] => 2025-01-01 04:20:06 [RateCDR] => 1 ) [2025-01-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-01-01 01:20:06' and `end` < '2025-01-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-01-01 04:20:19] Production.INFO: count ==410 [2025-01-01 04:20:19] Production.ERROR: pbx CDR StartTime 2025-01-01 01:20:06 - End Time 2025-01-01 04:20:06 [2025-01-01 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148393', 'tblTempUsageDetail_20' ) start [2025-01-01 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148393', 'tblTempUsageDetail_20' ) end [2025-01-01 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148393', 'tblTempVendorCDR_20' ) start [2025-01-01 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148393', 'tblTempVendorCDR_20' ) end [2025-01-01 04:20:19] Production.INFO: ProcessCDR(1,14148393,1,1,2) [2025-01-01 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148393', 'tblTempUsageDetail_20' ) start [2025-01-01 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148393', 'tblTempUsageDetail_20' ) end [2025-01-01 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:20:22] Production.INFO: ==2611== Releasing lock... [2025-01-01 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:20:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-01 04:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:21:04 [end_date_ymd] => 2025-01-01 04:21:04 [RateCDR] => 1 ) [2025-01-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-01-01 01:21:04' and `end` < '2025-01-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-01-01 04:21:19] Production.INFO: count ==386 [2025-01-01 04:21:19] Production.ERROR: pbx CDR StartTime 2025-01-01 01:21:04 - End Time 2025-01-01 04:21:04 [2025-01-01 04:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148398', 'tblTempUsageDetail_20' ) start [2025-01-01 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148398', 'tblTempUsageDetail_20' ) end [2025-01-01 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148398', 'tblTempVendorCDR_20' ) start [2025-01-01 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148398', 'tblTempVendorCDR_20' ) end [2025-01-01 04:21:19] Production.INFO: ProcessCDR(1,14148398,1,1,2) [2025-01-01 04:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148398', 'tblTempUsageDetail_20' ) start [2025-01-01 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148398', 'tblTempUsageDetail_20' ) end [2025-01-01 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:21:22] Production.INFO: ==2727== Releasing lock... [2025-01-01 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:21:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-01 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:22:05 [end_date_ymd] => 2025-01-01 04:22:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:22:05' and `end` < '2025-01-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-01-01 04:22:17] Production.INFO: count ==386 [2025-01-01 04:22:17] Production.ERROR: pbx CDR StartTime 2025-01-01 01:22:05 - End Time 2025-01-01 04:22:05 [2025-01-01 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148403', 'tblTempUsageDetail_20' ) start [2025-01-01 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148403', 'tblTempUsageDetail_20' ) end [2025-01-01 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148403', 'tblTempVendorCDR_20' ) start [2025-01-01 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148403', 'tblTempVendorCDR_20' ) end [2025-01-01 04:22:17] Production.INFO: ProcessCDR(1,14148403,1,1,2) [2025-01-01 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148403', 'tblTempUsageDetail_20' ) start [2025-01-01 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148403', 'tblTempUsageDetail_20' ) end [2025-01-01 04:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:22:20] Production.INFO: ==2814== Releasing lock... [2025-01-01 04:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:22:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-01 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:23:05 [end_date_ymd] => 2025-01-01 04:23:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:23:05' and `end` < '2025-01-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-01-01 04:23:18] Production.INFO: count ==386 [2025-01-01 04:23:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:23:05 - End Time 2025-01-01 04:23:05 [2025-01-01 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148408', 'tblTempUsageDetail_20' ) start [2025-01-01 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148408', 'tblTempUsageDetail_20' ) end [2025-01-01 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148408', 'tblTempVendorCDR_20' ) start [2025-01-01 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148408', 'tblTempVendorCDR_20' ) end [2025-01-01 04:23:18] Production.INFO: ProcessCDR(1,14148408,1,1,2) [2025-01-01 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148408', 'tblTempUsageDetail_20' ) start [2025-01-01 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148408', 'tblTempUsageDetail_20' ) end [2025-01-01 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:23:21] Production.INFO: ==2926== Releasing lock... [2025-01-01 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:23:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-01 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:24:05 [end_date_ymd] => 2025-01-01 04:24:05 [RateCDR] => 1 ) [2025-01-01 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 01:24:05' and `end` < '2025-01-01 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 04:24:17] Production.INFO: count ==385 [2025-01-01 04:24:17] Production.ERROR: pbx CDR StartTime 2025-01-01 01:24:05 - End Time 2025-01-01 04:24:05 [2025-01-01 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148413', 'tblTempUsageDetail_20' ) start [2025-01-01 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148413', 'tblTempUsageDetail_20' ) end [2025-01-01 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148413', 'tblTempVendorCDR_20' ) start [2025-01-01 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148413', 'tblTempVendorCDR_20' ) end [2025-01-01 04:24:17] Production.INFO: ProcessCDR(1,14148413,1,1,2) [2025-01-01 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148413', 'tblTempUsageDetail_20' ) start [2025-01-01 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148413', 'tblTempUsageDetail_20' ) end [2025-01-01 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:24:20] Production.INFO: ==3036== Releasing lock... [2025-01-01 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:24:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-01 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:25:05 [end_date_ymd] => 2025-01-01 04:25:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:25:05' and `end` < '2025-01-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-01-01 04:25:18] Production.INFO: count ==385 [2025-01-01 04:25:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:25:05 - End Time 2025-01-01 04:25:05 [2025-01-01 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148418', 'tblTempUsageDetail_20' ) start [2025-01-01 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148418', 'tblTempUsageDetail_20' ) end [2025-01-01 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148418', 'tblTempVendorCDR_20' ) start [2025-01-01 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148418', 'tblTempVendorCDR_20' ) end [2025-01-01 04:25:18] Production.INFO: ProcessCDR(1,14148418,1,1,2) [2025-01-01 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148418', 'tblTempUsageDetail_20' ) start [2025-01-01 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148418', 'tblTempUsageDetail_20' ) end [2025-01-01 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:25:21] Production.INFO: ==3149== Releasing lock... [2025-01-01 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-01 04:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:26:04 [end_date_ymd] => 2025-01-01 04:26:04 [RateCDR] => 1 ) [2025-01-01 04: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-01-01 01:26:04' and `end` < '2025-01-01 04: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-01-01 04:26:17] Production.INFO: count ==385 [2025-01-01 04:26:17] Production.ERROR: pbx CDR StartTime 2025-01-01 01:26:04 - End Time 2025-01-01 04:26:04 [2025-01-01 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148423', 'tblTempUsageDetail_20' ) start [2025-01-01 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148423', 'tblTempUsageDetail_20' ) end [2025-01-01 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148423', 'tblTempVendorCDR_20' ) start [2025-01-01 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148423', 'tblTempVendorCDR_20' ) end [2025-01-01 04:26:17] Production.INFO: ProcessCDR(1,14148423,1,1,2) [2025-01-01 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148423', 'tblTempUsageDetail_20' ) start [2025-01-01 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148423', 'tblTempUsageDetail_20' ) end [2025-01-01 04:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:26:20] Production.INFO: ==3260== Releasing lock... [2025-01-01 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:26:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-01 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:27:05 [end_date_ymd] => 2025-01-01 04:27:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:27:05' and `end` < '2025-01-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-01-01 04:27:18] Production.INFO: count ==384 [2025-01-01 04:27:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:27:05 - End Time 2025-01-01 04:27:05 [2025-01-01 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148428', 'tblTempUsageDetail_20' ) start [2025-01-01 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148428', 'tblTempUsageDetail_20' ) end [2025-01-01 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148428', 'tblTempVendorCDR_20' ) start [2025-01-01 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148428', 'tblTempVendorCDR_20' ) end [2025-01-01 04:27:18] Production.INFO: ProcessCDR(1,14148428,1,1,2) [2025-01-01 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148428', 'tblTempUsageDetail_20' ) start [2025-01-01 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148428', 'tblTempUsageDetail_20' ) end [2025-01-01 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:27:22] Production.INFO: ==3374== Releasing lock... [2025-01-01 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:27:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-01 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:28:05 [end_date_ymd] => 2025-01-01 04:28:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:28:05' and `end` < '2025-01-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-01-01 04:28:18] Production.INFO: count ==383 [2025-01-01 04:28:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:28:05 - End Time 2025-01-01 04:28:05 [2025-01-01 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148433', 'tblTempUsageDetail_20' ) start [2025-01-01 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148433', 'tblTempUsageDetail_20' ) end [2025-01-01 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148433', 'tblTempVendorCDR_20' ) start [2025-01-01 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148433', 'tblTempVendorCDR_20' ) end [2025-01-01 04:28:18] Production.INFO: ProcessCDR(1,14148433,1,1,2) [2025-01-01 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148433', 'tblTempUsageDetail_20' ) start [2025-01-01 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148433', 'tblTempUsageDetail_20' ) end [2025-01-01 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:28:21] Production.INFO: ==3485== Releasing lock... [2025-01-01 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-01 04:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:29:04 [end_date_ymd] => 2025-01-01 04:29:04 [RateCDR] => 1 ) [2025-01-01 04: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-01-01 01:29:04' and `end` < '2025-01-01 04: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-01-01 04:29:17] Production.INFO: count ==383 [2025-01-01 04:29:17] Production.ERROR: pbx CDR StartTime 2025-01-01 01:29:04 - End Time 2025-01-01 04:29:04 [2025-01-01 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148438', 'tblTempUsageDetail_20' ) start [2025-01-01 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148438', 'tblTempUsageDetail_20' ) end [2025-01-01 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148438', 'tblTempVendorCDR_20' ) start [2025-01-01 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148438', 'tblTempVendorCDR_20' ) end [2025-01-01 04:29:17] Production.INFO: ProcessCDR(1,14148438,1,1,2) [2025-01-01 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148438', 'tblTempUsageDetail_20' ) start [2025-01-01 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148438', 'tblTempUsageDetail_20' ) end [2025-01-01 04:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:29:20] Production.INFO: ==3593== Releasing lock... [2025-01-01 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:29:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-01 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:30:06 [end_date_ymd] => 2025-01-01 04:30:06 [RateCDR] => 1 ) [2025-01-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-01-01 01:30:06' and `end` < '2025-01-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-01-01 04:30:19] Production.INFO: count ==377 [2025-01-01 04:30:19] Production.ERROR: pbx CDR StartTime 2025-01-01 01:30:06 - End Time 2025-01-01 04:30:06 [2025-01-01 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148445', 'tblTempUsageDetail_20' ) start [2025-01-01 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148445', 'tblTempUsageDetail_20' ) end [2025-01-01 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148445', 'tblTempVendorCDR_20' ) start [2025-01-01 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148445', 'tblTempVendorCDR_20' ) end [2025-01-01 04:30:19] Production.INFO: ProcessCDR(1,14148445,1,1,2) [2025-01-01 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148445', 'tblTempUsageDetail_20' ) start [2025-01-01 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148445', 'tblTempUsageDetail_20' ) end [2025-01-01 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:30:23] Production.INFO: ==3711== Releasing lock... [2025-01-01 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:30:23] Production.INFO: 30 MB #Memory Used# [2025-01-01 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:31:06 [end_date_ymd] => 2025-01-01 04:31:06 [RateCDR] => 1 ) [2025-01-01 04:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 01:31:06' and `end` < '2025-01-01 04:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 04:31:19] Production.INFO: count ==358 [2025-01-01 04:31:19] Production.ERROR: pbx CDR StartTime 2025-01-01 01:31:06 - End Time 2025-01-01 04:31:06 [2025-01-01 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148450', 'tblTempUsageDetail_20' ) start [2025-01-01 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148450', 'tblTempUsageDetail_20' ) end [2025-01-01 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148450', 'tblTempVendorCDR_20' ) start [2025-01-01 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148450', 'tblTempVendorCDR_20' ) end [2025-01-01 04:31:19] Production.INFO: ProcessCDR(1,14148450,1,1,2) [2025-01-01 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148450', 'tblTempUsageDetail_20' ) start [2025-01-01 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148450', 'tblTempUsageDetail_20' ) end [2025-01-01 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:31:22] Production.INFO: ==4096== Releasing lock... [2025-01-01 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:31:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-01 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:32:05 [end_date_ymd] => 2025-01-01 04:32:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:32:05' and `end` < '2025-01-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-01-01 04:32:19] Production.INFO: count ==358 [2025-01-01 04:32:19] Production.ERROR: pbx CDR StartTime 2025-01-01 01:32:05 - End Time 2025-01-01 04:32:05 [2025-01-01 04:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148455', 'tblTempUsageDetail_20' ) start [2025-01-01 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148455', 'tblTempUsageDetail_20' ) end [2025-01-01 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148455', 'tblTempVendorCDR_20' ) start [2025-01-01 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148455', 'tblTempVendorCDR_20' ) end [2025-01-01 04:32:19] Production.INFO: ProcessCDR(1,14148455,1,1,2) [2025-01-01 04:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148455', 'tblTempUsageDetail_20' ) start [2025-01-01 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148455', 'tblTempUsageDetail_20' ) end [2025-01-01 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:32:22] Production.INFO: ==4266== Releasing lock... [2025-01-01 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:32:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-01 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:33:05 [end_date_ymd] => 2025-01-01 04:33:05 [RateCDR] => 1 ) [2025-01-01 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 01:33:05' and `end` < '2025-01-01 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 04:33:18] Production.INFO: count ==353 [2025-01-01 04:33:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:33:05 - End Time 2025-01-01 04:33:05 [2025-01-01 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148460', 'tblTempUsageDetail_20' ) start [2025-01-01 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148460', 'tblTempUsageDetail_20' ) end [2025-01-01 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148460', 'tblTempVendorCDR_20' ) start [2025-01-01 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148460', 'tblTempVendorCDR_20' ) end [2025-01-01 04:33:18] Production.INFO: ProcessCDR(1,14148460,1,1,2) [2025-01-01 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148460', 'tblTempUsageDetail_20' ) start [2025-01-01 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148460', 'tblTempUsageDetail_20' ) end [2025-01-01 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:33:21] Production.INFO: ==4377== Releasing lock... [2025-01-01 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-01 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:34:05 [end_date_ymd] => 2025-01-01 04:34:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:34:05' and `end` < '2025-01-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-01-01 04:34:18] Production.INFO: count ==352 [2025-01-01 04:34:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:34:05 - End Time 2025-01-01 04:34:05 [2025-01-01 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148465', 'tblTempUsageDetail_20' ) start [2025-01-01 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148465', 'tblTempUsageDetail_20' ) end [2025-01-01 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148465', 'tblTempVendorCDR_20' ) start [2025-01-01 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148465', 'tblTempVendorCDR_20' ) end [2025-01-01 04:34:18] Production.INFO: ProcessCDR(1,14148465,1,1,2) [2025-01-01 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148465', 'tblTempUsageDetail_20' ) start [2025-01-01 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148465', 'tblTempUsageDetail_20' ) end [2025-01-01 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:34:21] Production.INFO: ==4488== Releasing lock... [2025-01-01 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:34:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-01 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:35:05 [end_date_ymd] => 2025-01-01 04:35:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:35:05' and `end` < '2025-01-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-01-01 04:35:17] Production.INFO: count ==345 [2025-01-01 04:35:17] Production.ERROR: pbx CDR StartTime 2025-01-01 01:35:05 - End Time 2025-01-01 04:35:05 [2025-01-01 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148470', 'tblTempUsageDetail_20' ) start [2025-01-01 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148470', 'tblTempUsageDetail_20' ) end [2025-01-01 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148470', 'tblTempVendorCDR_20' ) start [2025-01-01 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148470', 'tblTempVendorCDR_20' ) end [2025-01-01 04:35:17] Production.INFO: ProcessCDR(1,14148470,1,1,2) [2025-01-01 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148470', 'tblTempUsageDetail_20' ) start [2025-01-01 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148470', 'tblTempUsageDetail_20' ) end [2025-01-01 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:35:20] Production.INFO: ==4603== Releasing lock... [2025-01-01 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:35:20] Production.INFO: 30 MB #Memory Used# [2025-01-01 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:36:05 [end_date_ymd] => 2025-01-01 04:36:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:36:05' and `end` < '2025-01-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-01-01 04:36:17] Production.INFO: count ==345 [2025-01-01 04:36:17] Production.ERROR: pbx CDR StartTime 2025-01-01 01:36:05 - End Time 2025-01-01 04:36:05 [2025-01-01 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148475', 'tblTempUsageDetail_20' ) start [2025-01-01 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148475', 'tblTempUsageDetail_20' ) end [2025-01-01 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148475', 'tblTempVendorCDR_20' ) start [2025-01-01 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148475', 'tblTempVendorCDR_20' ) end [2025-01-01 04:36:17] Production.INFO: ProcessCDR(1,14148475,1,1,2) [2025-01-01 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148475', 'tblTempUsageDetail_20' ) start [2025-01-01 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148475', 'tblTempUsageDetail_20' ) end [2025-01-01 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:36:21] Production.INFO: ==4750== Releasing lock... [2025-01-01 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:36:21] Production.INFO: 30 MB #Memory Used# [2025-01-01 04:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:37:04 [end_date_ymd] => 2025-01-01 04:37:04 [RateCDR] => 1 ) [2025-01-01 04: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-01-01 01:37:04' and `end` < '2025-01-01 04: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-01-01 04:37:17] Production.INFO: count ==345 [2025-01-01 04:37:17] Production.ERROR: pbx CDR StartTime 2025-01-01 01:37:04 - End Time 2025-01-01 04:37:04 [2025-01-01 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148480', 'tblTempUsageDetail_20' ) start [2025-01-01 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148480', 'tblTempUsageDetail_20' ) end [2025-01-01 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148480', 'tblTempVendorCDR_20' ) start [2025-01-01 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148480', 'tblTempVendorCDR_20' ) end [2025-01-01 04:37:17] Production.INFO: ProcessCDR(1,14148480,1,1,2) [2025-01-01 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148480', 'tblTempUsageDetail_20' ) start [2025-01-01 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148480', 'tblTempUsageDetail_20' ) end [2025-01-01 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:37:20] Production.INFO: ==4864== Releasing lock... [2025-01-01 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:37:20] Production.INFO: 30 MB #Memory Used# [2025-01-01 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:38:05 [end_date_ymd] => 2025-01-01 04:38:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:38:05' and `end` < '2025-01-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-01-01 04:38:19] Production.INFO: count ==345 [2025-01-01 04:38:19] Production.ERROR: pbx CDR StartTime 2025-01-01 01:38:05 - End Time 2025-01-01 04:38:05 [2025-01-01 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148485', 'tblTempUsageDetail_20' ) start [2025-01-01 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148485', 'tblTempUsageDetail_20' ) end [2025-01-01 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148485', 'tblTempVendorCDR_20' ) start [2025-01-01 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148485', 'tblTempVendorCDR_20' ) end [2025-01-01 04:38:19] Production.INFO: ProcessCDR(1,14148485,1,1,2) [2025-01-01 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148485', 'tblTempUsageDetail_20' ) start [2025-01-01 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148485', 'tblTempUsageDetail_20' ) end [2025-01-01 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:38:22] Production.INFO: ==4971== Releasing lock... [2025-01-01 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:38:22] Production.INFO: 30 MB #Memory Used# [2025-01-01 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:39:05 [end_date_ymd] => 2025-01-01 04:39:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:39:05' and `end` < '2025-01-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-01-01 04:39:18] Production.INFO: count ==344 [2025-01-01 04:39:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:39:05 - End Time 2025-01-01 04:39:05 [2025-01-01 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148490', 'tblTempUsageDetail_20' ) start [2025-01-01 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148490', 'tblTempUsageDetail_20' ) end [2025-01-01 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148490', 'tblTempVendorCDR_20' ) start [2025-01-01 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148490', 'tblTempVendorCDR_20' ) end [2025-01-01 04:39:18] Production.INFO: ProcessCDR(1,14148490,1,1,2) [2025-01-01 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148490', 'tblTempUsageDetail_20' ) start [2025-01-01 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148490', 'tblTempUsageDetail_20' ) end [2025-01-01 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:39:21] Production.INFO: ==5081== Releasing lock... [2025-01-01 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-01 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:40:05 [end_date_ymd] => 2025-01-01 04:40:05 [RateCDR] => 1 ) [2025-01-01 04: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-01-01 01:40:05' and `end` < '2025-01-01 04: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-01-01 04:40:18] Production.INFO: count ==336 [2025-01-01 04:40:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:40:05 - End Time 2025-01-01 04:40:05 [2025-01-01 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148495', 'tblTempUsageDetail_20' ) start [2025-01-01 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148495', 'tblTempUsageDetail_20' ) end [2025-01-01 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148495', 'tblTempVendorCDR_20' ) start [2025-01-01 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148495', 'tblTempVendorCDR_20' ) end [2025-01-01 04:40:18] Production.INFO: ProcessCDR(1,14148495,1,1,2) [2025-01-01 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148495', 'tblTempUsageDetail_20' ) start [2025-01-01 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148495', 'tblTempUsageDetail_20' ) end [2025-01-01 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:40:21] Production.INFO: ==5193== Releasing lock... [2025-01-01 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:40:21] Production.INFO: 30 MB #Memory Used# [2025-01-01 04:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:41:06 [end_date_ymd] => 2025-01-01 04:41:06 [RateCDR] => 1 ) [2025-01-01 04:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 01:41:06' and `end` < '2025-01-01 04:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 04:41:18] Production.INFO: count ==295 [2025-01-01 04:41:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:41:06 - End Time 2025-01-01 04:41:06 [2025-01-01 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148501', 'tblTempUsageDetail_20' ) start [2025-01-01 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148501', 'tblTempUsageDetail_20' ) end [2025-01-01 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148501', 'tblTempVendorCDR_20' ) start [2025-01-01 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148501', 'tblTempVendorCDR_20' ) end [2025-01-01 04:41:18] Production.INFO: ProcessCDR(1,14148501,1,1,2) [2025-01-01 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148501', 'tblTempUsageDetail_20' ) start [2025-01-01 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148501', 'tblTempUsageDetail_20' ) end [2025-01-01 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:41:21] Production.INFO: ==5309== Releasing lock... [2025-01-01 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:41:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-01 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:42:05 [end_date_ymd] => 2025-01-01 04:42:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:42:05' and `end` < '2025-01-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-01-01 04:42:17] Production.INFO: count ==295 [2025-01-01 04:42:17] Production.ERROR: pbx CDR StartTime 2025-01-01 01:42:05 - End Time 2025-01-01 04:42:05 [2025-01-01 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148506', 'tblTempUsageDetail_20' ) start [2025-01-01 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148506', 'tblTempUsageDetail_20' ) end [2025-01-01 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148506', 'tblTempVendorCDR_20' ) start [2025-01-01 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148506', 'tblTempVendorCDR_20' ) end [2025-01-01 04:42:17] Production.INFO: ProcessCDR(1,14148506,1,1,2) [2025-01-01 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148506', 'tblTempUsageDetail_20' ) start [2025-01-01 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148506', 'tblTempUsageDetail_20' ) end [2025-01-01 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:42:22] Production.INFO: ==5415== Releasing lock... [2025-01-01 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:42:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-01 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:43:05 [end_date_ymd] => 2025-01-01 04:43:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:43:05' and `end` < '2025-01-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-01-01 04:43:18] Production.INFO: count ==295 [2025-01-01 04:43:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:43:05 - End Time 2025-01-01 04:43:05 [2025-01-01 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148511', 'tblTempUsageDetail_20' ) start [2025-01-01 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148511', 'tblTempUsageDetail_20' ) end [2025-01-01 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148511', 'tblTempVendorCDR_20' ) start [2025-01-01 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148511', 'tblTempVendorCDR_20' ) end [2025-01-01 04:43:18] Production.INFO: ProcessCDR(1,14148511,1,1,2) [2025-01-01 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148511', 'tblTempUsageDetail_20' ) start [2025-01-01 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148511', 'tblTempUsageDetail_20' ) end [2025-01-01 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:43:21] Production.INFO: ==5532== Releasing lock... [2025-01-01 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:43:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-01 04:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:44:04 [end_date_ymd] => 2025-01-01 04:44:04 [RateCDR] => 1 ) [2025-01-01 04: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-01 01:44:04' and `end` < '2025-01-01 04: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-01-01 04:44:18] Production.INFO: count ==295 [2025-01-01 04:44:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:44:04 - End Time 2025-01-01 04:44:04 [2025-01-01 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148515', 'tblTempUsageDetail_20' ) start [2025-01-01 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148515', 'tblTempUsageDetail_20' ) end [2025-01-01 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148515', 'tblTempVendorCDR_20' ) start [2025-01-01 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148515', 'tblTempVendorCDR_20' ) end [2025-01-01 04:44:18] Production.INFO: ProcessCDR(1,14148515,1,1,2) [2025-01-01 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148515', 'tblTempUsageDetail_20' ) start [2025-01-01 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148515', 'tblTempUsageDetail_20' ) end [2025-01-01 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:44:21] Production.INFO: ==5638== Releasing lock... [2025-01-01 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:44:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-01 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:45:05 [end_date_ymd] => 2025-01-01 04:45:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:45:05' and `end` < '2025-01-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-01-01 04:45:18] Production.INFO: count ==295 [2025-01-01 04:45:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:45:05 - End Time 2025-01-01 04:45:05 [2025-01-01 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148521', 'tblTempUsageDetail_20' ) start [2025-01-01 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148521', 'tblTempUsageDetail_20' ) end [2025-01-01 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148521', 'tblTempVendorCDR_20' ) start [2025-01-01 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148521', 'tblTempVendorCDR_20' ) end [2025-01-01 04:45:18] Production.INFO: ProcessCDR(1,14148521,1,1,2) [2025-01-01 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148521', 'tblTempUsageDetail_20' ) start [2025-01-01 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148521', 'tblTempUsageDetail_20' ) end [2025-01-01 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:45:21] Production.INFO: ==5752== Releasing lock... [2025-01-01 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:45:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-01 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:46:05 [end_date_ymd] => 2025-01-01 04:46:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:46:05' and `end` < '2025-01-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-01-01 04:46:22] Production.INFO: count ==295 [2025-01-01 04:46:22] Production.ERROR: pbx CDR StartTime 2025-01-01 01:46:05 - End Time 2025-01-01 04:46:05 [2025-01-01 04:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148526', 'tblTempUsageDetail_20' ) start [2025-01-01 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148526', 'tblTempUsageDetail_20' ) end [2025-01-01 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148526', 'tblTempVendorCDR_20' ) start [2025-01-01 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148526', 'tblTempVendorCDR_20' ) end [2025-01-01 04:46:22] Production.INFO: ProcessCDR(1,14148526,1,1,2) [2025-01-01 04:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148526', 'tblTempUsageDetail_20' ) start [2025-01-01 04:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148526', 'tblTempUsageDetail_20' ) end [2025-01-01 04:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:46:25] Production.INFO: ==5863== Releasing lock... [2025-01-01 04:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:46:25] Production.INFO: 29.75 MB #Memory Used# [2025-01-01 04:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:47:06 [end_date_ymd] => 2025-01-01 04:47:06 [RateCDR] => 1 ) [2025-01-01 04:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 01:47:06' and `end` < '2025-01-01 04:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 04:47:19] Production.INFO: count ==294 [2025-01-01 04:47:19] Production.ERROR: pbx CDR StartTime 2025-01-01 01:47:06 - End Time 2025-01-01 04:47:06 [2025-01-01 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148531', 'tblTempUsageDetail_20' ) start [2025-01-01 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148531', 'tblTempUsageDetail_20' ) end [2025-01-01 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148531', 'tblTempVendorCDR_20' ) start [2025-01-01 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148531', 'tblTempVendorCDR_20' ) end [2025-01-01 04:47:19] Production.INFO: ProcessCDR(1,14148531,1,1,2) [2025-01-01 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148531', 'tblTempUsageDetail_20' ) start [2025-01-01 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148531', 'tblTempUsageDetail_20' ) end [2025-01-01 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:47:22] Production.INFO: ==5972== Releasing lock... [2025-01-01 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:47:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-01 04:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:48:04 [end_date_ymd] => 2025-01-01 04:48:04 [RateCDR] => 1 ) [2025-01-01 04: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-01-01 01:48:04' and `end` < '2025-01-01 04: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-01-01 04:48:19] Production.INFO: count ==294 [2025-01-01 04:48:19] Production.ERROR: pbx CDR StartTime 2025-01-01 01:48:04 - End Time 2025-01-01 04:48:04 [2025-01-01 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148536', 'tblTempUsageDetail_20' ) start [2025-01-01 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148536', 'tblTempUsageDetail_20' ) end [2025-01-01 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148536', 'tblTempVendorCDR_20' ) start [2025-01-01 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148536', 'tblTempVendorCDR_20' ) end [2025-01-01 04:48:19] Production.INFO: ProcessCDR(1,14148536,1,1,2) [2025-01-01 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148536', 'tblTempUsageDetail_20' ) start [2025-01-01 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148536', 'tblTempUsageDetail_20' ) end [2025-01-01 04:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:48:23] Production.INFO: ==6088== Releasing lock... [2025-01-01 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:48:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-01 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:49:05 [end_date_ymd] => 2025-01-01 04:49:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:49:05' and `end` < '2025-01-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-01-01 04:49:19] Production.INFO: count ==290 [2025-01-01 04:49:19] Production.ERROR: pbx CDR StartTime 2025-01-01 01:49:05 - End Time 2025-01-01 04:49:05 [2025-01-01 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148541', 'tblTempUsageDetail_20' ) start [2025-01-01 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148541', 'tblTempUsageDetail_20' ) end [2025-01-01 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148541', 'tblTempVendorCDR_20' ) start [2025-01-01 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148541', 'tblTempVendorCDR_20' ) end [2025-01-01 04:49:19] Production.INFO: ProcessCDR(1,14148541,1,1,2) [2025-01-01 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148541', 'tblTempUsageDetail_20' ) start [2025-01-01 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148541', 'tblTempUsageDetail_20' ) end [2025-01-01 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:49:22] Production.INFO: ==6168== Releasing lock... [2025-01-01 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:49:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:50:06 [end_date_ymd] => 2025-01-01 04:50:06 [RateCDR] => 1 ) [2025-01-01 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 01:50:06' and `end` < '2025-01-01 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 04:50:19] Production.INFO: count ==282 [2025-01-01 04:50:19] Production.ERROR: pbx CDR StartTime 2025-01-01 01:50:06 - End Time 2025-01-01 04:50:06 [2025-01-01 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148547', 'tblTempUsageDetail_20' ) start [2025-01-01 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148547', 'tblTempUsageDetail_20' ) end [2025-01-01 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148547', 'tblTempVendorCDR_20' ) start [2025-01-01 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148547', 'tblTempVendorCDR_20' ) end [2025-01-01 04:50:19] Production.INFO: ProcessCDR(1,14148547,1,1,2) [2025-01-01 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148547', 'tblTempUsageDetail_20' ) start [2025-01-01 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148547', 'tblTempUsageDetail_20' ) end [2025-01-01 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:50:22] Production.INFO: ==6246== Releasing lock... [2025-01-01 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:51:05 [end_date_ymd] => 2025-01-01 04:51:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:51:05' and `end` < '2025-01-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-01-01 04:51:19] Production.INFO: count ==276 [2025-01-01 04:51:19] Production.ERROR: pbx CDR StartTime 2025-01-01 01:51:05 - End Time 2025-01-01 04:51:05 [2025-01-01 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148552', 'tblTempUsageDetail_20' ) start [2025-01-01 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148552', 'tblTempUsageDetail_20' ) end [2025-01-01 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148552', 'tblTempVendorCDR_20' ) start [2025-01-01 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148552', 'tblTempVendorCDR_20' ) end [2025-01-01 04:51:19] Production.INFO: ProcessCDR(1,14148552,1,1,2) [2025-01-01 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148552', 'tblTempUsageDetail_20' ) start [2025-01-01 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148552', 'tblTempUsageDetail_20' ) end [2025-01-01 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:51:22] Production.INFO: ==6327== Releasing lock... [2025-01-01 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:51:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:52:05 [end_date_ymd] => 2025-01-01 04:52:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:52:05' and `end` < '2025-01-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-01-01 04:52:20] Production.INFO: count ==276 [2025-01-01 04:52:20] Production.ERROR: pbx CDR StartTime 2025-01-01 01:52:05 - End Time 2025-01-01 04:52:05 [2025-01-01 04:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148557', 'tblTempUsageDetail_20' ) start [2025-01-01 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148557', 'tblTempUsageDetail_20' ) end [2025-01-01 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148557', 'tblTempVendorCDR_20' ) start [2025-01-01 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148557', 'tblTempVendorCDR_20' ) end [2025-01-01 04:52:20] Production.INFO: ProcessCDR(1,14148557,1,1,2) [2025-01-01 04:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148557', 'tblTempUsageDetail_20' ) start [2025-01-01 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148557', 'tblTempUsageDetail_20' ) end [2025-01-01 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:52:23] Production.INFO: ==6444== Releasing lock... [2025-01-01 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:52:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:53:05 [end_date_ymd] => 2025-01-01 04:53:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:53:05' and `end` < '2025-01-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-01-01 04:53:18] Production.INFO: count ==276 [2025-01-01 04:53:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:53:05 - End Time 2025-01-01 04:53:05 [2025-01-01 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148562', 'tblTempUsageDetail_20' ) start [2025-01-01 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148562', 'tblTempUsageDetail_20' ) end [2025-01-01 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148562', 'tblTempVendorCDR_20' ) start [2025-01-01 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148562', 'tblTempVendorCDR_20' ) end [2025-01-01 04:53:18] Production.INFO: ProcessCDR(1,14148562,1,1,2) [2025-01-01 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148562', 'tblTempUsageDetail_20' ) start [2025-01-01 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148562', 'tblTempUsageDetail_20' ) end [2025-01-01 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:53:21] Production.INFO: ==6524== Releasing lock... [2025-01-01 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:54:05 [end_date_ymd] => 2025-01-01 04:54:05 [RateCDR] => 1 ) [2025-01-01 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 01:54:05' and `end` < '2025-01-01 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 04:54:19] Production.INFO: count ==276 [2025-01-01 04:54:19] Production.ERROR: pbx CDR StartTime 2025-01-01 01:54:05 - End Time 2025-01-01 04:54:05 [2025-01-01 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148567', 'tblTempUsageDetail_20' ) start [2025-01-01 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148567', 'tblTempUsageDetail_20' ) end [2025-01-01 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148567', 'tblTempVendorCDR_20' ) start [2025-01-01 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148567', 'tblTempVendorCDR_20' ) end [2025-01-01 04:54:19] Production.INFO: ProcessCDR(1,14148567,1,1,2) [2025-01-01 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148567', 'tblTempUsageDetail_20' ) start [2025-01-01 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148567', 'tblTempUsageDetail_20' ) end [2025-01-01 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:54:22] Production.INFO: ==6600== Releasing lock... [2025-01-01 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:54:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:55:05 [end_date_ymd] => 2025-01-01 04:55:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:55:05' and `end` < '2025-01-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-01-01 04:55:18] Production.INFO: count ==276 [2025-01-01 04:55:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:55:05 - End Time 2025-01-01 04:55:05 [2025-01-01 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148572', 'tblTempUsageDetail_20' ) start [2025-01-01 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148572', 'tblTempUsageDetail_20' ) end [2025-01-01 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148572', 'tblTempVendorCDR_20' ) start [2025-01-01 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148572', 'tblTempVendorCDR_20' ) end [2025-01-01 04:55:18] Production.INFO: ProcessCDR(1,14148572,1,1,2) [2025-01-01 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148572', 'tblTempUsageDetail_20' ) start [2025-01-01 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148572', 'tblTempUsageDetail_20' ) end [2025-01-01 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:55:22] Production.INFO: ==6679== Releasing lock... [2025-01-01 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:55:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:56:06 [end_date_ymd] => 2025-01-01 04:56:06 [RateCDR] => 1 ) [2025-01-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-01-01 01:56:06' and `end` < '2025-01-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-01-01 04:56:19] Production.INFO: count ==276 [2025-01-01 04:56:19] Production.ERROR: pbx CDR StartTime 2025-01-01 01:56:06 - End Time 2025-01-01 04:56:06 [2025-01-01 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148577', 'tblTempUsageDetail_20' ) start [2025-01-01 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148577', 'tblTempUsageDetail_20' ) end [2025-01-01 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148577', 'tblTempVendorCDR_20' ) start [2025-01-01 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148577', 'tblTempVendorCDR_20' ) end [2025-01-01 04:56:19] Production.INFO: ProcessCDR(1,14148577,1,1,2) [2025-01-01 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148577', 'tblTempUsageDetail_20' ) start [2025-01-01 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148577', 'tblTempUsageDetail_20' ) end [2025-01-01 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:56:22] Production.INFO: ==6758== Releasing lock... [2025-01-01 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:56:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:57:05 [end_date_ymd] => 2025-01-01 04:57:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:57:05' and `end` < '2025-01-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-01-01 04:57:18] Production.INFO: count ==272 [2025-01-01 04:57:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:57:05 - End Time 2025-01-01 04:57:05 [2025-01-01 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148582', 'tblTempUsageDetail_20' ) start [2025-01-01 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148582', 'tblTempUsageDetail_20' ) end [2025-01-01 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148582', 'tblTempVendorCDR_20' ) start [2025-01-01 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148582', 'tblTempVendorCDR_20' ) end [2025-01-01 04:57:18] Production.INFO: ProcessCDR(1,14148582,1,1,2) [2025-01-01 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148582', 'tblTempUsageDetail_20' ) start [2025-01-01 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148582', 'tblTempUsageDetail_20' ) end [2025-01-01 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:57:21] Production.INFO: ==6834== Releasing lock... [2025-01-01 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:58:05 [end_date_ymd] => 2025-01-01 04:58:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:58:05' and `end` < '2025-01-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-01-01 04:58:18] Production.INFO: count ==272 [2025-01-01 04:58:18] Production.ERROR: pbx CDR StartTime 2025-01-01 01:58:05 - End Time 2025-01-01 04:58:05 [2025-01-01 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148587', 'tblTempUsageDetail_20' ) start [2025-01-01 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148587', 'tblTempUsageDetail_20' ) end [2025-01-01 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148587', 'tblTempVendorCDR_20' ) start [2025-01-01 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148587', 'tblTempVendorCDR_20' ) end [2025-01-01 04:58:18] Production.INFO: ProcessCDR(1,14148587,1,1,2) [2025-01-01 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148587', 'tblTempUsageDetail_20' ) start [2025-01-01 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148587', 'tblTempUsageDetail_20' ) end [2025-01-01 04:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:58:21] Production.INFO: ==6912== Releasing lock... [2025-01-01 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:58:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 01:59:05 [end_date_ymd] => 2025-01-01 04:59:05 [RateCDR] => 1 ) [2025-01-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-01-01 01:59:05' and `end` < '2025-01-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-01-01 04:59:20] Production.INFO: count ==270 [2025-01-01 04:59:20] Production.ERROR: pbx CDR StartTime 2025-01-01 01:59:05 - End Time 2025-01-01 04:59:05 [2025-01-01 04:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148592', 'tblTempUsageDetail_20' ) start [2025-01-01 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148592', 'tblTempUsageDetail_20' ) end [2025-01-01 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148592', 'tblTempVendorCDR_20' ) start [2025-01-01 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148592', 'tblTempVendorCDR_20' ) end [2025-01-01 04:59:20] Production.INFO: ProcessCDR(1,14148592,1,1,2) [2025-01-01 04:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 04:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148592', 'tblTempUsageDetail_20' ) start [2025-01-01 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148592', 'tblTempUsageDetail_20' ) end [2025-01-01 04:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 04:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 04:59:23] Production.INFO: ==6992== Releasing lock... [2025-01-01 04:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 04:59:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:00:06 [end_date_ymd] => 2025-01-01 05:00:06 [RateCDR] => 1 ) [2025-01-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-01-01 02:00:06' and `end` < '2025-01-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-01-01 05:00:19] Production.INFO: count ==260 [2025-01-01 05:00:19] Production.ERROR: pbx CDR StartTime 2025-01-01 02:00:06 - End Time 2025-01-01 05:00:06 [2025-01-01 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148598', 'tblTempUsageDetail_20' ) start [2025-01-01 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148598', 'tblTempUsageDetail_20' ) end [2025-01-01 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148598', 'tblTempVendorCDR_20' ) start [2025-01-01 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148598', 'tblTempVendorCDR_20' ) end [2025-01-01 05:00:19] Production.INFO: ProcessCDR(1,14148598,1,1,2) [2025-01-01 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148598', 'tblTempUsageDetail_20' ) start [2025-01-01 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148598', 'tblTempUsageDetail_20' ) end [2025-01-01 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:00:22] Production.INFO: ==7072== Releasing lock... [2025-01-01 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:00:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-01 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:01:05 [end_date_ymd] => 2025-01-01 05:01:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:01:05' and `end` < '2025-01-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-01-01 05:01:19] Production.INFO: count ==244 [2025-01-01 05:01:19] Production.ERROR: pbx CDR StartTime 2025-01-01 02:01:05 - End Time 2025-01-01 05:01:05 [2025-01-01 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148603', 'tblTempUsageDetail_20' ) start [2025-01-01 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148603', 'tblTempUsageDetail_20' ) end [2025-01-01 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148603', 'tblTempVendorCDR_20' ) start [2025-01-01 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148603', 'tblTempVendorCDR_20' ) end [2025-01-01 05:01:19] Production.INFO: ProcessCDR(1,14148603,1,1,2) [2025-01-01 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148603', 'tblTempUsageDetail_20' ) start [2025-01-01 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148603', 'tblTempUsageDetail_20' ) end [2025-01-01 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:01:23] Production.INFO: ==7161== Releasing lock... [2025-01-01 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:01:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:02:05 [end_date_ymd] => 2025-01-01 05:02:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:02:05' and `end` < '2025-01-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-01-01 05:02:19] Production.INFO: count ==244 [2025-01-01 05:02:19] Production.ERROR: pbx CDR StartTime 2025-01-01 02:02:05 - End Time 2025-01-01 05:02:05 [2025-01-01 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148608', 'tblTempUsageDetail_20' ) start [2025-01-01 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148608', 'tblTempUsageDetail_20' ) end [2025-01-01 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148608', 'tblTempVendorCDR_20' ) start [2025-01-01 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148608', 'tblTempVendorCDR_20' ) end [2025-01-01 05:02:19] Production.INFO: ProcessCDR(1,14148608,1,1,2) [2025-01-01 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148608', 'tblTempUsageDetail_20' ) start [2025-01-01 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148608', 'tblTempUsageDetail_20' ) end [2025-01-01 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:02:22] Production.INFO: ==7243== Releasing lock... [2025-01-01 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:02:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 05:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:03:04 [end_date_ymd] => 2025-01-01 05:03:04 [RateCDR] => 1 ) [2025-01-01 05: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-01 02:03:04' and `end` < '2025-01-01 05: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-01-01 05:03:28] Production.INFO: count ==243 [2025-01-01 05:03:28] Production.ERROR: pbx CDR StartTime 2025-01-01 02:03:04 - End Time 2025-01-01 05:03:04 [2025-01-01 05:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148613', 'tblTempUsageDetail_20' ) start [2025-01-01 05:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148613', 'tblTempUsageDetail_20' ) end [2025-01-01 05:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148613', 'tblTempVendorCDR_20' ) start [2025-01-01 05:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148613', 'tblTempVendorCDR_20' ) end [2025-01-01 05:03:28] Production.INFO: ProcessCDR(1,14148613,1,1,2) [2025-01-01 05:03:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148613', 'tblTempUsageDetail_20' ) start [2025-01-01 05:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148613', 'tblTempUsageDetail_20' ) end [2025-01-01 05:03:31] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:03:31] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:03:31] Production.INFO: ==7324== Releasing lock... [2025-01-01 05:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:03:31] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:04:05 [end_date_ymd] => 2025-01-01 05:04:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:04:05' and `end` < '2025-01-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-01-01 05:04:18] Production.INFO: count ==243 [2025-01-01 05:04:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:04:05 - End Time 2025-01-01 05:04:05 [2025-01-01 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148618', 'tblTempUsageDetail_20' ) start [2025-01-01 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148618', 'tblTempUsageDetail_20' ) end [2025-01-01 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148618', 'tblTempVendorCDR_20' ) start [2025-01-01 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148618', 'tblTempVendorCDR_20' ) end [2025-01-01 05:04:18] Production.INFO: ProcessCDR(1,14148618,1,1,2) [2025-01-01 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148618', 'tblTempUsageDetail_20' ) start [2025-01-01 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148618', 'tblTempUsageDetail_20' ) end [2025-01-01 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:04:21] Production.INFO: ==7405== Releasing lock... [2025-01-01 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:04:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 05:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:05:04 [end_date_ymd] => 2025-01-01 05:05:04 [RateCDR] => 1 ) [2025-01-01 05: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-01 02:05:04' and `end` < '2025-01-01 05: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-01-01 05:05:17] Production.INFO: count ==243 [2025-01-01 05:05:17] Production.ERROR: pbx CDR StartTime 2025-01-01 02:05:04 - End Time 2025-01-01 05:05:04 [2025-01-01 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148623', 'tblTempUsageDetail_20' ) start [2025-01-01 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148623', 'tblTempUsageDetail_20' ) end [2025-01-01 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148623', 'tblTempVendorCDR_20' ) start [2025-01-01 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148623', 'tblTempVendorCDR_20' ) end [2025-01-01 05:05:17] Production.INFO: ProcessCDR(1,14148623,1,1,2) [2025-01-01 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148623', 'tblTempUsageDetail_20' ) start [2025-01-01 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148623', 'tblTempUsageDetail_20' ) end [2025-01-01 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:05:20] Production.INFO: ==7482== Releasing lock... [2025-01-01 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:05:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:06:05 [end_date_ymd] => 2025-01-01 05:06:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:06:05' and `end` < '2025-01-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-01-01 05:06:19] Production.INFO: count ==243 [2025-01-01 05:06:19] Production.ERROR: pbx CDR StartTime 2025-01-01 02:06:05 - End Time 2025-01-01 05:06:05 [2025-01-01 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148628', 'tblTempUsageDetail_20' ) start [2025-01-01 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148628', 'tblTempUsageDetail_20' ) end [2025-01-01 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148628', 'tblTempVendorCDR_20' ) start [2025-01-01 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148628', 'tblTempVendorCDR_20' ) end [2025-01-01 05:06:19] Production.INFO: ProcessCDR(1,14148628,1,1,2) [2025-01-01 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148628', 'tblTempUsageDetail_20' ) start [2025-01-01 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148628', 'tblTempUsageDetail_20' ) end [2025-01-01 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:06:22] Production.INFO: ==7563== Releasing lock... [2025-01-01 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:06:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:07:05 [end_date_ymd] => 2025-01-01 05:07:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:07:05' and `end` < '2025-01-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-01-01 05:07:19] Production.INFO: count ==243 [2025-01-01 05:07:20] Production.ERROR: pbx CDR StartTime 2025-01-01 02:07:05 - End Time 2025-01-01 05:07:05 [2025-01-01 05:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148633', 'tblTempUsageDetail_20' ) start [2025-01-01 05:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148633', 'tblTempUsageDetail_20' ) end [2025-01-01 05:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148633', 'tblTempVendorCDR_20' ) start [2025-01-01 05:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148633', 'tblTempVendorCDR_20' ) end [2025-01-01 05:07:20] Production.INFO: ProcessCDR(1,14148633,1,1,2) [2025-01-01 05:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148633', 'tblTempUsageDetail_20' ) start [2025-01-01 05:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148633', 'tblTempUsageDetail_20' ) end [2025-01-01 05:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:07:23] Production.INFO: ==7643== Releasing lock... [2025-01-01 05:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:07:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:08:05 [end_date_ymd] => 2025-01-01 05:08:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:08:05' and `end` < '2025-01-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-01-01 05:08:18] Production.INFO: count ==243 [2025-01-01 05:08:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:08:05 - End Time 2025-01-01 05:08:05 [2025-01-01 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148638', 'tblTempUsageDetail_20' ) start [2025-01-01 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148638', 'tblTempUsageDetail_20' ) end [2025-01-01 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148638', 'tblTempVendorCDR_20' ) start [2025-01-01 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148638', 'tblTempVendorCDR_20' ) end [2025-01-01 05:08:18] Production.INFO: ProcessCDR(1,14148638,1,1,2) [2025-01-01 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148638', 'tblTempUsageDetail_20' ) start [2025-01-01 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148638', 'tblTempUsageDetail_20' ) end [2025-01-01 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:08:22] Production.INFO: ==7757== Releasing lock... [2025-01-01 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:08:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 05:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:09:06 [end_date_ymd] => 2025-01-01 05:09:06 [RateCDR] => 1 ) [2025-01-01 05: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-01-01 02:09:06' and `end` < '2025-01-01 05: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-01-01 05:09:18] Production.INFO: count ==240 [2025-01-01 05:09:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:09:06 - End Time 2025-01-01 05:09:06 [2025-01-01 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148643', 'tblTempUsageDetail_20' ) start [2025-01-01 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148643', 'tblTempUsageDetail_20' ) end [2025-01-01 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148643', 'tblTempVendorCDR_20' ) start [2025-01-01 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148643', 'tblTempVendorCDR_20' ) end [2025-01-01 05:09:18] Production.INFO: ProcessCDR(1,14148643,1,1,2) [2025-01-01 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148643', 'tblTempUsageDetail_20' ) start [2025-01-01 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148643', 'tblTempUsageDetail_20' ) end [2025-01-01 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:09:21] Production.INFO: ==7839== Releasing lock... [2025-01-01 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-01 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:10:05 [end_date_ymd] => 2025-01-01 05:10:05 [RateCDR] => 1 ) [2025-01-01 05: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-01 02:10:05' and `end` < '2025-01-01 05: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-01-01 05:10:19] Production.INFO: count ==234 [2025-01-01 05:10:19] Production.ERROR: pbx CDR StartTime 2025-01-01 02:10:05 - End Time 2025-01-01 05:10:05 [2025-01-01 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148649', 'tblTempUsageDetail_20' ) start [2025-01-01 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148649', 'tblTempUsageDetail_20' ) end [2025-01-01 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148649', 'tblTempVendorCDR_20' ) start [2025-01-01 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148649', 'tblTempVendorCDR_20' ) end [2025-01-01 05:10:19] Production.INFO: ProcessCDR(1,14148649,1,1,2) [2025-01-01 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148649', 'tblTempUsageDetail_20' ) start [2025-01-01 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148649', 'tblTempUsageDetail_20' ) end [2025-01-01 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:10:22] Production.INFO: ==7920== Releasing lock... [2025-01-01 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:11:05 [end_date_ymd] => 2025-01-01 05:11:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:11:05' and `end` < '2025-01-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-01-01 05:11:19] Production.INFO: count ==224 [2025-01-01 05:11:19] Production.ERROR: pbx CDR StartTime 2025-01-01 02:11:05 - End Time 2025-01-01 05:11:05 [2025-01-01 05:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148654', 'tblTempUsageDetail_20' ) start [2025-01-01 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148654', 'tblTempUsageDetail_20' ) end [2025-01-01 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148654', 'tblTempVendorCDR_20' ) start [2025-01-01 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148654', 'tblTempVendorCDR_20' ) end [2025-01-01 05:11:19] Production.INFO: ProcessCDR(1,14148654,1,1,2) [2025-01-01 05:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148654', 'tblTempUsageDetail_20' ) start [2025-01-01 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148654', 'tblTempUsageDetail_20' ) end [2025-01-01 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:11:22] Production.INFO: ==8003== Releasing lock... [2025-01-01 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:11:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-01 05:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:12:04 [end_date_ymd] => 2025-01-01 05:12:04 [RateCDR] => 1 ) [2025-01-01 05: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-01-01 02:12:04' and `end` < '2025-01-01 05: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-01-01 05:12:18] Production.INFO: count ==224 [2025-01-01 05:12:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:12:04 - End Time 2025-01-01 05:12:04 [2025-01-01 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148659', 'tblTempUsageDetail_20' ) start [2025-01-01 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148659', 'tblTempUsageDetail_20' ) end [2025-01-01 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148659', 'tblTempVendorCDR_20' ) start [2025-01-01 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148659', 'tblTempVendorCDR_20' ) end [2025-01-01 05:12:18] Production.INFO: ProcessCDR(1,14148659,1,1,2) [2025-01-01 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148659', 'tblTempUsageDetail_20' ) start [2025-01-01 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148659', 'tblTempUsageDetail_20' ) end [2025-01-01 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:12:21] Production.INFO: ==8079== Releasing lock... [2025-01-01 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-01 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:13:05 [end_date_ymd] => 2025-01-01 05:13:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:13:05' and `end` < '2025-01-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-01-01 05:13:17] Production.INFO: count ==224 [2025-01-01 05:13:17] Production.ERROR: pbx CDR StartTime 2025-01-01 02:13:05 - End Time 2025-01-01 05:13:05 [2025-01-01 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148664', 'tblTempUsageDetail_20' ) start [2025-01-01 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148664', 'tblTempUsageDetail_20' ) end [2025-01-01 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148664', 'tblTempVendorCDR_20' ) start [2025-01-01 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148664', 'tblTempVendorCDR_20' ) end [2025-01-01 05:13:17] Production.INFO: ProcessCDR(1,14148664,1,1,2) [2025-01-01 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148664', 'tblTempUsageDetail_20' ) start [2025-01-01 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148664', 'tblTempUsageDetail_20' ) end [2025-01-01 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:13:21] Production.INFO: ==8158== Releasing lock... [2025-01-01 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-01 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:14:05 [end_date_ymd] => 2025-01-01 05:14:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:14:05' and `end` < '2025-01-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-01-01 05:14:19] Production.INFO: count ==203 [2025-01-01 05:14:19] Production.ERROR: pbx CDR StartTime 2025-01-01 02:14:05 - End Time 2025-01-01 05:14:05 [2025-01-01 05:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148669', 'tblTempUsageDetail_20' ) start [2025-01-01 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148669', 'tblTempUsageDetail_20' ) end [2025-01-01 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148669', 'tblTempVendorCDR_20' ) start [2025-01-01 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148669', 'tblTempVendorCDR_20' ) end [2025-01-01 05:14:19] Production.INFO: ProcessCDR(1,14148669,1,1,2) [2025-01-01 05:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148669', 'tblTempUsageDetail_20' ) start [2025-01-01 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148669', 'tblTempUsageDetail_20' ) end [2025-01-01 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:14:22] Production.INFO: ==8240== Releasing lock... [2025-01-01 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:14:22] Production.INFO: 29 MB #Memory Used# [2025-01-01 05:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:15:04 [end_date_ymd] => 2025-01-01 05:15:04 [RateCDR] => 1 ) [2025-01-01 05: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-01-01 02:15:04' and `end` < '2025-01-01 05: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-01-01 05:15:17] Production.INFO: count ==170 [2025-01-01 05:15:17] Production.ERROR: pbx CDR StartTime 2025-01-01 02:15:04 - End Time 2025-01-01 05:15:04 [2025-01-01 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148674', 'tblTempUsageDetail_20' ) start [2025-01-01 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148674', 'tblTempUsageDetail_20' ) end [2025-01-01 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148674', 'tblTempVendorCDR_20' ) start [2025-01-01 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148674', 'tblTempVendorCDR_20' ) end [2025-01-01 05:15:17] Production.INFO: ProcessCDR(1,14148674,1,1,2) [2025-01-01 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148674', 'tblTempUsageDetail_20' ) start [2025-01-01 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148674', 'tblTempUsageDetail_20' ) end [2025-01-01 05:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:15:20] Production.INFO: ==8315== Releasing lock... [2025-01-01 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:15:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:16:05 [end_date_ymd] => 2025-01-01 05:16:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:16:05' and `end` < '2025-01-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-01-01 05:16:17] Production.INFO: count ==165 [2025-01-01 05:16:17] Production.ERROR: pbx CDR StartTime 2025-01-01 02:16:05 - End Time 2025-01-01 05:16:05 [2025-01-01 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148679', 'tblTempUsageDetail_20' ) start [2025-01-01 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148679', 'tblTempUsageDetail_20' ) end [2025-01-01 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148679', 'tblTempVendorCDR_20' ) start [2025-01-01 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148679', 'tblTempVendorCDR_20' ) end [2025-01-01 05:16:17] Production.INFO: ProcessCDR(1,14148679,1,1,2) [2025-01-01 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148679', 'tblTempUsageDetail_20' ) start [2025-01-01 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148679', 'tblTempUsageDetail_20' ) end [2025-01-01 05:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:16:20] Production.INFO: ==8394== Releasing lock... [2025-01-01 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:16:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 05:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:17:04 [end_date_ymd] => 2025-01-01 05:17:04 [RateCDR] => 1 ) [2025-01-01 05:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 02:17:04' and `end` < '2025-01-01 05:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 05:17:17] Production.INFO: count ==165 [2025-01-01 05:17:17] Production.ERROR: pbx CDR StartTime 2025-01-01 02:17:04 - End Time 2025-01-01 05:17:04 [2025-01-01 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148684', 'tblTempUsageDetail_20' ) start [2025-01-01 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148684', 'tblTempUsageDetail_20' ) end [2025-01-01 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148684', 'tblTempVendorCDR_20' ) start [2025-01-01 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148684', 'tblTempVendorCDR_20' ) end [2025-01-01 05:17:17] Production.INFO: ProcessCDR(1,14148684,1,1,2) [2025-01-01 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148684', 'tblTempUsageDetail_20' ) start [2025-01-01 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148684', 'tblTempUsageDetail_20' ) end [2025-01-01 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:17:20] Production.INFO: ==8476== Releasing lock... [2025-01-01 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:17:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:18:05 [end_date_ymd] => 2025-01-01 05:18:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:18:05' and `end` < '2025-01-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-01-01 05:18:18] Production.INFO: count ==165 [2025-01-01 05:18:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:18:05 - End Time 2025-01-01 05:18:05 [2025-01-01 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148689', 'tblTempUsageDetail_20' ) start [2025-01-01 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148689', 'tblTempUsageDetail_20' ) end [2025-01-01 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148689', 'tblTempVendorCDR_20' ) start [2025-01-01 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148689', 'tblTempVendorCDR_20' ) end [2025-01-01 05:18:18] Production.INFO: ProcessCDR(1,14148689,1,1,2) [2025-01-01 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148689', 'tblTempUsageDetail_20' ) start [2025-01-01 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148689', 'tblTempUsageDetail_20' ) end [2025-01-01 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:18:21] Production.INFO: ==8554== Releasing lock... [2025-01-01 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:19:05 [end_date_ymd] => 2025-01-01 05:19:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:19:05' and `end` < '2025-01-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-01-01 05:19:18] Production.INFO: count ==166 [2025-01-01 05:19:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:19:05 - End Time 2025-01-01 05:19:05 [2025-01-01 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148694', 'tblTempUsageDetail_20' ) start [2025-01-01 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148694', 'tblTempUsageDetail_20' ) end [2025-01-01 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148694', 'tblTempVendorCDR_20' ) start [2025-01-01 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148694', 'tblTempVendorCDR_20' ) end [2025-01-01 05:19:18] Production.INFO: ProcessCDR(1,14148694,1,1,2) [2025-01-01 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148694', 'tblTempUsageDetail_20' ) start [2025-01-01 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148694', 'tblTempUsageDetail_20' ) end [2025-01-01 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:19:22] Production.INFO: ==8631== Releasing lock... [2025-01-01 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:19:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:20:05 [end_date_ymd] => 2025-01-01 05:20:05 [RateCDR] => 1 ) [2025-01-01 05:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 02:20:05' and `end` < '2025-01-01 05:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 05:20:18] Production.INFO: count ==161 [2025-01-01 05:20:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:20:05 - End Time 2025-01-01 05:20:05 [2025-01-01 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148699', 'tblTempUsageDetail_20' ) start [2025-01-01 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148699', 'tblTempUsageDetail_20' ) end [2025-01-01 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148699', 'tblTempVendorCDR_20' ) start [2025-01-01 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148699', 'tblTempVendorCDR_20' ) end [2025-01-01 05:20:18] Production.INFO: ProcessCDR(1,14148699,1,1,2) [2025-01-01 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148699', 'tblTempUsageDetail_20' ) start [2025-01-01 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148699', 'tblTempUsageDetail_20' ) end [2025-01-01 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:20:23] Production.INFO: ==8714== Releasing lock... [2025-01-01 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:20:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:21:05 [end_date_ymd] => 2025-01-01 05:21:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:21:05' and `end` < '2025-01-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-01-01 05:21:20] Production.INFO: count ==145 [2025-01-01 05:21:20] Production.ERROR: pbx CDR StartTime 2025-01-01 02:21:05 - End Time 2025-01-01 05:21:05 [2025-01-01 05:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148705', 'tblTempUsageDetail_20' ) start [2025-01-01 05:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148705', 'tblTempUsageDetail_20' ) end [2025-01-01 05:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148705', 'tblTempVendorCDR_20' ) start [2025-01-01 05:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148705', 'tblTempVendorCDR_20' ) end [2025-01-01 05:21:20] Production.INFO: ProcessCDR(1,14148705,1,1,2) [2025-01-01 05:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148705', 'tblTempUsageDetail_20' ) start [2025-01-01 05:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148705', 'tblTempUsageDetail_20' ) end [2025-01-01 05:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:21:23] Production.INFO: ==8794== Releasing lock... [2025-01-01 05:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:21:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 05:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:22:04 [end_date_ymd] => 2025-01-01 05:22:04 [RateCDR] => 1 ) [2025-01-01 05:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 02:22:04' and `end` < '2025-01-01 05:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 05:22:17] Production.INFO: count ==144 [2025-01-01 05:22:17] Production.ERROR: pbx CDR StartTime 2025-01-01 02:22:04 - End Time 2025-01-01 05:22:04 [2025-01-01 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148710', 'tblTempUsageDetail_20' ) start [2025-01-01 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148710', 'tblTempUsageDetail_20' ) end [2025-01-01 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148710', 'tblTempVendorCDR_20' ) start [2025-01-01 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148710', 'tblTempVendorCDR_20' ) end [2025-01-01 05:22:17] Production.INFO: ProcessCDR(1,14148710,1,1,2) [2025-01-01 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148710', 'tblTempUsageDetail_20' ) start [2025-01-01 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148710', 'tblTempUsageDetail_20' ) end [2025-01-01 05:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:22:20] Production.INFO: ==8868== Releasing lock... [2025-01-01 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:22:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:23:05 [end_date_ymd] => 2025-01-01 05:23:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:23:05' and `end` < '2025-01-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-01-01 05:23:17] Production.INFO: count ==143 [2025-01-01 05:23:17] Production.ERROR: pbx CDR StartTime 2025-01-01 02:23:05 - End Time 2025-01-01 05:23:05 [2025-01-01 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148715', 'tblTempUsageDetail_20' ) start [2025-01-01 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148715', 'tblTempUsageDetail_20' ) end [2025-01-01 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148715', 'tblTempVendorCDR_20' ) start [2025-01-01 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148715', 'tblTempVendorCDR_20' ) end [2025-01-01 05:23:17] Production.INFO: ProcessCDR(1,14148715,1,1,2) [2025-01-01 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148715', 'tblTempUsageDetail_20' ) start [2025-01-01 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148715', 'tblTempUsageDetail_20' ) end [2025-01-01 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:23:20] Production.INFO: ==8987== Releasing lock... [2025-01-01 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:23:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:24:05 [end_date_ymd] => 2025-01-01 05:24:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:24:05' and `end` < '2025-01-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-01-01 05:24:17] Production.INFO: count ==143 [2025-01-01 05:24:17] Production.ERROR: pbx CDR StartTime 2025-01-01 02:24:05 - End Time 2025-01-01 05:24:05 [2025-01-01 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148720', 'tblTempUsageDetail_20' ) start [2025-01-01 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148720', 'tblTempUsageDetail_20' ) end [2025-01-01 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148720', 'tblTempVendorCDR_20' ) start [2025-01-01 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148720', 'tblTempVendorCDR_20' ) end [2025-01-01 05:24:17] Production.INFO: ProcessCDR(1,14148720,1,1,2) [2025-01-01 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148720', 'tblTempUsageDetail_20' ) start [2025-01-01 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148720', 'tblTempUsageDetail_20' ) end [2025-01-01 05:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:24:20] Production.INFO: ==9064== Releasing lock... [2025-01-01 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:24:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:25:05 [end_date_ymd] => 2025-01-01 05:25:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:25:05' and `end` < '2025-01-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-01-01 05:25:17] Production.INFO: count ==143 [2025-01-01 05:25:17] Production.ERROR: pbx CDR StartTime 2025-01-01 02:25:05 - End Time 2025-01-01 05:25:05 [2025-01-01 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148725', 'tblTempUsageDetail_20' ) start [2025-01-01 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148725', 'tblTempUsageDetail_20' ) end [2025-01-01 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148725', 'tblTempVendorCDR_20' ) start [2025-01-01 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148725', 'tblTempVendorCDR_20' ) end [2025-01-01 05:25:17] Production.INFO: ProcessCDR(1,14148725,1,1,2) [2025-01-01 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148725', 'tblTempUsageDetail_20' ) start [2025-01-01 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148725', 'tblTempUsageDetail_20' ) end [2025-01-01 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:25:21] Production.INFO: ==9142== Releasing lock... [2025-01-01 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:26:05 [end_date_ymd] => 2025-01-01 05:26:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:26:05' and `end` < '2025-01-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-01-01 05:26:17] Production.INFO: count ==143 [2025-01-01 05:26:17] Production.ERROR: pbx CDR StartTime 2025-01-01 02:26:05 - End Time 2025-01-01 05:26:05 [2025-01-01 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148730', 'tblTempUsageDetail_20' ) start [2025-01-01 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148730', 'tblTempUsageDetail_20' ) end [2025-01-01 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148730', 'tblTempVendorCDR_20' ) start [2025-01-01 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148730', 'tblTempVendorCDR_20' ) end [2025-01-01 05:26:17] Production.INFO: ProcessCDR(1,14148730,1,1,2) [2025-01-01 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148730', 'tblTempUsageDetail_20' ) start [2025-01-01 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148730', 'tblTempUsageDetail_20' ) end [2025-01-01 05:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:26:20] Production.INFO: ==9223== Releasing lock... [2025-01-01 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:26:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:27:05 [end_date_ymd] => 2025-01-01 05:27:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:27:05' and `end` < '2025-01-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-01-01 05:27:18] Production.INFO: count ==143 [2025-01-01 05:27:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:27:05 - End Time 2025-01-01 05:27:05 [2025-01-01 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148735', 'tblTempUsageDetail_20' ) start [2025-01-01 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148735', 'tblTempUsageDetail_20' ) end [2025-01-01 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148735', 'tblTempVendorCDR_20' ) start [2025-01-01 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148735', 'tblTempVendorCDR_20' ) end [2025-01-01 05:27:18] Production.INFO: ProcessCDR(1,14148735,1,1,2) [2025-01-01 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148735', 'tblTempUsageDetail_20' ) start [2025-01-01 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148735', 'tblTempUsageDetail_20' ) end [2025-01-01 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:27:21] Production.INFO: ==9300== Releasing lock... [2025-01-01 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:28:05 [end_date_ymd] => 2025-01-01 05:28:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:28:05' and `end` < '2025-01-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-01-01 05:28:19] Production.INFO: count ==143 [2025-01-01 05:28:19] Production.ERROR: pbx CDR StartTime 2025-01-01 02:28:05 - End Time 2025-01-01 05:28:05 [2025-01-01 05:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148740', 'tblTempUsageDetail_20' ) start [2025-01-01 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148740', 'tblTempUsageDetail_20' ) end [2025-01-01 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148740', 'tblTempVendorCDR_20' ) start [2025-01-01 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148740', 'tblTempVendorCDR_20' ) end [2025-01-01 05:28:19] Production.INFO: ProcessCDR(1,14148740,1,1,2) [2025-01-01 05:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148740', 'tblTempUsageDetail_20' ) start [2025-01-01 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148740', 'tblTempUsageDetail_20' ) end [2025-01-01 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:28:22] Production.INFO: ==9382== Releasing lock... [2025-01-01 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:28:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:29:05 [end_date_ymd] => 2025-01-01 05:29:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:29:05' and `end` < '2025-01-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-01-01 05:29:17] Production.INFO: count ==143 [2025-01-01 05:29:17] Production.ERROR: pbx CDR StartTime 2025-01-01 02:29:05 - End Time 2025-01-01 05:29:05 [2025-01-01 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148745', 'tblTempUsageDetail_20' ) start [2025-01-01 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148745', 'tblTempUsageDetail_20' ) end [2025-01-01 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148745', 'tblTempVendorCDR_20' ) start [2025-01-01 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148745', 'tblTempVendorCDR_20' ) end [2025-01-01 05:29:17] Production.INFO: ProcessCDR(1,14148745,1,1,2) [2025-01-01 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148745', 'tblTempUsageDetail_20' ) start [2025-01-01 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148745', 'tblTempUsageDetail_20' ) end [2025-01-01 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:29:20] Production.INFO: ==9453== Releasing lock... [2025-01-01 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:29:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:30:06 [end_date_ymd] => 2025-01-01 05:30:06 [RateCDR] => 1 ) [2025-01-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-01-01 02:30:06' and `end` < '2025-01-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-01-01 05:30:19] Production.INFO: count ==133 [2025-01-01 05:30:19] Production.ERROR: pbx CDR StartTime 2025-01-01 02:30:06 - End Time 2025-01-01 05:30:06 [2025-01-01 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148751', 'tblTempUsageDetail_20' ) start [2025-01-01 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148751', 'tblTempUsageDetail_20' ) end [2025-01-01 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148751', 'tblTempVendorCDR_20' ) start [2025-01-01 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148751', 'tblTempVendorCDR_20' ) end [2025-01-01 05:30:19] Production.INFO: ProcessCDR(1,14148751,1,1,2) [2025-01-01 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148751', 'tblTempUsageDetail_20' ) start [2025-01-01 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148751', 'tblTempUsageDetail_20' ) end [2025-01-01 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:30:22] Production.INFO: ==9526== Releasing lock... [2025-01-01 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 05:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:31:04 [end_date_ymd] => 2025-01-01 05:31:04 [RateCDR] => 1 ) [2025-01-01 05: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-01-01 02:31:04' and `end` < '2025-01-01 05: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-01-01 05:31:18] Production.INFO: count ==121 [2025-01-01 05:31:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:31:04 - End Time 2025-01-01 05:31:04 [2025-01-01 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148756', 'tblTempUsageDetail_20' ) start [2025-01-01 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148756', 'tblTempUsageDetail_20' ) end [2025-01-01 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148756', 'tblTempVendorCDR_20' ) start [2025-01-01 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148756', 'tblTempVendorCDR_20' ) end [2025-01-01 05:31:18] Production.INFO: ProcessCDR(1,14148756,1,1,2) [2025-01-01 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148756', 'tblTempUsageDetail_20' ) start [2025-01-01 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148756', 'tblTempUsageDetail_20' ) end [2025-01-01 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:31:21] Production.INFO: ==9603== Releasing lock... [2025-01-01 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:32:05 [end_date_ymd] => 2025-01-01 05:32:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:32:05' and `end` < '2025-01-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-01-01 05:32:20] Production.INFO: count ==121 [2025-01-01 05:32:20] Production.ERROR: pbx CDR StartTime 2025-01-01 02:32:05 - End Time 2025-01-01 05:32:05 [2025-01-01 05:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148761', 'tblTempUsageDetail_20' ) start [2025-01-01 05:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148761', 'tblTempUsageDetail_20' ) end [2025-01-01 05:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148761', 'tblTempVendorCDR_20' ) start [2025-01-01 05:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148761', 'tblTempVendorCDR_20' ) end [2025-01-01 05:32:20] Production.INFO: ProcessCDR(1,14148761,1,1,2) [2025-01-01 05:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148761', 'tblTempUsageDetail_20' ) start [2025-01-01 05:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148761', 'tblTempUsageDetail_20' ) end [2025-01-01 05:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:32:23] Production.INFO: ==9675== Releasing lock... [2025-01-01 05:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:32:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:33:05 [end_date_ymd] => 2025-01-01 05:33:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:33:05' and `end` < '2025-01-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-01-01 05:33:18] Production.INFO: count ==121 [2025-01-01 05:33:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:33:05 - End Time 2025-01-01 05:33:05 [2025-01-01 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148766', 'tblTempUsageDetail_20' ) start [2025-01-01 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148766', 'tblTempUsageDetail_20' ) end [2025-01-01 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148766', 'tblTempVendorCDR_20' ) start [2025-01-01 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148766', 'tblTempVendorCDR_20' ) end [2025-01-01 05:33:18] Production.INFO: ProcessCDR(1,14148766,1,1,2) [2025-01-01 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148766', 'tblTempUsageDetail_20' ) start [2025-01-01 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148766', 'tblTempUsageDetail_20' ) end [2025-01-01 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:33:21] Production.INFO: ==9745== Releasing lock... [2025-01-01 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:34:05 [end_date_ymd] => 2025-01-01 05:34:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:34:05' and `end` < '2025-01-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-01-01 05:34:19] Production.INFO: count ==121 [2025-01-01 05:34:19] Production.ERROR: pbx CDR StartTime 2025-01-01 02:34:05 - End Time 2025-01-01 05:34:05 [2025-01-01 05:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148771', 'tblTempUsageDetail_20' ) start [2025-01-01 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148771', 'tblTempUsageDetail_20' ) end [2025-01-01 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148771', 'tblTempVendorCDR_20' ) start [2025-01-01 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148771', 'tblTempVendorCDR_20' ) end [2025-01-01 05:34:19] Production.INFO: ProcessCDR(1,14148771,1,1,2) [2025-01-01 05:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148771', 'tblTempUsageDetail_20' ) start [2025-01-01 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148771', 'tblTempUsageDetail_20' ) end [2025-01-01 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:34:22] Production.INFO: ==9815== Releasing lock... [2025-01-01 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:34:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:35:04 [end_date_ymd] => 2025-01-01 05:35:04 [RateCDR] => 1 ) [2025-01-01 05:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 02:35:04' and `end` < '2025-01-01 05:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 05:35:17] Production.INFO: count ==121 [2025-01-01 05:35:17] Production.ERROR: pbx CDR StartTime 2025-01-01 02:35:04 - End Time 2025-01-01 05:35:04 [2025-01-01 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148776', 'tblTempUsageDetail_20' ) start [2025-01-01 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148776', 'tblTempUsageDetail_20' ) end [2025-01-01 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148776', 'tblTempVendorCDR_20' ) start [2025-01-01 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148776', 'tblTempVendorCDR_20' ) end [2025-01-01 05:35:17] Production.INFO: ProcessCDR(1,14148776,1,1,2) [2025-01-01 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148776', 'tblTempUsageDetail_20' ) start [2025-01-01 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148776', 'tblTempUsageDetail_20' ) end [2025-01-01 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:35:20] Production.INFO: ==9885== Releasing lock... [2025-01-01 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:35:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:36:05 [end_date_ymd] => 2025-01-01 05:36:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:36:05' and `end` < '2025-01-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-01-01 05:36:19] Production.INFO: count ==120 [2025-01-01 05:36:19] Production.ERROR: pbx CDR StartTime 2025-01-01 02:36:05 - End Time 2025-01-01 05:36:05 [2025-01-01 05:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148781', 'tblTempUsageDetail_20' ) start [2025-01-01 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148781', 'tblTempUsageDetail_20' ) end [2025-01-01 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148781', 'tblTempVendorCDR_20' ) start [2025-01-01 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148781', 'tblTempVendorCDR_20' ) end [2025-01-01 05:36:19] Production.INFO: ProcessCDR(1,14148781,1,1,2) [2025-01-01 05:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148781', 'tblTempUsageDetail_20' ) start [2025-01-01 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148781', 'tblTempUsageDetail_20' ) end [2025-01-01 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:36:22] Production.INFO: ==9956== Releasing lock... [2025-01-01 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:36:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:37:04 [end_date_ymd] => 2025-01-01 05:37:04 [RateCDR] => 1 ) [2025-01-01 05: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-01-01 02:37:04' and `end` < '2025-01-01 05: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-01-01 05:37:18] Production.INFO: count ==120 [2025-01-01 05:37:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:37:04 - End Time 2025-01-01 05:37:04 [2025-01-01 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148786', 'tblTempUsageDetail_20' ) start [2025-01-01 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148786', 'tblTempUsageDetail_20' ) end [2025-01-01 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148786', 'tblTempVendorCDR_20' ) start [2025-01-01 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148786', 'tblTempVendorCDR_20' ) end [2025-01-01 05:37:18] Production.INFO: ProcessCDR(1,14148786,1,1,2) [2025-01-01 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148786', 'tblTempUsageDetail_20' ) start [2025-01-01 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148786', 'tblTempUsageDetail_20' ) end [2025-01-01 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:37:21] Production.INFO: ==10031== Releasing lock... [2025-01-01 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:38:05 [end_date_ymd] => 2025-01-01 05:38:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:38:05' and `end` < '2025-01-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-01-01 05:38:17] Production.INFO: count ==119 [2025-01-01 05:38:17] Production.ERROR: pbx CDR StartTime 2025-01-01 02:38:05 - End Time 2025-01-01 05:38:05 [2025-01-01 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148791', 'tblTempUsageDetail_20' ) start [2025-01-01 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148791', 'tblTempUsageDetail_20' ) end [2025-01-01 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148791', 'tblTempVendorCDR_20' ) start [2025-01-01 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148791', 'tblTempVendorCDR_20' ) end [2025-01-01 05:38:17] Production.INFO: ProcessCDR(1,14148791,1,1,2) [2025-01-01 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148791', 'tblTempUsageDetail_20' ) start [2025-01-01 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148791', 'tblTempUsageDetail_20' ) end [2025-01-01 05:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:38:20] Production.INFO: ==10103== Releasing lock... [2025-01-01 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:38:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:39:04 [end_date_ymd] => 2025-01-01 05:39:04 [RateCDR] => 1 ) [2025-01-01 05:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 02:39:04' and `end` < '2025-01-01 05:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 05:39:17] Production.INFO: count ==119 [2025-01-01 05:39:17] Production.ERROR: pbx CDR StartTime 2025-01-01 02:39:04 - End Time 2025-01-01 05:39:04 [2025-01-01 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148796', 'tblTempUsageDetail_20' ) start [2025-01-01 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148796', 'tblTempUsageDetail_20' ) end [2025-01-01 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148796', 'tblTempVendorCDR_20' ) start [2025-01-01 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148796', 'tblTempVendorCDR_20' ) end [2025-01-01 05:39:17] Production.INFO: ProcessCDR(1,14148796,1,1,2) [2025-01-01 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148796', 'tblTempUsageDetail_20' ) start [2025-01-01 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148796', 'tblTempUsageDetail_20' ) end [2025-01-01 05:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:39:20] Production.INFO: ==10213== Releasing lock... [2025-01-01 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:39:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:40:05 [end_date_ymd] => 2025-01-01 05:40:05 [RateCDR] => 1 ) [2025-01-01 05:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 02:40:05' and `end` < '2025-01-01 05:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 05:40:18] Production.INFO: count ==115 [2025-01-01 05:40:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:40:05 - End Time 2025-01-01 05:40:05 [2025-01-01 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148802', 'tblTempUsageDetail_20' ) start [2025-01-01 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148802', 'tblTempUsageDetail_20' ) end [2025-01-01 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148802', 'tblTempVendorCDR_20' ) start [2025-01-01 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148802', 'tblTempVendorCDR_20' ) end [2025-01-01 05:40:18] Production.INFO: ProcessCDR(1,14148802,1,1,2) [2025-01-01 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148802', 'tblTempUsageDetail_20' ) start [2025-01-01 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148802', 'tblTempUsageDetail_20' ) end [2025-01-01 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:40:21] Production.INFO: ==10287== Releasing lock... [2025-01-01 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:41:06 [end_date_ymd] => 2025-01-01 05:41:06 [RateCDR] => 1 ) [2025-01-01 05: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-01 02:41:06' and `end` < '2025-01-01 05: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-01-01 05:41:19] Production.INFO: count ==115 [2025-01-01 05:41:19] Production.ERROR: pbx CDR StartTime 2025-01-01 02:41:06 - End Time 2025-01-01 05:41:06 [2025-01-01 05:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148807', 'tblTempUsageDetail_20' ) start [2025-01-01 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148807', 'tblTempUsageDetail_20' ) end [2025-01-01 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148807', 'tblTempVendorCDR_20' ) start [2025-01-01 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148807', 'tblTempVendorCDR_20' ) end [2025-01-01 05:41:19] Production.INFO: ProcessCDR(1,14148807,1,1,2) [2025-01-01 05:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148807', 'tblTempUsageDetail_20' ) start [2025-01-01 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148807', 'tblTempUsageDetail_20' ) end [2025-01-01 05:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:41:22] Production.INFO: ==10360== Releasing lock... [2025-01-01 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:41:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:42:05 [end_date_ymd] => 2025-01-01 05:42:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:42:05' and `end` < '2025-01-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-01-01 05:42:18] Production.INFO: count ==114 [2025-01-01 05:42:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:42:05 - End Time 2025-01-01 05:42:05 [2025-01-01 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148812', 'tblTempUsageDetail_20' ) start [2025-01-01 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148812', 'tblTempUsageDetail_20' ) end [2025-01-01 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148812', 'tblTempVendorCDR_20' ) start [2025-01-01 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148812', 'tblTempVendorCDR_20' ) end [2025-01-01 05:42:18] Production.INFO: ProcessCDR(1,14148812,1,1,2) [2025-01-01 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148812', 'tblTempUsageDetail_20' ) start [2025-01-01 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148812', 'tblTempUsageDetail_20' ) end [2025-01-01 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:42:21] Production.INFO: ==10431== Releasing lock... [2025-01-01 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:43:04 [end_date_ymd] => 2025-01-01 05:43:04 [RateCDR] => 1 ) [2025-01-01 05:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 02:43:04' and `end` < '2025-01-01 05:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 05:43:17] Production.INFO: count ==114 [2025-01-01 05:43:17] Production.ERROR: pbx CDR StartTime 2025-01-01 02:43:04 - End Time 2025-01-01 05:43:04 [2025-01-01 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148817', 'tblTempUsageDetail_20' ) start [2025-01-01 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148817', 'tblTempUsageDetail_20' ) end [2025-01-01 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148817', 'tblTempVendorCDR_20' ) start [2025-01-01 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148817', 'tblTempVendorCDR_20' ) end [2025-01-01 05:43:17] Production.INFO: ProcessCDR(1,14148817,1,1,2) [2025-01-01 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148817', 'tblTempUsageDetail_20' ) start [2025-01-01 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148817', 'tblTempUsageDetail_20' ) end [2025-01-01 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:43:20] Production.INFO: ==10500== Releasing lock... [2025-01-01 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:43:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:44:05 [end_date_ymd] => 2025-01-01 05:44:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:44:05' and `end` < '2025-01-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-01-01 05:44:18] Production.INFO: count ==114 [2025-01-01 05:44:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:44:05 - End Time 2025-01-01 05:44:05 [2025-01-01 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148822', 'tblTempUsageDetail_20' ) start [2025-01-01 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148822', 'tblTempUsageDetail_20' ) end [2025-01-01 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148822', 'tblTempVendorCDR_20' ) start [2025-01-01 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148822', 'tblTempVendorCDR_20' ) end [2025-01-01 05:44:18] Production.INFO: ProcessCDR(1,14148822,1,1,2) [2025-01-01 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148822', 'tblTempUsageDetail_20' ) start [2025-01-01 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148822', 'tblTempUsageDetail_20' ) end [2025-01-01 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:44:21] Production.INFO: ==10570== Releasing lock... [2025-01-01 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:45:05 [end_date_ymd] => 2025-01-01 05:45:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:45:05' and `end` < '2025-01-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-01-01 05:45:18] Production.INFO: count ==114 [2025-01-01 05:45:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:45:05 - End Time 2025-01-01 05:45:05 [2025-01-01 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148827', 'tblTempUsageDetail_20' ) start [2025-01-01 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148827', 'tblTempUsageDetail_20' ) end [2025-01-01 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148827', 'tblTempVendorCDR_20' ) start [2025-01-01 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148827', 'tblTempVendorCDR_20' ) end [2025-01-01 05:45:18] Production.INFO: ProcessCDR(1,14148827,1,1,2) [2025-01-01 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148827', 'tblTempUsageDetail_20' ) start [2025-01-01 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148827', 'tblTempUsageDetail_20' ) end [2025-01-01 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:45:21] Production.INFO: ==10641== Releasing lock... [2025-01-01 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:46:05 [end_date_ymd] => 2025-01-01 05:46:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:46:05' and `end` < '2025-01-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-01-01 05:46:18] Production.INFO: count ==113 [2025-01-01 05:46:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:46:05 - End Time 2025-01-01 05:46:05 [2025-01-01 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148832', 'tblTempUsageDetail_20' ) start [2025-01-01 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148832', 'tblTempUsageDetail_20' ) end [2025-01-01 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148832', 'tblTempVendorCDR_20' ) start [2025-01-01 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148832', 'tblTempVendorCDR_20' ) end [2025-01-01 05:46:18] Production.INFO: ProcessCDR(1,14148832,1,1,2) [2025-01-01 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148832', 'tblTempUsageDetail_20' ) start [2025-01-01 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148832', 'tblTempUsageDetail_20' ) end [2025-01-01 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:46:21] Production.INFO: ==10714== Releasing lock... [2025-01-01 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:47:05 [end_date_ymd] => 2025-01-01 05:47:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:47:05' and `end` < '2025-01-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-01-01 05:47:19] Production.INFO: count ==113 [2025-01-01 05:47:19] Production.ERROR: pbx CDR StartTime 2025-01-01 02:47:05 - End Time 2025-01-01 05:47:05 [2025-01-01 05:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148837', 'tblTempUsageDetail_20' ) start [2025-01-01 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148837', 'tblTempUsageDetail_20' ) end [2025-01-01 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148837', 'tblTempVendorCDR_20' ) start [2025-01-01 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148837', 'tblTempVendorCDR_20' ) end [2025-01-01 05:47:19] Production.INFO: ProcessCDR(1,14148837,1,1,2) [2025-01-01 05:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148837', 'tblTempUsageDetail_20' ) start [2025-01-01 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148837', 'tblTempUsageDetail_20' ) end [2025-01-01 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:47:22] Production.INFO: ==10788== Releasing lock... [2025-01-01 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:47:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:48:05 [end_date_ymd] => 2025-01-01 05:48:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:48:05' and `end` < '2025-01-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-01-01 05:48:18] Production.INFO: count ==113 [2025-01-01 05:48:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:48:05 - End Time 2025-01-01 05:48:05 [2025-01-01 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148842', 'tblTempUsageDetail_20' ) start [2025-01-01 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148842', 'tblTempUsageDetail_20' ) end [2025-01-01 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148842', 'tblTempVendorCDR_20' ) start [2025-01-01 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148842', 'tblTempVendorCDR_20' ) end [2025-01-01 05:48:18] Production.INFO: ProcessCDR(1,14148842,1,1,2) [2025-01-01 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148842', 'tblTempUsageDetail_20' ) start [2025-01-01 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148842', 'tblTempUsageDetail_20' ) end [2025-01-01 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:48:21] Production.INFO: ==10858== Releasing lock... [2025-01-01 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:49:05 [end_date_ymd] => 2025-01-01 05:49:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:49:05' and `end` < '2025-01-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-01-01 05:49:18] Production.INFO: count ==112 [2025-01-01 05:49:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:49:05 - End Time 2025-01-01 05:49:05 [2025-01-01 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148847', 'tblTempUsageDetail_20' ) start [2025-01-01 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148847', 'tblTempUsageDetail_20' ) end [2025-01-01 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148847', 'tblTempVendorCDR_20' ) start [2025-01-01 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148847', 'tblTempVendorCDR_20' ) end [2025-01-01 05:49:18] Production.INFO: ProcessCDR(1,14148847,1,1,2) [2025-01-01 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148847', 'tblTempUsageDetail_20' ) start [2025-01-01 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148847', 'tblTempUsageDetail_20' ) end [2025-01-01 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:49:21] Production.INFO: ==10931== Releasing lock... [2025-01-01 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:50:05 [end_date_ymd] => 2025-01-01 05:50:05 [RateCDR] => 1 ) [2025-01-01 05: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-01-01 02:50:05' and `end` < '2025-01-01 05: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-01-01 05:50:18] Production.INFO: count ==105 [2025-01-01 05:50:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:50:05 - End Time 2025-01-01 05:50:05 [2025-01-01 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148853', 'tblTempUsageDetail_20' ) start [2025-01-01 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148853', 'tblTempUsageDetail_20' ) end [2025-01-01 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148853', 'tblTempVendorCDR_20' ) start [2025-01-01 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148853', 'tblTempVendorCDR_20' ) end [2025-01-01 05:50:18] Production.INFO: ProcessCDR(1,14148853,1,1,2) [2025-01-01 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148853', 'tblTempUsageDetail_20' ) start [2025-01-01 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148853', 'tblTempUsageDetail_20' ) end [2025-01-01 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:50:21] Production.INFO: ==11004== Releasing lock... [2025-01-01 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:50:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:51:05 [end_date_ymd] => 2025-01-01 05:51:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:51:05' and `end` < '2025-01-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-01-01 05:51:19] Production.INFO: count ==90 [2025-01-01 05:51:19] Production.ERROR: pbx CDR StartTime 2025-01-01 02:51:05 - End Time 2025-01-01 05:51:05 [2025-01-01 05:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148858', 'tblTempUsageDetail_20' ) start [2025-01-01 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148858', 'tblTempUsageDetail_20' ) end [2025-01-01 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148858', 'tblTempVendorCDR_20' ) start [2025-01-01 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148858', 'tblTempVendorCDR_20' ) end [2025-01-01 05:51:19] Production.INFO: ProcessCDR(1,14148858,1,1,2) [2025-01-01 05:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148858', 'tblTempUsageDetail_20' ) start [2025-01-01 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148858', 'tblTempUsageDetail_20' ) end [2025-01-01 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:51:22] Production.INFO: ==11078== Releasing lock... [2025-01-01 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:51:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:52:04 [end_date_ymd] => 2025-01-01 05:52:04 [RateCDR] => 1 ) [2025-01-01 05: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-01-01 02:52:04' and `end` < '2025-01-01 05: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-01-01 05:52:17] Production.INFO: count ==90 [2025-01-01 05:52:17] Production.ERROR: pbx CDR StartTime 2025-01-01 02:52:04 - End Time 2025-01-01 05:52:04 [2025-01-01 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148863', 'tblTempUsageDetail_20' ) start [2025-01-01 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148863', 'tblTempUsageDetail_20' ) end [2025-01-01 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148863', 'tblTempVendorCDR_20' ) start [2025-01-01 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148863', 'tblTempVendorCDR_20' ) end [2025-01-01 05:52:18] Production.INFO: ProcessCDR(1,14148863,1,1,2) [2025-01-01 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148863', 'tblTempUsageDetail_20' ) start [2025-01-01 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148863', 'tblTempUsageDetail_20' ) end [2025-01-01 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:52:21] Production.INFO: ==11147== Releasing lock... [2025-01-01 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:53:05 [end_date_ymd] => 2025-01-01 05:53:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:53:05' and `end` < '2025-01-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-01-01 05:53:19] Production.INFO: count ==89 [2025-01-01 05:53:19] Production.ERROR: pbx CDR StartTime 2025-01-01 02:53:05 - End Time 2025-01-01 05:53:05 [2025-01-01 05:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148868', 'tblTempUsageDetail_20' ) start [2025-01-01 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148868', 'tblTempUsageDetail_20' ) end [2025-01-01 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148868', 'tblTempVendorCDR_20' ) start [2025-01-01 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148868', 'tblTempVendorCDR_20' ) end [2025-01-01 05:53:19] Production.INFO: ProcessCDR(1,14148868,1,1,2) [2025-01-01 05:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148868', 'tblTempUsageDetail_20' ) start [2025-01-01 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148868', 'tblTempUsageDetail_20' ) end [2025-01-01 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:53:22] Production.INFO: ==11219== Releasing lock... [2025-01-01 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:53:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:54:05 [end_date_ymd] => 2025-01-01 05:54:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:54:05' and `end` < '2025-01-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-01-01 05:54:17] Production.INFO: count ==89 [2025-01-01 05:54:17] Production.ERROR: pbx CDR StartTime 2025-01-01 02:54:05 - End Time 2025-01-01 05:54:05 [2025-01-01 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148873', 'tblTempUsageDetail_20' ) start [2025-01-01 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148873', 'tblTempUsageDetail_20' ) end [2025-01-01 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148873', 'tblTempVendorCDR_20' ) start [2025-01-01 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148873', 'tblTempVendorCDR_20' ) end [2025-01-01 05:54:17] Production.INFO: ProcessCDR(1,14148873,1,1,2) [2025-01-01 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148873', 'tblTempUsageDetail_20' ) start [2025-01-01 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148873', 'tblTempUsageDetail_20' ) end [2025-01-01 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:54:20] Production.INFO: ==11289== Releasing lock... [2025-01-01 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:54:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:55:06 [end_date_ymd] => 2025-01-01 05:55:06 [RateCDR] => 1 ) [2025-01-01 05: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-01-01 02:55:06' and `end` < '2025-01-01 05: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-01-01 05:55:18] Production.INFO: count ==89 [2025-01-01 05:55:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:55:06 - End Time 2025-01-01 05:55:06 [2025-01-01 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148878', 'tblTempUsageDetail_20' ) start [2025-01-01 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148878', 'tblTempUsageDetail_20' ) end [2025-01-01 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148878', 'tblTempVendorCDR_20' ) start [2025-01-01 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148878', 'tblTempVendorCDR_20' ) end [2025-01-01 05:55:18] Production.INFO: ProcessCDR(1,14148878,1,1,2) [2025-01-01 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148878', 'tblTempUsageDetail_20' ) start [2025-01-01 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148878', 'tblTempUsageDetail_20' ) end [2025-01-01 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:55:21] Production.INFO: ==11400== Releasing lock... [2025-01-01 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:56:05 [end_date_ymd] => 2025-01-01 05:56:05 [RateCDR] => 1 ) [2025-01-01 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 02:56:05' and `end` < '2025-01-01 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 05:56:17] Production.INFO: count ==89 [2025-01-01 05:56:17] Production.ERROR: pbx CDR StartTime 2025-01-01 02:56:05 - End Time 2025-01-01 05:56:05 [2025-01-01 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148883', 'tblTempUsageDetail_20' ) start [2025-01-01 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148883', 'tblTempUsageDetail_20' ) end [2025-01-01 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148883', 'tblTempVendorCDR_20' ) start [2025-01-01 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148883', 'tblTempVendorCDR_20' ) end [2025-01-01 05:56:17] Production.INFO: ProcessCDR(1,14148883,1,1,2) [2025-01-01 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148883', 'tblTempUsageDetail_20' ) start [2025-01-01 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148883', 'tblTempUsageDetail_20' ) end [2025-01-01 05:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:56:20] Production.INFO: ==11474== Releasing lock... [2025-01-01 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:56:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:57:05 [end_date_ymd] => 2025-01-01 05:57:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:57:05' and `end` < '2025-01-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-01-01 05:57:18] Production.INFO: count ==89 [2025-01-01 05:57:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:57:05 - End Time 2025-01-01 05:57:05 [2025-01-01 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148888', 'tblTempUsageDetail_20' ) start [2025-01-01 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148888', 'tblTempUsageDetail_20' ) end [2025-01-01 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148888', 'tblTempVendorCDR_20' ) start [2025-01-01 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148888', 'tblTempVendorCDR_20' ) end [2025-01-01 05:57:18] Production.INFO: ProcessCDR(1,14148888,1,1,2) [2025-01-01 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148888', 'tblTempUsageDetail_20' ) start [2025-01-01 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148888', 'tblTempUsageDetail_20' ) end [2025-01-01 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:57:21] Production.INFO: ==11551== Releasing lock... [2025-01-01 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:57:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:58:04 [end_date_ymd] => 2025-01-01 05:58:04 [RateCDR] => 1 ) [2025-01-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-01-01 02:58:04' and `end` < '2025-01-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-01-01 05:58:17] Production.INFO: count ==89 [2025-01-01 05:58:17] Production.ERROR: pbx CDR StartTime 2025-01-01 02:58:04 - End Time 2025-01-01 05:58:04 [2025-01-01 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148893', 'tblTempUsageDetail_20' ) start [2025-01-01 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148893', 'tblTempUsageDetail_20' ) end [2025-01-01 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148893', 'tblTempVendorCDR_20' ) start [2025-01-01 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148893', 'tblTempVendorCDR_20' ) end [2025-01-01 05:58:17] Production.INFO: ProcessCDR(1,14148893,1,1,2) [2025-01-01 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148893', 'tblTempUsageDetail_20' ) start [2025-01-01 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148893', 'tblTempUsageDetail_20' ) end [2025-01-01 05:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:58:20] Production.INFO: ==11631== Releasing lock... [2025-01-01 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:58:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 02:59:05 [end_date_ymd] => 2025-01-01 05:59:05 [RateCDR] => 1 ) [2025-01-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-01-01 02:59:05' and `end` < '2025-01-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-01-01 05:59:18] Production.INFO: count ==89 [2025-01-01 05:59:18] Production.ERROR: pbx CDR StartTime 2025-01-01 02:59:05 - End Time 2025-01-01 05:59:05 [2025-01-01 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148898', 'tblTempUsageDetail_20' ) start [2025-01-01 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148898', 'tblTempUsageDetail_20' ) end [2025-01-01 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148898', 'tblTempVendorCDR_20' ) start [2025-01-01 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148898', 'tblTempVendorCDR_20' ) end [2025-01-01 05:59:18] Production.INFO: ProcessCDR(1,14148898,1,1,2) [2025-01-01 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148898', 'tblTempUsageDetail_20' ) start [2025-01-01 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148898', 'tblTempUsageDetail_20' ) end [2025-01-01 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 05:59:21] Production.INFO: ==11705== Releasing lock... [2025-01-01 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 05:59:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:00:06 [end_date_ymd] => 2025-01-01 06:00:06 [RateCDR] => 1 ) [2025-01-01 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 03:00:06' and `end` < '2025-01-01 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 06:00:18] Production.INFO: count ==79 [2025-01-01 06:00:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:00:06 - End Time 2025-01-01 06:00:06 [2025-01-01 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148903', 'tblTempUsageDetail_20' ) start [2025-01-01 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148903', 'tblTempUsageDetail_20' ) end [2025-01-01 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148903', 'tblTempVendorCDR_20' ) start [2025-01-01 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148903', 'tblTempVendorCDR_20' ) end [2025-01-01 06:00:18] Production.INFO: ProcessCDR(1,14148903,1,1,2) [2025-01-01 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148903', 'tblTempUsageDetail_20' ) start [2025-01-01 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148903', 'tblTempUsageDetail_20' ) end [2025-01-01 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:00:21] Production.INFO: ==11797== Releasing lock... [2025-01-01 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:00:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:01:05 [end_date_ymd] => 2025-01-01 06:01:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:01:05' and `end` < '2025-01-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-01-01 06:01:18] Production.INFO: count ==79 [2025-01-01 06:01:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:01:05 - End Time 2025-01-01 06:01:05 [2025-01-01 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148909', 'tblTempUsageDetail_20' ) start [2025-01-01 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148909', 'tblTempUsageDetail_20' ) end [2025-01-01 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148909', 'tblTempVendorCDR_20' ) start [2025-01-01 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148909', 'tblTempVendorCDR_20' ) end [2025-01-01 06:01:18] Production.INFO: ProcessCDR(1,14148909,1,1,2) [2025-01-01 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148909', 'tblTempUsageDetail_20' ) start [2025-01-01 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148909', 'tblTempUsageDetail_20' ) end [2025-01-01 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:01:21] Production.INFO: ==11906== Releasing lock... [2025-01-01 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:01:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:02:05 [end_date_ymd] => 2025-01-01 06:02:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:02:05' and `end` < '2025-01-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-01-01 06:02:17] Production.INFO: count ==79 [2025-01-01 06:02:17] Production.ERROR: pbx CDR StartTime 2025-01-01 03:02:05 - End Time 2025-01-01 06:02:05 [2025-01-01 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148914', 'tblTempUsageDetail_20' ) start [2025-01-01 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148914', 'tblTempUsageDetail_20' ) end [2025-01-01 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148914', 'tblTempVendorCDR_20' ) start [2025-01-01 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148914', 'tblTempVendorCDR_20' ) end [2025-01-01 06:02:17] Production.INFO: ProcessCDR(1,14148914,1,1,2) [2025-01-01 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148914', 'tblTempUsageDetail_20' ) start [2025-01-01 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148914', 'tblTempUsageDetail_20' ) end [2025-01-01 06:02:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:02:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:02:20] Production.INFO: ==11999== Releasing lock... [2025-01-01 06:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:02:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:03:05 [end_date_ymd] => 2025-01-01 06:03:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:03:05' and `end` < '2025-01-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-01-01 06:03:17] Production.INFO: count ==79 [2025-01-01 06:03:17] Production.ERROR: pbx CDR StartTime 2025-01-01 03:03:05 - End Time 2025-01-01 06:03:05 [2025-01-01 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148919', 'tblTempUsageDetail_20' ) start [2025-01-01 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148919', 'tblTempUsageDetail_20' ) end [2025-01-01 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148919', 'tblTempVendorCDR_20' ) start [2025-01-01 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148919', 'tblTempVendorCDR_20' ) end [2025-01-01 06:03:17] Production.INFO: ProcessCDR(1,14148919,1,1,2) [2025-01-01 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148919', 'tblTempUsageDetail_20' ) start [2025-01-01 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148919', 'tblTempUsageDetail_20' ) end [2025-01-01 06:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:03:20] Production.INFO: ==12090== Releasing lock... [2025-01-01 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:03:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:04:05 [end_date_ymd] => 2025-01-01 06:04:05 [RateCDR] => 1 ) [2025-01-01 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 03:04:05' and `end` < '2025-01-01 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 06:04:18] Production.INFO: count ==75 [2025-01-01 06:04:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:04:05 - End Time 2025-01-01 06:04:05 [2025-01-01 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148924', 'tblTempUsageDetail_20' ) start [2025-01-01 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148924', 'tblTempUsageDetail_20' ) end [2025-01-01 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148924', 'tblTempVendorCDR_20' ) start [2025-01-01 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148924', 'tblTempVendorCDR_20' ) end [2025-01-01 06:04:18] Production.INFO: ProcessCDR(1,14148924,1,1,2) [2025-01-01 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148924', 'tblTempUsageDetail_20' ) start [2025-01-01 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148924', 'tblTempUsageDetail_20' ) end [2025-01-01 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:04:21] Production.INFO: ==12183== Releasing lock... [2025-01-01 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:04:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:05:04 [end_date_ymd] => 2025-01-01 06:05:04 [RateCDR] => 1 ) [2025-01-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-01-01 03:05:04' and `end` < '2025-01-01 06: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-01-01 06:05:17] Production.INFO: count ==75 [2025-01-01 06:05:17] Production.ERROR: pbx CDR StartTime 2025-01-01 03:05:04 - End Time 2025-01-01 06:05:04 [2025-01-01 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148929', 'tblTempUsageDetail_20' ) start [2025-01-01 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148929', 'tblTempUsageDetail_20' ) end [2025-01-01 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148929', 'tblTempVendorCDR_20' ) start [2025-01-01 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148929', 'tblTempVendorCDR_20' ) end [2025-01-01 06:05:17] Production.INFO: ProcessCDR(1,14148929,1,1,2) [2025-01-01 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148929', 'tblTempUsageDetail_20' ) start [2025-01-01 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148929', 'tblTempUsageDetail_20' ) end [2025-01-01 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:05:20] Production.INFO: ==12274== Releasing lock... [2025-01-01 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:05:20] Production.INFO: 28 MB #Memory Used# [2025-01-01 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:06:05 [end_date_ymd] => 2025-01-01 06:06:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:06:05' and `end` < '2025-01-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-01-01 06:06:18] Production.INFO: count ==73 [2025-01-01 06:06:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:06:05 - End Time 2025-01-01 06:06:05 [2025-01-01 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148934', 'tblTempUsageDetail_20' ) start [2025-01-01 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148934', 'tblTempUsageDetail_20' ) end [2025-01-01 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148934', 'tblTempVendorCDR_20' ) start [2025-01-01 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148934', 'tblTempVendorCDR_20' ) end [2025-01-01 06:06:18] Production.INFO: ProcessCDR(1,14148934,1,1,2) [2025-01-01 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148934', 'tblTempUsageDetail_20' ) start [2025-01-01 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148934', 'tblTempUsageDetail_20' ) end [2025-01-01 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:06:21] Production.INFO: ==12368== Releasing lock... [2025-01-01 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:06:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 06:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:07:04 [end_date_ymd] => 2025-01-01 06:07:04 [RateCDR] => 1 ) [2025-01-01 06: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-01-01 03:07:04' and `end` < '2025-01-01 06: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-01-01 06:07:17] Production.INFO: count ==73 [2025-01-01 06:07:17] Production.ERROR: pbx CDR StartTime 2025-01-01 03:07:04 - End Time 2025-01-01 06:07:04 [2025-01-01 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148939', 'tblTempUsageDetail_20' ) start [2025-01-01 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148939', 'tblTempUsageDetail_20' ) end [2025-01-01 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148939', 'tblTempVendorCDR_20' ) start [2025-01-01 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148939', 'tblTempVendorCDR_20' ) end [2025-01-01 06:07:17] Production.INFO: ProcessCDR(1,14148939,1,1,2) [2025-01-01 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148939', 'tblTempUsageDetail_20' ) start [2025-01-01 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148939', 'tblTempUsageDetail_20' ) end [2025-01-01 06:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:07:20] Production.INFO: ==12457== Releasing lock... [2025-01-01 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:07:20] Production.INFO: 28 MB #Memory Used# [2025-01-01 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:08:05 [end_date_ymd] => 2025-01-01 06:08:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:08:05' and `end` < '2025-01-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-01-01 06:08:19] Production.INFO: count ==72 [2025-01-01 06:08:19] Production.ERROR: pbx CDR StartTime 2025-01-01 03:08:05 - End Time 2025-01-01 06:08:05 [2025-01-01 06:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148944', 'tblTempUsageDetail_20' ) start [2025-01-01 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148944', 'tblTempUsageDetail_20' ) end [2025-01-01 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148944', 'tblTempVendorCDR_20' ) start [2025-01-01 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148944', 'tblTempVendorCDR_20' ) end [2025-01-01 06:08:19] Production.INFO: ProcessCDR(1,14148944,1,1,2) [2025-01-01 06:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148944', 'tblTempUsageDetail_20' ) start [2025-01-01 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148944', 'tblTempUsageDetail_20' ) end [2025-01-01 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:08:22] Production.INFO: ==12553== Releasing lock... [2025-01-01 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:08:22] Production.INFO: 28 MB #Memory Used# [2025-01-01 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:09:05 [end_date_ymd] => 2025-01-01 06:09:05 [RateCDR] => 1 ) [2025-01-01 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 03:09:05' and `end` < '2025-01-01 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 06:09:18] Production.INFO: count ==72 [2025-01-01 06:09:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:09:05 - End Time 2025-01-01 06:09:05 [2025-01-01 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148949', 'tblTempUsageDetail_20' ) start [2025-01-01 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148949', 'tblTempUsageDetail_20' ) end [2025-01-01 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148949', 'tblTempVendorCDR_20' ) start [2025-01-01 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148949', 'tblTempVendorCDR_20' ) end [2025-01-01 06:09:18] Production.INFO: ProcessCDR(1,14148949,1,1,2) [2025-01-01 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148949', 'tblTempUsageDetail_20' ) start [2025-01-01 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148949', 'tblTempUsageDetail_20' ) end [2025-01-01 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:09:21] Production.INFO: ==12641== Releasing lock... [2025-01-01 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:09:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:10:06 [end_date_ymd] => 2025-01-01 06:10:06 [RateCDR] => 1 ) [2025-01-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-01-01 03:10:06' and `end` < '2025-01-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-01-01 06:10:18] Production.INFO: count ==64 [2025-01-01 06:10:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:10:06 - End Time 2025-01-01 06:10:06 [2025-01-01 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148955', 'tblTempUsageDetail_20' ) start [2025-01-01 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148955', 'tblTempUsageDetail_20' ) end [2025-01-01 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148955', 'tblTempVendorCDR_20' ) start [2025-01-01 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148955', 'tblTempVendorCDR_20' ) end [2025-01-01 06:10:18] Production.INFO: ProcessCDR(1,14148955,1,1,2) [2025-01-01 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148955', 'tblTempUsageDetail_20' ) start [2025-01-01 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148955', 'tblTempUsageDetail_20' ) end [2025-01-01 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:10:22] Production.INFO: ==12774== Releasing lock... [2025-01-01 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:10:22] Production.INFO: 28 MB #Memory Used# [2025-01-01 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:11:05 [end_date_ymd] => 2025-01-01 06:11:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:11:05' and `end` < '2025-01-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-01-01 06:11:18] Production.INFO: count ==50 [2025-01-01 06:11:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:11:05 - End Time 2025-01-01 06:11:05 [2025-01-01 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148960', 'tblTempUsageDetail_20' ) start [2025-01-01 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148960', 'tblTempUsageDetail_20' ) end [2025-01-01 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148960', 'tblTempVendorCDR_20' ) start [2025-01-01 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148960', 'tblTempVendorCDR_20' ) end [2025-01-01 06:11:18] Production.INFO: ProcessCDR(1,14148960,1,1,2) [2025-01-01 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148960', 'tblTempUsageDetail_20' ) start [2025-01-01 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148960', 'tblTempUsageDetail_20' ) end [2025-01-01 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:11:21] Production.INFO: ==12868== Releasing lock... [2025-01-01 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:11:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:12:05 [end_date_ymd] => 2025-01-01 06:12:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:12:05' and `end` < '2025-01-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-01-01 06:12:18] Production.INFO: count ==50 [2025-01-01 06:12:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:12:05 - End Time 2025-01-01 06:12:05 [2025-01-01 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148965', 'tblTempUsageDetail_20' ) start [2025-01-01 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148965', 'tblTempUsageDetail_20' ) end [2025-01-01 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148965', 'tblTempVendorCDR_20' ) start [2025-01-01 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148965', 'tblTempVendorCDR_20' ) end [2025-01-01 06:12:18] Production.INFO: ProcessCDR(1,14148965,1,1,2) [2025-01-01 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148965', 'tblTempUsageDetail_20' ) start [2025-01-01 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148965', 'tblTempUsageDetail_20' ) end [2025-01-01 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:12:21] Production.INFO: ==12958== Releasing lock... [2025-01-01 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:12:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:13:05 [end_date_ymd] => 2025-01-01 06:13:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:13:05' and `end` < '2025-01-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-01-01 06:13:18] Production.INFO: count ==50 [2025-01-01 06:13:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:13:05 - End Time 2025-01-01 06:13:05 [2025-01-01 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148970', 'tblTempUsageDetail_20' ) start [2025-01-01 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148970', 'tblTempUsageDetail_20' ) end [2025-01-01 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148970', 'tblTempVendorCDR_20' ) start [2025-01-01 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148970', 'tblTempVendorCDR_20' ) end [2025-01-01 06:13:18] Production.INFO: ProcessCDR(1,14148970,1,1,2) [2025-01-01 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148970', 'tblTempUsageDetail_20' ) start [2025-01-01 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148970', 'tblTempUsageDetail_20' ) end [2025-01-01 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:13:21] Production.INFO: ==13057== Releasing lock... [2025-01-01 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:13:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:14:05 [end_date_ymd] => 2025-01-01 06:14:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:14:05' and `end` < '2025-01-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-01-01 06:14:18] Production.INFO: count ==48 [2025-01-01 06:14:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:14:05 - End Time 2025-01-01 06:14:05 [2025-01-01 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148975', 'tblTempUsageDetail_20' ) start [2025-01-01 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148975', 'tblTempUsageDetail_20' ) end [2025-01-01 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148975', 'tblTempVendorCDR_20' ) start [2025-01-01 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148975', 'tblTempVendorCDR_20' ) end [2025-01-01 06:14:18] Production.INFO: ProcessCDR(1,14148975,1,1,2) [2025-01-01 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148975', 'tblTempUsageDetail_20' ) start [2025-01-01 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148975', 'tblTempUsageDetail_20' ) end [2025-01-01 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:14:21] Production.INFO: ==13164== Releasing lock... [2025-01-01 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 06:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:15:04 [end_date_ymd] => 2025-01-01 06:15:04 [RateCDR] => 1 ) [2025-01-01 06:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 03:15:04' and `end` < '2025-01-01 06:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 06:15:17] Production.INFO: count ==48 [2025-01-01 06:15:17] Production.ERROR: pbx CDR StartTime 2025-01-01 03:15:04 - End Time 2025-01-01 06:15:04 [2025-01-01 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148980', 'tblTempUsageDetail_20' ) start [2025-01-01 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148980', 'tblTempUsageDetail_20' ) end [2025-01-01 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148980', 'tblTempVendorCDR_20' ) start [2025-01-01 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148980', 'tblTempVendorCDR_20' ) end [2025-01-01 06:15:17] Production.INFO: ProcessCDR(1,14148980,1,1,2) [2025-01-01 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148980', 'tblTempUsageDetail_20' ) start [2025-01-01 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148980', 'tblTempUsageDetail_20' ) end [2025-01-01 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:15:20] Production.INFO: ==13266== Releasing lock... [2025-01-01 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:15:20] Production.INFO: 28 MB #Memory Used# [2025-01-01 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:16:05 [end_date_ymd] => 2025-01-01 06:16:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:16:05' and `end` < '2025-01-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-01-01 06:16:17] Production.INFO: count ==48 [2025-01-01 06:16:17] Production.ERROR: pbx CDR StartTime 2025-01-01 03:16:05 - End Time 2025-01-01 06:16:05 [2025-01-01 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148984', 'tblTempUsageDetail_20' ) start [2025-01-01 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148984', 'tblTempUsageDetail_20' ) end [2025-01-01 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148984', 'tblTempVendorCDR_20' ) start [2025-01-01 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148984', 'tblTempVendorCDR_20' ) end [2025-01-01 06:16:17] Production.INFO: ProcessCDR(1,14148984,1,1,2) [2025-01-01 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148984', 'tblTempUsageDetail_20' ) start [2025-01-01 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148984', 'tblTempUsageDetail_20' ) end [2025-01-01 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:16:21] Production.INFO: ==13370== Releasing lock... [2025-01-01 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:16:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 06:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:17:04 [end_date_ymd] => 2025-01-01 06:17:04 [RateCDR] => 1 ) [2025-01-01 06: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-01 03:17:04' and `end` < '2025-01-01 06: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-01-01 06:17:17] Production.INFO: count ==48 [2025-01-01 06:17:17] Production.ERROR: pbx CDR StartTime 2025-01-01 03:17:04 - End Time 2025-01-01 06:17:04 [2025-01-01 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148990', 'tblTempUsageDetail_20' ) start [2025-01-01 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148990', 'tblTempUsageDetail_20' ) end [2025-01-01 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148990', 'tblTempVendorCDR_20' ) start [2025-01-01 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148990', 'tblTempVendorCDR_20' ) end [2025-01-01 06:17:17] Production.INFO: ProcessCDR(1,14148990,1,1,2) [2025-01-01 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148990', 'tblTempUsageDetail_20' ) start [2025-01-01 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148990', 'tblTempUsageDetail_20' ) end [2025-01-01 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:17:20] Production.INFO: ==13464== Releasing lock... [2025-01-01 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:17:20] Production.INFO: 28 MB #Memory Used# [2025-01-01 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:18:05 [end_date_ymd] => 2025-01-01 06:18:05 [RateCDR] => 1 ) [2025-01-01 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 03:18:05' and `end` < '2025-01-01 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 06:18:18] Production.INFO: count ==47 [2025-01-01 06:18:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:18:05 - End Time 2025-01-01 06:18:05 [2025-01-01 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148995', 'tblTempUsageDetail_20' ) start [2025-01-01 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14148995', 'tblTempUsageDetail_20' ) end [2025-01-01 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148995', 'tblTempVendorCDR_20' ) start [2025-01-01 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14148995', 'tblTempVendorCDR_20' ) end [2025-01-01 06:18:18] Production.INFO: ProcessCDR(1,14148995,1,1,2) [2025-01-01 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14148995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14148995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14148995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14148995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148995', 'tblTempUsageDetail_20' ) start [2025-01-01 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14148995', 'tblTempUsageDetail_20' ) end [2025-01-01 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:18:21] Production.INFO: ==13556== Releasing lock... [2025-01-01 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:18:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 06:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:19:04 [end_date_ymd] => 2025-01-01 06:19:04 [RateCDR] => 1 ) [2025-01-01 06: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-01-01 03:19:04' and `end` < '2025-01-01 06: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-01-01 06:19:17] Production.INFO: count ==47 [2025-01-01 06:19:17] Production.ERROR: pbx CDR StartTime 2025-01-01 03:19:04 - End Time 2025-01-01 06:19:04 [2025-01-01 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149000', 'tblTempUsageDetail_20' ) start [2025-01-01 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149000', 'tblTempUsageDetail_20' ) end [2025-01-01 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149000', 'tblTempVendorCDR_20' ) start [2025-01-01 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149000', 'tblTempVendorCDR_20' ) end [2025-01-01 06:19:17] Production.INFO: ProcessCDR(1,14149000,1,1,2) [2025-01-01 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149000', 'tblTempUsageDetail_20' ) start [2025-01-01 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149000', 'tblTempUsageDetail_20' ) end [2025-01-01 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:19:20] Production.INFO: ==13646== Releasing lock... [2025-01-01 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:19:20] Production.INFO: 28 MB #Memory Used# [2025-01-01 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:20:06 [end_date_ymd] => 2025-01-01 06:20:06 [RateCDR] => 1 ) [2025-01-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-01-01 03:20:06' and `end` < '2025-01-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-01-01 06:20:18] Production.INFO: count ==39 [2025-01-01 06:20:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:20:06 - End Time 2025-01-01 06:20:06 [2025-01-01 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149005', 'tblTempUsageDetail_20' ) start [2025-01-01 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149005', 'tblTempUsageDetail_20' ) end [2025-01-01 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149005', 'tblTempVendorCDR_20' ) start [2025-01-01 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149005', 'tblTempVendorCDR_20' ) end [2025-01-01 06:20:18] Production.INFO: ProcessCDR(1,14149005,1,1,2) [2025-01-01 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149005', 'tblTempUsageDetail_20' ) start [2025-01-01 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149005', 'tblTempUsageDetail_20' ) end [2025-01-01 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:20:21] Production.INFO: ==13737== Releasing lock... [2025-01-01 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:20:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 06:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:21:04 [end_date_ymd] => 2025-01-01 06:21:04 [RateCDR] => 1 ) [2025-01-01 06: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-01 03:21:04' and `end` < '2025-01-01 06: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-01-01 06:21:18] Production.INFO: count ==35 [2025-01-01 06:21:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:21:04 - End Time 2025-01-01 06:21:04 [2025-01-01 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149011', 'tblTempUsageDetail_20' ) start [2025-01-01 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149011', 'tblTempUsageDetail_20' ) end [2025-01-01 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149011', 'tblTempVendorCDR_20' ) start [2025-01-01 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149011', 'tblTempVendorCDR_20' ) end [2025-01-01 06:21:18] Production.INFO: ProcessCDR(1,14149011,1,1,2) [2025-01-01 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149011', 'tblTempUsageDetail_20' ) start [2025-01-01 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149011', 'tblTempUsageDetail_20' ) end [2025-01-01 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:21:21] Production.INFO: ==13817== Releasing lock... [2025-01-01 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:21:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:22:05 [end_date_ymd] => 2025-01-01 06:22:05 [RateCDR] => 1 ) [2025-01-01 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 03:22:05' and `end` < '2025-01-01 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 06:22:18] Production.INFO: count ==35 [2025-01-01 06:22:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:22:05 - End Time 2025-01-01 06:22:05 [2025-01-01 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149016', 'tblTempUsageDetail_20' ) start [2025-01-01 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149016', 'tblTempUsageDetail_20' ) end [2025-01-01 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149016', 'tblTempVendorCDR_20' ) start [2025-01-01 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149016', 'tblTempVendorCDR_20' ) end [2025-01-01 06:22:18] Production.INFO: ProcessCDR(1,14149016,1,1,2) [2025-01-01 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149016', 'tblTempUsageDetail_20' ) start [2025-01-01 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149016', 'tblTempUsageDetail_20' ) end [2025-01-01 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:22:21] Production.INFO: ==13900== Releasing lock... [2025-01-01 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:22:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:23:04 [end_date_ymd] => 2025-01-01 06:23:04 [RateCDR] => 1 ) [2025-01-01 06:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 03:23:04' and `end` < '2025-01-01 06:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 06:23:18] Production.INFO: count ==35 [2025-01-01 06:23:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:23:04 - End Time 2025-01-01 06:23:04 [2025-01-01 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149021', 'tblTempUsageDetail_20' ) start [2025-01-01 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149021', 'tblTempUsageDetail_20' ) end [2025-01-01 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149021', 'tblTempVendorCDR_20' ) start [2025-01-01 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149021', 'tblTempVendorCDR_20' ) end [2025-01-01 06:23:18] Production.INFO: ProcessCDR(1,14149021,1,1,2) [2025-01-01 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149021', 'tblTempUsageDetail_20' ) start [2025-01-01 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149021', 'tblTempUsageDetail_20' ) end [2025-01-01 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:23:21] Production.INFO: ==13981== Releasing lock... [2025-01-01 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:23:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:24:05 [end_date_ymd] => 2025-01-01 06:24:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:24:05' and `end` < '2025-01-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-01-01 06:24:17] Production.INFO: count ==35 [2025-01-01 06:24:17] Production.ERROR: pbx CDR StartTime 2025-01-01 03:24:05 - End Time 2025-01-01 06:24:05 [2025-01-01 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149026', 'tblTempUsageDetail_20' ) start [2025-01-01 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149026', 'tblTempUsageDetail_20' ) end [2025-01-01 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149026', 'tblTempVendorCDR_20' ) start [2025-01-01 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149026', 'tblTempVendorCDR_20' ) end [2025-01-01 06:24:17] Production.INFO: ProcessCDR(1,14149026,1,1,2) [2025-01-01 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149026', 'tblTempUsageDetail_20' ) start [2025-01-01 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149026', 'tblTempUsageDetail_20' ) end [2025-01-01 06:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:24:20] Production.INFO: ==14066== Releasing lock... [2025-01-01 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:24:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:25:05 [end_date_ymd] => 2025-01-01 06:25:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:25:05' and `end` < '2025-01-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-01-01 06:25:18] Production.INFO: count ==35 [2025-01-01 06:25:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:25:05 - End Time 2025-01-01 06:25:05 [2025-01-01 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149031', 'tblTempUsageDetail_20' ) start [2025-01-01 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149031', 'tblTempUsageDetail_20' ) end [2025-01-01 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149031', 'tblTempVendorCDR_20' ) start [2025-01-01 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149031', 'tblTempVendorCDR_20' ) end [2025-01-01 06:25:18] Production.INFO: ProcessCDR(1,14149031,1,1,2) [2025-01-01 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149031', 'tblTempUsageDetail_20' ) start [2025-01-01 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149031', 'tblTempUsageDetail_20' ) end [2025-01-01 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:25:21] Production.INFO: ==14153== Releasing lock... [2025-01-01 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:25:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:26:05 [end_date_ymd] => 2025-01-01 06:26:05 [RateCDR] => 1 ) [2025-01-01 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 03:26:05' and `end` < '2025-01-01 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 06:26:18] Production.INFO: count ==35 [2025-01-01 06:26:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:26:05 - End Time 2025-01-01 06:26:05 [2025-01-01 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149036', 'tblTempUsageDetail_20' ) start [2025-01-01 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149036', 'tblTempUsageDetail_20' ) end [2025-01-01 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149036', 'tblTempVendorCDR_20' ) start [2025-01-01 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149036', 'tblTempVendorCDR_20' ) end [2025-01-01 06:26:18] Production.INFO: ProcessCDR(1,14149036,1,1,2) [2025-01-01 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149036', 'tblTempUsageDetail_20' ) start [2025-01-01 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149036', 'tblTempUsageDetail_20' ) end [2025-01-01 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:26:21] Production.INFO: ==14277== Releasing lock... [2025-01-01 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:26:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:27:05 [end_date_ymd] => 2025-01-01 06:27:05 [RateCDR] => 1 ) [2025-01-01 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 03:27:05' and `end` < '2025-01-01 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 06:27:18] Production.INFO: count ==35 [2025-01-01 06:27:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:27:05 - End Time 2025-01-01 06:27:05 [2025-01-01 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149041', 'tblTempUsageDetail_20' ) start [2025-01-01 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149041', 'tblTempUsageDetail_20' ) end [2025-01-01 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149041', 'tblTempVendorCDR_20' ) start [2025-01-01 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149041', 'tblTempVendorCDR_20' ) end [2025-01-01 06:27:18] Production.INFO: ProcessCDR(1,14149041,1,1,2) [2025-01-01 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149041', 'tblTempUsageDetail_20' ) start [2025-01-01 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149041', 'tblTempUsageDetail_20' ) end [2025-01-01 06:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:27:20] Production.INFO: ==14362== Releasing lock... [2025-01-01 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:27:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:28:04 [end_date_ymd] => 2025-01-01 06:28:04 [RateCDR] => 1 ) [2025-01-01 06: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-01-01 03:28:04' and `end` < '2025-01-01 06: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-01-01 06:28:17] Production.INFO: count ==35 [2025-01-01 06:28:17] Production.ERROR: pbx CDR StartTime 2025-01-01 03:28:04 - End Time 2025-01-01 06:28:04 [2025-01-01 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149046', 'tblTempUsageDetail_20' ) start [2025-01-01 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149046', 'tblTempUsageDetail_20' ) end [2025-01-01 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149046', 'tblTempVendorCDR_20' ) start [2025-01-01 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149046', 'tblTempVendorCDR_20' ) end [2025-01-01 06:28:17] Production.INFO: ProcessCDR(1,14149046,1,1,2) [2025-01-01 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149046', 'tblTempUsageDetail_20' ) start [2025-01-01 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149046', 'tblTempUsageDetail_20' ) end [2025-01-01 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:28:20] Production.INFO: ==14440== Releasing lock... [2025-01-01 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:28:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:29:05 [end_date_ymd] => 2025-01-01 06:29:05 [RateCDR] => 1 ) [2025-01-01 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 03:29:05' and `end` < '2025-01-01 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 06:29:19] Production.INFO: count ==35 [2025-01-01 06:29:19] Production.ERROR: pbx CDR StartTime 2025-01-01 03:29:05 - End Time 2025-01-01 06:29:05 [2025-01-01 06:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149051', 'tblTempUsageDetail_20' ) start [2025-01-01 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149051', 'tblTempUsageDetail_20' ) end [2025-01-01 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149051', 'tblTempVendorCDR_20' ) start [2025-01-01 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149051', 'tblTempVendorCDR_20' ) end [2025-01-01 06:29:19] Production.INFO: ProcessCDR(1,14149051,1,1,2) [2025-01-01 06:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149051', 'tblTempUsageDetail_20' ) start [2025-01-01 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149051', 'tblTempUsageDetail_20' ) end [2025-01-01 06:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:29:22] Production.INFO: ==14523== Releasing lock... [2025-01-01 06:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:29:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:30:06 [end_date_ymd] => 2025-01-01 06:30:06 [RateCDR] => 1 ) [2025-01-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-01-01 03:30:06' and `end` < '2025-01-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-01-01 06:30:18] Production.INFO: count ==29 [2025-01-01 06:30:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:30:06 - End Time 2025-01-01 06:30:06 [2025-01-01 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149057', 'tblTempUsageDetail_20' ) start [2025-01-01 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149057', 'tblTempUsageDetail_20' ) end [2025-01-01 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149057', 'tblTempVendorCDR_20' ) start [2025-01-01 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149057', 'tblTempVendorCDR_20' ) end [2025-01-01 06:30:18] Production.INFO: ProcessCDR(1,14149057,1,1,2) [2025-01-01 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149057', 'tblTempUsageDetail_20' ) start [2025-01-01 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149057', 'tblTempUsageDetail_20' ) end [2025-01-01 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:30:22] Production.INFO: ==14619== Releasing lock... [2025-01-01 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:30:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:31:05 [end_date_ymd] => 2025-01-01 06:31:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:31:05' and `end` < '2025-01-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-01-01 06:31:17] Production.INFO: count ==29 [2025-01-01 06:31:17] Production.ERROR: pbx CDR StartTime 2025-01-01 03:31:05 - End Time 2025-01-01 06:31:05 [2025-01-01 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149062', 'tblTempUsageDetail_20' ) start [2025-01-01 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149062', 'tblTempUsageDetail_20' ) end [2025-01-01 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149062', 'tblTempVendorCDR_20' ) start [2025-01-01 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149062', 'tblTempVendorCDR_20' ) end [2025-01-01 06:31:17] Production.INFO: ProcessCDR(1,14149062,1,1,2) [2025-01-01 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149062', 'tblTempUsageDetail_20' ) start [2025-01-01 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149062', 'tblTempUsageDetail_20' ) end [2025-01-01 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:31:21] Production.INFO: ==14711== Releasing lock... [2025-01-01 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:31:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:32:05 [end_date_ymd] => 2025-01-01 06:32:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:32:05' and `end` < '2025-01-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-01-01 06:32:18] Production.INFO: count ==29 [2025-01-01 06:32:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:32:05 - End Time 2025-01-01 06:32:05 [2025-01-01 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149067', 'tblTempUsageDetail_20' ) start [2025-01-01 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149067', 'tblTempUsageDetail_20' ) end [2025-01-01 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149067', 'tblTempVendorCDR_20' ) start [2025-01-01 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149067', 'tblTempVendorCDR_20' ) end [2025-01-01 06:32:18] Production.INFO: ProcessCDR(1,14149067,1,1,2) [2025-01-01 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149067', 'tblTempUsageDetail_20' ) start [2025-01-01 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149067', 'tblTempUsageDetail_20' ) end [2025-01-01 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:32:21] Production.INFO: ==14791== Releasing lock... [2025-01-01 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:32:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:33:04 [end_date_ymd] => 2025-01-01 06:33:04 [RateCDR] => 1 ) [2025-01-01 06: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-01-01 03:33:04' and `end` < '2025-01-01 06: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-01-01 06:33:18] Production.INFO: count ==29 [2025-01-01 06:33:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:33:04 - End Time 2025-01-01 06:33:04 [2025-01-01 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149072', 'tblTempUsageDetail_20' ) start [2025-01-01 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149072', 'tblTempUsageDetail_20' ) end [2025-01-01 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149072', 'tblTempVendorCDR_20' ) start [2025-01-01 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149072', 'tblTempVendorCDR_20' ) end [2025-01-01 06:33:18] Production.INFO: ProcessCDR(1,14149072,1,1,2) [2025-01-01 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149072', 'tblTempUsageDetail_20' ) start [2025-01-01 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149072', 'tblTempUsageDetail_20' ) end [2025-01-01 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:33:21] Production.INFO: ==14869== Releasing lock... [2025-01-01 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:33:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:34:05 [end_date_ymd] => 2025-01-01 06:34:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:34:05' and `end` < '2025-01-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-01-01 06:34:18] Production.INFO: count ==29 [2025-01-01 06:34:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:34:05 - End Time 2025-01-01 06:34:05 [2025-01-01 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149077', 'tblTempUsageDetail_20' ) start [2025-01-01 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149077', 'tblTempUsageDetail_20' ) end [2025-01-01 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149077', 'tblTempVendorCDR_20' ) start [2025-01-01 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149077', 'tblTempVendorCDR_20' ) end [2025-01-01 06:34:18] Production.INFO: ProcessCDR(1,14149077,1,1,2) [2025-01-01 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149077', 'tblTempUsageDetail_20' ) start [2025-01-01 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149077', 'tblTempUsageDetail_20' ) end [2025-01-01 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:34:21] Production.INFO: ==14948== Releasing lock... [2025-01-01 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:34:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:35:05 [end_date_ymd] => 2025-01-01 06:35:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:35:05' and `end` < '2025-01-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-01-01 06:35:17] Production.INFO: count ==29 [2025-01-01 06:35:17] Production.ERROR: pbx CDR StartTime 2025-01-01 03:35:05 - End Time 2025-01-01 06:35:05 [2025-01-01 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149082', 'tblTempUsageDetail_20' ) start [2025-01-01 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149082', 'tblTempUsageDetail_20' ) end [2025-01-01 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149082', 'tblTempVendorCDR_20' ) start [2025-01-01 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149082', 'tblTempVendorCDR_20' ) end [2025-01-01 06:35:17] Production.INFO: ProcessCDR(1,14149082,1,1,2) [2025-01-01 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149082', 'tblTempUsageDetail_20' ) start [2025-01-01 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149082', 'tblTempUsageDetail_20' ) end [2025-01-01 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:35:20] Production.INFO: ==15027== Releasing lock... [2025-01-01 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:35:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:36:05 [end_date_ymd] => 2025-01-01 06:36:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:36:05' and `end` < '2025-01-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-01-01 06:36:18] Production.INFO: count ==29 [2025-01-01 06:36:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:36:05 - End Time 2025-01-01 06:36:05 [2025-01-01 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149087', 'tblTempUsageDetail_20' ) start [2025-01-01 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149087', 'tblTempUsageDetail_20' ) end [2025-01-01 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149087', 'tblTempVendorCDR_20' ) start [2025-01-01 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149087', 'tblTempVendorCDR_20' ) end [2025-01-01 06:36:18] Production.INFO: ProcessCDR(1,14149087,1,1,2) [2025-01-01 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149087', 'tblTempUsageDetail_20' ) start [2025-01-01 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149087', 'tblTempUsageDetail_20' ) end [2025-01-01 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:36:21] Production.INFO: ==15104== Releasing lock... [2025-01-01 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:36:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:37:05 [end_date_ymd] => 2025-01-01 06:37:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:37:05' and `end` < '2025-01-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-01-01 06:37:17] Production.INFO: count ==29 [2025-01-01 06:37:17] Production.ERROR: pbx CDR StartTime 2025-01-01 03:37:05 - End Time 2025-01-01 06:37:05 [2025-01-01 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149092', 'tblTempUsageDetail_20' ) start [2025-01-01 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149092', 'tblTempUsageDetail_20' ) end [2025-01-01 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149092', 'tblTempVendorCDR_20' ) start [2025-01-01 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149092', 'tblTempVendorCDR_20' ) end [2025-01-01 06:37:17] Production.INFO: ProcessCDR(1,14149092,1,1,2) [2025-01-01 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149092', 'tblTempUsageDetail_20' ) start [2025-01-01 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149092', 'tblTempUsageDetail_20' ) end [2025-01-01 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:37:21] Production.INFO: ==15183== Releasing lock... [2025-01-01 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:37:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:38:05 [end_date_ymd] => 2025-01-01 06:38:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:38:05' and `end` < '2025-01-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-01-01 06:38:19] Production.INFO: count ==29 [2025-01-01 06:38:19] Production.ERROR: pbx CDR StartTime 2025-01-01 03:38:05 - End Time 2025-01-01 06:38:05 [2025-01-01 06:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149097', 'tblTempUsageDetail_20' ) start [2025-01-01 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149097', 'tblTempUsageDetail_20' ) end [2025-01-01 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149097', 'tblTempVendorCDR_20' ) start [2025-01-01 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149097', 'tblTempVendorCDR_20' ) end [2025-01-01 06:38:19] Production.INFO: ProcessCDR(1,14149097,1,1,2) [2025-01-01 06:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149097', 'tblTempUsageDetail_20' ) start [2025-01-01 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149097', 'tblTempUsageDetail_20' ) end [2025-01-01 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:38:22] Production.INFO: ==15255== Releasing lock... [2025-01-01 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:38:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:39:05 [end_date_ymd] => 2025-01-01 06:39:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:39:05' and `end` < '2025-01-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-01-01 06:39:18] Production.INFO: count ==29 [2025-01-01 06:39:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:39:05 - End Time 2025-01-01 06:39:05 [2025-01-01 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149102', 'tblTempUsageDetail_20' ) start [2025-01-01 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149102', 'tblTempUsageDetail_20' ) end [2025-01-01 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149102', 'tblTempVendorCDR_20' ) start [2025-01-01 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149102', 'tblTempVendorCDR_20' ) end [2025-01-01 06:39:18] Production.INFO: ProcessCDR(1,14149102,1,1,2) [2025-01-01 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149102', 'tblTempUsageDetail_20' ) start [2025-01-01 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149102', 'tblTempUsageDetail_20' ) end [2025-01-01 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:39:21] Production.INFO: ==15332== Releasing lock... [2025-01-01 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:39:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:40:05 [end_date_ymd] => 2025-01-01 06:40:05 [RateCDR] => 1 ) [2025-01-01 06: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-01-01 03:40:05' and `end` < '2025-01-01 06:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 06:40:18] Production.INFO: count ==27 [2025-01-01 06:40:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:40:05 - End Time 2025-01-01 06:40:05 [2025-01-01 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149108', 'tblTempUsageDetail_20' ) start [2025-01-01 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149108', 'tblTempUsageDetail_20' ) end [2025-01-01 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149108', 'tblTempVendorCDR_20' ) start [2025-01-01 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149108', 'tblTempVendorCDR_20' ) end [2025-01-01 06:40:18] Production.INFO: ProcessCDR(1,14149108,1,1,2) [2025-01-01 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149108', 'tblTempUsageDetail_20' ) start [2025-01-01 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149108', 'tblTempUsageDetail_20' ) end [2025-01-01 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:40:21] Production.INFO: ==15409== Releasing lock... [2025-01-01 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:40:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:41:05 [end_date_ymd] => 2025-01-01 06:41:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:41:05' and `end` < '2025-01-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-01-01 06:41:18] Production.INFO: count ==27 [2025-01-01 06:41:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:41:05 - End Time 2025-01-01 06:41:05 [2025-01-01 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149113', 'tblTempUsageDetail_20' ) start [2025-01-01 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149113', 'tblTempUsageDetail_20' ) end [2025-01-01 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149113', 'tblTempVendorCDR_20' ) start [2025-01-01 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149113', 'tblTempVendorCDR_20' ) end [2025-01-01 06:41:18] Production.INFO: ProcessCDR(1,14149113,1,1,2) [2025-01-01 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149113', 'tblTempUsageDetail_20' ) start [2025-01-01 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149113', 'tblTempUsageDetail_20' ) end [2025-01-01 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:41:21] Production.INFO: ==15487== Releasing lock... [2025-01-01 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:41:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:42:05 [end_date_ymd] => 2025-01-01 06:42:05 [RateCDR] => 1 ) [2025-01-01 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 03:42:05' and `end` < '2025-01-01 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 06:42:18] Production.INFO: count ==27 [2025-01-01 06:42:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:42:05 - End Time 2025-01-01 06:42:05 [2025-01-01 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149118', 'tblTempUsageDetail_20' ) start [2025-01-01 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149118', 'tblTempUsageDetail_20' ) end [2025-01-01 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149118', 'tblTempVendorCDR_20' ) start [2025-01-01 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149118', 'tblTempVendorCDR_20' ) end [2025-01-01 06:42:18] Production.INFO: ProcessCDR(1,14149118,1,1,2) [2025-01-01 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149118', 'tblTempUsageDetail_20' ) start [2025-01-01 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149118', 'tblTempUsageDetail_20' ) end [2025-01-01 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:42:21] Production.INFO: ==15601== Releasing lock... [2025-01-01 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:42:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:43:05 [end_date_ymd] => 2025-01-01 06:43:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:43:05' and `end` < '2025-01-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-01-01 06:43:18] Production.INFO: count ==27 [2025-01-01 06:43:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:43:05 - End Time 2025-01-01 06:43:05 [2025-01-01 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149123', 'tblTempUsageDetail_20' ) start [2025-01-01 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149123', 'tblTempUsageDetail_20' ) end [2025-01-01 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149123', 'tblTempVendorCDR_20' ) start [2025-01-01 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149123', 'tblTempVendorCDR_20' ) end [2025-01-01 06:43:18] Production.INFO: ProcessCDR(1,14149123,1,1,2) [2025-01-01 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149123', 'tblTempUsageDetail_20' ) start [2025-01-01 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149123', 'tblTempUsageDetail_20' ) end [2025-01-01 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:43:21] Production.INFO: ==15675== Releasing lock... [2025-01-01 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:43:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:44:05 [end_date_ymd] => 2025-01-01 06:44:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:44:05' and `end` < '2025-01-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-01-01 06:44:19] Production.INFO: count ==27 [2025-01-01 06:44:19] Production.ERROR: pbx CDR StartTime 2025-01-01 03:44:05 - End Time 2025-01-01 06:44:05 [2025-01-01 06:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149128', 'tblTempUsageDetail_20' ) start [2025-01-01 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149128', 'tblTempUsageDetail_20' ) end [2025-01-01 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149128', 'tblTempVendorCDR_20' ) start [2025-01-01 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149128', 'tblTempVendorCDR_20' ) end [2025-01-01 06:44:19] Production.INFO: ProcessCDR(1,14149128,1,1,2) [2025-01-01 06:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149128', 'tblTempUsageDetail_20' ) start [2025-01-01 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149128', 'tblTempUsageDetail_20' ) end [2025-01-01 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:44:22] Production.INFO: ==15752== Releasing lock... [2025-01-01 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:44:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:45:05 [end_date_ymd] => 2025-01-01 06:45:05 [RateCDR] => 1 ) [2025-01-01 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 03:45:05' and `end` < '2025-01-01 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 06:45:17] Production.INFO: count ==26 [2025-01-01 06:45:17] Production.ERROR: pbx CDR StartTime 2025-01-01 03:45:05 - End Time 2025-01-01 06:45:05 [2025-01-01 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149133', 'tblTempUsageDetail_20' ) start [2025-01-01 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149133', 'tblTempUsageDetail_20' ) end [2025-01-01 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149133', 'tblTempVendorCDR_20' ) start [2025-01-01 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149133', 'tblTempVendorCDR_20' ) end [2025-01-01 06:45:17] Production.INFO: ProcessCDR(1,14149133,1,1,2) [2025-01-01 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149133', 'tblTempUsageDetail_20' ) start [2025-01-01 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149133', 'tblTempUsageDetail_20' ) end [2025-01-01 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:45:20] Production.INFO: ==15830== Releasing lock... [2025-01-01 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:45:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:46:04 [end_date_ymd] => 2025-01-01 06:46:04 [RateCDR] => 1 ) [2025-01-01 06:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 03:46:04' and `end` < '2025-01-01 06:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 06:46:17] Production.INFO: count ==26 [2025-01-01 06:46:17] Production.ERROR: pbx CDR StartTime 2025-01-01 03:46:04 - End Time 2025-01-01 06:46:04 [2025-01-01 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149138', 'tblTempUsageDetail_20' ) start [2025-01-01 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149138', 'tblTempUsageDetail_20' ) end [2025-01-01 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149138', 'tblTempVendorCDR_20' ) start [2025-01-01 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149138', 'tblTempVendorCDR_20' ) end [2025-01-01 06:46:17] Production.INFO: ProcessCDR(1,14149138,1,1,2) [2025-01-01 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149138', 'tblTempUsageDetail_20' ) start [2025-01-01 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149138', 'tblTempUsageDetail_20' ) end [2025-01-01 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:46:20] Production.INFO: ==15908== Releasing lock... [2025-01-01 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:46:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:47:05 [end_date_ymd] => 2025-01-01 06:47:05 [RateCDR] => 1 ) [2025-01-01 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 03:47:05' and `end` < '2025-01-01 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 06:47:19] Production.INFO: count ==26 [2025-01-01 06:47:19] Production.ERROR: pbx CDR StartTime 2025-01-01 03:47:05 - End Time 2025-01-01 06:47:05 [2025-01-01 06:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149143', 'tblTempUsageDetail_20' ) start [2025-01-01 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149143', 'tblTempUsageDetail_20' ) end [2025-01-01 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149143', 'tblTempVendorCDR_20' ) start [2025-01-01 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149143', 'tblTempVendorCDR_20' ) end [2025-01-01 06:47:19] Production.INFO: ProcessCDR(1,14149143,1,1,2) [2025-01-01 06:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149143', 'tblTempUsageDetail_20' ) start [2025-01-01 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149143', 'tblTempUsageDetail_20' ) end [2025-01-01 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:47:22] Production.INFO: ==15982== Releasing lock... [2025-01-01 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:47:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:48:05 [end_date_ymd] => 2025-01-01 06:48:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:48:05' and `end` < '2025-01-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-01-01 06:48:19] Production.INFO: count ==26 [2025-01-01 06:48:19] Production.ERROR: pbx CDR StartTime 2025-01-01 03:48:05 - End Time 2025-01-01 06:48:05 [2025-01-01 06:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149148', 'tblTempUsageDetail_20' ) start [2025-01-01 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149148', 'tblTempUsageDetail_20' ) end [2025-01-01 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149148', 'tblTempVendorCDR_20' ) start [2025-01-01 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149148', 'tblTempVendorCDR_20' ) end [2025-01-01 06:48:19] Production.INFO: ProcessCDR(1,14149148,1,1,2) [2025-01-01 06:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149148', 'tblTempUsageDetail_20' ) start [2025-01-01 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149148', 'tblTempUsageDetail_20' ) end [2025-01-01 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:48:22] Production.INFO: ==16059== Releasing lock... [2025-01-01 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:48:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:49:04 [end_date_ymd] => 2025-01-01 06:49:04 [RateCDR] => 1 ) [2025-01-01 06: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-01-01 03:49:04' and `end` < '2025-01-01 06: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-01-01 06:49:17] Production.INFO: count ==26 [2025-01-01 06:49:17] Production.ERROR: pbx CDR StartTime 2025-01-01 03:49:04 - End Time 2025-01-01 06:49:04 [2025-01-01 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149153', 'tblTempUsageDetail_20' ) start [2025-01-01 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149153', 'tblTempUsageDetail_20' ) end [2025-01-01 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149153', 'tblTempVendorCDR_20' ) start [2025-01-01 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149153', 'tblTempVendorCDR_20' ) end [2025-01-01 06:49:17] Production.INFO: ProcessCDR(1,14149153,1,1,2) [2025-01-01 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149153', 'tblTempUsageDetail_20' ) start [2025-01-01 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149153', 'tblTempUsageDetail_20' ) end [2025-01-01 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:49:20] Production.INFO: ==16128== Releasing lock... [2025-01-01 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:49:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:50:06 [end_date_ymd] => 2025-01-01 06:50:06 [RateCDR] => 1 ) [2025-01-01 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 03:50:06' and `end` < '2025-01-01 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 06:50:19] Production.INFO: count ==22 [2025-01-01 06:50:19] Production.ERROR: pbx CDR StartTime 2025-01-01 03:50:06 - End Time 2025-01-01 06:50:06 [2025-01-01 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149159', 'tblTempUsageDetail_20' ) start [2025-01-01 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149159', 'tblTempUsageDetail_20' ) end [2025-01-01 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149159', 'tblTempVendorCDR_20' ) start [2025-01-01 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149159', 'tblTempVendorCDR_20' ) end [2025-01-01 06:50:19] Production.INFO: ProcessCDR(1,14149159,1,1,2) [2025-01-01 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149159', 'tblTempUsageDetail_20' ) start [2025-01-01 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149159', 'tblTempUsageDetail_20' ) end [2025-01-01 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:50:22] Production.INFO: ==16206== Releasing lock... [2025-01-01 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:50:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:51:04 [end_date_ymd] => 2025-01-01 06:51:04 [RateCDR] => 1 ) [2025-01-01 06: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-01-01 03:51:04' and `end` < '2025-01-01 06: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-01-01 06:51:18] Production.INFO: count ==22 [2025-01-01 06:51:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:51:04 - End Time 2025-01-01 06:51:04 [2025-01-01 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149164', 'tblTempUsageDetail_20' ) start [2025-01-01 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149164', 'tblTempUsageDetail_20' ) end [2025-01-01 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149164', 'tblTempVendorCDR_20' ) start [2025-01-01 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149164', 'tblTempVendorCDR_20' ) end [2025-01-01 06:51:18] Production.INFO: ProcessCDR(1,14149164,1,1,2) [2025-01-01 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149164', 'tblTempUsageDetail_20' ) start [2025-01-01 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149164', 'tblTempUsageDetail_20' ) end [2025-01-01 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:51:21] Production.INFO: ==16280== Releasing lock... [2025-01-01 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:51:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:52:05 [end_date_ymd] => 2025-01-01 06:52:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:52:05' and `end` < '2025-01-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-01-01 06:52:18] Production.INFO: count ==22 [2025-01-01 06:52:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:52:05 - End Time 2025-01-01 06:52:05 [2025-01-01 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149169', 'tblTempUsageDetail_20' ) start [2025-01-01 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149169', 'tblTempUsageDetail_20' ) end [2025-01-01 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149169', 'tblTempVendorCDR_20' ) start [2025-01-01 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149169', 'tblTempVendorCDR_20' ) end [2025-01-01 06:52:18] Production.INFO: ProcessCDR(1,14149169,1,1,2) [2025-01-01 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149169', 'tblTempUsageDetail_20' ) start [2025-01-01 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149169', 'tblTempUsageDetail_20' ) end [2025-01-01 06:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:52:20] Production.INFO: ==16353== Releasing lock... [2025-01-01 06:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:52:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:53:04 [end_date_ymd] => 2025-01-01 06:53:04 [RateCDR] => 1 ) [2025-01-01 06: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-01-01 03:53:04' and `end` < '2025-01-01 06: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-01-01 06:53:17] Production.INFO: count ==22 [2025-01-01 06:53:17] Production.ERROR: pbx CDR StartTime 2025-01-01 03:53:04 - End Time 2025-01-01 06:53:04 [2025-01-01 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149174', 'tblTempUsageDetail_20' ) start [2025-01-01 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149174', 'tblTempUsageDetail_20' ) end [2025-01-01 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149174', 'tblTempVendorCDR_20' ) start [2025-01-01 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149174', 'tblTempVendorCDR_20' ) end [2025-01-01 06:53:17] Production.INFO: ProcessCDR(1,14149174,1,1,2) [2025-01-01 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149174', 'tblTempUsageDetail_20' ) start [2025-01-01 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149174', 'tblTempUsageDetail_20' ) end [2025-01-01 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:53:20] Production.INFO: ==16427== Releasing lock... [2025-01-01 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:53:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:54:04 [end_date_ymd] => 2025-01-01 06:54:04 [RateCDR] => 1 ) [2025-01-01 06: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-01-01 03:54:04' and `end` < '2025-01-01 06: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-01-01 06:54:18] Production.INFO: count ==22 [2025-01-01 06:54:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:54:04 - End Time 2025-01-01 06:54:04 [2025-01-01 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149179', 'tblTempUsageDetail_20' ) start [2025-01-01 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149179', 'tblTempUsageDetail_20' ) end [2025-01-01 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149179', 'tblTempVendorCDR_20' ) start [2025-01-01 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149179', 'tblTempVendorCDR_20' ) end [2025-01-01 06:54:18] Production.INFO: ProcessCDR(1,14149179,1,1,2) [2025-01-01 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149179', 'tblTempUsageDetail_20' ) start [2025-01-01 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149179', 'tblTempUsageDetail_20' ) end [2025-01-01 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:54:21] Production.INFO: ==16500== Releasing lock... [2025-01-01 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:54:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:55:05 [end_date_ymd] => 2025-01-01 06:55:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:55:05' and `end` < '2025-01-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-01-01 06:55:17] Production.INFO: count ==22 [2025-01-01 06:55:17] Production.ERROR: pbx CDR StartTime 2025-01-01 03:55:05 - End Time 2025-01-01 06:55:05 [2025-01-01 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149184', 'tblTempUsageDetail_20' ) start [2025-01-01 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149184', 'tblTempUsageDetail_20' ) end [2025-01-01 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149184', 'tblTempVendorCDR_20' ) start [2025-01-01 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149184', 'tblTempVendorCDR_20' ) end [2025-01-01 06:55:17] Production.INFO: ProcessCDR(1,14149184,1,1,2) [2025-01-01 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149184', 'tblTempUsageDetail_20' ) start [2025-01-01 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149184', 'tblTempUsageDetail_20' ) end [2025-01-01 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:55:20] Production.INFO: ==16573== Releasing lock... [2025-01-01 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:55:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:56:05 [end_date_ymd] => 2025-01-01 06:56:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:56:05' and `end` < '2025-01-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-01-01 06:56:18] Production.INFO: count ==22 [2025-01-01 06:56:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:56:05 - End Time 2025-01-01 06:56:05 [2025-01-01 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149189', 'tblTempUsageDetail_20' ) start [2025-01-01 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149189', 'tblTempUsageDetail_20' ) end [2025-01-01 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149189', 'tblTempVendorCDR_20' ) start [2025-01-01 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149189', 'tblTempVendorCDR_20' ) end [2025-01-01 06:56:18] Production.INFO: ProcessCDR(1,14149189,1,1,2) [2025-01-01 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149189', 'tblTempUsageDetail_20' ) start [2025-01-01 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149189', 'tblTempUsageDetail_20' ) end [2025-01-01 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:56:21] Production.INFO: ==16650== Releasing lock... [2025-01-01 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:56:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:57:05 [end_date_ymd] => 2025-01-01 06:57:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:57:05' and `end` < '2025-01-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-01-01 06:57:18] Production.INFO: count ==22 [2025-01-01 06:57:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:57:05 - End Time 2025-01-01 06:57:05 [2025-01-01 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149194', 'tblTempUsageDetail_20' ) start [2025-01-01 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149194', 'tblTempUsageDetail_20' ) end [2025-01-01 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149194', 'tblTempVendorCDR_20' ) start [2025-01-01 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149194', 'tblTempVendorCDR_20' ) end [2025-01-01 06:57:18] Production.INFO: ProcessCDR(1,14149194,1,1,2) [2025-01-01 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149194', 'tblTempUsageDetail_20' ) start [2025-01-01 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149194', 'tblTempUsageDetail_20' ) end [2025-01-01 06:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:57:22] Production.INFO: ==16762== Releasing lock... [2025-01-01 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:57:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:58:04 [end_date_ymd] => 2025-01-01 06:58:04 [RateCDR] => 1 ) [2025-01-01 06: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-01-01 03:58:04' and `end` < '2025-01-01 06: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-01-01 06:58:18] Production.INFO: count ==22 [2025-01-01 06:58:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:58:04 - End Time 2025-01-01 06:58:04 [2025-01-01 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149199', 'tblTempUsageDetail_20' ) start [2025-01-01 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149199', 'tblTempUsageDetail_20' ) end [2025-01-01 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149199', 'tblTempVendorCDR_20' ) start [2025-01-01 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149199', 'tblTempVendorCDR_20' ) end [2025-01-01 06:58:18] Production.INFO: ProcessCDR(1,14149199,1,1,2) [2025-01-01 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149199', 'tblTempUsageDetail_20' ) start [2025-01-01 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149199', 'tblTempUsageDetail_20' ) end [2025-01-01 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:58:21] Production.INFO: ==16835== Releasing lock... [2025-01-01 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:58:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 03:59:05 [end_date_ymd] => 2025-01-01 06:59:05 [RateCDR] => 1 ) [2025-01-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-01-01 03:59:05' and `end` < '2025-01-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-01-01 06:59:18] Production.INFO: count ==22 [2025-01-01 06:59:18] Production.ERROR: pbx CDR StartTime 2025-01-01 03:59:05 - End Time 2025-01-01 06:59:05 [2025-01-01 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149204', 'tblTempUsageDetail_20' ) start [2025-01-01 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149204', 'tblTempUsageDetail_20' ) end [2025-01-01 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149204', 'tblTempVendorCDR_20' ) start [2025-01-01 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149204', 'tblTempVendorCDR_20' ) end [2025-01-01 06:59:18] Production.INFO: ProcessCDR(1,14149204,1,1,2) [2025-01-01 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149204', 'tblTempUsageDetail_20' ) start [2025-01-01 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149204', 'tblTempUsageDetail_20' ) end [2025-01-01 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 06:59:21] Production.INFO: ==16908== Releasing lock... [2025-01-01 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 06:59:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:00:05 [end_date_ymd] => 2025-01-01 07:00:05 [RateCDR] => 1 ) [2025-01-01 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 04:00:05' and `end` < '2025-01-01 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 07:00:18] Production.INFO: count ==18 [2025-01-01 07:00:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:00:05 - End Time 2025-01-01 07:00:05 [2025-01-01 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149210', 'tblTempUsageDetail_20' ) start [2025-01-01 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149210', 'tblTempUsageDetail_20' ) end [2025-01-01 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149210', 'tblTempVendorCDR_20' ) start [2025-01-01 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149210', 'tblTempVendorCDR_20' ) end [2025-01-01 07:00:18] Production.INFO: ProcessCDR(1,14149210,1,1,2) [2025-01-01 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149210', 'tblTempUsageDetail_20' ) start [2025-01-01 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149210', 'tblTempUsageDetail_20' ) end [2025-01-01 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:00:21] Production.INFO: ==16983== Releasing lock... [2025-01-01 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:00:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:01:05 [end_date_ymd] => 2025-01-01 07:01:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:01:05' and `end` < '2025-01-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-01-01 07:01:32] Production.INFO: count ==18 [2025-01-01 07:01:32] Production.ERROR: pbx CDR StartTime 2025-01-01 04:01:05 - End Time 2025-01-01 07:01:05 [2025-01-01 07:01:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149215', 'tblTempUsageDetail_20' ) start [2025-01-01 07:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149215', 'tblTempUsageDetail_20' ) end [2025-01-01 07:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149215', 'tblTempVendorCDR_20' ) start [2025-01-01 07:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149215', 'tblTempVendorCDR_20' ) end [2025-01-01 07:01:32] Production.INFO: ProcessCDR(1,14149215,1,1,2) [2025-01-01 07:01:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:01:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:01:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:01:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:01:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149215', 'tblTempUsageDetail_20' ) start [2025-01-01 07:01:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149215', 'tblTempUsageDetail_20' ) end [2025-01-01 07:01:35] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:01:35] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:01:35] Production.INFO: ==17072== Releasing lock... [2025-01-01 07:01:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:01:35] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:02:04 [end_date_ymd] => 2025-01-01 07:02:04 [RateCDR] => 1 ) [2025-01-01 07:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 04:02:04' and `end` < '2025-01-01 07:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 07:02:19] Production.INFO: count ==18 [2025-01-01 07:02:19] Production.ERROR: pbx CDR StartTime 2025-01-01 04:02:04 - End Time 2025-01-01 07:02:04 [2025-01-01 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149220', 'tblTempUsageDetail_20' ) start [2025-01-01 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149220', 'tblTempUsageDetail_20' ) end [2025-01-01 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149220', 'tblTempVendorCDR_20' ) start [2025-01-01 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149220', 'tblTempVendorCDR_20' ) end [2025-01-01 07:02:19] Production.INFO: ProcessCDR(1,14149220,1,1,2) [2025-01-01 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149220', 'tblTempUsageDetail_20' ) start [2025-01-01 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149220', 'tblTempUsageDetail_20' ) end [2025-01-01 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:02:22] Production.INFO: ==17224== Releasing lock... [2025-01-01 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:02:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:03:04 [end_date_ymd] => 2025-01-01 07:03:04 [RateCDR] => 1 ) [2025-01-01 07: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-01 04:03:04' and `end` < '2025-01-01 07: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-01-01 07:03:18] Production.INFO: count ==18 [2025-01-01 07:03:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:03:04 - End Time 2025-01-01 07:03:04 [2025-01-01 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149225', 'tblTempUsageDetail_20' ) start [2025-01-01 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149225', 'tblTempUsageDetail_20' ) end [2025-01-01 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149225', 'tblTempVendorCDR_20' ) start [2025-01-01 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149225', 'tblTempVendorCDR_20' ) end [2025-01-01 07:03:18] Production.INFO: ProcessCDR(1,14149225,1,1,2) [2025-01-01 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149225', 'tblTempUsageDetail_20' ) start [2025-01-01 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149225', 'tblTempUsageDetail_20' ) end [2025-01-01 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:03:21] Production.INFO: ==17295== Releasing lock... [2025-01-01 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:03:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:04:05 [end_date_ymd] => 2025-01-01 07:04:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:04:05' and `end` < '2025-01-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-01-01 07:04:19] Production.INFO: count ==18 [2025-01-01 07:04:19] Production.ERROR: pbx CDR StartTime 2025-01-01 04:04:05 - End Time 2025-01-01 07:04:05 [2025-01-01 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149230', 'tblTempUsageDetail_20' ) start [2025-01-01 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149230', 'tblTempUsageDetail_20' ) end [2025-01-01 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149230', 'tblTempVendorCDR_20' ) start [2025-01-01 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149230', 'tblTempVendorCDR_20' ) end [2025-01-01 07:04:19] Production.INFO: ProcessCDR(1,14149230,1,1,2) [2025-01-01 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149230', 'tblTempUsageDetail_20' ) start [2025-01-01 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149230', 'tblTempUsageDetail_20' ) end [2025-01-01 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:04:22] Production.INFO: ==17368== Releasing lock... [2025-01-01 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:04:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:05:04 [end_date_ymd] => 2025-01-01 07:05:04 [RateCDR] => 1 ) [2025-01-01 07: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-01 04:05:04' and `end` < '2025-01-01 07: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-01-01 07:05:18] Production.INFO: count ==18 [2025-01-01 07:05:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:05:04 - End Time 2025-01-01 07:05:04 [2025-01-01 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149235', 'tblTempUsageDetail_20' ) start [2025-01-01 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149235', 'tblTempUsageDetail_20' ) end [2025-01-01 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149235', 'tblTempVendorCDR_20' ) start [2025-01-01 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149235', 'tblTempVendorCDR_20' ) end [2025-01-01 07:05:18] Production.INFO: ProcessCDR(1,14149235,1,1,2) [2025-01-01 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149235', 'tblTempUsageDetail_20' ) start [2025-01-01 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149235', 'tblTempUsageDetail_20' ) end [2025-01-01 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:05:21] Production.INFO: ==17517== Releasing lock... [2025-01-01 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:05:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:06:05 [end_date_ymd] => 2025-01-01 07:06:05 [RateCDR] => 1 ) [2025-01-01 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 04:06:05' and `end` < '2025-01-01 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 07:06:19] Production.INFO: count ==18 [2025-01-01 07:06:19] Production.ERROR: pbx CDR StartTime 2025-01-01 04:06:05 - End Time 2025-01-01 07:06:05 [2025-01-01 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149240', 'tblTempUsageDetail_20' ) start [2025-01-01 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149240', 'tblTempUsageDetail_20' ) end [2025-01-01 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149240', 'tblTempVendorCDR_20' ) start [2025-01-01 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149240', 'tblTempVendorCDR_20' ) end [2025-01-01 07:06:19] Production.INFO: ProcessCDR(1,14149240,1,1,2) [2025-01-01 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149240', 'tblTempUsageDetail_20' ) start [2025-01-01 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149240', 'tblTempUsageDetail_20' ) end [2025-01-01 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:06:22] Production.INFO: ==17589== Releasing lock... [2025-01-01 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:06:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:07:04 [end_date_ymd] => 2025-01-01 07:07:04 [RateCDR] => 1 ) [2025-01-01 07: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-01-01 04:07:04' and `end` < '2025-01-01 07: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-01-01 07:07:18] Production.INFO: count ==18 [2025-01-01 07:07:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:07:04 - End Time 2025-01-01 07:07:04 [2025-01-01 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149245', 'tblTempUsageDetail_20' ) start [2025-01-01 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149245', 'tblTempUsageDetail_20' ) end [2025-01-01 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149245', 'tblTempVendorCDR_20' ) start [2025-01-01 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149245', 'tblTempVendorCDR_20' ) end [2025-01-01 07:07:18] Production.INFO: ProcessCDR(1,14149245,1,1,2) [2025-01-01 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149245', 'tblTempUsageDetail_20' ) start [2025-01-01 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149245', 'tblTempUsageDetail_20' ) end [2025-01-01 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:07:21] Production.INFO: ==17660== Releasing lock... [2025-01-01 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:07:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:08:05 [end_date_ymd] => 2025-01-01 07:08:05 [RateCDR] => 1 ) [2025-01-01 07: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-01 04:08:05' and `end` < '2025-01-01 07: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-01-01 07:08:20] Production.INFO: count ==18 [2025-01-01 07:08:20] Production.ERROR: pbx CDR StartTime 2025-01-01 04:08:05 - End Time 2025-01-01 07:08:05 [2025-01-01 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149250', 'tblTempUsageDetail_20' ) start [2025-01-01 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149250', 'tblTempUsageDetail_20' ) end [2025-01-01 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149250', 'tblTempVendorCDR_20' ) start [2025-01-01 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149250', 'tblTempVendorCDR_20' ) end [2025-01-01 07:08:20] Production.INFO: ProcessCDR(1,14149250,1,1,2) [2025-01-01 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149250', 'tblTempUsageDetail_20' ) start [2025-01-01 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149250', 'tblTempUsageDetail_20' ) end [2025-01-01 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:08:23] Production.INFO: ==17810== Releasing lock... [2025-01-01 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:08:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:09:05 [end_date_ymd] => 2025-01-01 07:09:05 [RateCDR] => 1 ) [2025-01-01 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 04:09:05' and `end` < '2025-01-01 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 07:09:18] Production.INFO: count ==18 [2025-01-01 07:09:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:09:05 - End Time 2025-01-01 07:09:05 [2025-01-01 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149255', 'tblTempUsageDetail_20' ) start [2025-01-01 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149255', 'tblTempUsageDetail_20' ) end [2025-01-01 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149255', 'tblTempVendorCDR_20' ) start [2025-01-01 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149255', 'tblTempVendorCDR_20' ) end [2025-01-01 07:09:18] Production.INFO: ProcessCDR(1,14149255,1,1,2) [2025-01-01 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149255', 'tblTempUsageDetail_20' ) start [2025-01-01 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149255', 'tblTempUsageDetail_20' ) end [2025-01-01 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:09:21] Production.INFO: ==17881== Releasing lock... [2025-01-01 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:09:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:10:05 [end_date_ymd] => 2025-01-01 07:10:05 [RateCDR] => 1 ) [2025-01-01 07: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-01 04:10:05' and `end` < '2025-01-01 07: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-01-01 07:10:20] Production.INFO: count ==16 [2025-01-01 07:10:20] Production.ERROR: pbx CDR StartTime 2025-01-01 04:10:05 - End Time 2025-01-01 07:10:05 [2025-01-01 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149261', 'tblTempUsageDetail_20' ) start [2025-01-01 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149261', 'tblTempUsageDetail_20' ) end [2025-01-01 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149261', 'tblTempVendorCDR_20' ) start [2025-01-01 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149261', 'tblTempVendorCDR_20' ) end [2025-01-01 07:10:20] Production.INFO: ProcessCDR(1,14149261,1,1,2) [2025-01-01 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149261', 'tblTempUsageDetail_20' ) start [2025-01-01 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149261', 'tblTempUsageDetail_20' ) end [2025-01-01 07:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:10:24] Production.INFO: ==17954== Releasing lock... [2025-01-01 07:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:10:24] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:11:05 [end_date_ymd] => 2025-01-01 07:11:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:11:05' and `end` < '2025-01-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-01-01 07:11:20] Production.INFO: count ==16 [2025-01-01 07:11:20] Production.ERROR: pbx CDR StartTime 2025-01-01 04:11:05 - End Time 2025-01-01 07:11:05 [2025-01-01 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149266', 'tblTempUsageDetail_20' ) start [2025-01-01 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149266', 'tblTempUsageDetail_20' ) end [2025-01-01 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149266', 'tblTempVendorCDR_20' ) start [2025-01-01 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149266', 'tblTempVendorCDR_20' ) end [2025-01-01 07:11:20] Production.INFO: ProcessCDR(1,14149266,1,1,2) [2025-01-01 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149266', 'tblTempUsageDetail_20' ) start [2025-01-01 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149266', 'tblTempUsageDetail_20' ) end [2025-01-01 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:11:23] Production.INFO: ==18026== Releasing lock... [2025-01-01 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:11:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:12:05 [end_date_ymd] => 2025-01-01 07:12:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:12:05' and `end` < '2025-01-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-01-01 07:12:18] Production.INFO: count ==16 [2025-01-01 07:12:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:12:05 - End Time 2025-01-01 07:12:05 [2025-01-01 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149271', 'tblTempUsageDetail_20' ) start [2025-01-01 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149271', 'tblTempUsageDetail_20' ) end [2025-01-01 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149271', 'tblTempVendorCDR_20' ) start [2025-01-01 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149271', 'tblTempVendorCDR_20' ) end [2025-01-01 07:12:18] Production.INFO: ProcessCDR(1,14149271,1,1,2) [2025-01-01 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149271', 'tblTempUsageDetail_20' ) start [2025-01-01 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149271', 'tblTempUsageDetail_20' ) end [2025-01-01 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:12:21] Production.INFO: ==18178== Releasing lock... [2025-01-01 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:12:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:13:05 [end_date_ymd] => 2025-01-01 07:13:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:13:05' and `end` < '2025-01-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-01-01 07:13:20] Production.INFO: count ==15 [2025-01-01 07:13:20] Production.ERROR: pbx CDR StartTime 2025-01-01 04:13:05 - End Time 2025-01-01 07:13:05 [2025-01-01 07:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149276', 'tblTempUsageDetail_20' ) start [2025-01-01 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149276', 'tblTempUsageDetail_20' ) end [2025-01-01 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149276', 'tblTempVendorCDR_20' ) start [2025-01-01 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149276', 'tblTempVendorCDR_20' ) end [2025-01-01 07:13:20] Production.INFO: ProcessCDR(1,14149276,1,1,2) [2025-01-01 07:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149276', 'tblTempUsageDetail_20' ) start [2025-01-01 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149276', 'tblTempUsageDetail_20' ) end [2025-01-01 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:13:23] Production.INFO: ==18288== Releasing lock... [2025-01-01 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:13:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:14:05 [end_date_ymd] => 2025-01-01 07:14:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:14:05' and `end` < '2025-01-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-01-01 07:14:21] Production.INFO: count ==15 [2025-01-01 07:14:21] Production.ERROR: pbx CDR StartTime 2025-01-01 04:14:05 - End Time 2025-01-01 07:14:05 [2025-01-01 07:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149281', 'tblTempUsageDetail_20' ) start [2025-01-01 07:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149281', 'tblTempUsageDetail_20' ) end [2025-01-01 07:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149281', 'tblTempVendorCDR_20' ) start [2025-01-01 07:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149281', 'tblTempVendorCDR_20' ) end [2025-01-01 07:14:21] Production.INFO: ProcessCDR(1,14149281,1,1,2) [2025-01-01 07:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149281', 'tblTempUsageDetail_20' ) start [2025-01-01 07:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149281', 'tblTempUsageDetail_20' ) end [2025-01-01 07:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:14:24] Production.INFO: ==18357== Releasing lock... [2025-01-01 07:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:14:24] Production.INFO: 28 MB #Memory Used# [2025-01-01 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:15:05 [end_date_ymd] => 2025-01-01 07:15:05 [RateCDR] => 1 ) [2025-01-01 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 04:15:05' and `end` < '2025-01-01 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 07:15:19] Production.INFO: count ==14 [2025-01-01 07:15:19] Production.ERROR: pbx CDR StartTime 2025-01-01 04:15:05 - End Time 2025-01-01 07:15:05 [2025-01-01 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149286', 'tblTempUsageDetail_20' ) start [2025-01-01 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149286', 'tblTempUsageDetail_20' ) end [2025-01-01 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149286', 'tblTempVendorCDR_20' ) start [2025-01-01 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149286', 'tblTempVendorCDR_20' ) end [2025-01-01 07:15:19] Production.INFO: ProcessCDR(1,14149286,1,1,2) [2025-01-01 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149286', 'tblTempUsageDetail_20' ) start [2025-01-01 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149286', 'tblTempUsageDetail_20' ) end [2025-01-01 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:15:22] Production.INFO: ==18511== Releasing lock... [2025-01-01 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:15:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:16:05 [end_date_ymd] => 2025-01-01 07:16:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:16:05' and `end` < '2025-01-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-01-01 07:16:18] Production.INFO: count ==13 [2025-01-01 07:16:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:16:05 - End Time 2025-01-01 07:16:05 [2025-01-01 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149291', 'tblTempUsageDetail_20' ) start [2025-01-01 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149291', 'tblTempUsageDetail_20' ) end [2025-01-01 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149291', 'tblTempVendorCDR_20' ) start [2025-01-01 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149291', 'tblTempVendorCDR_20' ) end [2025-01-01 07:16:18] Production.INFO: ProcessCDR(1,14149291,1,1,2) [2025-01-01 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149291', 'tblTempUsageDetail_20' ) start [2025-01-01 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149291', 'tblTempUsageDetail_20' ) end [2025-01-01 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:16:21] Production.INFO: ==18583== Releasing lock... [2025-01-01 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:16:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:17:05 [end_date_ymd] => 2025-01-01 07:17:05 [RateCDR] => 1 ) [2025-01-01 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 04:17:05' and `end` < '2025-01-01 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 07:17:19] Production.INFO: count ==13 [2025-01-01 07:17:19] Production.ERROR: pbx CDR StartTime 2025-01-01 04:17:05 - End Time 2025-01-01 07:17:05 [2025-01-01 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149296', 'tblTempUsageDetail_20' ) start [2025-01-01 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149296', 'tblTempUsageDetail_20' ) end [2025-01-01 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149296', 'tblTempVendorCDR_20' ) start [2025-01-01 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149296', 'tblTempVendorCDR_20' ) end [2025-01-01 07:17:19] Production.INFO: ProcessCDR(1,14149296,1,1,2) [2025-01-01 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149296', 'tblTempUsageDetail_20' ) start [2025-01-01 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149296', 'tblTempUsageDetail_20' ) end [2025-01-01 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:17:22] Production.INFO: ==18656== Releasing lock... [2025-01-01 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:17:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:18:05 [end_date_ymd] => 2025-01-01 07:18:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:18:05' and `end` < '2025-01-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-01-01 07:18:19] Production.INFO: count ==13 [2025-01-01 07:18:19] Production.ERROR: pbx CDR StartTime 2025-01-01 04:18:05 - End Time 2025-01-01 07:18:05 [2025-01-01 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149301', 'tblTempUsageDetail_20' ) start [2025-01-01 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149301', 'tblTempUsageDetail_20' ) end [2025-01-01 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149301', 'tblTempVendorCDR_20' ) start [2025-01-01 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149301', 'tblTempVendorCDR_20' ) end [2025-01-01 07:18:19] Production.INFO: ProcessCDR(1,14149301,1,1,2) [2025-01-01 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149301', 'tblTempUsageDetail_20' ) start [2025-01-01 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149301', 'tblTempUsageDetail_20' ) end [2025-01-01 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:18:22] Production.INFO: ==18727== Releasing lock... [2025-01-01 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:18:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:19:05 [end_date_ymd] => 2025-01-01 07:19:05 [RateCDR] => 1 ) [2025-01-01 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 04:19:05' and `end` < '2025-01-01 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 07:19:18] Production.INFO: count ==13 [2025-01-01 07:19:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:19:05 - End Time 2025-01-01 07:19:05 [2025-01-01 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149306', 'tblTempUsageDetail_20' ) start [2025-01-01 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149306', 'tblTempUsageDetail_20' ) end [2025-01-01 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149306', 'tblTempVendorCDR_20' ) start [2025-01-01 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149306', 'tblTempVendorCDR_20' ) end [2025-01-01 07:19:18] Production.INFO: ProcessCDR(1,14149306,1,1,2) [2025-01-01 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149306', 'tblTempUsageDetail_20' ) start [2025-01-01 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149306', 'tblTempUsageDetail_20' ) end [2025-01-01 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:19:21] Production.INFO: ==18814== Releasing lock... [2025-01-01 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:19:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:20:06 [end_date_ymd] => 2025-01-01 07:20:06 [RateCDR] => 1 ) [2025-01-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-01-01 04:20:06' and `end` < '2025-01-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-01-01 07:20:19] Production.INFO: count ==11 [2025-01-01 07:20:19] Production.ERROR: pbx CDR StartTime 2025-01-01 04:20:06 - End Time 2025-01-01 07:20:06 [2025-01-01 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149312', 'tblTempUsageDetail_20' ) start [2025-01-01 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149312', 'tblTempUsageDetail_20' ) end [2025-01-01 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149312', 'tblTempVendorCDR_20' ) start [2025-01-01 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149312', 'tblTempVendorCDR_20' ) end [2025-01-01 07:20:19] Production.INFO: ProcessCDR(1,14149312,1,1,2) [2025-01-01 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149312', 'tblTempUsageDetail_20' ) start [2025-01-01 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149312', 'tblTempUsageDetail_20' ) end [2025-01-01 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:20:22] Production.INFO: ==18889== Releasing lock... [2025-01-01 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:20:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:21:05 [end_date_ymd] => 2025-01-01 07:21:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:21:05' and `end` < '2025-01-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-01-01 07:21:19] Production.INFO: count ==11 [2025-01-01 07:21:19] Production.ERROR: pbx CDR StartTime 2025-01-01 04:21:05 - End Time 2025-01-01 07:21:05 [2025-01-01 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149317', 'tblTempUsageDetail_20' ) start [2025-01-01 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149317', 'tblTempUsageDetail_20' ) end [2025-01-01 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149317', 'tblTempVendorCDR_20' ) start [2025-01-01 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149317', 'tblTempVendorCDR_20' ) end [2025-01-01 07:21:19] Production.INFO: ProcessCDR(1,14149317,1,1,2) [2025-01-01 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149317', 'tblTempUsageDetail_20' ) start [2025-01-01 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149317', 'tblTempUsageDetail_20' ) end [2025-01-01 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:21:22] Production.INFO: ==18960== Releasing lock... [2025-01-01 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:21:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:22:05 [end_date_ymd] => 2025-01-01 07:22:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:22:05' and `end` < '2025-01-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-01-01 07:22:19] Production.INFO: count ==11 [2025-01-01 07:22:19] Production.ERROR: pbx CDR StartTime 2025-01-01 04:22:05 - End Time 2025-01-01 07:22:05 [2025-01-01 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149322', 'tblTempUsageDetail_20' ) start [2025-01-01 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149322', 'tblTempUsageDetail_20' ) end [2025-01-01 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149322', 'tblTempVendorCDR_20' ) start [2025-01-01 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149322', 'tblTempVendorCDR_20' ) end [2025-01-01 07:22:19] Production.INFO: ProcessCDR(1,14149322,1,1,2) [2025-01-01 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149322', 'tblTempUsageDetail_20' ) start [2025-01-01 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149322', 'tblTempUsageDetail_20' ) end [2025-01-01 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:22:22] Production.INFO: ==19031== Releasing lock... [2025-01-01 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:22:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:23:05 [end_date_ymd] => 2025-01-01 07:23:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:23:05' and `end` < '2025-01-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-01-01 07:23:18] Production.INFO: count ==11 [2025-01-01 07:23:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:23:05 - End Time 2025-01-01 07:23:05 [2025-01-01 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149327', 'tblTempUsageDetail_20' ) start [2025-01-01 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149327', 'tblTempUsageDetail_20' ) end [2025-01-01 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149327', 'tblTempVendorCDR_20' ) start [2025-01-01 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149327', 'tblTempVendorCDR_20' ) end [2025-01-01 07:23:18] Production.INFO: ProcessCDR(1,14149327,1,1,2) [2025-01-01 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149327', 'tblTempUsageDetail_20' ) start [2025-01-01 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149327', 'tblTempUsageDetail_20' ) end [2025-01-01 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:23:21] Production.INFO: ==19104== Releasing lock... [2025-01-01 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:23:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:24:06 [end_date_ymd] => 2025-01-01 07:24:06 [RateCDR] => 1 ) [2025-01-01 07:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 04:24:06' and `end` < '2025-01-01 07:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 07:24:19] Production.INFO: count ==11 [2025-01-01 07:24:19] Production.ERROR: pbx CDR StartTime 2025-01-01 04:24:06 - End Time 2025-01-01 07:24:06 [2025-01-01 07:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149332', 'tblTempUsageDetail_20' ) start [2025-01-01 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149332', 'tblTempUsageDetail_20' ) end [2025-01-01 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149332', 'tblTempVendorCDR_20' ) start [2025-01-01 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149332', 'tblTempVendorCDR_20' ) end [2025-01-01 07:24:19] Production.INFO: ProcessCDR(1,14149332,1,1,2) [2025-01-01 07:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149332', 'tblTempUsageDetail_20' ) start [2025-01-01 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149332', 'tblTempUsageDetail_20' ) end [2025-01-01 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:24:22] Production.INFO: ==19175== Releasing lock... [2025-01-01 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:24:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:25:04 [end_date_ymd] => 2025-01-01 07:25:04 [RateCDR] => 1 ) [2025-01-01 07: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-01 04:25:04' and `end` < '2025-01-01 07: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-01-01 07:25:17] Production.INFO: count ==11 [2025-01-01 07:25:17] Production.ERROR: pbx CDR StartTime 2025-01-01 04:25:04 - End Time 2025-01-01 07:25:04 [2025-01-01 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149337', 'tblTempUsageDetail_20' ) start [2025-01-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149337', 'tblTempUsageDetail_20' ) end [2025-01-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149337', 'tblTempVendorCDR_20' ) start [2025-01-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149337', 'tblTempVendorCDR_20' ) end [2025-01-01 07:25:17] Production.INFO: ProcessCDR(1,14149337,1,1,2) [2025-01-01 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149337', 'tblTempUsageDetail_20' ) start [2025-01-01 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149337', 'tblTempUsageDetail_20' ) end [2025-01-01 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:25:20] Production.INFO: ==19247== Releasing lock... [2025-01-01 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:25:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:26:05 [end_date_ymd] => 2025-01-01 07:26:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:26:05' and `end` < '2025-01-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-01-01 07:26:17] Production.INFO: count ==11 [2025-01-01 07:26:17] Production.ERROR: pbx CDR StartTime 2025-01-01 04:26:05 - End Time 2025-01-01 07:26:05 [2025-01-01 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149342', 'tblTempUsageDetail_20' ) start [2025-01-01 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149342', 'tblTempUsageDetail_20' ) end [2025-01-01 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149342', 'tblTempVendorCDR_20' ) start [2025-01-01 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149342', 'tblTempVendorCDR_20' ) end [2025-01-01 07:26:17] Production.INFO: ProcessCDR(1,14149342,1,1,2) [2025-01-01 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149342', 'tblTempUsageDetail_20' ) start [2025-01-01 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149342', 'tblTempUsageDetail_20' ) end [2025-01-01 07:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:26:20] Production.INFO: ==19319== Releasing lock... [2025-01-01 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:26:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:27:05 [end_date_ymd] => 2025-01-01 07:27:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:27:05' and `end` < '2025-01-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-01-01 07:27:18] Production.INFO: count ==11 [2025-01-01 07:27:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:27:05 - End Time 2025-01-01 07:27:05 [2025-01-01 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149347', 'tblTempUsageDetail_20' ) start [2025-01-01 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149347', 'tblTempUsageDetail_20' ) end [2025-01-01 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149347', 'tblTempVendorCDR_20' ) start [2025-01-01 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149347', 'tblTempVendorCDR_20' ) end [2025-01-01 07:27:18] Production.INFO: ProcessCDR(1,14149347,1,1,2) [2025-01-01 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149347', 'tblTempUsageDetail_20' ) start [2025-01-01 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149347', 'tblTempUsageDetail_20' ) end [2025-01-01 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:27:21] Production.INFO: ==19391== Releasing lock... [2025-01-01 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:27:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:28:05 [end_date_ymd] => 2025-01-01 07:28:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:28:05' and `end` < '2025-01-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-01-01 07:28:19] Production.INFO: count ==11 [2025-01-01 07:28:19] Production.ERROR: pbx CDR StartTime 2025-01-01 04:28:05 - End Time 2025-01-01 07:28:05 [2025-01-01 07:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149352', 'tblTempUsageDetail_20' ) start [2025-01-01 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149352', 'tblTempUsageDetail_20' ) end [2025-01-01 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149352', 'tblTempVendorCDR_20' ) start [2025-01-01 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149352', 'tblTempVendorCDR_20' ) end [2025-01-01 07:28:19] Production.INFO: ProcessCDR(1,14149352,1,1,2) [2025-01-01 07:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149352', 'tblTempUsageDetail_20' ) start [2025-01-01 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149352', 'tblTempUsageDetail_20' ) end [2025-01-01 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:28:22] Production.INFO: ==19464== Releasing lock... [2025-01-01 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:28:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:29:05 [end_date_ymd] => 2025-01-01 07:29:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:29:05' and `end` < '2025-01-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-01-01 07:29:18] Production.INFO: count ==11 [2025-01-01 07:29:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:29:05 - End Time 2025-01-01 07:29:05 [2025-01-01 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149357', 'tblTempUsageDetail_20' ) start [2025-01-01 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149357', 'tblTempUsageDetail_20' ) end [2025-01-01 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149357', 'tblTempVendorCDR_20' ) start [2025-01-01 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149357', 'tblTempVendorCDR_20' ) end [2025-01-01 07:29:18] Production.INFO: ProcessCDR(1,14149357,1,1,2) [2025-01-01 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149357', 'tblTempUsageDetail_20' ) start [2025-01-01 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149357', 'tblTempUsageDetail_20' ) end [2025-01-01 07:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:29:20] Production.INFO: ==19583== Releasing lock... [2025-01-01 07:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:29:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:30:05 [end_date_ymd] => 2025-01-01 07:30:05 [RateCDR] => 1 ) [2025-01-01 07: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-01-01 04:30:05' and `end` < '2025-01-01 07: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-01-01 07:30:18] Production.INFO: count ==7 [2025-01-01 07:30:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:30:05 - End Time 2025-01-01 07:30:05 [2025-01-01 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149362', 'tblTempUsageDetail_20' ) start [2025-01-01 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149362', 'tblTempUsageDetail_20' ) end [2025-01-01 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149362', 'tblTempVendorCDR_20' ) start [2025-01-01 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149362', 'tblTempVendorCDR_20' ) end [2025-01-01 07:30:18] Production.INFO: ProcessCDR(1,14149362,1,1,2) [2025-01-01 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149362', 'tblTempUsageDetail_20' ) start [2025-01-01 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149362', 'tblTempUsageDetail_20' ) end [2025-01-01 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:30:21] Production.INFO: ==19661== Releasing lock... [2025-01-01 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:30:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:31:05 [end_date_ymd] => 2025-01-01 07:31:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:31:05' and `end` < '2025-01-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-01-01 07:31:18] Production.INFO: count ==7 [2025-01-01 07:31:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:31:05 - End Time 2025-01-01 07:31:05 [2025-01-01 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149368', 'tblTempUsageDetail_20' ) start [2025-01-01 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149368', 'tblTempUsageDetail_20' ) end [2025-01-01 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149368', 'tblTempVendorCDR_20' ) start [2025-01-01 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149368', 'tblTempVendorCDR_20' ) end [2025-01-01 07:31:18] Production.INFO: ProcessCDR(1,14149368,1,1,2) [2025-01-01 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149368', 'tblTempUsageDetail_20' ) start [2025-01-01 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149368', 'tblTempUsageDetail_20' ) end [2025-01-01 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:31:21] Production.INFO: ==19735== Releasing lock... [2025-01-01 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:31:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:32:04 [end_date_ymd] => 2025-01-01 07:32:04 [RateCDR] => 1 ) [2025-01-01 07:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 04:32:04' and `end` < '2025-01-01 07:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 07:32:17] Production.INFO: count ==7 [2025-01-01 07:32:17] Production.ERROR: pbx CDR StartTime 2025-01-01 04:32:04 - End Time 2025-01-01 07:32:04 [2025-01-01 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149373', 'tblTempUsageDetail_20' ) start [2025-01-01 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149373', 'tblTempUsageDetail_20' ) end [2025-01-01 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149373', 'tblTempVendorCDR_20' ) start [2025-01-01 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149373', 'tblTempVendorCDR_20' ) end [2025-01-01 07:32:17] Production.INFO: ProcessCDR(1,14149373,1,1,2) [2025-01-01 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149373', 'tblTempUsageDetail_20' ) start [2025-01-01 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149373', 'tblTempUsageDetail_20' ) end [2025-01-01 07:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:32:20] Production.INFO: ==19808== Releasing lock... [2025-01-01 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:32:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:33:05 [end_date_ymd] => 2025-01-01 07:33:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:33:05' and `end` < '2025-01-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-01-01 07:33:18] Production.INFO: count ==7 [2025-01-01 07:33:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:33:05 - End Time 2025-01-01 07:33:05 [2025-01-01 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149378', 'tblTempUsageDetail_20' ) start [2025-01-01 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149378', 'tblTempUsageDetail_20' ) end [2025-01-01 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149378', 'tblTempVendorCDR_20' ) start [2025-01-01 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149378', 'tblTempVendorCDR_20' ) end [2025-01-01 07:33:18] Production.INFO: ProcessCDR(1,14149378,1,1,2) [2025-01-01 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149378', 'tblTempUsageDetail_20' ) start [2025-01-01 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149378', 'tblTempUsageDetail_20' ) end [2025-01-01 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:33:21] Production.INFO: ==19880== Releasing lock... [2025-01-01 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:33:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:34:06 [end_date_ymd] => 2025-01-01 07:34:06 [RateCDR] => 1 ) [2025-01-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-01-01 04:34:06' and `end` < '2025-01-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-01-01 07:34:18] Production.INFO: count ==7 [2025-01-01 07:34:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:34:06 - End Time 2025-01-01 07:34:06 [2025-01-01 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149383', 'tblTempUsageDetail_20' ) start [2025-01-01 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149383', 'tblTempUsageDetail_20' ) end [2025-01-01 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149383', 'tblTempVendorCDR_20' ) start [2025-01-01 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149383', 'tblTempVendorCDR_20' ) end [2025-01-01 07:34:18] Production.INFO: ProcessCDR(1,14149383,1,1,2) [2025-01-01 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149383', 'tblTempUsageDetail_20' ) start [2025-01-01 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149383', 'tblTempUsageDetail_20' ) end [2025-01-01 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:34:22] Production.INFO: ==19952== Releasing lock... [2025-01-01 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:34:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:35:05 [end_date_ymd] => 2025-01-01 07:35:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:35:05' and `end` < '2025-01-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-01-01 07:35:18] Production.INFO: count ==7 [2025-01-01 07:35:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:35:05 - End Time 2025-01-01 07:35:05 [2025-01-01 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149388', 'tblTempUsageDetail_20' ) start [2025-01-01 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149388', 'tblTempUsageDetail_20' ) end [2025-01-01 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149388', 'tblTempVendorCDR_20' ) start [2025-01-01 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149388', 'tblTempVendorCDR_20' ) end [2025-01-01 07:35:18] Production.INFO: ProcessCDR(1,14149388,1,1,2) [2025-01-01 07:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149388', 'tblTempUsageDetail_20' ) start [2025-01-01 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149388', 'tblTempUsageDetail_20' ) end [2025-01-01 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:35:22] Production.INFO: ==20027== Releasing lock... [2025-01-01 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:35:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:36:05 [end_date_ymd] => 2025-01-01 07:36:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:36:05' and `end` < '2025-01-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-01-01 07:36:18] Production.INFO: count ==7 [2025-01-01 07:36:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:36:05 - End Time 2025-01-01 07:36:05 [2025-01-01 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149393', 'tblTempUsageDetail_20' ) start [2025-01-01 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149393', 'tblTempUsageDetail_20' ) end [2025-01-01 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149393', 'tblTempVendorCDR_20' ) start [2025-01-01 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149393', 'tblTempVendorCDR_20' ) end [2025-01-01 07:36:18] Production.INFO: ProcessCDR(1,14149393,1,1,2) [2025-01-01 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149393', 'tblTempUsageDetail_20' ) start [2025-01-01 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149393', 'tblTempUsageDetail_20' ) end [2025-01-01 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:36:22] Production.INFO: ==20098== Releasing lock... [2025-01-01 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:36:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:37:05 [end_date_ymd] => 2025-01-01 07:37:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:37:05' and `end` < '2025-01-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-01-01 07:37:18] Production.INFO: count ==7 [2025-01-01 07:37:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:37:05 - End Time 2025-01-01 07:37:05 [2025-01-01 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149398', 'tblTempUsageDetail_20' ) start [2025-01-01 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149398', 'tblTempUsageDetail_20' ) end [2025-01-01 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149398', 'tblTempVendorCDR_20' ) start [2025-01-01 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149398', 'tblTempVendorCDR_20' ) end [2025-01-01 07:37:18] Production.INFO: ProcessCDR(1,14149398,1,1,2) [2025-01-01 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149398', 'tblTempUsageDetail_20' ) start [2025-01-01 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149398', 'tblTempUsageDetail_20' ) end [2025-01-01 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:37:21] Production.INFO: ==20169== Releasing lock... [2025-01-01 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:37:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:38:06 [end_date_ymd] => 2025-01-01 07:38:06 [RateCDR] => 1 ) [2025-01-01 07: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-01-01 04:38:06' and `end` < '2025-01-01 07: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-01-01 07:38:20] Production.INFO: count ==7 [2025-01-01 07:38:20] Production.ERROR: pbx CDR StartTime 2025-01-01 04:38:06 - End Time 2025-01-01 07:38:06 [2025-01-01 07:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149403', 'tblTempUsageDetail_20' ) start [2025-01-01 07:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149403', 'tblTempUsageDetail_20' ) end [2025-01-01 07:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149403', 'tblTempVendorCDR_20' ) start [2025-01-01 07:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149403', 'tblTempVendorCDR_20' ) end [2025-01-01 07:38:20] Production.INFO: ProcessCDR(1,14149403,1,1,2) [2025-01-01 07:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149403', 'tblTempUsageDetail_20' ) start [2025-01-01 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149403', 'tblTempUsageDetail_20' ) end [2025-01-01 07:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:38:23] Production.INFO: ==20239== Releasing lock... [2025-01-01 07:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:38:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:39:05 [end_date_ymd] => 2025-01-01 07:39:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:39:05' and `end` < '2025-01-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-01-01 07:39:17] Production.INFO: count ==7 [2025-01-01 07:39:17] Production.ERROR: pbx CDR StartTime 2025-01-01 04:39:05 - End Time 2025-01-01 07:39:05 [2025-01-01 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149408', 'tblTempUsageDetail_20' ) start [2025-01-01 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149408', 'tblTempUsageDetail_20' ) end [2025-01-01 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149408', 'tblTempVendorCDR_20' ) start [2025-01-01 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149408', 'tblTempVendorCDR_20' ) end [2025-01-01 07:39:17] Production.INFO: ProcessCDR(1,14149408,1,1,2) [2025-01-01 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149408', 'tblTempUsageDetail_20' ) start [2025-01-01 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149408', 'tblTempUsageDetail_20' ) end [2025-01-01 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:39:20] Production.INFO: ==20312== Releasing lock... [2025-01-01 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:39:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:40:05 [end_date_ymd] => 2025-01-01 07:40:05 [RateCDR] => 1 ) [2025-01-01 07: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-01-01 04:40:05' and `end` < '2025-01-01 07: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-01-01 07:40:18] Production.INFO: count ==7 [2025-01-01 07:40:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:40:05 - End Time 2025-01-01 07:40:05 [2025-01-01 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149414', 'tblTempUsageDetail_20' ) start [2025-01-01 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149414', 'tblTempUsageDetail_20' ) end [2025-01-01 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149414', 'tblTempVendorCDR_20' ) start [2025-01-01 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149414', 'tblTempVendorCDR_20' ) end [2025-01-01 07:40:18] Production.INFO: ProcessCDR(1,14149414,1,1,2) [2025-01-01 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149414', 'tblTempUsageDetail_20' ) start [2025-01-01 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149414', 'tblTempUsageDetail_20' ) end [2025-01-01 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:40:21] Production.INFO: ==20384== Releasing lock... [2025-01-01 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:40:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:41:05 [end_date_ymd] => 2025-01-01 07:41:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:41:05' and `end` < '2025-01-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-01-01 07:41:19] Production.INFO: count ==7 [2025-01-01 07:41:19] Production.ERROR: pbx CDR StartTime 2025-01-01 04:41:05 - End Time 2025-01-01 07:41:05 [2025-01-01 07:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149419', 'tblTempUsageDetail_20' ) start [2025-01-01 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149419', 'tblTempUsageDetail_20' ) end [2025-01-01 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149419', 'tblTempVendorCDR_20' ) start [2025-01-01 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149419', 'tblTempVendorCDR_20' ) end [2025-01-01 07:41:19] Production.INFO: ProcessCDR(1,14149419,1,1,2) [2025-01-01 07:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149419', 'tblTempUsageDetail_20' ) start [2025-01-01 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149419', 'tblTempUsageDetail_20' ) end [2025-01-01 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:41:22] Production.INFO: ==20457== Releasing lock... [2025-01-01 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:41:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 07:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:42:04 [end_date_ymd] => 2025-01-01 07:42:04 [RateCDR] => 1 ) [2025-01-01 07: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-01-01 04:42:04' and `end` < '2025-01-01 07: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-01-01 07:42:17] Production.INFO: count ==6 [2025-01-01 07:42:17] Production.ERROR: pbx CDR StartTime 2025-01-01 04:42:04 - End Time 2025-01-01 07:42:04 [2025-01-01 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149424', 'tblTempUsageDetail_20' ) start [2025-01-01 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149424', 'tblTempUsageDetail_20' ) end [2025-01-01 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149424', 'tblTempVendorCDR_20' ) start [2025-01-01 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149424', 'tblTempVendorCDR_20' ) end [2025-01-01 07:42:17] Production.INFO: ProcessCDR(1,14149424,1,1,2) [2025-01-01 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149424', 'tblTempUsageDetail_20' ) start [2025-01-01 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149424', 'tblTempUsageDetail_20' ) end [2025-01-01 07:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:42:20] Production.INFO: ==20528== Releasing lock... [2025-01-01 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:42:20] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:43:05 [end_date_ymd] => 2025-01-01 07:43:05 [RateCDR] => 1 ) [2025-01-01 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 04:43:05' and `end` < '2025-01-01 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 07:43:17] Production.INFO: count ==6 [2025-01-01 07:43:17] Production.ERROR: pbx CDR StartTime 2025-01-01 04:43:05 - End Time 2025-01-01 07:43:05 [2025-01-01 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149429', 'tblTempUsageDetail_20' ) start [2025-01-01 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149429', 'tblTempUsageDetail_20' ) end [2025-01-01 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149429', 'tblTempVendorCDR_20' ) start [2025-01-01 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149429', 'tblTempVendorCDR_20' ) end [2025-01-01 07:43:17] Production.INFO: ProcessCDR(1,14149429,1,1,2) [2025-01-01 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149429', 'tblTempUsageDetail_20' ) start [2025-01-01 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149429', 'tblTempUsageDetail_20' ) end [2025-01-01 07:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:43:20] Production.INFO: ==20599== Releasing lock... [2025-01-01 07:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:43:20] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:44:05 [end_date_ymd] => 2025-01-01 07:44:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:44:05' and `end` < '2025-01-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-01-01 07:44:19] Production.INFO: count ==6 [2025-01-01 07:44:19] Production.ERROR: pbx CDR StartTime 2025-01-01 04:44:05 - End Time 2025-01-01 07:44:05 [2025-01-01 07:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149434', 'tblTempUsageDetail_20' ) start [2025-01-01 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149434', 'tblTempUsageDetail_20' ) end [2025-01-01 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149434', 'tblTempVendorCDR_20' ) start [2025-01-01 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149434', 'tblTempVendorCDR_20' ) end [2025-01-01 07:44:19] Production.INFO: ProcessCDR(1,14149434,1,1,2) [2025-01-01 07:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149434', 'tblTempUsageDetail_20' ) start [2025-01-01 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149434', 'tblTempUsageDetail_20' ) end [2025-01-01 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:44:22] Production.INFO: ==20676== Releasing lock... [2025-01-01 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:44:22] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:45:05 [end_date_ymd] => 2025-01-01 07:45:05 [RateCDR] => 1 ) [2025-01-01 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 04:45:05' and `end` < '2025-01-01 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 07:45:18] Production.INFO: count ==6 [2025-01-01 07:45:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:45:05 - End Time 2025-01-01 07:45:05 [2025-01-01 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149439', 'tblTempUsageDetail_20' ) start [2025-01-01 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149439', 'tblTempUsageDetail_20' ) end [2025-01-01 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149439', 'tblTempVendorCDR_20' ) start [2025-01-01 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149439', 'tblTempVendorCDR_20' ) end [2025-01-01 07:45:18] Production.INFO: ProcessCDR(1,14149439,1,1,2) [2025-01-01 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149439', 'tblTempUsageDetail_20' ) start [2025-01-01 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149439', 'tblTempUsageDetail_20' ) end [2025-01-01 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:45:21] Production.INFO: ==20791== Releasing lock... [2025-01-01 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:45:21] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:46:05 [end_date_ymd] => 2025-01-01 07:46:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:46:05' and `end` < '2025-01-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-01-01 07:46:18] Production.INFO: count ==6 [2025-01-01 07:46:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:46:05 - End Time 2025-01-01 07:46:05 [2025-01-01 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149444', 'tblTempUsageDetail_20' ) start [2025-01-01 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149444', 'tblTempUsageDetail_20' ) end [2025-01-01 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149444', 'tblTempVendorCDR_20' ) start [2025-01-01 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149444', 'tblTempVendorCDR_20' ) end [2025-01-01 07:46:18] Production.INFO: ProcessCDR(1,14149444,1,1,2) [2025-01-01 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149444', 'tblTempUsageDetail_20' ) start [2025-01-01 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149444', 'tblTempUsageDetail_20' ) end [2025-01-01 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:46:21] Production.INFO: ==20865== Releasing lock... [2025-01-01 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:46:21] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:47:05 [end_date_ymd] => 2025-01-01 07:47:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:47:05' and `end` < '2025-01-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-01-01 07:47:18] Production.INFO: count ==6 [2025-01-01 07:47:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:47:05 - End Time 2025-01-01 07:47:05 [2025-01-01 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149449', 'tblTempUsageDetail_20' ) start [2025-01-01 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149449', 'tblTempUsageDetail_20' ) end [2025-01-01 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149449', 'tblTempVendorCDR_20' ) start [2025-01-01 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149449', 'tblTempVendorCDR_20' ) end [2025-01-01 07:47:18] Production.INFO: ProcessCDR(1,14149449,1,1,2) [2025-01-01 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149449', 'tblTempUsageDetail_20' ) start [2025-01-01 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149449', 'tblTempUsageDetail_20' ) end [2025-01-01 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:47:21] Production.INFO: ==20934== Releasing lock... [2025-01-01 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:47:21] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:48:05 [end_date_ymd] => 2025-01-01 07:48:05 [RateCDR] => 1 ) [2025-01-01 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 04:48:05' and `end` < '2025-01-01 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 07:48:18] Production.INFO: count ==6 [2025-01-01 07:48:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:48:05 - End Time 2025-01-01 07:48:05 [2025-01-01 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149454', 'tblTempUsageDetail_20' ) start [2025-01-01 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149454', 'tblTempUsageDetail_20' ) end [2025-01-01 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149454', 'tblTempVendorCDR_20' ) start [2025-01-01 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149454', 'tblTempVendorCDR_20' ) end [2025-01-01 07:48:18] Production.INFO: ProcessCDR(1,14149454,1,1,2) [2025-01-01 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149454', 'tblTempUsageDetail_20' ) start [2025-01-01 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149454', 'tblTempUsageDetail_20' ) end [2025-01-01 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:48:21] Production.INFO: ==21011== Releasing lock... [2025-01-01 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:48:21] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 07:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:49:06 [end_date_ymd] => 2025-01-01 07:49:06 [RateCDR] => 1 ) [2025-01-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-01-01 04:49:06' and `end` < '2025-01-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-01-01 07:49:19] Production.INFO: count ==6 [2025-01-01 07:49:19] Production.ERROR: pbx CDR StartTime 2025-01-01 04:49:06 - End Time 2025-01-01 07:49:06 [2025-01-01 07:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149459', 'tblTempUsageDetail_20' ) start [2025-01-01 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149459', 'tblTempUsageDetail_20' ) end [2025-01-01 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149459', 'tblTempVendorCDR_20' ) start [2025-01-01 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149459', 'tblTempVendorCDR_20' ) end [2025-01-01 07:49:19] Production.INFO: ProcessCDR(1,14149459,1,1,2) [2025-01-01 07:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149459', 'tblTempUsageDetail_20' ) start [2025-01-01 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149459', 'tblTempUsageDetail_20' ) end [2025-01-01 07:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:49:22] Production.INFO: ==21086== Releasing lock... [2025-01-01 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:49:22] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:50:05 [end_date_ymd] => 2025-01-01 07:50:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:50:05' and `end` < '2025-01-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-01-01 07:50:18] Production.INFO: count ==4 [2025-01-01 07:50:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:50:05 - End Time 2025-01-01 07:50:05 [2025-01-01 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149464', 'tblTempUsageDetail_20' ) start [2025-01-01 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149464', 'tblTempUsageDetail_20' ) end [2025-01-01 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149464', 'tblTempVendorCDR_20' ) start [2025-01-01 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149464', 'tblTempVendorCDR_20' ) end [2025-01-01 07:50:18] Production.INFO: ProcessCDR(1,14149464,1,1,2) [2025-01-01 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149464', 'tblTempUsageDetail_20' ) start [2025-01-01 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149464', 'tblTempUsageDetail_20' ) end [2025-01-01 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:50:21] Production.INFO: ==21164== Releasing lock... [2025-01-01 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:50:21] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:51:05 [end_date_ymd] => 2025-01-01 07:51:05 [RateCDR] => 1 ) [2025-01-01 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 04:51:05' and `end` < '2025-01-01 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 07:51:18] Production.INFO: count ==4 [2025-01-01 07:51:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:51:05 - End Time 2025-01-01 07:51:05 [2025-01-01 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149470', 'tblTempUsageDetail_20' ) start [2025-01-01 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149470', 'tblTempUsageDetail_20' ) end [2025-01-01 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149470', 'tblTempVendorCDR_20' ) start [2025-01-01 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149470', 'tblTempVendorCDR_20' ) end [2025-01-01 07:51:18] Production.INFO: ProcessCDR(1,14149470,1,1,2) [2025-01-01 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149470', 'tblTempUsageDetail_20' ) start [2025-01-01 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149470', 'tblTempUsageDetail_20' ) end [2025-01-01 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:51:21] Production.INFO: ==21240== Releasing lock... [2025-01-01 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:51:21] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:52:05 [end_date_ymd] => 2025-01-01 07:52:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:52:05' and `end` < '2025-01-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-01-01 07:52:18] Production.INFO: count ==4 [2025-01-01 07:52:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:52:05 - End Time 2025-01-01 07:52:05 [2025-01-01 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149475', 'tblTempUsageDetail_20' ) start [2025-01-01 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149475', 'tblTempUsageDetail_20' ) end [2025-01-01 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149475', 'tblTempVendorCDR_20' ) start [2025-01-01 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149475', 'tblTempVendorCDR_20' ) end [2025-01-01 07:52:18] Production.INFO: ProcessCDR(1,14149475,1,1,2) [2025-01-01 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149475', 'tblTempUsageDetail_20' ) start [2025-01-01 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149475', 'tblTempUsageDetail_20' ) end [2025-01-01 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:52:22] Production.INFO: ==21317== Releasing lock... [2025-01-01 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:52:22] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 07:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:53:06 [end_date_ymd] => 2025-01-01 07:53:06 [RateCDR] => 1 ) [2025-01-01 07:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 04:53:06' and `end` < '2025-01-01 07:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 07:53:18] Production.INFO: count ==4 [2025-01-01 07:53:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:53:06 - End Time 2025-01-01 07:53:06 [2025-01-01 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149480', 'tblTempUsageDetail_20' ) start [2025-01-01 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149480', 'tblTempUsageDetail_20' ) end [2025-01-01 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149480', 'tblTempVendorCDR_20' ) start [2025-01-01 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149480', 'tblTempVendorCDR_20' ) end [2025-01-01 07:53:18] Production.INFO: ProcessCDR(1,14149480,1,1,2) [2025-01-01 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149480', 'tblTempUsageDetail_20' ) start [2025-01-01 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149480', 'tblTempUsageDetail_20' ) end [2025-01-01 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:53:21] Production.INFO: ==21396== Releasing lock... [2025-01-01 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:53:21] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:54:05 [end_date_ymd] => 2025-01-01 07:54:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:54:05' and `end` < '2025-01-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-01-01 07:54:18] Production.INFO: count ==4 [2025-01-01 07:54:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:54:05 - End Time 2025-01-01 07:54:05 [2025-01-01 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149485', 'tblTempUsageDetail_20' ) start [2025-01-01 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149485', 'tblTempUsageDetail_20' ) end [2025-01-01 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149485', 'tblTempVendorCDR_20' ) start [2025-01-01 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149485', 'tblTempVendorCDR_20' ) end [2025-01-01 07:54:18] Production.INFO: ProcessCDR(1,14149485,1,1,2) [2025-01-01 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149485', 'tblTempUsageDetail_20' ) start [2025-01-01 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149485', 'tblTempUsageDetail_20' ) end [2025-01-01 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:54:22] Production.INFO: ==21468== Releasing lock... [2025-01-01 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:54:22] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 07:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:55:06 [end_date_ymd] => 2025-01-01 07:55:06 [RateCDR] => 1 ) [2025-01-01 07:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 04:55:06' and `end` < '2025-01-01 07:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 07:55:18] Production.INFO: count ==4 [2025-01-01 07:55:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:55:06 - End Time 2025-01-01 07:55:06 [2025-01-01 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149490', 'tblTempUsageDetail_20' ) start [2025-01-01 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149490', 'tblTempUsageDetail_20' ) end [2025-01-01 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149490', 'tblTempVendorCDR_20' ) start [2025-01-01 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149490', 'tblTempVendorCDR_20' ) end [2025-01-01 07:55:18] Production.INFO: ProcessCDR(1,14149490,1,1,2) [2025-01-01 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149490', 'tblTempUsageDetail_20' ) start [2025-01-01 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149490', 'tblTempUsageDetail_20' ) end [2025-01-01 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:55:21] Production.INFO: ==21544== Releasing lock... [2025-01-01 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:55:21] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:56:05 [end_date_ymd] => 2025-01-01 07:56:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:56:05' and `end` < '2025-01-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-01-01 07:56:18] Production.INFO: count ==4 [2025-01-01 07:56:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:56:05 - End Time 2025-01-01 07:56:05 [2025-01-01 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149495', 'tblTempUsageDetail_20' ) start [2025-01-01 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149495', 'tblTempUsageDetail_20' ) end [2025-01-01 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149495', 'tblTempVendorCDR_20' ) start [2025-01-01 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149495', 'tblTempVendorCDR_20' ) end [2025-01-01 07:56:18] Production.INFO: ProcessCDR(1,14149495,1,1,2) [2025-01-01 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149495', 'tblTempUsageDetail_20' ) start [2025-01-01 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149495', 'tblTempUsageDetail_20' ) end [2025-01-01 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:56:21] Production.INFO: ==21618== Releasing lock... [2025-01-01 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:56:21] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:57:05 [end_date_ymd] => 2025-01-01 07:57:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:57:05' and `end` < '2025-01-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-01-01 07:57:18] Production.INFO: count ==4 [2025-01-01 07:57:18] Production.ERROR: pbx CDR StartTime 2025-01-01 04:57:05 - End Time 2025-01-01 07:57:05 [2025-01-01 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149500', 'tblTempUsageDetail_20' ) start [2025-01-01 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149500', 'tblTempUsageDetail_20' ) end [2025-01-01 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149500', 'tblTempVendorCDR_20' ) start [2025-01-01 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149500', 'tblTempVendorCDR_20' ) end [2025-01-01 07:57:18] Production.INFO: ProcessCDR(1,14149500,1,1,2) [2025-01-01 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149500', 'tblTempUsageDetail_20' ) start [2025-01-01 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149500', 'tblTempUsageDetail_20' ) end [2025-01-01 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:57:21] Production.INFO: ==21696== Releasing lock... [2025-01-01 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:57:21] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:58:05 [end_date_ymd] => 2025-01-01 07:58:05 [RateCDR] => 1 ) [2025-01-01 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 04:58:05' and `end` < '2025-01-01 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 07:58:19] Production.INFO: count ==4 [2025-01-01 07:58:19] Production.ERROR: pbx CDR StartTime 2025-01-01 04:58:05 - End Time 2025-01-01 07:58:05 [2025-01-01 07:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149505', 'tblTempUsageDetail_20' ) start [2025-01-01 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149505', 'tblTempUsageDetail_20' ) end [2025-01-01 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149505', 'tblTempVendorCDR_20' ) start [2025-01-01 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149505', 'tblTempVendorCDR_20' ) end [2025-01-01 07:58:19] Production.INFO: ProcessCDR(1,14149505,1,1,2) [2025-01-01 07:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149505', 'tblTempUsageDetail_20' ) start [2025-01-01 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149505', 'tblTempUsageDetail_20' ) end [2025-01-01 07:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:58:23] Production.INFO: ==21771== Releasing lock... [2025-01-01 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:58:23] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 04:59:05 [end_date_ymd] => 2025-01-01 07:59:05 [RateCDR] => 1 ) [2025-01-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-01-01 04:59:05' and `end` < '2025-01-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-01-01 07:59:19] Production.INFO: count ==4 [2025-01-01 07:59:19] Production.ERROR: pbx CDR StartTime 2025-01-01 04:59:05 - End Time 2025-01-01 07:59:05 [2025-01-01 07:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149510', 'tblTempUsageDetail_20' ) start [2025-01-01 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149510', 'tblTempUsageDetail_20' ) end [2025-01-01 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149510', 'tblTempVendorCDR_20' ) start [2025-01-01 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149510', 'tblTempVendorCDR_20' ) end [2025-01-01 07:59:19] Production.INFO: ProcessCDR(1,14149510,1,1,2) [2025-01-01 07:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149510', 'tblTempUsageDetail_20' ) start [2025-01-01 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149510', 'tblTempUsageDetail_20' ) end [2025-01-01 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 07:59:22] Production.INFO: ==21851== Releasing lock... [2025-01-01 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 07:59:22] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:00:05 [end_date_ymd] => 2025-01-01 08:00:05 [RateCDR] => 1 ) [2025-01-01 08:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 05:00:05' and `end` < '2025-01-01 08:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 08:00:18] Production.INFO: count ==4 [2025-01-01 08:00:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:00:05 - End Time 2025-01-01 08:00:05 [2025-01-01 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149516', 'tblTempUsageDetail_20' ) start [2025-01-01 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149516', 'tblTempUsageDetail_20' ) end [2025-01-01 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149516', 'tblTempVendorCDR_20' ) start [2025-01-01 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149516', 'tblTempVendorCDR_20' ) end [2025-01-01 08:00:18] Production.INFO: ProcessCDR(1,14149516,1,1,2) [2025-01-01 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149516', 'tblTempUsageDetail_20' ) start [2025-01-01 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149516', 'tblTempUsageDetail_20' ) end [2025-01-01 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:00:21] Production.INFO: ==21971== Releasing lock... [2025-01-01 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:00:21] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:01:05 [end_date_ymd] => 2025-01-01 08:01:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:01:05' and `end` < '2025-01-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-01-01 08:01:19] Production.INFO: count ==4 [2025-01-01 08:01:19] Production.ERROR: pbx CDR StartTime 2025-01-01 05:01:05 - End Time 2025-01-01 08:01:05 [2025-01-01 08:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149521', 'tblTempUsageDetail_20' ) start [2025-01-01 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149521', 'tblTempUsageDetail_20' ) end [2025-01-01 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149521', 'tblTempVendorCDR_20' ) start [2025-01-01 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149521', 'tblTempVendorCDR_20' ) end [2025-01-01 08:01:19] Production.INFO: ProcessCDR(1,14149521,1,1,2) [2025-01-01 08:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149521', 'tblTempUsageDetail_20' ) start [2025-01-01 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149521', 'tblTempUsageDetail_20' ) end [2025-01-01 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:01:22] Production.INFO: ==22060== Releasing lock... [2025-01-01 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:01:22] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:02:05 [end_date_ymd] => 2025-01-01 08:02:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:02:05' and `end` < '2025-01-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-01-01 08:02:18] Production.INFO: count ==4 [2025-01-01 08:02:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:02:05 - End Time 2025-01-01 08:02:05 [2025-01-01 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149526', 'tblTempUsageDetail_20' ) start [2025-01-01 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149526', 'tblTempUsageDetail_20' ) end [2025-01-01 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149526', 'tblTempVendorCDR_20' ) start [2025-01-01 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149526', 'tblTempVendorCDR_20' ) end [2025-01-01 08:02:18] Production.INFO: ProcessCDR(1,14149526,1,1,2) [2025-01-01 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149526', 'tblTempUsageDetail_20' ) start [2025-01-01 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149526', 'tblTempUsageDetail_20' ) end [2025-01-01 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:02:21] Production.INFO: ==22139== Releasing lock... [2025-01-01 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:02:21] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 08:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:03:04 [end_date_ymd] => 2025-01-01 08:03:04 [RateCDR] => 1 ) [2025-01-01 08: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-01 05:03:04' and `end` < '2025-01-01 08: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-01-01 08:03:18] Production.INFO: count ==4 [2025-01-01 08:03:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:03:04 - End Time 2025-01-01 08:03:04 [2025-01-01 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149531', 'tblTempUsageDetail_20' ) start [2025-01-01 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149531', 'tblTempUsageDetail_20' ) end [2025-01-01 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149531', 'tblTempVendorCDR_20' ) start [2025-01-01 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149531', 'tblTempVendorCDR_20' ) end [2025-01-01 08:03:18] Production.INFO: ProcessCDR(1,14149531,1,1,2) [2025-01-01 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149531', 'tblTempUsageDetail_20' ) start [2025-01-01 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149531', 'tblTempUsageDetail_20' ) end [2025-01-01 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:03:22] Production.INFO: ==22216== Releasing lock... [2025-01-01 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:03:22] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:04:05 [end_date_ymd] => 2025-01-01 08:04:05 [RateCDR] => 1 ) [2025-01-01 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 05:04:05' and `end` < '2025-01-01 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 08:04:19] Production.INFO: count ==4 [2025-01-01 08:04:19] Production.ERROR: pbx CDR StartTime 2025-01-01 05:04:05 - End Time 2025-01-01 08:04:05 [2025-01-01 08:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149536', 'tblTempUsageDetail_20' ) start [2025-01-01 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149536', 'tblTempUsageDetail_20' ) end [2025-01-01 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149536', 'tblTempVendorCDR_20' ) start [2025-01-01 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149536', 'tblTempVendorCDR_20' ) end [2025-01-01 08:04:19] Production.INFO: ProcessCDR(1,14149536,1,1,2) [2025-01-01 08:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149536', 'tblTempUsageDetail_20' ) start [2025-01-01 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149536', 'tblTempUsageDetail_20' ) end [2025-01-01 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:04:22] Production.INFO: ==22292== Releasing lock... [2025-01-01 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:04:22] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:05:05 [end_date_ymd] => 2025-01-01 08:05:05 [RateCDR] => 1 ) [2025-01-01 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 05:05:05' and `end` < '2025-01-01 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 08:05:18] Production.INFO: count ==4 [2025-01-01 08:05:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:05:05 - End Time 2025-01-01 08:05:05 [2025-01-01 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149541', 'tblTempUsageDetail_20' ) start [2025-01-01 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149541', 'tblTempUsageDetail_20' ) end [2025-01-01 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149541', 'tblTempVendorCDR_20' ) start [2025-01-01 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149541', 'tblTempVendorCDR_20' ) end [2025-01-01 08:05:18] Production.INFO: ProcessCDR(1,14149541,1,1,2) [2025-01-01 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149541', 'tblTempUsageDetail_20' ) start [2025-01-01 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149541', 'tblTempUsageDetail_20' ) end [2025-01-01 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:05:21] Production.INFO: ==22368== Releasing lock... [2025-01-01 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:05:21] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 08:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:06:06 [end_date_ymd] => 2025-01-01 08:06:06 [RateCDR] => 1 ) [2025-01-01 08:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 05:06:06' and `end` < '2025-01-01 08:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 08:06:20] Production.INFO: count ==4 [2025-01-01 08:06:20] Production.ERROR: pbx CDR StartTime 2025-01-01 05:06:06 - End Time 2025-01-01 08:06:06 [2025-01-01 08:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149546', 'tblTempUsageDetail_20' ) start [2025-01-01 08:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149546', 'tblTempUsageDetail_20' ) end [2025-01-01 08:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149546', 'tblTempVendorCDR_20' ) start [2025-01-01 08:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149546', 'tblTempVendorCDR_20' ) end [2025-01-01 08:06:20] Production.INFO: ProcessCDR(1,14149546,1,1,2) [2025-01-01 08:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149546', 'tblTempUsageDetail_20' ) start [2025-01-01 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149546', 'tblTempUsageDetail_20' ) end [2025-01-01 08:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:06:23] Production.INFO: ==22441== Releasing lock... [2025-01-01 08:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:06:23] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:07:05 [end_date_ymd] => 2025-01-01 08:07:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:07:05' and `end` < '2025-01-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-01-01 08:07:18] Production.INFO: count ==4 [2025-01-01 08:07:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:07:05 - End Time 2025-01-01 08:07:05 [2025-01-01 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149551', 'tblTempUsageDetail_20' ) start [2025-01-01 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149551', 'tblTempUsageDetail_20' ) end [2025-01-01 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149551', 'tblTempVendorCDR_20' ) start [2025-01-01 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149551', 'tblTempVendorCDR_20' ) end [2025-01-01 08:07:18] Production.INFO: ProcessCDR(1,14149551,1,1,2) [2025-01-01 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149551', 'tblTempUsageDetail_20' ) start [2025-01-01 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149551', 'tblTempUsageDetail_20' ) end [2025-01-01 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:07:21] Production.INFO: ==22512== Releasing lock... [2025-01-01 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:07:21] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 08:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:08:04 [end_date_ymd] => 2025-01-01 08:08:04 [RateCDR] => 1 ) [2025-01-01 08: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-01 05:08:04' and `end` < '2025-01-01 08: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-01-01 08:08:18] Production.INFO: count ==4 [2025-01-01 08:08:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:08:04 - End Time 2025-01-01 08:08:04 [2025-01-01 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149556', 'tblTempUsageDetail_20' ) start [2025-01-01 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149556', 'tblTempUsageDetail_20' ) end [2025-01-01 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149556', 'tblTempVendorCDR_20' ) start [2025-01-01 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149556', 'tblTempVendorCDR_20' ) end [2025-01-01 08:08:18] Production.INFO: ProcessCDR(1,14149556,1,1,2) [2025-01-01 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149556', 'tblTempUsageDetail_20' ) start [2025-01-01 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149556', 'tblTempUsageDetail_20' ) end [2025-01-01 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:08:21] Production.INFO: ==22585== Releasing lock... [2025-01-01 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:08:21] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:09:05 [end_date_ymd] => 2025-01-01 08:09:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:09:05' and `end` < '2025-01-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-01-01 08:09:18] Production.INFO: count ==4 [2025-01-01 08:09:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:09:05 - End Time 2025-01-01 08:09:05 [2025-01-01 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149561', 'tblTempUsageDetail_20' ) start [2025-01-01 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149561', 'tblTempUsageDetail_20' ) end [2025-01-01 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149561', 'tblTempVendorCDR_20' ) start [2025-01-01 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149561', 'tblTempVendorCDR_20' ) end [2025-01-01 08:09:18] Production.INFO: ProcessCDR(1,14149561,1,1,2) [2025-01-01 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149561', 'tblTempUsageDetail_20' ) start [2025-01-01 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149561', 'tblTempUsageDetail_20' ) end [2025-01-01 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:09:21] Production.INFO: ==22663== Releasing lock... [2025-01-01 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:09:21] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:10:06 [end_date_ymd] => 2025-01-01 08:10:06 [RateCDR] => 1 ) [2025-01-01 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 05:10:06' and `end` < '2025-01-01 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 08:10:19] Production.INFO: count ==4 [2025-01-01 08:10:19] Production.ERROR: pbx CDR StartTime 2025-01-01 05:10:06 - End Time 2025-01-01 08:10:06 [2025-01-01 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149567', 'tblTempUsageDetail_20' ) start [2025-01-01 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149567', 'tblTempUsageDetail_20' ) end [2025-01-01 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149567', 'tblTempVendorCDR_20' ) start [2025-01-01 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149567', 'tblTempVendorCDR_20' ) end [2025-01-01 08:10:19] Production.INFO: ProcessCDR(1,14149567,1,1,2) [2025-01-01 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149567', 'tblTempUsageDetail_20' ) start [2025-01-01 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149567', 'tblTempUsageDetail_20' ) end [2025-01-01 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:10:22] Production.INFO: ==22740== Releasing lock... [2025-01-01 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:10:22] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:11:05 [end_date_ymd] => 2025-01-01 08:11:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:11:05' and `end` < '2025-01-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-01-01 08:11:17] Production.INFO: count ==4 [2025-01-01 08:11:17] Production.ERROR: pbx CDR StartTime 2025-01-01 05:11:05 - End Time 2025-01-01 08:11:05 [2025-01-01 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149572', 'tblTempUsageDetail_20' ) start [2025-01-01 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149572', 'tblTempUsageDetail_20' ) end [2025-01-01 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149572', 'tblTempVendorCDR_20' ) start [2025-01-01 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149572', 'tblTempVendorCDR_20' ) end [2025-01-01 08:11:17] Production.INFO: ProcessCDR(1,14149572,1,1,2) [2025-01-01 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149572', 'tblTempUsageDetail_20' ) start [2025-01-01 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149572', 'tblTempUsageDetail_20' ) end [2025-01-01 08:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:11:20] Production.INFO: ==22815== Releasing lock... [2025-01-01 08:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:11:20] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:12:05 [end_date_ymd] => 2025-01-01 08:12:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:12:05' and `end` < '2025-01-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-01-01 08:12:19] Production.INFO: count ==4 [2025-01-01 08:12:19] Production.ERROR: pbx CDR StartTime 2025-01-01 05:12:05 - End Time 2025-01-01 08:12:05 [2025-01-01 08:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149577', 'tblTempUsageDetail_20' ) start [2025-01-01 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149577', 'tblTempUsageDetail_20' ) end [2025-01-01 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149577', 'tblTempVendorCDR_20' ) start [2025-01-01 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149577', 'tblTempVendorCDR_20' ) end [2025-01-01 08:12:19] Production.INFO: ProcessCDR(1,14149577,1,1,2) [2025-01-01 08:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149577', 'tblTempUsageDetail_20' ) start [2025-01-01 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149577', 'tblTempUsageDetail_20' ) end [2025-01-01 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:12:22] Production.INFO: ==22887== Releasing lock... [2025-01-01 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:12:22] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:13:04 [end_date_ymd] => 2025-01-01 08:13:04 [RateCDR] => 1 ) [2025-01-01 08: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-01-01 05:13:04' and `end` < '2025-01-01 08: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-01-01 08:13:18] Production.INFO: count ==4 [2025-01-01 08:13:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:13:04 - End Time 2025-01-01 08:13:04 [2025-01-01 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149582', 'tblTempUsageDetail_20' ) start [2025-01-01 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149582', 'tblTempUsageDetail_20' ) end [2025-01-01 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149582', 'tblTempVendorCDR_20' ) start [2025-01-01 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149582', 'tblTempVendorCDR_20' ) end [2025-01-01 08:13:18] Production.INFO: ProcessCDR(1,14149582,1,1,2) [2025-01-01 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149582', 'tblTempUsageDetail_20' ) start [2025-01-01 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149582', 'tblTempUsageDetail_20' ) end [2025-01-01 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:13:21] Production.INFO: ==22958== Releasing lock... [2025-01-01 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:13:21] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:14:05 [end_date_ymd] => 2025-01-01 08:14:05 [RateCDR] => 1 ) [2025-01-01 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 05:14:05' and `end` < '2025-01-01 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 08:14:18] Production.INFO: count ==4 [2025-01-01 08:14:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:14:05 - End Time 2025-01-01 08:14:05 [2025-01-01 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149587', 'tblTempUsageDetail_20' ) start [2025-01-01 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149587', 'tblTempUsageDetail_20' ) end [2025-01-01 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149587', 'tblTempVendorCDR_20' ) start [2025-01-01 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149587', 'tblTempVendorCDR_20' ) end [2025-01-01 08:14:18] Production.INFO: ProcessCDR(1,14149587,1,1,2) [2025-01-01 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149587', 'tblTempUsageDetail_20' ) start [2025-01-01 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149587', 'tblTempUsageDetail_20' ) end [2025-01-01 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:14:21] Production.INFO: ==23033== Releasing lock... [2025-01-01 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:14:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:15:04 [end_date_ymd] => 2025-01-01 08:15:04 [RateCDR] => 1 ) [2025-01-01 08: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-01-01 05:15:04' and `end` < '2025-01-01 08: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-01-01 08:15:18] Production.INFO: count ==4 [2025-01-01 08:15:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:15:04 - End Time 2025-01-01 08:15:04 [2025-01-01 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149592', 'tblTempUsageDetail_20' ) start [2025-01-01 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149592', 'tblTempUsageDetail_20' ) end [2025-01-01 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149592', 'tblTempVendorCDR_20' ) start [2025-01-01 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149592', 'tblTempVendorCDR_20' ) end [2025-01-01 08:15:18] Production.INFO: ProcessCDR(1,14149592,1,1,2) [2025-01-01 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149592', 'tblTempUsageDetail_20' ) start [2025-01-01 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149592', 'tblTempUsageDetail_20' ) end [2025-01-01 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:15:21] Production.INFO: ==23104== Releasing lock... [2025-01-01 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:15:21] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:16:05 [end_date_ymd] => 2025-01-01 08:16:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:16:05' and `end` < '2025-01-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-01-01 08:16:18] Production.INFO: count ==4 [2025-01-01 08:16:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:16:05 - End Time 2025-01-01 08:16:05 [2025-01-01 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149597', 'tblTempUsageDetail_20' ) start [2025-01-01 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149597', 'tblTempUsageDetail_20' ) end [2025-01-01 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149597', 'tblTempVendorCDR_20' ) start [2025-01-01 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149597', 'tblTempVendorCDR_20' ) end [2025-01-01 08:16:18] Production.INFO: ProcessCDR(1,14149597,1,1,2) [2025-01-01 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149597', 'tblTempUsageDetail_20' ) start [2025-01-01 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149597', 'tblTempUsageDetail_20' ) end [2025-01-01 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:16:21] Production.INFO: ==23219== Releasing lock... [2025-01-01 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:16:21] Production.INFO: 27.5 MB #Memory Used# [2025-01-01 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:17:05 [end_date_ymd] => 2025-01-01 08:17:05 [RateCDR] => 1 ) [2025-01-01 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 05:17:05' and `end` < '2025-01-01 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 08:17:18] Production.INFO: count ==10 [2025-01-01 08:17:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:17:05 - End Time 2025-01-01 08:17:05 [2025-01-01 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149602', 'tblTempUsageDetail_20' ) start [2025-01-01 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149602', 'tblTempUsageDetail_20' ) end [2025-01-01 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149602', 'tblTempVendorCDR_20' ) start [2025-01-01 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149602', 'tblTempVendorCDR_20' ) end [2025-01-01 08:17:18] Production.INFO: ProcessCDR(1,14149602,1,1,2) [2025-01-01 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149602', 'tblTempUsageDetail_20' ) start [2025-01-01 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149602', 'tblTempUsageDetail_20' ) end [2025-01-01 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:17:21] Production.INFO: ==23301== Releasing lock... [2025-01-01 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:17:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:18:05 [end_date_ymd] => 2025-01-01 08:18:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:18:05' and `end` < '2025-01-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-01-01 08:18:20] Production.INFO: count ==10 [2025-01-01 08:18:20] Production.ERROR: pbx CDR StartTime 2025-01-01 05:18:05 - End Time 2025-01-01 08:18:05 [2025-01-01 08:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149607', 'tblTempUsageDetail_20' ) start [2025-01-01 08:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149607', 'tblTempUsageDetail_20' ) end [2025-01-01 08:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149607', 'tblTempVendorCDR_20' ) start [2025-01-01 08:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149607', 'tblTempVendorCDR_20' ) end [2025-01-01 08:18:20] Production.INFO: ProcessCDR(1,14149607,1,1,2) [2025-01-01 08:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149607', 'tblTempUsageDetail_20' ) start [2025-01-01 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149607', 'tblTempUsageDetail_20' ) end [2025-01-01 08:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:18:23] Production.INFO: ==23372== Releasing lock... [2025-01-01 08:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:18:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:19:05 [end_date_ymd] => 2025-01-01 08:19:05 [RateCDR] => 1 ) [2025-01-01 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 05:19:05' and `end` < '2025-01-01 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 08:19:19] Production.INFO: count ==9 [2025-01-01 08:19:19] Production.ERROR: pbx CDR StartTime 2025-01-01 05:19:05 - End Time 2025-01-01 08:19:05 [2025-01-01 08:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149611', 'tblTempUsageDetail_20' ) start [2025-01-01 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149611', 'tblTempUsageDetail_20' ) end [2025-01-01 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149611', 'tblTempVendorCDR_20' ) start [2025-01-01 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149611', 'tblTempVendorCDR_20' ) end [2025-01-01 08:19:19] Production.INFO: ProcessCDR(1,14149611,1,1,2) [2025-01-01 08:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149611', 'tblTempUsageDetail_20' ) start [2025-01-01 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149611', 'tblTempUsageDetail_20' ) end [2025-01-01 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:19:22] Production.INFO: ==23445== Releasing lock... [2025-01-01 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:19:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:20:05 [end_date_ymd] => 2025-01-01 08:20:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:20:05' and `end` < '2025-01-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-01-01 08:20:18] Production.INFO: count ==8 [2025-01-01 08:20:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:20:05 - End Time 2025-01-01 08:20:05 [2025-01-01 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149617', 'tblTempUsageDetail_20' ) start [2025-01-01 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149617', 'tblTempUsageDetail_20' ) end [2025-01-01 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149617', 'tblTempVendorCDR_20' ) start [2025-01-01 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149617', 'tblTempVendorCDR_20' ) end [2025-01-01 08:20:18] Production.INFO: ProcessCDR(1,14149617,1,1,2) [2025-01-01 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149617', 'tblTempUsageDetail_20' ) start [2025-01-01 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149617', 'tblTempUsageDetail_20' ) end [2025-01-01 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:20:21] Production.INFO: ==23520== Releasing lock... [2025-01-01 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:20:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:21:05 [end_date_ymd] => 2025-01-01 08:21:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:21:05' and `end` < '2025-01-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-01-01 08:21:17] Production.INFO: count ==8 [2025-01-01 08:21:17] Production.ERROR: pbx CDR StartTime 2025-01-01 05:21:05 - End Time 2025-01-01 08:21:05 [2025-01-01 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149623', 'tblTempUsageDetail_20' ) start [2025-01-01 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149623', 'tblTempUsageDetail_20' ) end [2025-01-01 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149623', 'tblTempVendorCDR_20' ) start [2025-01-01 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149623', 'tblTempVendorCDR_20' ) end [2025-01-01 08:21:17] Production.INFO: ProcessCDR(1,14149623,1,1,2) [2025-01-01 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149623', 'tblTempUsageDetail_20' ) start [2025-01-01 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149623', 'tblTempUsageDetail_20' ) end [2025-01-01 08:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:21:20] Production.INFO: ==23594== Releasing lock... [2025-01-01 08:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:21:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:22:05 [end_date_ymd] => 2025-01-01 08:22:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:22:05' and `end` < '2025-01-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-01-01 08:22:18] Production.INFO: count ==8 [2025-01-01 08:22:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:22:05 - End Time 2025-01-01 08:22:05 [2025-01-01 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149628', 'tblTempUsageDetail_20' ) start [2025-01-01 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149628', 'tblTempUsageDetail_20' ) end [2025-01-01 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149628', 'tblTempVendorCDR_20' ) start [2025-01-01 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149628', 'tblTempVendorCDR_20' ) end [2025-01-01 08:22:18] Production.INFO: ProcessCDR(1,14149628,1,1,2) [2025-01-01 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149628', 'tblTempUsageDetail_20' ) start [2025-01-01 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149628', 'tblTempUsageDetail_20' ) end [2025-01-01 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:22:21] Production.INFO: ==23673== Releasing lock... [2025-01-01 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:22:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:23:05 [end_date_ymd] => 2025-01-01 08:23:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:23:05' and `end` < '2025-01-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-01-01 08:23:17] Production.INFO: count ==8 [2025-01-01 08:23:17] Production.ERROR: pbx CDR StartTime 2025-01-01 05:23:05 - End Time 2025-01-01 08:23:05 [2025-01-01 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149633', 'tblTempUsageDetail_20' ) start [2025-01-01 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149633', 'tblTempUsageDetail_20' ) end [2025-01-01 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149633', 'tblTempVendorCDR_20' ) start [2025-01-01 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149633', 'tblTempVendorCDR_20' ) end [2025-01-01 08:23:17] Production.INFO: ProcessCDR(1,14149633,1,1,2) [2025-01-01 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149633', 'tblTempUsageDetail_20' ) start [2025-01-01 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149633', 'tblTempUsageDetail_20' ) end [2025-01-01 08:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:23:20] Production.INFO: ==23752== Releasing lock... [2025-01-01 08:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:23:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:24:04 [end_date_ymd] => 2025-01-01 08:24:04 [RateCDR] => 1 ) [2025-01-01 08: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-01-01 05:24:04' and `end` < '2025-01-01 08: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-01-01 08:24:18] Production.INFO: count ==8 [2025-01-01 08:24:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:24:04 - End Time 2025-01-01 08:24:04 [2025-01-01 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149638', 'tblTempUsageDetail_20' ) start [2025-01-01 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149638', 'tblTempUsageDetail_20' ) end [2025-01-01 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149638', 'tblTempVendorCDR_20' ) start [2025-01-01 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149638', 'tblTempVendorCDR_20' ) end [2025-01-01 08:24:18] Production.INFO: ProcessCDR(1,14149638,1,1,2) [2025-01-01 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149638', 'tblTempUsageDetail_20' ) start [2025-01-01 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149638', 'tblTempUsageDetail_20' ) end [2025-01-01 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:24:21] Production.INFO: ==23824== Releasing lock... [2025-01-01 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:24:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:25:05 [end_date_ymd] => 2025-01-01 08:25:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:25:05' and `end` < '2025-01-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-01-01 08:25:17] Production.INFO: count ==8 [2025-01-01 08:25:17] Production.ERROR: pbx CDR StartTime 2025-01-01 05:25:05 - End Time 2025-01-01 08:25:05 [2025-01-01 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149643', 'tblTempUsageDetail_20' ) start [2025-01-01 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149643', 'tblTempUsageDetail_20' ) end [2025-01-01 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149643', 'tblTempVendorCDR_20' ) start [2025-01-01 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149643', 'tblTempVendorCDR_20' ) end [2025-01-01 08:25:17] Production.INFO: ProcessCDR(1,14149643,1,1,2) [2025-01-01 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149643', 'tblTempUsageDetail_20' ) start [2025-01-01 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149643', 'tblTempUsageDetail_20' ) end [2025-01-01 08:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:25:20] Production.INFO: ==23896== Releasing lock... [2025-01-01 08:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:25:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:26:04 [end_date_ymd] => 2025-01-01 08:26:04 [RateCDR] => 1 ) [2025-01-01 08:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 05:26:04' and `end` < '2025-01-01 08:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 08:26:17] Production.INFO: count ==8 [2025-01-01 08:26:17] Production.ERROR: pbx CDR StartTime 2025-01-01 05:26:04 - End Time 2025-01-01 08:26:04 [2025-01-01 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149648', 'tblTempUsageDetail_20' ) start [2025-01-01 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149648', 'tblTempUsageDetail_20' ) end [2025-01-01 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149648', 'tblTempVendorCDR_20' ) start [2025-01-01 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149648', 'tblTempVendorCDR_20' ) end [2025-01-01 08:26:17] Production.INFO: ProcessCDR(1,14149648,1,1,2) [2025-01-01 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149648', 'tblTempUsageDetail_20' ) start [2025-01-01 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149648', 'tblTempUsageDetail_20' ) end [2025-01-01 08:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:26:20] Production.INFO: ==23971== Releasing lock... [2025-01-01 08:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:26:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:27:05 [end_date_ymd] => 2025-01-01 08:27:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:27:05' and `end` < '2025-01-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-01-01 08:27:18] Production.INFO: count ==8 [2025-01-01 08:27:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:27:05 - End Time 2025-01-01 08:27:05 [2025-01-01 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149653', 'tblTempUsageDetail_20' ) start [2025-01-01 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149653', 'tblTempUsageDetail_20' ) end [2025-01-01 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149653', 'tblTempVendorCDR_20' ) start [2025-01-01 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149653', 'tblTempVendorCDR_20' ) end [2025-01-01 08:27:18] Production.INFO: ProcessCDR(1,14149653,1,1,2) [2025-01-01 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149653', 'tblTempUsageDetail_20' ) start [2025-01-01 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149653', 'tblTempUsageDetail_20' ) end [2025-01-01 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:27:21] Production.INFO: ==24040== Releasing lock... [2025-01-01 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:27:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:28:05 [end_date_ymd] => 2025-01-01 08:28:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:28:05' and `end` < '2025-01-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-01-01 08:28:19] Production.INFO: count ==8 [2025-01-01 08:28:19] Production.ERROR: pbx CDR StartTime 2025-01-01 05:28:05 - End Time 2025-01-01 08:28:05 [2025-01-01 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149658', 'tblTempUsageDetail_20' ) start [2025-01-01 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149658', 'tblTempUsageDetail_20' ) end [2025-01-01 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149658', 'tblTempVendorCDR_20' ) start [2025-01-01 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149658', 'tblTempVendorCDR_20' ) end [2025-01-01 08:28:19] Production.INFO: ProcessCDR(1,14149658,1,1,2) [2025-01-01 08:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149658', 'tblTempUsageDetail_20' ) start [2025-01-01 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149658', 'tblTempUsageDetail_20' ) end [2025-01-01 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:28:22] Production.INFO: ==24111== Releasing lock... [2025-01-01 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:28:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:29:05 [end_date_ymd] => 2025-01-01 08:29:05 [RateCDR] => 1 ) [2025-01-01 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 05:29:05' and `end` < '2025-01-01 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 08:29:17] Production.INFO: count ==8 [2025-01-01 08:29:17] Production.ERROR: pbx CDR StartTime 2025-01-01 05:29:05 - End Time 2025-01-01 08:29:05 [2025-01-01 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149663', 'tblTempUsageDetail_20' ) start [2025-01-01 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149663', 'tblTempUsageDetail_20' ) end [2025-01-01 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149663', 'tblTempVendorCDR_20' ) start [2025-01-01 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149663', 'tblTempVendorCDR_20' ) end [2025-01-01 08:29:17] Production.INFO: ProcessCDR(1,14149663,1,1,2) [2025-01-01 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149663', 'tblTempUsageDetail_20' ) start [2025-01-01 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149663', 'tblTempUsageDetail_20' ) end [2025-01-01 08:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:29:20] Production.INFO: ==24186== Releasing lock... [2025-01-01 08:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:29:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:30:05 [end_date_ymd] => 2025-01-01 08:30:05 [RateCDR] => 1 ) [2025-01-01 08: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-01-01 05:30:05' and `end` < '2025-01-01 08: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-01-01 08:30:19] Production.INFO: count ==10 [2025-01-01 08:30:19] Production.ERROR: pbx CDR StartTime 2025-01-01 05:30:05 - End Time 2025-01-01 08:30:05 [2025-01-01 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149669', 'tblTempUsageDetail_20' ) start [2025-01-01 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149669', 'tblTempUsageDetail_20' ) end [2025-01-01 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149669', 'tblTempVendorCDR_20' ) start [2025-01-01 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149669', 'tblTempVendorCDR_20' ) end [2025-01-01 08:30:19] Production.INFO: ProcessCDR(1,14149669,1,1,2) [2025-01-01 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149669', 'tblTempUsageDetail_20' ) start [2025-01-01 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149669', 'tblTempUsageDetail_20' ) end [2025-01-01 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:30:22] Production.INFO: ==24260== Releasing lock... [2025-01-01 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:30:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:31:05 [end_date_ymd] => 2025-01-01 08:31:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:31:05' and `end` < '2025-01-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-01-01 08:31:19] Production.INFO: count ==10 [2025-01-01 08:31:19] Production.ERROR: pbx CDR StartTime 2025-01-01 05:31:05 - End Time 2025-01-01 08:31:05 [2025-01-01 08:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149674', 'tblTempUsageDetail_20' ) start [2025-01-01 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149674', 'tblTempUsageDetail_20' ) end [2025-01-01 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149674', 'tblTempVendorCDR_20' ) start [2025-01-01 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149674', 'tblTempVendorCDR_20' ) end [2025-01-01 08:31:19] Production.INFO: ProcessCDR(1,14149674,1,1,2) [2025-01-01 08:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149674', 'tblTempUsageDetail_20' ) start [2025-01-01 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149674', 'tblTempUsageDetail_20' ) end [2025-01-01 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:31:22] Production.INFO: ==24336== Releasing lock... [2025-01-01 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:31:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:32:04 [end_date_ymd] => 2025-01-01 08:32:04 [RateCDR] => 1 ) [2025-01-01 08:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 05:32:04' and `end` < '2025-01-01 08:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 08:32:17] Production.INFO: count ==10 [2025-01-01 08:32:17] Production.ERROR: pbx CDR StartTime 2025-01-01 05:32:04 - End Time 2025-01-01 08:32:04 [2025-01-01 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149679', 'tblTempUsageDetail_20' ) start [2025-01-01 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149679', 'tblTempUsageDetail_20' ) end [2025-01-01 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149679', 'tblTempVendorCDR_20' ) start [2025-01-01 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149679', 'tblTempVendorCDR_20' ) end [2025-01-01 08:32:17] Production.INFO: ProcessCDR(1,14149679,1,1,2) [2025-01-01 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149679', 'tblTempUsageDetail_20' ) start [2025-01-01 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149679', 'tblTempUsageDetail_20' ) end [2025-01-01 08:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:32:20] Production.INFO: ==24450== Releasing lock... [2025-01-01 08:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:32:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:33:05 [end_date_ymd] => 2025-01-01 08:33:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:33:05' and `end` < '2025-01-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-01-01 08:33:18] Production.INFO: count ==10 [2025-01-01 08:33:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:33:05 - End Time 2025-01-01 08:33:05 [2025-01-01 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149684', 'tblTempUsageDetail_20' ) start [2025-01-01 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149684', 'tblTempUsageDetail_20' ) end [2025-01-01 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149684', 'tblTempVendorCDR_20' ) start [2025-01-01 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149684', 'tblTempVendorCDR_20' ) end [2025-01-01 08:33:18] Production.INFO: ProcessCDR(1,14149684,1,1,2) [2025-01-01 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149684', 'tblTempUsageDetail_20' ) start [2025-01-01 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149684', 'tblTempUsageDetail_20' ) end [2025-01-01 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:33:21] Production.INFO: ==24521== Releasing lock... [2025-01-01 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:33:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:34:04 [end_date_ymd] => 2025-01-01 08:34:04 [RateCDR] => 1 ) [2025-01-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-01-01 05:34:04' and `end` < '2025-01-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-01-01 08:34:17] Production.INFO: count ==10 [2025-01-01 08:34:17] Production.ERROR: pbx CDR StartTime 2025-01-01 05:34:04 - End Time 2025-01-01 08:34:04 [2025-01-01 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149689', 'tblTempUsageDetail_20' ) start [2025-01-01 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149689', 'tblTempUsageDetail_20' ) end [2025-01-01 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149689', 'tblTempVendorCDR_20' ) start [2025-01-01 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149689', 'tblTempVendorCDR_20' ) end [2025-01-01 08:34:17] Production.INFO: ProcessCDR(1,14149689,1,1,2) [2025-01-01 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149689', 'tblTempUsageDetail_20' ) start [2025-01-01 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149689', 'tblTempUsageDetail_20' ) end [2025-01-01 08:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:34:20] Production.INFO: ==24592== Releasing lock... [2025-01-01 08:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:34:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:35:05 [end_date_ymd] => 2025-01-01 08:35:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:35:05' and `end` < '2025-01-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-01-01 08:35:17] Production.INFO: count ==10 [2025-01-01 08:35:17] Production.ERROR: pbx CDR StartTime 2025-01-01 05:35:05 - End Time 2025-01-01 08:35:05 [2025-01-01 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149694', 'tblTempUsageDetail_20' ) start [2025-01-01 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149694', 'tblTempUsageDetail_20' ) end [2025-01-01 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149694', 'tblTempVendorCDR_20' ) start [2025-01-01 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149694', 'tblTempVendorCDR_20' ) end [2025-01-01 08:35:17] Production.INFO: ProcessCDR(1,14149694,1,1,2) [2025-01-01 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149694', 'tblTempUsageDetail_20' ) start [2025-01-01 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149694', 'tblTempUsageDetail_20' ) end [2025-01-01 08:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:35:20] Production.INFO: ==24662== Releasing lock... [2025-01-01 08:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:35:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:36:04 [end_date_ymd] => 2025-01-01 08:36:04 [RateCDR] => 1 ) [2025-01-01 08:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 05:36:04' and `end` < '2025-01-01 08:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 08:36:17] Production.INFO: count ==10 [2025-01-01 08:36:17] Production.ERROR: pbx CDR StartTime 2025-01-01 05:36:04 - End Time 2025-01-01 08:36:04 [2025-01-01 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149699', 'tblTempUsageDetail_20' ) start [2025-01-01 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149699', 'tblTempUsageDetail_20' ) end [2025-01-01 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149699', 'tblTempVendorCDR_20' ) start [2025-01-01 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149699', 'tblTempVendorCDR_20' ) end [2025-01-01 08:36:17] Production.INFO: ProcessCDR(1,14149699,1,1,2) [2025-01-01 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149699', 'tblTempUsageDetail_20' ) start [2025-01-01 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149699', 'tblTempUsageDetail_20' ) end [2025-01-01 08:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:36:20] Production.INFO: ==24738== Releasing lock... [2025-01-01 08:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:36:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:37:04 [end_date_ymd] => 2025-01-01 08:37:04 [RateCDR] => 1 ) [2025-01-01 08: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-01-01 05:37:04' and `end` < '2025-01-01 08: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-01-01 08:37:17] Production.INFO: count ==10 [2025-01-01 08:37:17] Production.ERROR: pbx CDR StartTime 2025-01-01 05:37:04 - End Time 2025-01-01 08:37:04 [2025-01-01 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149704', 'tblTempUsageDetail_20' ) start [2025-01-01 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149704', 'tblTempUsageDetail_20' ) end [2025-01-01 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149704', 'tblTempVendorCDR_20' ) start [2025-01-01 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149704', 'tblTempVendorCDR_20' ) end [2025-01-01 08:37:17] Production.INFO: ProcessCDR(1,14149704,1,1,2) [2025-01-01 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149704', 'tblTempUsageDetail_20' ) start [2025-01-01 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149704', 'tblTempUsageDetail_20' ) end [2025-01-01 08:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:37:20] Production.INFO: ==24813== Releasing lock... [2025-01-01 08:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:37:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:38:05 [end_date_ymd] => 2025-01-01 08:38:05 [RateCDR] => 1 ) [2025-01-01 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 05:38:05' and `end` < '2025-01-01 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 08:38:18] Production.INFO: count ==10 [2025-01-01 08:38:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:38:05 - End Time 2025-01-01 08:38:05 [2025-01-01 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149709', 'tblTempUsageDetail_20' ) start [2025-01-01 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149709', 'tblTempUsageDetail_20' ) end [2025-01-01 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149709', 'tblTempVendorCDR_20' ) start [2025-01-01 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149709', 'tblTempVendorCDR_20' ) end [2025-01-01 08:38:18] Production.INFO: ProcessCDR(1,14149709,1,1,2) [2025-01-01 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149709', 'tblTempUsageDetail_20' ) start [2025-01-01 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149709', 'tblTempUsageDetail_20' ) end [2025-01-01 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:38:21] Production.INFO: ==24885== Releasing lock... [2025-01-01 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:38:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:39:05 [end_date_ymd] => 2025-01-01 08:39:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:39:05' and `end` < '2025-01-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-01-01 08:39:18] Production.INFO: count ==10 [2025-01-01 08:39:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:39:05 - End Time 2025-01-01 08:39:05 [2025-01-01 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149714', 'tblTempUsageDetail_20' ) start [2025-01-01 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149714', 'tblTempUsageDetail_20' ) end [2025-01-01 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149714', 'tblTempVendorCDR_20' ) start [2025-01-01 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149714', 'tblTempVendorCDR_20' ) end [2025-01-01 08:39:18] Production.INFO: ProcessCDR(1,14149714,1,1,2) [2025-01-01 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149714', 'tblTempUsageDetail_20' ) start [2025-01-01 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149714', 'tblTempUsageDetail_20' ) end [2025-01-01 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:39:21] Production.INFO: ==24959== Releasing lock... [2025-01-01 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:39:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:40:06 [end_date_ymd] => 2025-01-01 08:40:06 [RateCDR] => 1 ) [2025-01-01 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 05:40:06' and `end` < '2025-01-01 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 08:40:19] Production.INFO: count ==12 [2025-01-01 08:40:19] Production.ERROR: pbx CDR StartTime 2025-01-01 05:40:06 - End Time 2025-01-01 08:40:06 [2025-01-01 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149720', 'tblTempUsageDetail_20' ) start [2025-01-01 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149720', 'tblTempUsageDetail_20' ) end [2025-01-01 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149720', 'tblTempVendorCDR_20' ) start [2025-01-01 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149720', 'tblTempVendorCDR_20' ) end [2025-01-01 08:40:19] Production.INFO: ProcessCDR(1,14149720,1,1,2) [2025-01-01 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149720', 'tblTempUsageDetail_20' ) start [2025-01-01 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149720', 'tblTempUsageDetail_20' ) end [2025-01-01 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:40:22] Production.INFO: ==25039== Releasing lock... [2025-01-01 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:40:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:41:05 [end_date_ymd] => 2025-01-01 08:41:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:41:05' and `end` < '2025-01-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-01-01 08:41:18] Production.INFO: count ==12 [2025-01-01 08:41:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:41:05 - End Time 2025-01-01 08:41:05 [2025-01-01 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149725', 'tblTempUsageDetail_20' ) start [2025-01-01 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149725', 'tblTempUsageDetail_20' ) end [2025-01-01 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149725', 'tblTempVendorCDR_20' ) start [2025-01-01 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149725', 'tblTempVendorCDR_20' ) end [2025-01-01 08:41:18] Production.INFO: ProcessCDR(1,14149725,1,1,2) [2025-01-01 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149725', 'tblTempUsageDetail_20' ) start [2025-01-01 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149725', 'tblTempUsageDetail_20' ) end [2025-01-01 08:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:41:21] Production.INFO: ==25121== Releasing lock... [2025-01-01 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:41:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:42:05 [end_date_ymd] => 2025-01-01 08:42:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:42:05' and `end` < '2025-01-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-01-01 08:42:18] Production.INFO: count ==12 [2025-01-01 08:42:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:42:05 - End Time 2025-01-01 08:42:05 [2025-01-01 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149730', 'tblTempUsageDetail_20' ) start [2025-01-01 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149730', 'tblTempUsageDetail_20' ) end [2025-01-01 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149730', 'tblTempVendorCDR_20' ) start [2025-01-01 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149730', 'tblTempVendorCDR_20' ) end [2025-01-01 08:42:18] Production.INFO: ProcessCDR(1,14149730,1,1,2) [2025-01-01 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149730', 'tblTempUsageDetail_20' ) start [2025-01-01 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149730', 'tblTempUsageDetail_20' ) end [2025-01-01 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:42:21] Production.INFO: ==25200== Releasing lock... [2025-01-01 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:42:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:43:05 [end_date_ymd] => 2025-01-01 08:43:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:43:05' and `end` < '2025-01-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-01-01 08:43:18] Production.INFO: count ==12 [2025-01-01 08:43:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:43:05 - End Time 2025-01-01 08:43:05 [2025-01-01 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149735', 'tblTempUsageDetail_20' ) start [2025-01-01 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149735', 'tblTempUsageDetail_20' ) end [2025-01-01 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149735', 'tblTempVendorCDR_20' ) start [2025-01-01 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149735', 'tblTempVendorCDR_20' ) end [2025-01-01 08:43:18] Production.INFO: ProcessCDR(1,14149735,1,1,2) [2025-01-01 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149735', 'tblTempUsageDetail_20' ) start [2025-01-01 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149735', 'tblTempUsageDetail_20' ) end [2025-01-01 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:43:21] Production.INFO: ==25279== Releasing lock... [2025-01-01 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:43:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:44:05 [end_date_ymd] => 2025-01-01 08:44:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:44:05' and `end` < '2025-01-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-01-01 08:44:17] Production.INFO: count ==12 [2025-01-01 08:44:17] Production.ERROR: pbx CDR StartTime 2025-01-01 05:44:05 - End Time 2025-01-01 08:44:05 [2025-01-01 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149740', 'tblTempUsageDetail_20' ) start [2025-01-01 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149740', 'tblTempUsageDetail_20' ) end [2025-01-01 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149740', 'tblTempVendorCDR_20' ) start [2025-01-01 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149740', 'tblTempVendorCDR_20' ) end [2025-01-01 08:44:17] Production.INFO: ProcessCDR(1,14149740,1,1,2) [2025-01-01 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149740', 'tblTempUsageDetail_20' ) start [2025-01-01 08:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149740', 'tblTempUsageDetail_20' ) end [2025-01-01 08:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:44:20] Production.INFO: ==25355== Releasing lock... [2025-01-01 08:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:44:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:45:04 [end_date_ymd] => 2025-01-01 08:45:04 [RateCDR] => 1 ) [2025-01-01 08: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-01-01 05:45:04' and `end` < '2025-01-01 08: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-01-01 08:45:17] Production.INFO: count ==12 [2025-01-01 08:45:17] Production.ERROR: pbx CDR StartTime 2025-01-01 05:45:04 - End Time 2025-01-01 08:45:04 [2025-01-01 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149745', 'tblTempUsageDetail_20' ) start [2025-01-01 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149745', 'tblTempUsageDetail_20' ) end [2025-01-01 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149745', 'tblTempVendorCDR_20' ) start [2025-01-01 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149745', 'tblTempVendorCDR_20' ) end [2025-01-01 08:45:17] Production.INFO: ProcessCDR(1,14149745,1,1,2) [2025-01-01 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149745', 'tblTempUsageDetail_20' ) start [2025-01-01 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149745', 'tblTempUsageDetail_20' ) end [2025-01-01 08:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:45:20] Production.INFO: ==25432== Releasing lock... [2025-01-01 08:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:45:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:46:04 [end_date_ymd] => 2025-01-01 08:46:04 [RateCDR] => 1 ) [2025-01-01 08:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 05:46:04' and `end` < '2025-01-01 08:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 08:46:17] Production.INFO: count ==12 [2025-01-01 08:46:17] Production.ERROR: pbx CDR StartTime 2025-01-01 05:46:04 - End Time 2025-01-01 08:46:04 [2025-01-01 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149750', 'tblTempUsageDetail_20' ) start [2025-01-01 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149750', 'tblTempUsageDetail_20' ) end [2025-01-01 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149750', 'tblTempVendorCDR_20' ) start [2025-01-01 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149750', 'tblTempVendorCDR_20' ) end [2025-01-01 08:46:17] Production.INFO: ProcessCDR(1,14149750,1,1,2) [2025-01-01 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149750', 'tblTempUsageDetail_20' ) start [2025-01-01 08:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149750', 'tblTempUsageDetail_20' ) end [2025-01-01 08:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:46:20] Production.INFO: ==25510== Releasing lock... [2025-01-01 08:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:46:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:47:05 [end_date_ymd] => 2025-01-01 08:47:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:47:05' and `end` < '2025-01-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-01-01 08:47:17] Production.INFO: count ==12 [2025-01-01 08:47:17] Production.ERROR: pbx CDR StartTime 2025-01-01 05:47:05 - End Time 2025-01-01 08:47:05 [2025-01-01 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149755', 'tblTempUsageDetail_20' ) start [2025-01-01 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149755', 'tblTempUsageDetail_20' ) end [2025-01-01 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149755', 'tblTempVendorCDR_20' ) start [2025-01-01 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149755', 'tblTempVendorCDR_20' ) end [2025-01-01 08:47:17] Production.INFO: ProcessCDR(1,14149755,1,1,2) [2025-01-01 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149755', 'tblTempUsageDetail_20' ) start [2025-01-01 08:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149755', 'tblTempUsageDetail_20' ) end [2025-01-01 08:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:47:20] Production.INFO: ==25629== Releasing lock... [2025-01-01 08:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:47:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:48:04 [end_date_ymd] => 2025-01-01 08:48:04 [RateCDR] => 1 ) [2025-01-01 08: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-01-01 05:48:04' and `end` < '2025-01-01 08: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-01-01 08:48:19] Production.INFO: count ==12 [2025-01-01 08:48:19] Production.ERROR: pbx CDR StartTime 2025-01-01 05:48:04 - End Time 2025-01-01 08:48:04 [2025-01-01 08:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149760', 'tblTempUsageDetail_20' ) start [2025-01-01 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149760', 'tblTempUsageDetail_20' ) end [2025-01-01 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149760', 'tblTempVendorCDR_20' ) start [2025-01-01 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149760', 'tblTempVendorCDR_20' ) end [2025-01-01 08:48:19] Production.INFO: ProcessCDR(1,14149760,1,1,2) [2025-01-01 08:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149760', 'tblTempUsageDetail_20' ) start [2025-01-01 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149760', 'tblTempUsageDetail_20' ) end [2025-01-01 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:48:22] Production.INFO: ==25704== Releasing lock... [2025-01-01 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:48:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:49:04 [end_date_ymd] => 2025-01-01 08:49:04 [RateCDR] => 1 ) [2025-01-01 08:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 05:49:04' and `end` < '2025-01-01 08:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 08:49:17] Production.INFO: count ==12 [2025-01-01 08:49:17] Production.ERROR: pbx CDR StartTime 2025-01-01 05:49:04 - End Time 2025-01-01 08:49:04 [2025-01-01 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149765', 'tblTempUsageDetail_20' ) start [2025-01-01 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149765', 'tblTempUsageDetail_20' ) end [2025-01-01 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149765', 'tblTempVendorCDR_20' ) start [2025-01-01 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149765', 'tblTempVendorCDR_20' ) end [2025-01-01 08:49:17] Production.INFO: ProcessCDR(1,14149765,1,1,2) [2025-01-01 08:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149765', 'tblTempUsageDetail_20' ) start [2025-01-01 08:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149765', 'tblTempUsageDetail_20' ) end [2025-01-01 08:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:49:20] Production.INFO: ==25781== Releasing lock... [2025-01-01 08:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:49:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:50:06 [end_date_ymd] => 2025-01-01 08:50:06 [RateCDR] => 1 ) [2025-01-01 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 05:50:06' and `end` < '2025-01-01 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 08:50:18] Production.INFO: count ==12 [2025-01-01 08:50:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:50:06 - End Time 2025-01-01 08:50:06 [2025-01-01 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149771', 'tblTempUsageDetail_20' ) start [2025-01-01 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149771', 'tblTempUsageDetail_20' ) end [2025-01-01 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149771', 'tblTempVendorCDR_20' ) start [2025-01-01 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149771', 'tblTempVendorCDR_20' ) end [2025-01-01 08:50:18] Production.INFO: ProcessCDR(1,14149771,1,1,2) [2025-01-01 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149771', 'tblTempUsageDetail_20' ) start [2025-01-01 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149771', 'tblTempUsageDetail_20' ) end [2025-01-01 08:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:50:21] Production.INFO: ==25858== Releasing lock... [2025-01-01 08:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:50:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:51:05 [end_date_ymd] => 2025-01-01 08:51:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:51:05' and `end` < '2025-01-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-01-01 08:51:18] Production.INFO: count ==12 [2025-01-01 08:51:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:51:05 - End Time 2025-01-01 08:51:05 [2025-01-01 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149776', 'tblTempUsageDetail_20' ) start [2025-01-01 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149776', 'tblTempUsageDetail_20' ) end [2025-01-01 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149776', 'tblTempVendorCDR_20' ) start [2025-01-01 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149776', 'tblTempVendorCDR_20' ) end [2025-01-01 08:51:18] Production.INFO: ProcessCDR(1,14149776,1,1,2) [2025-01-01 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149776', 'tblTempUsageDetail_20' ) start [2025-01-01 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149776', 'tblTempUsageDetail_20' ) end [2025-01-01 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:51:21] Production.INFO: ==25941== Releasing lock... [2025-01-01 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:51:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:52:05 [end_date_ymd] => 2025-01-01 08:52:05 [RateCDR] => 1 ) [2025-01-01 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 05:52:05' and `end` < '2025-01-01 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 08:52:18] Production.INFO: count ==12 [2025-01-01 08:52:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:52:05 - End Time 2025-01-01 08:52:05 [2025-01-01 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149781', 'tblTempUsageDetail_20' ) start [2025-01-01 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149781', 'tblTempUsageDetail_20' ) end [2025-01-01 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149781', 'tblTempVendorCDR_20' ) start [2025-01-01 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149781', 'tblTempVendorCDR_20' ) end [2025-01-01 08:52:18] Production.INFO: ProcessCDR(1,14149781,1,1,2) [2025-01-01 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149781', 'tblTempUsageDetail_20' ) start [2025-01-01 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149781', 'tblTempUsageDetail_20' ) end [2025-01-01 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:52:21] Production.INFO: ==26017== Releasing lock... [2025-01-01 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:52:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:53:04 [end_date_ymd] => 2025-01-01 08:53:04 [RateCDR] => 1 ) [2025-01-01 08: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-01-01 05:53:04' and `end` < '2025-01-01 08: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-01-01 08:53:18] Production.INFO: count ==12 [2025-01-01 08:53:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:53:04 - End Time 2025-01-01 08:53:04 [2025-01-01 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149786', 'tblTempUsageDetail_20' ) start [2025-01-01 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149786', 'tblTempUsageDetail_20' ) end [2025-01-01 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149786', 'tblTempVendorCDR_20' ) start [2025-01-01 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149786', 'tblTempVendorCDR_20' ) end [2025-01-01 08:53:18] Production.INFO: ProcessCDR(1,14149786,1,1,2) [2025-01-01 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149786', 'tblTempUsageDetail_20' ) start [2025-01-01 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149786', 'tblTempUsageDetail_20' ) end [2025-01-01 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:53:21] Production.INFO: ==26097== Releasing lock... [2025-01-01 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:53:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:54:05 [end_date_ymd] => 2025-01-01 08:54:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:54:05' and `end` < '2025-01-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-01-01 08:54:18] Production.INFO: count ==12 [2025-01-01 08:54:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:54:05 - End Time 2025-01-01 08:54:05 [2025-01-01 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149791', 'tblTempUsageDetail_20' ) start [2025-01-01 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149791', 'tblTempUsageDetail_20' ) end [2025-01-01 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149791', 'tblTempVendorCDR_20' ) start [2025-01-01 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149791', 'tblTempVendorCDR_20' ) end [2025-01-01 08:54:18] Production.INFO: ProcessCDR(1,14149791,1,1,2) [2025-01-01 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149791', 'tblTempUsageDetail_20' ) start [2025-01-01 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149791', 'tblTempUsageDetail_20' ) end [2025-01-01 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:54:21] Production.INFO: ==26173== Releasing lock... [2025-01-01 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:54:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:55:05 [end_date_ymd] => 2025-01-01 08:55:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:55:05' and `end` < '2025-01-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-01-01 08:55:19] Production.INFO: count ==12 [2025-01-01 08:55:19] Production.ERROR: pbx CDR StartTime 2025-01-01 05:55:05 - End Time 2025-01-01 08:55:05 [2025-01-01 08:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149796', 'tblTempUsageDetail_20' ) start [2025-01-01 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149796', 'tblTempUsageDetail_20' ) end [2025-01-01 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149796', 'tblTempVendorCDR_20' ) start [2025-01-01 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149796', 'tblTempVendorCDR_20' ) end [2025-01-01 08:55:19] Production.INFO: ProcessCDR(1,14149796,1,1,2) [2025-01-01 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149796', 'tblTempUsageDetail_20' ) start [2025-01-01 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149796', 'tblTempUsageDetail_20' ) end [2025-01-01 08:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:55:22] Production.INFO: ==26248== Releasing lock... [2025-01-01 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:55:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:56:05 [end_date_ymd] => 2025-01-01 08:56:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:56:05' and `end` < '2025-01-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-01-01 08:56:18] Production.INFO: count ==12 [2025-01-01 08:56:18] Production.ERROR: pbx CDR StartTime 2025-01-01 05:56:05 - End Time 2025-01-01 08:56:05 [2025-01-01 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149801', 'tblTempUsageDetail_20' ) start [2025-01-01 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149801', 'tblTempUsageDetail_20' ) end [2025-01-01 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149801', 'tblTempVendorCDR_20' ) start [2025-01-01 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149801', 'tblTempVendorCDR_20' ) end [2025-01-01 08:56:18] Production.INFO: ProcessCDR(1,14149801,1,1,2) [2025-01-01 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149801', 'tblTempUsageDetail_20' ) start [2025-01-01 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149801', 'tblTempUsageDetail_20' ) end [2025-01-01 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:56:21] Production.INFO: ==26322== Releasing lock... [2025-01-01 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:56:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:57:05 [end_date_ymd] => 2025-01-01 08:57:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:57:05' and `end` < '2025-01-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-01-01 08:57:19] Production.INFO: count ==12 [2025-01-01 08:57:19] Production.ERROR: pbx CDR StartTime 2025-01-01 05:57:05 - End Time 2025-01-01 08:57:05 [2025-01-01 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149806', 'tblTempUsageDetail_20' ) start [2025-01-01 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149806', 'tblTempUsageDetail_20' ) end [2025-01-01 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149806', 'tblTempVendorCDR_20' ) start [2025-01-01 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149806', 'tblTempVendorCDR_20' ) end [2025-01-01 08:57:19] Production.INFO: ProcessCDR(1,14149806,1,1,2) [2025-01-01 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149806', 'tblTempUsageDetail_20' ) start [2025-01-01 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149806', 'tblTempUsageDetail_20' ) end [2025-01-01 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:57:22] Production.INFO: ==26397== Releasing lock... [2025-01-01 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:57:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:58:05 [end_date_ymd] => 2025-01-01 08:58:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:58:05' and `end` < '2025-01-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-01-01 08:58:19] Production.INFO: count ==12 [2025-01-01 08:58:19] Production.ERROR: pbx CDR StartTime 2025-01-01 05:58:05 - End Time 2025-01-01 08:58:05 [2025-01-01 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149811', 'tblTempUsageDetail_20' ) start [2025-01-01 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149811', 'tblTempUsageDetail_20' ) end [2025-01-01 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149811', 'tblTempVendorCDR_20' ) start [2025-01-01 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149811', 'tblTempVendorCDR_20' ) end [2025-01-01 08:58:19] Production.INFO: ProcessCDR(1,14149811,1,1,2) [2025-01-01 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149811', 'tblTempUsageDetail_20' ) start [2025-01-01 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149811', 'tblTempUsageDetail_20' ) end [2025-01-01 08:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:58:22] Production.INFO: ==26477== Releasing lock... [2025-01-01 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:58:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 05:59:05 [end_date_ymd] => 2025-01-01 08:59:05 [RateCDR] => 1 ) [2025-01-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-01-01 05:59:05' and `end` < '2025-01-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-01-01 08:59:17] Production.INFO: count ==12 [2025-01-01 08:59:17] Production.ERROR: pbx CDR StartTime 2025-01-01 05:59:05 - End Time 2025-01-01 08:59:05 [2025-01-01 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149816', 'tblTempUsageDetail_20' ) start [2025-01-01 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149816', 'tblTempUsageDetail_20' ) end [2025-01-01 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149816', 'tblTempVendorCDR_20' ) start [2025-01-01 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149816', 'tblTempVendorCDR_20' ) end [2025-01-01 08:59:17] Production.INFO: ProcessCDR(1,14149816,1,1,2) [2025-01-01 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 08:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149816', 'tblTempUsageDetail_20' ) start [2025-01-01 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149816', 'tblTempUsageDetail_20' ) end [2025-01-01 08:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 08:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 08:59:20] Production.INFO: ==26550== Releasing lock... [2025-01-01 08:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 08:59:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:00:05 [end_date_ymd] => 2025-01-01 09:00:05 [RateCDR] => 1 ) [2025-01-01 09: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-01-01 06:00:05' and `end` < '2025-01-01 09: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-01-01 09:00:18] Production.INFO: count ==20 [2025-01-01 09:00:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:00:05 - End Time 2025-01-01 09:00:05 [2025-01-01 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149821', 'tblTempUsageDetail_20' ) start [2025-01-01 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149821', 'tblTempUsageDetail_20' ) end [2025-01-01 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149821', 'tblTempVendorCDR_20' ) start [2025-01-01 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149821', 'tblTempVendorCDR_20' ) end [2025-01-01 09:00:18] Production.INFO: ProcessCDR(1,14149821,1,1,2) [2025-01-01 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149821', 'tblTempUsageDetail_20' ) start [2025-01-01 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149821', 'tblTempUsageDetail_20' ) end [2025-01-01 09:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:00:21] Production.INFO: ==26631== Releasing lock... [2025-01-01 09:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:00:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:01:05 [end_date_ymd] => 2025-01-01 09:01:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:01:05' and `end` < '2025-01-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-01-01 09:01:17] Production.INFO: count ==22 [2025-01-01 09:01:17] Production.ERROR: pbx CDR StartTime 2025-01-01 06:01:05 - End Time 2025-01-01 09:01:05 [2025-01-01 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149827', 'tblTempUsageDetail_20' ) start [2025-01-01 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149827', 'tblTempUsageDetail_20' ) end [2025-01-01 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149827', 'tblTempVendorCDR_20' ) start [2025-01-01 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149827', 'tblTempVendorCDR_20' ) end [2025-01-01 09:01:17] Production.INFO: ProcessCDR(1,14149827,1,1,2) [2025-01-01 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149827', 'tblTempUsageDetail_20' ) start [2025-01-01 09:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149827', 'tblTempUsageDetail_20' ) end [2025-01-01 09:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:01:20] Production.INFO: ==26716== Releasing lock... [2025-01-01 09:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:01:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:02:05 [end_date_ymd] => 2025-01-01 09:02:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:02:05' and `end` < '2025-01-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-01-01 09:02:18] Production.INFO: count ==22 [2025-01-01 09:02:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:02:05 - End Time 2025-01-01 09:02:05 [2025-01-01 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149832', 'tblTempUsageDetail_20' ) start [2025-01-01 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149832', 'tblTempUsageDetail_20' ) end [2025-01-01 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149832', 'tblTempVendorCDR_20' ) start [2025-01-01 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149832', 'tblTempVendorCDR_20' ) end [2025-01-01 09:02:18] Production.INFO: ProcessCDR(1,14149832,1,1,2) [2025-01-01 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149832', 'tblTempUsageDetail_20' ) start [2025-01-01 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149832', 'tblTempUsageDetail_20' ) end [2025-01-01 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:02:21] Production.INFO: ==26787== Releasing lock... [2025-01-01 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:02:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:03:05 [end_date_ymd] => 2025-01-01 09:03:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:03:05' and `end` < '2025-01-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-01-01 09:03:19] Production.INFO: count ==22 [2025-01-01 09:03:19] Production.ERROR: pbx CDR StartTime 2025-01-01 06:03:05 - End Time 2025-01-01 09:03:05 [2025-01-01 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149837', 'tblTempUsageDetail_20' ) start [2025-01-01 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149837', 'tblTempUsageDetail_20' ) end [2025-01-01 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149837', 'tblTempVendorCDR_20' ) start [2025-01-01 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149837', 'tblTempVendorCDR_20' ) end [2025-01-01 09:03:19] Production.INFO: ProcessCDR(1,14149837,1,1,2) [2025-01-01 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149837', 'tblTempUsageDetail_20' ) start [2025-01-01 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149837', 'tblTempUsageDetail_20' ) end [2025-01-01 09:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:03:22] Production.INFO: ==26897== Releasing lock... [2025-01-01 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:03:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:04:05 [end_date_ymd] => 2025-01-01 09:04:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:04:05' and `end` < '2025-01-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-01-01 09:04:19] Production.INFO: count ==22 [2025-01-01 09:04:19] Production.ERROR: pbx CDR StartTime 2025-01-01 06:04:05 - End Time 2025-01-01 09:04:05 [2025-01-01 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149842', 'tblTempUsageDetail_20' ) start [2025-01-01 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149842', 'tblTempUsageDetail_20' ) end [2025-01-01 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149842', 'tblTempVendorCDR_20' ) start [2025-01-01 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149842', 'tblTempVendorCDR_20' ) end [2025-01-01 09:04:19] Production.INFO: ProcessCDR(1,14149842,1,1,2) [2025-01-01 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149842', 'tblTempUsageDetail_20' ) start [2025-01-01 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149842', 'tblTempUsageDetail_20' ) end [2025-01-01 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:04:22] Production.INFO: ==26973== Releasing lock... [2025-01-01 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:04:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:05:04 [end_date_ymd] => 2025-01-01 09:05:04 [RateCDR] => 1 ) [2025-01-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-01-01 06:05:04' and `end` < '2025-01-01 09: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-01-01 09:05:17] Production.INFO: count ==22 [2025-01-01 09:05:17] Production.ERROR: pbx CDR StartTime 2025-01-01 06:05:04 - End Time 2025-01-01 09:05:04 [2025-01-01 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149847', 'tblTempUsageDetail_20' ) start [2025-01-01 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149847', 'tblTempUsageDetail_20' ) end [2025-01-01 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149847', 'tblTempVendorCDR_20' ) start [2025-01-01 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149847', 'tblTempVendorCDR_20' ) end [2025-01-01 09:05:17] Production.INFO: ProcessCDR(1,14149847,1,1,2) [2025-01-01 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149847', 'tblTempUsageDetail_20' ) start [2025-01-01 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149847', 'tblTempUsageDetail_20' ) end [2025-01-01 09:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:05:20] Production.INFO: ==27044== Releasing lock... [2025-01-01 09:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:05:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:06:05 [end_date_ymd] => 2025-01-01 09:06:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:06:05' and `end` < '2025-01-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-01-01 09:06:19] Production.INFO: count ==22 [2025-01-01 09:06:19] Production.ERROR: pbx CDR StartTime 2025-01-01 06:06:05 - End Time 2025-01-01 09:06:05 [2025-01-01 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149852', 'tblTempUsageDetail_20' ) start [2025-01-01 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149852', 'tblTempUsageDetail_20' ) end [2025-01-01 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149852', 'tblTempVendorCDR_20' ) start [2025-01-01 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149852', 'tblTempVendorCDR_20' ) end [2025-01-01 09:06:19] Production.INFO: ProcessCDR(1,14149852,1,1,2) [2025-01-01 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149852', 'tblTempUsageDetail_20' ) start [2025-01-01 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149852', 'tblTempUsageDetail_20' ) end [2025-01-01 09:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:06:22] Production.INFO: ==27116== Releasing lock... [2025-01-01 09:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:06:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:07:05 [end_date_ymd] => 2025-01-01 09:07:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:07:05' and `end` < '2025-01-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-01-01 09:07:18] Production.INFO: count ==22 [2025-01-01 09:07:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:07:05 - End Time 2025-01-01 09:07:05 [2025-01-01 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149857', 'tblTempUsageDetail_20' ) start [2025-01-01 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149857', 'tblTempUsageDetail_20' ) end [2025-01-01 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149857', 'tblTempVendorCDR_20' ) start [2025-01-01 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149857', 'tblTempVendorCDR_20' ) end [2025-01-01 09:07:18] Production.INFO: ProcessCDR(1,14149857,1,1,2) [2025-01-01 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149857', 'tblTempUsageDetail_20' ) start [2025-01-01 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149857', 'tblTempUsageDetail_20' ) end [2025-01-01 09:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:07:21] Production.INFO: ==27194== Releasing lock... [2025-01-01 09:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:07:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:08:05 [end_date_ymd] => 2025-01-01 09:08:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:08:05' and `end` < '2025-01-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-01-01 09:08:18] Production.INFO: count ==23 [2025-01-01 09:08:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:08:05 - End Time 2025-01-01 09:08:05 [2025-01-01 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149862', 'tblTempUsageDetail_20' ) start [2025-01-01 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149862', 'tblTempUsageDetail_20' ) end [2025-01-01 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149862', 'tblTempVendorCDR_20' ) start [2025-01-01 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149862', 'tblTempVendorCDR_20' ) end [2025-01-01 09:08:18] Production.INFO: ProcessCDR(1,14149862,1,1,2) [2025-01-01 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149862', 'tblTempUsageDetail_20' ) start [2025-01-01 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149862', 'tblTempUsageDetail_20' ) end [2025-01-01 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:08:22] Production.INFO: ==27267== Releasing lock... [2025-01-01 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:08:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-01 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:09:05 [end_date_ymd] => 2025-01-01 09:09:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:09:05' and `end` < '2025-01-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-01-01 09:09:20] Production.INFO: count ==37 [2025-01-01 09:09:20] Production.ERROR: pbx CDR StartTime 2025-01-01 06:09:05 - End Time 2025-01-01 09:09:05 [2025-01-01 09:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149867', 'tblTempUsageDetail_20' ) start [2025-01-01 09:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149867', 'tblTempUsageDetail_20' ) end [2025-01-01 09:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149867', 'tblTempVendorCDR_20' ) start [2025-01-01 09:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149867', 'tblTempVendorCDR_20' ) end [2025-01-01 09:09:20] Production.INFO: ProcessCDR(1,14149867,1,1,2) [2025-01-01 09:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149867', 'tblTempUsageDetail_20' ) start [2025-01-01 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149867', 'tblTempUsageDetail_20' ) end [2025-01-01 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:09:23] Production.INFO: ==27338== Releasing lock... [2025-01-01 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:09:23] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:10:05 [end_date_ymd] => 2025-01-01 09:10:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:10:05' and `end` < '2025-01-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-01-01 09:10:18] Production.INFO: count ==45 [2025-01-01 09:10:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:10:05 - End Time 2025-01-01 09:10:05 [2025-01-01 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149871', 'tblTempUsageDetail_20' ) start [2025-01-01 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149871', 'tblTempUsageDetail_20' ) end [2025-01-01 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149871', 'tblTempVendorCDR_20' ) start [2025-01-01 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149871', 'tblTempVendorCDR_20' ) end [2025-01-01 09:10:18] Production.INFO: ProcessCDR(1,14149871,1,1,2) [2025-01-01 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149871', 'tblTempUsageDetail_20' ) start [2025-01-01 09:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149871', 'tblTempUsageDetail_20' ) end [2025-01-01 09:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:10:21] Production.INFO: ==27413== Releasing lock... [2025-01-01 09:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:10:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:11:04 [end_date_ymd] => 2025-01-01 09:11:04 [RateCDR] => 1 ) [2025-01-01 09:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 06:11:04' and `end` < '2025-01-01 09:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 09:11:17] Production.INFO: count ==45 [2025-01-01 09:11:17] Production.ERROR: pbx CDR StartTime 2025-01-01 06:11:04 - End Time 2025-01-01 09:11:04 [2025-01-01 09:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149878', 'tblTempUsageDetail_20' ) start [2025-01-01 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149878', 'tblTempUsageDetail_20' ) end [2025-01-01 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149878', 'tblTempVendorCDR_20' ) start [2025-01-01 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149878', 'tblTempVendorCDR_20' ) end [2025-01-01 09:11:17] Production.INFO: ProcessCDR(1,14149878,1,1,2) [2025-01-01 09:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149878', 'tblTempUsageDetail_20' ) start [2025-01-01 09:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149878', 'tblTempUsageDetail_20' ) end [2025-01-01 09:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:11:20] Production.INFO: ==27489== Releasing lock... [2025-01-01 09:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:11:20] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:12:05 [end_date_ymd] => 2025-01-01 09:12:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:12:05' and `end` < '2025-01-01 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 09:12:18] Production.INFO: count ==45 [2025-01-01 09:12:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:12:05 - End Time 2025-01-01 09:12:05 [2025-01-01 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149883', 'tblTempUsageDetail_20' ) start [2025-01-01 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149883', 'tblTempUsageDetail_20' ) end [2025-01-01 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149883', 'tblTempVendorCDR_20' ) start [2025-01-01 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149883', 'tblTempVendorCDR_20' ) end [2025-01-01 09:12:18] Production.INFO: ProcessCDR(1,14149883,1,1,2) [2025-01-01 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149883', 'tblTempUsageDetail_20' ) start [2025-01-01 09:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149883', 'tblTempUsageDetail_20' ) end [2025-01-01 09:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:12:21] Production.INFO: ==27559== Releasing lock... [2025-01-01 09:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:12:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:13:05 [end_date_ymd] => 2025-01-01 09:13:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:13:05' and `end` < '2025-01-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-01-01 09:13:18] Production.INFO: count ==45 [2025-01-01 09:13:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:13:05 - End Time 2025-01-01 09:13:05 [2025-01-01 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149888', 'tblTempUsageDetail_20' ) start [2025-01-01 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149888', 'tblTempUsageDetail_20' ) end [2025-01-01 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149888', 'tblTempVendorCDR_20' ) start [2025-01-01 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149888', 'tblTempVendorCDR_20' ) end [2025-01-01 09:13:18] Production.INFO: ProcessCDR(1,14149888,1,1,2) [2025-01-01 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149888', 'tblTempUsageDetail_20' ) start [2025-01-01 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149888', 'tblTempUsageDetail_20' ) end [2025-01-01 09:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:13:21] Production.INFO: ==27637== Releasing lock... [2025-01-01 09:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:13:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:14:05 [end_date_ymd] => 2025-01-01 09:14:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:14:05' and `end` < '2025-01-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-01-01 09:14:19] Production.INFO: count ==45 [2025-01-01 09:14:19] Production.ERROR: pbx CDR StartTime 2025-01-01 06:14:05 - End Time 2025-01-01 09:14:05 [2025-01-01 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149893', 'tblTempUsageDetail_20' ) start [2025-01-01 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149893', 'tblTempUsageDetail_20' ) end [2025-01-01 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149893', 'tblTempVendorCDR_20' ) start [2025-01-01 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149893', 'tblTempVendorCDR_20' ) end [2025-01-01 09:14:19] Production.INFO: ProcessCDR(1,14149893,1,1,2) [2025-01-01 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149893', 'tblTempUsageDetail_20' ) start [2025-01-01 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149893', 'tblTempUsageDetail_20' ) end [2025-01-01 09:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:14:22] Production.INFO: ==27716== Releasing lock... [2025-01-01 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:14:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:15:05 [end_date_ymd] => 2025-01-01 09:15:05 [RateCDR] => 1 ) [2025-01-01 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 06:15:05' and `end` < '2025-01-01 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 09:15:18] Production.INFO: count ==45 [2025-01-01 09:15:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:15:05 - End Time 2025-01-01 09:15:05 [2025-01-01 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149898', 'tblTempUsageDetail_20' ) start [2025-01-01 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149898', 'tblTempUsageDetail_20' ) end [2025-01-01 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149898', 'tblTempVendorCDR_20' ) start [2025-01-01 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149898', 'tblTempVendorCDR_20' ) end [2025-01-01 09:15:18] Production.INFO: ProcessCDR(1,14149898,1,1,2) [2025-01-01 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149898', 'tblTempUsageDetail_20' ) start [2025-01-01 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149898', 'tblTempUsageDetail_20' ) end [2025-01-01 09:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:15:21] Production.INFO: ==27791== Releasing lock... [2025-01-01 09:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:15:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:16:04 [end_date_ymd] => 2025-01-01 09:16:04 [RateCDR] => 1 ) [2025-01-01 09: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-01 06:16:04' and `end` < '2025-01-01 09: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-01-01 09:16:17] Production.INFO: count ==45 [2025-01-01 09:16:17] Production.ERROR: pbx CDR StartTime 2025-01-01 06:16:04 - End Time 2025-01-01 09:16:04 [2025-01-01 09:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149903', 'tblTempUsageDetail_20' ) start [2025-01-01 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149903', 'tblTempUsageDetail_20' ) end [2025-01-01 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149903', 'tblTempVendorCDR_20' ) start [2025-01-01 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149903', 'tblTempVendorCDR_20' ) end [2025-01-01 09:16:17] Production.INFO: ProcessCDR(1,14149903,1,1,2) [2025-01-01 09:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149903', 'tblTempUsageDetail_20' ) start [2025-01-01 09:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149903', 'tblTempUsageDetail_20' ) end [2025-01-01 09:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:16:20] Production.INFO: ==27861== Releasing lock... [2025-01-01 09:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:16:20] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:17:05 [end_date_ymd] => 2025-01-01 09:17:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:17:05' and `end` < '2025-01-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-01-01 09:17:18] Production.INFO: count ==45 [2025-01-01 09:17:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:17:05 - End Time 2025-01-01 09:17:05 [2025-01-01 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149908', 'tblTempUsageDetail_20' ) start [2025-01-01 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149908', 'tblTempUsageDetail_20' ) end [2025-01-01 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149908', 'tblTempVendorCDR_20' ) start [2025-01-01 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149908', 'tblTempVendorCDR_20' ) end [2025-01-01 09:17:18] Production.INFO: ProcessCDR(1,14149908,1,1,2) [2025-01-01 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149908', 'tblTempUsageDetail_20' ) start [2025-01-01 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149908', 'tblTempUsageDetail_20' ) end [2025-01-01 09:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:17:21] Production.INFO: ==27930== Releasing lock... [2025-01-01 09:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:17:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:18:04 [end_date_ymd] => 2025-01-01 09:18:04 [RateCDR] => 1 ) [2025-01-01 09: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-01-01 06:18:04' and `end` < '2025-01-01 09: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-01-01 09:18:18] Production.INFO: count ==45 [2025-01-01 09:18:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:18:04 - End Time 2025-01-01 09:18:04 [2025-01-01 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149913', 'tblTempUsageDetail_20' ) start [2025-01-01 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149913', 'tblTempUsageDetail_20' ) end [2025-01-01 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149913', 'tblTempVendorCDR_20' ) start [2025-01-01 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149913', 'tblTempVendorCDR_20' ) end [2025-01-01 09:18:18] Production.INFO: ProcessCDR(1,14149913,1,1,2) [2025-01-01 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149913', 'tblTempUsageDetail_20' ) start [2025-01-01 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149913', 'tblTempUsageDetail_20' ) end [2025-01-01 09:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:18:21] Production.INFO: ==28000== Releasing lock... [2025-01-01 09:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:18:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:19:05 [end_date_ymd] => 2025-01-01 09:19:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:19:05' and `end` < '2025-01-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-01-01 09:19:18] Production.INFO: count ==45 [2025-01-01 09:19:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:19:05 - End Time 2025-01-01 09:19:05 [2025-01-01 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149918', 'tblTempUsageDetail_20' ) start [2025-01-01 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149918', 'tblTempUsageDetail_20' ) end [2025-01-01 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149918', 'tblTempVendorCDR_20' ) start [2025-01-01 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149918', 'tblTempVendorCDR_20' ) end [2025-01-01 09:19:18] Production.INFO: ProcessCDR(1,14149918,1,1,2) [2025-01-01 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149918', 'tblTempUsageDetail_20' ) start [2025-01-01 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149918', 'tblTempUsageDetail_20' ) end [2025-01-01 09:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:19:21] Production.INFO: ==28117== Releasing lock... [2025-01-01 09:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:19:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:20:06 [end_date_ymd] => 2025-01-01 09:20:06 [RateCDR] => 1 ) [2025-01-01 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 06:20:06' and `end` < '2025-01-01 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 09:20:18] Production.INFO: count ==45 [2025-01-01 09:20:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:20:06 - End Time 2025-01-01 09:20:06 [2025-01-01 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149924', 'tblTempUsageDetail_20' ) start [2025-01-01 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149924', 'tblTempUsageDetail_20' ) end [2025-01-01 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149924', 'tblTempVendorCDR_20' ) start [2025-01-01 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149924', 'tblTempVendorCDR_20' ) end [2025-01-01 09:20:18] Production.INFO: ProcessCDR(1,14149924,1,1,2) [2025-01-01 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149924', 'tblTempUsageDetail_20' ) start [2025-01-01 09:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149924', 'tblTempUsageDetail_20' ) end [2025-01-01 09:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:20:21] Production.INFO: ==28192== Releasing lock... [2025-01-01 09:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:20:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:21:05 [end_date_ymd] => 2025-01-01 09:21:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:21:05' and `end` < '2025-01-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-01-01 09:21:19] Production.INFO: count ==45 [2025-01-01 09:21:19] Production.ERROR: pbx CDR StartTime 2025-01-01 06:21:05 - End Time 2025-01-01 09:21:05 [2025-01-01 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149929', 'tblTempUsageDetail_20' ) start [2025-01-01 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149929', 'tblTempUsageDetail_20' ) end [2025-01-01 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149929', 'tblTempVendorCDR_20' ) start [2025-01-01 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149929', 'tblTempVendorCDR_20' ) end [2025-01-01 09:21:19] Production.INFO: ProcessCDR(1,14149929,1,1,2) [2025-01-01 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149929', 'tblTempUsageDetail_20' ) start [2025-01-01 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149929', 'tblTempUsageDetail_20' ) end [2025-01-01 09:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:21:22] Production.INFO: ==28269== Releasing lock... [2025-01-01 09:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:21:22] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:22:05 [end_date_ymd] => 2025-01-01 09:22:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:22:05' and `end` < '2025-01-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-01-01 09:22:18] Production.INFO: count ==45 [2025-01-01 09:22:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:22:05 - End Time 2025-01-01 09:22:05 [2025-01-01 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149934', 'tblTempUsageDetail_20' ) start [2025-01-01 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149934', 'tblTempUsageDetail_20' ) end [2025-01-01 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149934', 'tblTempVendorCDR_20' ) start [2025-01-01 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149934', 'tblTempVendorCDR_20' ) end [2025-01-01 09:22:18] Production.INFO: ProcessCDR(1,14149934,1,1,2) [2025-01-01 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149934', 'tblTempUsageDetail_20' ) start [2025-01-01 09:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149934', 'tblTempUsageDetail_20' ) end [2025-01-01 09:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:22:21] Production.INFO: ==28341== Releasing lock... [2025-01-01 09:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:22:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:23:04 [end_date_ymd] => 2025-01-01 09:23:04 [RateCDR] => 1 ) [2025-01-01 09: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-01-01 06:23:04' and `end` < '2025-01-01 09: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-01-01 09:23:18] Production.INFO: count ==45 [2025-01-01 09:23:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:23:04 - End Time 2025-01-01 09:23:04 [2025-01-01 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149939', 'tblTempUsageDetail_20' ) start [2025-01-01 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149939', 'tblTempUsageDetail_20' ) end [2025-01-01 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149939', 'tblTempVendorCDR_20' ) start [2025-01-01 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149939', 'tblTempVendorCDR_20' ) end [2025-01-01 09:23:18] Production.INFO: ProcessCDR(1,14149939,1,1,2) [2025-01-01 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149939', 'tblTempUsageDetail_20' ) start [2025-01-01 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149939', 'tblTempUsageDetail_20' ) end [2025-01-01 09:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:23:21] Production.INFO: ==28416== Releasing lock... [2025-01-01 09:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:23:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:24:05 [end_date_ymd] => 2025-01-01 09:24:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:24:05' and `end` < '2025-01-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-01-01 09:24:17] Production.INFO: count ==45 [2025-01-01 09:24:17] Production.ERROR: pbx CDR StartTime 2025-01-01 06:24:05 - End Time 2025-01-01 09:24:05 [2025-01-01 09:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149944', 'tblTempUsageDetail_20' ) start [2025-01-01 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149944', 'tblTempUsageDetail_20' ) end [2025-01-01 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149944', 'tblTempVendorCDR_20' ) start [2025-01-01 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149944', 'tblTempVendorCDR_20' ) end [2025-01-01 09:24:17] Production.INFO: ProcessCDR(1,14149944,1,1,2) [2025-01-01 09:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149944', 'tblTempUsageDetail_20' ) start [2025-01-01 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149944', 'tblTempUsageDetail_20' ) end [2025-01-01 09:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:24:21] Production.INFO: ==28486== Releasing lock... [2025-01-01 09:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:24:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:25:04 [end_date_ymd] => 2025-01-01 09:25:04 [RateCDR] => 1 ) [2025-01-01 09: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-01 06:25:04' and `end` < '2025-01-01 09: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-01-01 09:25:17] Production.INFO: count ==45 [2025-01-01 09:25:17] Production.ERROR: pbx CDR StartTime 2025-01-01 06:25:04 - End Time 2025-01-01 09:25:04 [2025-01-01 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149949', 'tblTempUsageDetail_20' ) start [2025-01-01 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149949', 'tblTempUsageDetail_20' ) end [2025-01-01 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149949', 'tblTempVendorCDR_20' ) start [2025-01-01 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149949', 'tblTempVendorCDR_20' ) end [2025-01-01 09:25:17] Production.INFO: ProcessCDR(1,14149949,1,1,2) [2025-01-01 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149949', 'tblTempUsageDetail_20' ) start [2025-01-01 09:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149949', 'tblTempUsageDetail_20' ) end [2025-01-01 09:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:25:20] Production.INFO: ==28558== Releasing lock... [2025-01-01 09:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:25:20] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:26:05 [end_date_ymd] => 2025-01-01 09:26:05 [RateCDR] => 1 ) [2025-01-01 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 06:26:05' and `end` < '2025-01-01 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 09:26:18] Production.INFO: count ==45 [2025-01-01 09:26:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:26:05 - End Time 2025-01-01 09:26:05 [2025-01-01 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149954', 'tblTempUsageDetail_20' ) start [2025-01-01 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149954', 'tblTempUsageDetail_20' ) end [2025-01-01 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149954', 'tblTempVendorCDR_20' ) start [2025-01-01 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149954', 'tblTempVendorCDR_20' ) end [2025-01-01 09:26:18] Production.INFO: ProcessCDR(1,14149954,1,1,2) [2025-01-01 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149954', 'tblTempUsageDetail_20' ) start [2025-01-01 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149954', 'tblTempUsageDetail_20' ) end [2025-01-01 09:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:26:21] Production.INFO: ==28633== Releasing lock... [2025-01-01 09:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:26:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:27:05 [end_date_ymd] => 2025-01-01 09:27:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:27:05' and `end` < '2025-01-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-01-01 09:27:19] Production.INFO: count ==45 [2025-01-01 09:27:19] Production.ERROR: pbx CDR StartTime 2025-01-01 06:27:05 - End Time 2025-01-01 09:27:05 [2025-01-01 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149959', 'tblTempUsageDetail_20' ) start [2025-01-01 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149959', 'tblTempUsageDetail_20' ) end [2025-01-01 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149959', 'tblTempVendorCDR_20' ) start [2025-01-01 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149959', 'tblTempVendorCDR_20' ) end [2025-01-01 09:27:19] Production.INFO: ProcessCDR(1,14149959,1,1,2) [2025-01-01 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149959', 'tblTempUsageDetail_20' ) start [2025-01-01 09:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149959', 'tblTempUsageDetail_20' ) end [2025-01-01 09:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:27:22] Production.INFO: ==28704== Releasing lock... [2025-01-01 09:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:27:22] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:28:05 [end_date_ymd] => 2025-01-01 09:28:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:28:05' and `end` < '2025-01-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-01-01 09:28:18] Production.INFO: count ==46 [2025-01-01 09:28:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:28:05 - End Time 2025-01-01 09:28:05 [2025-01-01 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149964', 'tblTempUsageDetail_20' ) start [2025-01-01 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149964', 'tblTempUsageDetail_20' ) end [2025-01-01 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149964', 'tblTempVendorCDR_20' ) start [2025-01-01 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149964', 'tblTempVendorCDR_20' ) end [2025-01-01 09:28:18] Production.INFO: ProcessCDR(1,14149964,1,1,2) [2025-01-01 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149964', 'tblTempUsageDetail_20' ) start [2025-01-01 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149964', 'tblTempUsageDetail_20' ) end [2025-01-01 09:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:28:22] Production.INFO: ==28779== Releasing lock... [2025-01-01 09:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:28:22] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:29:05 [end_date_ymd] => 2025-01-01 09:29:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:29:05' and `end` < '2025-01-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-01-01 09:29:17] Production.INFO: count ==46 [2025-01-01 09:29:17] Production.ERROR: pbx CDR StartTime 2025-01-01 06:29:05 - End Time 2025-01-01 09:29:05 [2025-01-01 09:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149969', 'tblTempUsageDetail_20' ) start [2025-01-01 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149969', 'tblTempUsageDetail_20' ) end [2025-01-01 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149969', 'tblTempVendorCDR_20' ) start [2025-01-01 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149969', 'tblTempVendorCDR_20' ) end [2025-01-01 09:29:17] Production.INFO: ProcessCDR(1,14149969,1,1,2) [2025-01-01 09:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149969', 'tblTempUsageDetail_20' ) start [2025-01-01 09:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149969', 'tblTempUsageDetail_20' ) end [2025-01-01 09:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:29:20] Production.INFO: ==28867== Releasing lock... [2025-01-01 09:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:29:20] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:30:05 [end_date_ymd] => 2025-01-01 09:30:05 [RateCDR] => 1 ) [2025-01-01 09: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-01-01 06:30:05' and `end` < '2025-01-01 09: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-01-01 09:30:17] Production.INFO: count ==44 [2025-01-01 09:30:17] Production.ERROR: pbx CDR StartTime 2025-01-01 06:30:05 - End Time 2025-01-01 09:30:05 [2025-01-01 09:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149974', 'tblTempUsageDetail_20' ) start [2025-01-01 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149974', 'tblTempUsageDetail_20' ) end [2025-01-01 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149974', 'tblTempVendorCDR_20' ) start [2025-01-01 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149974', 'tblTempVendorCDR_20' ) end [2025-01-01 09:30:17] Production.INFO: ProcessCDR(1,14149974,1,1,2) [2025-01-01 09:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149974', 'tblTempUsageDetail_20' ) start [2025-01-01 09:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149974', 'tblTempUsageDetail_20' ) end [2025-01-01 09:30:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:30:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:30:20] Production.INFO: ==28943== Releasing lock... [2025-01-01 09:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:30:20] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:31:05 [end_date_ymd] => 2025-01-01 09:31:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:31:05' and `end` < '2025-01-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-01-01 09:31:17] Production.INFO: count ==44 [2025-01-01 09:31:17] Production.ERROR: pbx CDR StartTime 2025-01-01 06:31:05 - End Time 2025-01-01 09:31:05 [2025-01-01 09:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149980', 'tblTempUsageDetail_20' ) start [2025-01-01 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149980', 'tblTempUsageDetail_20' ) end [2025-01-01 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149980', 'tblTempVendorCDR_20' ) start [2025-01-01 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149980', 'tblTempVendorCDR_20' ) end [2025-01-01 09:31:17] Production.INFO: ProcessCDR(1,14149980,1,1,2) [2025-01-01 09:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149980', 'tblTempUsageDetail_20' ) start [2025-01-01 09:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149980', 'tblTempUsageDetail_20' ) end [2025-01-01 09:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:31:20] Production.INFO: ==29016== Releasing lock... [2025-01-01 09:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:31:20] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:32:05 [end_date_ymd] => 2025-01-01 09:32:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:32:05' and `end` < '2025-01-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-01-01 09:32:17] Production.INFO: count ==44 [2025-01-01 09:32:17] Production.ERROR: pbx CDR StartTime 2025-01-01 06:32:05 - End Time 2025-01-01 09:32:05 [2025-01-01 09:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149985', 'tblTempUsageDetail_20' ) start [2025-01-01 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149985', 'tblTempUsageDetail_20' ) end [2025-01-01 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149985', 'tblTempVendorCDR_20' ) start [2025-01-01 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149985', 'tblTempVendorCDR_20' ) end [2025-01-01 09:32:17] Production.INFO: ProcessCDR(1,14149985,1,1,2) [2025-01-01 09:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149985', 'tblTempUsageDetail_20' ) start [2025-01-01 09:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149985', 'tblTempUsageDetail_20' ) end [2025-01-01 09:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:32:20] Production.INFO: ==29090== Releasing lock... [2025-01-01 09:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:32:20] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:33:05 [end_date_ymd] => 2025-01-01 09:33:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:33:05' and `end` < '2025-01-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-01-01 09:33:17] Production.INFO: count ==44 [2025-01-01 09:33:17] Production.ERROR: pbx CDR StartTime 2025-01-01 06:33:05 - End Time 2025-01-01 09:33:05 [2025-01-01 09:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149990', 'tblTempUsageDetail_20' ) start [2025-01-01 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149990', 'tblTempUsageDetail_20' ) end [2025-01-01 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149990', 'tblTempVendorCDR_20' ) start [2025-01-01 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149990', 'tblTempVendorCDR_20' ) end [2025-01-01 09:33:17] Production.INFO: ProcessCDR(1,14149990,1,1,2) [2025-01-01 09:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149990', 'tblTempUsageDetail_20' ) start [2025-01-01 09:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149990', 'tblTempUsageDetail_20' ) end [2025-01-01 09:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:33:20] Production.INFO: ==29168== Releasing lock... [2025-01-01 09:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:33:20] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:34:05 [end_date_ymd] => 2025-01-01 09:34:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:34:05' and `end` < '2025-01-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-01-01 09:34:19] Production.INFO: count ==44 [2025-01-01 09:34:19] Production.ERROR: pbx CDR StartTime 2025-01-01 06:34:05 - End Time 2025-01-01 09:34:05 [2025-01-01 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149995', 'tblTempUsageDetail_20' ) start [2025-01-01 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14149995', 'tblTempUsageDetail_20' ) end [2025-01-01 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149995', 'tblTempVendorCDR_20' ) start [2025-01-01 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14149995', 'tblTempVendorCDR_20' ) end [2025-01-01 09:34:19] Production.INFO: ProcessCDR(1,14149995,1,1,2) [2025-01-01 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14149995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14149995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14149995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14149995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149995', 'tblTempUsageDetail_20' ) start [2025-01-01 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14149995', 'tblTempUsageDetail_20' ) end [2025-01-01 09:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:34:22] Production.INFO: ==29288== Releasing lock... [2025-01-01 09:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:34:22] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:35:04 [end_date_ymd] => 2025-01-01 09:35:04 [RateCDR] => 1 ) [2025-01-01 09: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-01-01 06:35:04' and `end` < '2025-01-01 09: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-01-01 09:35:21] Production.INFO: count ==44 [2025-01-01 09:35:21] Production.ERROR: pbx CDR StartTime 2025-01-01 06:35:04 - End Time 2025-01-01 09:35:04 [2025-01-01 09:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150000', 'tblTempUsageDetail_20' ) start [2025-01-01 09:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150000', 'tblTempUsageDetail_20' ) end [2025-01-01 09:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150000', 'tblTempVendorCDR_20' ) start [2025-01-01 09:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150000', 'tblTempVendorCDR_20' ) end [2025-01-01 09:35:21] Production.INFO: ProcessCDR(1,14150000,1,1,2) [2025-01-01 09:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150000', 'tblTempUsageDetail_20' ) start [2025-01-01 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150000', 'tblTempUsageDetail_20' ) end [2025-01-01 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:35:24] Production.INFO: ==29361== Releasing lock... [2025-01-01 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:35:24] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:36:05 [end_date_ymd] => 2025-01-01 09:36:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:36:05' and `end` < '2025-01-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-01-01 09:36:19] Production.INFO: count ==44 [2025-01-01 09:36:19] Production.ERROR: pbx CDR StartTime 2025-01-01 06:36:05 - End Time 2025-01-01 09:36:05 [2025-01-01 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150005', 'tblTempUsageDetail_20' ) start [2025-01-01 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150005', 'tblTempUsageDetail_20' ) end [2025-01-01 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150005', 'tblTempVendorCDR_20' ) start [2025-01-01 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150005', 'tblTempVendorCDR_20' ) end [2025-01-01 09:36:19] Production.INFO: ProcessCDR(1,14150005,1,1,2) [2025-01-01 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150005', 'tblTempUsageDetail_20' ) start [2025-01-01 09:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150005', 'tblTempUsageDetail_20' ) end [2025-01-01 09:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:36:22] Production.INFO: ==29443== Releasing lock... [2025-01-01 09:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:36:22] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:37:05 [end_date_ymd] => 2025-01-01 09:37:05 [RateCDR] => 1 ) [2025-01-01 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 06:37:05' and `end` < '2025-01-01 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 09:37:19] Production.INFO: count ==44 [2025-01-01 09:37:19] Production.ERROR: pbx CDR StartTime 2025-01-01 06:37:05 - End Time 2025-01-01 09:37:05 [2025-01-01 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150010', 'tblTempUsageDetail_20' ) start [2025-01-01 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150010', 'tblTempUsageDetail_20' ) end [2025-01-01 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150010', 'tblTempVendorCDR_20' ) start [2025-01-01 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150010', 'tblTempVendorCDR_20' ) end [2025-01-01 09:37:19] Production.INFO: ProcessCDR(1,14150010,1,1,2) [2025-01-01 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150010', 'tblTempUsageDetail_20' ) start [2025-01-01 09:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150010', 'tblTempUsageDetail_20' ) end [2025-01-01 09:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:37:23] Production.INFO: ==29525== Releasing lock... [2025-01-01 09:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:37:23] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:38:04 [end_date_ymd] => 2025-01-01 09:38:04 [RateCDR] => 1 ) [2025-01-01 09: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-01-01 06:38:04' and `end` < '2025-01-01 09: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-01-01 09:38:18] Production.INFO: count ==44 [2025-01-01 09:38:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:38:04 - End Time 2025-01-01 09:38:04 [2025-01-01 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150015', 'tblTempUsageDetail_20' ) start [2025-01-01 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150015', 'tblTempUsageDetail_20' ) end [2025-01-01 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150015', 'tblTempVendorCDR_20' ) start [2025-01-01 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150015', 'tblTempVendorCDR_20' ) end [2025-01-01 09:38:18] Production.INFO: ProcessCDR(1,14150015,1,1,2) [2025-01-01 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150015', 'tblTempUsageDetail_20' ) start [2025-01-01 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150015', 'tblTempUsageDetail_20' ) end [2025-01-01 09:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:38:21] Production.INFO: ==29604== Releasing lock... [2025-01-01 09:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:38:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:39:05 [end_date_ymd] => 2025-01-01 09:39:05 [RateCDR] => 1 ) [2025-01-01 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 06:39:05' and `end` < '2025-01-01 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 09:39:17] Production.INFO: count ==44 [2025-01-01 09:39:17] Production.ERROR: pbx CDR StartTime 2025-01-01 06:39:05 - End Time 2025-01-01 09:39:05 [2025-01-01 09:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150020', 'tblTempUsageDetail_20' ) start [2025-01-01 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150020', 'tblTempUsageDetail_20' ) end [2025-01-01 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150020', 'tblTempVendorCDR_20' ) start [2025-01-01 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150020', 'tblTempVendorCDR_20' ) end [2025-01-01 09:39:17] Production.INFO: ProcessCDR(1,14150020,1,1,2) [2025-01-01 09:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150020', 'tblTempUsageDetail_20' ) start [2025-01-01 09:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150020', 'tblTempUsageDetail_20' ) end [2025-01-01 09:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:39:21] Production.INFO: ==29689== Releasing lock... [2025-01-01 09:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:39:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:40:05 [end_date_ymd] => 2025-01-01 09:40:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:40:05' and `end` < '2025-01-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-01-01 09:40:20] Production.INFO: count ==50 [2025-01-01 09:40:20] Production.ERROR: pbx CDR StartTime 2025-01-01 06:40:05 - End Time 2025-01-01 09:40:05 [2025-01-01 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150026', 'tblTempUsageDetail_20' ) start [2025-01-01 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150026', 'tblTempUsageDetail_20' ) end [2025-01-01 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150026', 'tblTempVendorCDR_20' ) start [2025-01-01 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150026', 'tblTempVendorCDR_20' ) end [2025-01-01 09:40:20] Production.INFO: ProcessCDR(1,14150026,1,1,2) [2025-01-01 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150026', 'tblTempUsageDetail_20' ) start [2025-01-01 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150026', 'tblTempUsageDetail_20' ) end [2025-01-01 09:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:40:23] Production.INFO: ==29775== Releasing lock... [2025-01-01 09:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:40:23] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:41:05 [end_date_ymd] => 2025-01-01 09:41:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:41:05' and `end` < '2025-01-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-01-01 09:41:18] Production.INFO: count ==58 [2025-01-01 09:41:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:41:05 - End Time 2025-01-01 09:41:05 [2025-01-01 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150031', 'tblTempUsageDetail_20' ) start [2025-01-01 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150031', 'tblTempUsageDetail_20' ) end [2025-01-01 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150031', 'tblTempVendorCDR_20' ) start [2025-01-01 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150031', 'tblTempVendorCDR_20' ) end [2025-01-01 09:41:18] Production.INFO: ProcessCDR(1,14150031,1,1,2) [2025-01-01 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150031', 'tblTempUsageDetail_20' ) start [2025-01-01 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150031', 'tblTempUsageDetail_20' ) end [2025-01-01 09:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:41:22] Production.INFO: ==29860== Releasing lock... [2025-01-01 09:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:41:22] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:42:06 [end_date_ymd] => 2025-01-01 09:42:06 [RateCDR] => 1 ) [2025-01-01 09:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 06:42:06' and `end` < '2025-01-01 09:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 09:42:20] Production.INFO: count ==58 [2025-01-01 09:42:20] Production.ERROR: pbx CDR StartTime 2025-01-01 06:42:06 - End Time 2025-01-01 09:42:06 [2025-01-01 09:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150036', 'tblTempUsageDetail_20' ) start [2025-01-01 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150036', 'tblTempUsageDetail_20' ) end [2025-01-01 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150036', 'tblTempVendorCDR_20' ) start [2025-01-01 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150036', 'tblTempVendorCDR_20' ) end [2025-01-01 09:42:20] Production.INFO: ProcessCDR(1,14150036,1,1,2) [2025-01-01 09:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150036', 'tblTempUsageDetail_20' ) start [2025-01-01 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150036', 'tblTempUsageDetail_20' ) end [2025-01-01 09:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:42:23] Production.INFO: ==29944== Releasing lock... [2025-01-01 09:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:42:23] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:43:04 [end_date_ymd] => 2025-01-01 09:43:04 [RateCDR] => 1 ) [2025-01-01 09: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-01-01 06:43:04' and `end` < '2025-01-01 09: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-01-01 09:43:17] Production.INFO: count ==58 [2025-01-01 09:43:17] Production.ERROR: pbx CDR StartTime 2025-01-01 06:43:04 - End Time 2025-01-01 09:43:04 [2025-01-01 09:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150041', 'tblTempUsageDetail_20' ) start [2025-01-01 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150041', 'tblTempUsageDetail_20' ) end [2025-01-01 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150041', 'tblTempVendorCDR_20' ) start [2025-01-01 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150041', 'tblTempVendorCDR_20' ) end [2025-01-01 09:43:17] Production.INFO: ProcessCDR(1,14150041,1,1,2) [2025-01-01 09:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150041', 'tblTempUsageDetail_20' ) start [2025-01-01 09:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150041', 'tblTempUsageDetail_20' ) end [2025-01-01 09:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:43:20] Production.INFO: ==30024== Releasing lock... [2025-01-01 09:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:43:20] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:44:05 [end_date_ymd] => 2025-01-01 09:44:05 [RateCDR] => 1 ) [2025-01-01 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 06:44:05' and `end` < '2025-01-01 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 09:44:18] Production.INFO: count ==58 [2025-01-01 09:44:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:44:05 - End Time 2025-01-01 09:44:05 [2025-01-01 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150046', 'tblTempUsageDetail_20' ) start [2025-01-01 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150046', 'tblTempUsageDetail_20' ) end [2025-01-01 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150046', 'tblTempVendorCDR_20' ) start [2025-01-01 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150046', 'tblTempVendorCDR_20' ) end [2025-01-01 09:44:18] Production.INFO: ProcessCDR(1,14150046,1,1,2) [2025-01-01 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150046', 'tblTempUsageDetail_20' ) start [2025-01-01 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150046', 'tblTempUsageDetail_20' ) end [2025-01-01 09:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:44:21] Production.INFO: ==30114== Releasing lock... [2025-01-01 09:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:44:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:45:04 [end_date_ymd] => 2025-01-01 09:45:04 [RateCDR] => 1 ) [2025-01-01 09: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-01-01 06:45:04' and `end` < '2025-01-01 09: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-01-01 09:45:17] Production.INFO: count ==59 [2025-01-01 09:45:17] Production.ERROR: pbx CDR StartTime 2025-01-01 06:45:04 - End Time 2025-01-01 09:45:04 [2025-01-01 09:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150051', 'tblTempUsageDetail_20' ) start [2025-01-01 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150051', 'tblTempUsageDetail_20' ) end [2025-01-01 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150051', 'tblTempVendorCDR_20' ) start [2025-01-01 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150051', 'tblTempVendorCDR_20' ) end [2025-01-01 09:45:17] Production.INFO: ProcessCDR(1,14150051,1,1,2) [2025-01-01 09:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150051', 'tblTempUsageDetail_20' ) start [2025-01-01 09:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150051', 'tblTempUsageDetail_20' ) end [2025-01-01 09:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:45:20] Production.INFO: ==30192== Releasing lock... [2025-01-01 09:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:45:20] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:46:05 [end_date_ymd] => 2025-01-01 09:46:05 [RateCDR] => 1 ) [2025-01-01 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 06:46:05' and `end` < '2025-01-01 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 09:46:18] Production.INFO: count ==59 [2025-01-01 09:46:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:46:05 - End Time 2025-01-01 09:46:05 [2025-01-01 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150056', 'tblTempUsageDetail_20' ) start [2025-01-01 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150056', 'tblTempUsageDetail_20' ) end [2025-01-01 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150056', 'tblTempVendorCDR_20' ) start [2025-01-01 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150056', 'tblTempVendorCDR_20' ) end [2025-01-01 09:46:18] Production.INFO: ProcessCDR(1,14150056,1,1,2) [2025-01-01 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150056', 'tblTempUsageDetail_20' ) start [2025-01-01 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150056', 'tblTempUsageDetail_20' ) end [2025-01-01 09:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:46:21] Production.INFO: ==30276== Releasing lock... [2025-01-01 09:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:46:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:47:05 [end_date_ymd] => 2025-01-01 09:47:05 [RateCDR] => 1 ) [2025-01-01 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 06:47:05' and `end` < '2025-01-01 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 09:47:18] Production.INFO: count ==59 [2025-01-01 09:47:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:47:05 - End Time 2025-01-01 09:47:05 [2025-01-01 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150061', 'tblTempUsageDetail_20' ) start [2025-01-01 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150061', 'tblTempUsageDetail_20' ) end [2025-01-01 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150061', 'tblTempVendorCDR_20' ) start [2025-01-01 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150061', 'tblTempVendorCDR_20' ) end [2025-01-01 09:47:18] Production.INFO: ProcessCDR(1,14150061,1,1,2) [2025-01-01 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150061', 'tblTempUsageDetail_20' ) start [2025-01-01 09:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150061', 'tblTempUsageDetail_20' ) end [2025-01-01 09:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:47:22] Production.INFO: ==30364== Releasing lock... [2025-01-01 09:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:47:22] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:48:04 [end_date_ymd] => 2025-01-01 09:48:04 [RateCDR] => 1 ) [2025-01-01 09: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-01-01 06:48:04' and `end` < '2025-01-01 09: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-01-01 09:48:18] Production.INFO: count ==59 [2025-01-01 09:48:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:48:04 - End Time 2025-01-01 09:48:04 [2025-01-01 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150065', 'tblTempUsageDetail_20' ) start [2025-01-01 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150065', 'tblTempUsageDetail_20' ) end [2025-01-01 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150065', 'tblTempVendorCDR_20' ) start [2025-01-01 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150065', 'tblTempVendorCDR_20' ) end [2025-01-01 09:48:18] Production.INFO: ProcessCDR(1,14150065,1,1,2) [2025-01-01 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150065', 'tblTempUsageDetail_20' ) start [2025-01-01 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150065', 'tblTempUsageDetail_20' ) end [2025-01-01 09:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:48:21] Production.INFO: ==30446== Releasing lock... [2025-01-01 09:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:48:21] Production.INFO: 28 MB #Memory Used# [2025-01-01 09:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:49:06 [end_date_ymd] => 2025-01-01 09:49:06 [RateCDR] => 1 ) [2025-01-01 09: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-01-01 06:49:06' and `end` < '2025-01-01 09: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-01-01 09:49:19] Production.INFO: count ==60 [2025-01-01 09:49:19] Production.ERROR: pbx CDR StartTime 2025-01-01 06:49:06 - End Time 2025-01-01 09:49:06 [2025-01-01 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150071', 'tblTempUsageDetail_20' ) start [2025-01-01 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150071', 'tblTempUsageDetail_20' ) end [2025-01-01 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150071', 'tblTempVendorCDR_20' ) start [2025-01-01 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150071', 'tblTempVendorCDR_20' ) end [2025-01-01 09:49:19] Production.INFO: ProcessCDR(1,14150071,1,1,2) [2025-01-01 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150071', 'tblTempUsageDetail_20' ) start [2025-01-01 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150071', 'tblTempUsageDetail_20' ) end [2025-01-01 09:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:49:24] Production.INFO: ==30531== Releasing lock... [2025-01-01 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:49:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:50:05 [end_date_ymd] => 2025-01-01 09:50:05 [RateCDR] => 1 ) [2025-01-01 09: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-01-01 06:50:05' and `end` < '2025-01-01 09: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-01-01 09:50:19] Production.INFO: count ==69 [2025-01-01 09:50:19] Production.ERROR: pbx CDR StartTime 2025-01-01 06:50:05 - End Time 2025-01-01 09:50:05 [2025-01-01 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150077', 'tblTempUsageDetail_20' ) start [2025-01-01 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150077', 'tblTempUsageDetail_20' ) end [2025-01-01 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150077', 'tblTempVendorCDR_20' ) start [2025-01-01 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150077', 'tblTempVendorCDR_20' ) end [2025-01-01 09:50:19] Production.INFO: ProcessCDR(1,14150077,1,1,2) [2025-01-01 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150077', 'tblTempUsageDetail_20' ) start [2025-01-01 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150077', 'tblTempUsageDetail_20' ) end [2025-01-01 09:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:50:22] Production.INFO: ==30655== Releasing lock... [2025-01-01 09:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:51:05 [end_date_ymd] => 2025-01-01 09:51:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:51:05' and `end` < '2025-01-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-01-01 09:51:19] Production.INFO: count ==70 [2025-01-01 09:51:19] Production.ERROR: pbx CDR StartTime 2025-01-01 06:51:05 - End Time 2025-01-01 09:51:05 [2025-01-01 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150082', 'tblTempUsageDetail_20' ) start [2025-01-01 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150082', 'tblTempUsageDetail_20' ) end [2025-01-01 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150082', 'tblTempVendorCDR_20' ) start [2025-01-01 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150082', 'tblTempVendorCDR_20' ) end [2025-01-01 09:51:19] Production.INFO: ProcessCDR(1,14150082,1,1,2) [2025-01-01 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150082', 'tblTempUsageDetail_20' ) start [2025-01-01 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150082', 'tblTempUsageDetail_20' ) end [2025-01-01 09:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:51:22] Production.INFO: ==30739== Releasing lock... [2025-01-01 09:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:51:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:52:05 [end_date_ymd] => 2025-01-01 09:52:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:52:05' and `end` < '2025-01-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-01-01 09:52:19] Production.INFO: count ==70 [2025-01-01 09:52:19] Production.ERROR: pbx CDR StartTime 2025-01-01 06:52:05 - End Time 2025-01-01 09:52:05 [2025-01-01 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150087', 'tblTempUsageDetail_20' ) start [2025-01-01 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150087', 'tblTempUsageDetail_20' ) end [2025-01-01 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150087', 'tblTempVendorCDR_20' ) start [2025-01-01 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150087', 'tblTempVendorCDR_20' ) end [2025-01-01 09:52:19] Production.INFO: ProcessCDR(1,14150087,1,1,2) [2025-01-01 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150087', 'tblTempUsageDetail_20' ) start [2025-01-01 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150087', 'tblTempUsageDetail_20' ) end [2025-01-01 09:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:52:22] Production.INFO: ==30824== Releasing lock... [2025-01-01 09:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:52:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:53:05 [end_date_ymd] => 2025-01-01 09:53:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:53:05' and `end` < '2025-01-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-01-01 09:53:19] Production.INFO: count ==70 [2025-01-01 09:53:19] Production.ERROR: pbx CDR StartTime 2025-01-01 06:53:05 - End Time 2025-01-01 09:53:05 [2025-01-01 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150092', 'tblTempUsageDetail_20' ) start [2025-01-01 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150092', 'tblTempUsageDetail_20' ) end [2025-01-01 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150092', 'tblTempVendorCDR_20' ) start [2025-01-01 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150092', 'tblTempVendorCDR_20' ) end [2025-01-01 09:53:19] Production.INFO: ProcessCDR(1,14150092,1,1,2) [2025-01-01 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150092', 'tblTempUsageDetail_20' ) start [2025-01-01 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150092', 'tblTempUsageDetail_20' ) end [2025-01-01 09:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:53:22] Production.INFO: ==30907== Releasing lock... [2025-01-01 09:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:53:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-01 09:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:54:04 [end_date_ymd] => 2025-01-01 09:54:04 [RateCDR] => 1 ) [2025-01-01 09: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-01-01 06:54:04' and `end` < '2025-01-01 09: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-01-01 09:54:19] Production.INFO: count ==85 [2025-01-01 09:54:19] Production.ERROR: pbx CDR StartTime 2025-01-01 06:54:04 - End Time 2025-01-01 09:54:04 [2025-01-01 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150097', 'tblTempUsageDetail_20' ) start [2025-01-01 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150097', 'tblTempUsageDetail_20' ) end [2025-01-01 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150097', 'tblTempVendorCDR_20' ) start [2025-01-01 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150097', 'tblTempVendorCDR_20' ) end [2025-01-01 09:54:19] Production.INFO: ProcessCDR(1,14150097,1,1,2) [2025-01-01 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150097', 'tblTempUsageDetail_20' ) start [2025-01-01 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150097', 'tblTempUsageDetail_20' ) end [2025-01-01 09:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:54:23] Production.INFO: ==30988== Releasing lock... [2025-01-01 09:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:54:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:55:05 [end_date_ymd] => 2025-01-01 09:55:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:55:05' and `end` < '2025-01-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-01-01 09:55:17] Production.INFO: count ==87 [2025-01-01 09:55:17] Production.ERROR: pbx CDR StartTime 2025-01-01 06:55:05 - End Time 2025-01-01 09:55:05 [2025-01-01 09:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150102', 'tblTempUsageDetail_20' ) start [2025-01-01 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150102', 'tblTempUsageDetail_20' ) end [2025-01-01 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150102', 'tblTempVendorCDR_20' ) start [2025-01-01 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150102', 'tblTempVendorCDR_20' ) end [2025-01-01 09:55:17] Production.INFO: ProcessCDR(1,14150102,1,1,2) [2025-01-01 09:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150102', 'tblTempUsageDetail_20' ) start [2025-01-01 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150102', 'tblTempUsageDetail_20' ) end [2025-01-01 09:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:55:22] Production.INFO: ==31073== Releasing lock... [2025-01-01 09:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:55:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:56:06 [end_date_ymd] => 2025-01-01 09:56:06 [RateCDR] => 1 ) [2025-01-01 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 06:56:06' and `end` < '2025-01-01 09:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 09:56:18] Production.INFO: count ==87 [2025-01-01 09:56:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:56:06 - End Time 2025-01-01 09:56:06 [2025-01-01 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150107', 'tblTempUsageDetail_20' ) start [2025-01-01 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150107', 'tblTempUsageDetail_20' ) end [2025-01-01 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150107', 'tblTempVendorCDR_20' ) start [2025-01-01 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150107', 'tblTempVendorCDR_20' ) end [2025-01-01 09:56:18] Production.INFO: ProcessCDR(1,14150107,1,1,2) [2025-01-01 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150107', 'tblTempUsageDetail_20' ) start [2025-01-01 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150107', 'tblTempUsageDetail_20' ) end [2025-01-01 09:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:56:21] Production.INFO: ==31151== Releasing lock... [2025-01-01 09:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:57:05 [end_date_ymd] => 2025-01-01 09:57:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:57:05' and `end` < '2025-01-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-01-01 09:57:18] Production.INFO: count ==87 [2025-01-01 09:57:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:57:05 - End Time 2025-01-01 09:57:05 [2025-01-01 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150112', 'tblTempUsageDetail_20' ) start [2025-01-01 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150112', 'tblTempUsageDetail_20' ) end [2025-01-01 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150112', 'tblTempVendorCDR_20' ) start [2025-01-01 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150112', 'tblTempVendorCDR_20' ) end [2025-01-01 09:57:18] Production.INFO: ProcessCDR(1,14150112,1,1,2) [2025-01-01 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150112', 'tblTempUsageDetail_20' ) start [2025-01-01 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150112', 'tblTempUsageDetail_20' ) end [2025-01-01 09:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:57:21] Production.INFO: ==31225== Releasing lock... [2025-01-01 09:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:58:05 [end_date_ymd] => 2025-01-01 09:58:05 [RateCDR] => 1 ) [2025-01-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-01-01 06:58:05' and `end` < '2025-01-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-01-01 09:58:18] Production.INFO: count ==87 [2025-01-01 09:58:18] Production.ERROR: pbx CDR StartTime 2025-01-01 06:58:05 - End Time 2025-01-01 09:58:05 [2025-01-01 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150117', 'tblTempUsageDetail_20' ) start [2025-01-01 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150117', 'tblTempUsageDetail_20' ) end [2025-01-01 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150117', 'tblTempVendorCDR_20' ) start [2025-01-01 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150117', 'tblTempVendorCDR_20' ) end [2025-01-01 09:58:18] Production.INFO: ProcessCDR(1,14150117,1,1,2) [2025-01-01 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150117', 'tblTempUsageDetail_20' ) start [2025-01-01 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150117', 'tblTempUsageDetail_20' ) end [2025-01-01 09:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:58:21] Production.INFO: ==31303== Releasing lock... [2025-01-01 09:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 09:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 06:59:04 [end_date_ymd] => 2025-01-01 09:59:04 [RateCDR] => 1 ) [2025-01-01 09: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-01-01 06:59:04' and `end` < '2025-01-01 09: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-01-01 09:59:17] Production.INFO: count ==87 [2025-01-01 09:59:17] Production.ERROR: pbx CDR StartTime 2025-01-01 06:59:04 - End Time 2025-01-01 09:59:04 [2025-01-01 09:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150122', 'tblTempUsageDetail_20' ) start [2025-01-01 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150122', 'tblTempUsageDetail_20' ) end [2025-01-01 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150122', 'tblTempVendorCDR_20' ) start [2025-01-01 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150122', 'tblTempVendorCDR_20' ) end [2025-01-01 09:59:17] Production.INFO: ProcessCDR(1,14150122,1,1,2) [2025-01-01 09:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 09:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 09:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150122', 'tblTempUsageDetail_20' ) start [2025-01-01 09:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150122', 'tblTempUsageDetail_20' ) end [2025-01-01 09:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 09:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 09:59:20] Production.INFO: ==31382== Releasing lock... [2025-01-01 09:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 09:59:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:00:06 [end_date_ymd] => 2025-01-01 10:00:06 [RateCDR] => 1 ) [2025-01-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-01-01 07:00:06' and `end` < '2025-01-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-01-01 10:00:19] Production.INFO: count ==93 [2025-01-01 10:00:19] Production.ERROR: pbx CDR StartTime 2025-01-01 07:00:06 - End Time 2025-01-01 10:00:06 [2025-01-01 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150127', 'tblTempUsageDetail_20' ) start [2025-01-01 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150127', 'tblTempUsageDetail_20' ) end [2025-01-01 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150127', 'tblTempVendorCDR_20' ) start [2025-01-01 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150127', 'tblTempVendorCDR_20' ) end [2025-01-01 10:00:19] Production.INFO: ProcessCDR(1,14150127,1,1,2) [2025-01-01 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150127', 'tblTempUsageDetail_20' ) start [2025-01-01 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150127', 'tblTempUsageDetail_20' ) end [2025-01-01 10:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:00:22] Production.INFO: ==31464== Releasing lock... [2025-01-01 10:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 10:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:01:04 [end_date_ymd] => 2025-01-01 10:01:04 [RateCDR] => 1 ) [2025-01-01 10:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 07:01:04' and `end` < '2025-01-01 10:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 10:01:18] Production.INFO: count ==93 [2025-01-01 10:01:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:01:04 - End Time 2025-01-01 10:01:04 [2025-01-01 10:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150133', 'tblTempUsageDetail_20' ) start [2025-01-01 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150133', 'tblTempUsageDetail_20' ) end [2025-01-01 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150133', 'tblTempVendorCDR_20' ) start [2025-01-01 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150133', 'tblTempVendorCDR_20' ) end [2025-01-01 10:01:18] Production.INFO: ProcessCDR(1,14150133,1,1,2) [2025-01-01 10:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150133', 'tblTempUsageDetail_20' ) start [2025-01-01 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150133', 'tblTempUsageDetail_20' ) end [2025-01-01 10:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:01:21] Production.INFO: ==31562== Releasing lock... [2025-01-01 10:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:02:05 [end_date_ymd] => 2025-01-01 10:02:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:02:05' and `end` < '2025-01-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-01-01 10:02:17] Production.INFO: count ==93 [2025-01-01 10:02:17] Production.ERROR: pbx CDR StartTime 2025-01-01 07:02:05 - End Time 2025-01-01 10:02:05 [2025-01-01 10:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150138', 'tblTempUsageDetail_20' ) start [2025-01-01 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150138', 'tblTempUsageDetail_20' ) end [2025-01-01 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150138', 'tblTempVendorCDR_20' ) start [2025-01-01 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150138', 'tblTempVendorCDR_20' ) end [2025-01-01 10:02:17] Production.INFO: ProcessCDR(1,14150138,1,1,2) [2025-01-01 10:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150138', 'tblTempUsageDetail_20' ) start [2025-01-01 10:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150138', 'tblTempUsageDetail_20' ) end [2025-01-01 10:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:02:21] Production.INFO: ==31639== Releasing lock... [2025-01-01 10:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:02:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:03:05 [end_date_ymd] => 2025-01-01 10:03:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:03:05' and `end` < '2025-01-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-01-01 10:03:18] Production.INFO: count ==93 [2025-01-01 10:03:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:03:05 - End Time 2025-01-01 10:03:05 [2025-01-01 10:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150143', 'tblTempUsageDetail_20' ) start [2025-01-01 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150143', 'tblTempUsageDetail_20' ) end [2025-01-01 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150143', 'tblTempVendorCDR_20' ) start [2025-01-01 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150143', 'tblTempVendorCDR_20' ) end [2025-01-01 10:03:18] Production.INFO: ProcessCDR(1,14150143,1,1,2) [2025-01-01 10:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150143', 'tblTempUsageDetail_20' ) start [2025-01-01 10:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150143', 'tblTempUsageDetail_20' ) end [2025-01-01 10:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:03:21] Production.INFO: ==31714== Releasing lock... [2025-01-01 10:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:04:05 [end_date_ymd] => 2025-01-01 10:04:05 [RateCDR] => 1 ) [2025-01-01 10: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-01-01 07:04:05' and `end` < '2025-01-01 10: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-01-01 10:04:18] Production.INFO: count ==93 [2025-01-01 10:04:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:04:05 - End Time 2025-01-01 10:04:05 [2025-01-01 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150148', 'tblTempUsageDetail_20' ) start [2025-01-01 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150148', 'tblTempUsageDetail_20' ) end [2025-01-01 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150148', 'tblTempVendorCDR_20' ) start [2025-01-01 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150148', 'tblTempVendorCDR_20' ) end [2025-01-01 10:04:18] Production.INFO: ProcessCDR(1,14150148,1,1,2) [2025-01-01 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150148', 'tblTempUsageDetail_20' ) start [2025-01-01 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150148', 'tblTempUsageDetail_20' ) end [2025-01-01 10:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:04:21] Production.INFO: ==31788== Releasing lock... [2025-01-01 10:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:04:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:05:06 [end_date_ymd] => 2025-01-01 10:05:06 [RateCDR] => 1 ) [2025-01-01 10:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 07:05:06' and `end` < '2025-01-01 10:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 10:05:18] Production.INFO: count ==93 [2025-01-01 10:05:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:05:06 - End Time 2025-01-01 10:05:06 [2025-01-01 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150153', 'tblTempUsageDetail_20' ) start [2025-01-01 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150153', 'tblTempUsageDetail_20' ) end [2025-01-01 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150153', 'tblTempVendorCDR_20' ) start [2025-01-01 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150153', 'tblTempVendorCDR_20' ) end [2025-01-01 10:05:18] Production.INFO: ProcessCDR(1,14150153,1,1,2) [2025-01-01 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150153', 'tblTempUsageDetail_20' ) start [2025-01-01 10:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150153', 'tblTempUsageDetail_20' ) end [2025-01-01 10:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:05:22] Production.INFO: ==31861== Releasing lock... [2025-01-01 10:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:05:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:06:05 [end_date_ymd] => 2025-01-01 10:06:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:06:05' and `end` < '2025-01-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-01-01 10:06:19] Production.INFO: count ==93 [2025-01-01 10:06:19] Production.ERROR: pbx CDR StartTime 2025-01-01 07:06:05 - End Time 2025-01-01 10:06:05 [2025-01-01 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150158', 'tblTempUsageDetail_20' ) start [2025-01-01 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150158', 'tblTempUsageDetail_20' ) end [2025-01-01 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150158', 'tblTempVendorCDR_20' ) start [2025-01-01 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150158', 'tblTempVendorCDR_20' ) end [2025-01-01 10:06:19] Production.INFO: ProcessCDR(1,14150158,1,1,2) [2025-01-01 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150158', 'tblTempUsageDetail_20' ) start [2025-01-01 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150158', 'tblTempUsageDetail_20' ) end [2025-01-01 10:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:06:22] Production.INFO: ==31972== Releasing lock... [2025-01-01 10:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:06:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 10:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:07:04 [end_date_ymd] => 2025-01-01 10:07:04 [RateCDR] => 1 ) [2025-01-01 10: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-01-01 07:07:04' and `end` < '2025-01-01 10: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-01-01 10:07:17] Production.INFO: count ==93 [2025-01-01 10:07:17] Production.ERROR: pbx CDR StartTime 2025-01-01 07:07:04 - End Time 2025-01-01 10:07:04 [2025-01-01 10:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150163', 'tblTempUsageDetail_20' ) start [2025-01-01 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150163', 'tblTempUsageDetail_20' ) end [2025-01-01 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150163', 'tblTempVendorCDR_20' ) start [2025-01-01 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150163', 'tblTempVendorCDR_20' ) end [2025-01-01 10:07:17] Production.INFO: ProcessCDR(1,14150163,1,1,2) [2025-01-01 10:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150163', 'tblTempUsageDetail_20' ) start [2025-01-01 10:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150163', 'tblTempUsageDetail_20' ) end [2025-01-01 10:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:07:20] Production.INFO: ==32048== Releasing lock... [2025-01-01 10:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:07:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:08:05 [end_date_ymd] => 2025-01-01 10:08:05 [RateCDR] => 1 ) [2025-01-01 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 07:08:05' and `end` < '2025-01-01 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 10:08:18] Production.INFO: count ==93 [2025-01-01 10:08:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:08:05 - End Time 2025-01-01 10:08:05 [2025-01-01 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150168', 'tblTempUsageDetail_20' ) start [2025-01-01 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150168', 'tblTempUsageDetail_20' ) end [2025-01-01 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150168', 'tblTempVendorCDR_20' ) start [2025-01-01 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150168', 'tblTempVendorCDR_20' ) end [2025-01-01 10:08:18] Production.INFO: ProcessCDR(1,14150168,1,1,2) [2025-01-01 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150168', 'tblTempUsageDetail_20' ) start [2025-01-01 10:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150168', 'tblTempUsageDetail_20' ) end [2025-01-01 10:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:08:21] Production.INFO: ==32119== Releasing lock... [2025-01-01 10:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:08:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:09:05 [end_date_ymd] => 2025-01-01 10:09:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:09:05' and `end` < '2025-01-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-01-01 10:09:19] Production.INFO: count ==93 [2025-01-01 10:09:19] Production.ERROR: pbx CDR StartTime 2025-01-01 07:09:05 - End Time 2025-01-01 10:09:05 [2025-01-01 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150173', 'tblTempUsageDetail_20' ) start [2025-01-01 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150173', 'tblTempUsageDetail_20' ) end [2025-01-01 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150173', 'tblTempVendorCDR_20' ) start [2025-01-01 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150173', 'tblTempVendorCDR_20' ) end [2025-01-01 10:09:19] Production.INFO: ProcessCDR(1,14150173,1,1,2) [2025-01-01 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150173', 'tblTempUsageDetail_20' ) start [2025-01-01 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150173', 'tblTempUsageDetail_20' ) end [2025-01-01 10:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:09:22] Production.INFO: ==32195== Releasing lock... [2025-01-01 10:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:09:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:10:05 [end_date_ymd] => 2025-01-01 10:10:05 [RateCDR] => 1 ) [2025-01-01 10: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-01 07:10:05' and `end` < '2025-01-01 10: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-01-01 10:10:18] Production.INFO: count ==99 [2025-01-01 10:10:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:10:05 - End Time 2025-01-01 10:10:05 [2025-01-01 10:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150179', 'tblTempUsageDetail_20' ) start [2025-01-01 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150179', 'tblTempUsageDetail_20' ) end [2025-01-01 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150179', 'tblTempVendorCDR_20' ) start [2025-01-01 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150179', 'tblTempVendorCDR_20' ) end [2025-01-01 10:10:18] Production.INFO: ProcessCDR(1,14150179,1,1,2) [2025-01-01 10:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150179', 'tblTempUsageDetail_20' ) start [2025-01-01 10:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150179', 'tblTempUsageDetail_20' ) end [2025-01-01 10:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:10:21] Production.INFO: ==32269== Releasing lock... [2025-01-01 10:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:10:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:11:05 [end_date_ymd] => 2025-01-01 10:11:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:11:05' and `end` < '2025-01-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-01-01 10:11:17] Production.INFO: count ==107 [2025-01-01 10:11:17] Production.ERROR: pbx CDR StartTime 2025-01-01 07:11:05 - End Time 2025-01-01 10:11:05 [2025-01-01 10:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150184', 'tblTempUsageDetail_20' ) start [2025-01-01 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150184', 'tblTempUsageDetail_20' ) end [2025-01-01 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150184', 'tblTempVendorCDR_20' ) start [2025-01-01 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150184', 'tblTempVendorCDR_20' ) end [2025-01-01 10:11:17] Production.INFO: ProcessCDR(1,14150184,1,1,2) [2025-01-01 10:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150184', 'tblTempUsageDetail_20' ) start [2025-01-01 10:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150184', 'tblTempUsageDetail_20' ) end [2025-01-01 10:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:11:21] Production.INFO: ==32344== Releasing lock... [2025-01-01 10:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:11:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:12:05 [end_date_ymd] => 2025-01-01 10:12:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:12:05' and `end` < '2025-01-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-01-01 10:12:18] Production.INFO: count ==107 [2025-01-01 10:12:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:12:05 - End Time 2025-01-01 10:12:05 [2025-01-01 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150189', 'tblTempUsageDetail_20' ) start [2025-01-01 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150189', 'tblTempUsageDetail_20' ) end [2025-01-01 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150189', 'tblTempVendorCDR_20' ) start [2025-01-01 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150189', 'tblTempVendorCDR_20' ) end [2025-01-01 10:12:18] Production.INFO: ProcessCDR(1,14150189,1,1,2) [2025-01-01 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150189', 'tblTempUsageDetail_20' ) start [2025-01-01 10:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150189', 'tblTempUsageDetail_20' ) end [2025-01-01 10:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:12:21] Production.INFO: ==32417== Releasing lock... [2025-01-01 10:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:13:05 [end_date_ymd] => 2025-01-01 10:13:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:13:05' and `end` < '2025-01-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-01-01 10:13:18] Production.INFO: count ==107 [2025-01-01 10:13:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:13:05 - End Time 2025-01-01 10:13:05 [2025-01-01 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150194', 'tblTempUsageDetail_20' ) start [2025-01-01 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150194', 'tblTempUsageDetail_20' ) end [2025-01-01 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150194', 'tblTempVendorCDR_20' ) start [2025-01-01 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150194', 'tblTempVendorCDR_20' ) end [2025-01-01 10:13:18] Production.INFO: ProcessCDR(1,14150194,1,1,2) [2025-01-01 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150194', 'tblTempUsageDetail_20' ) start [2025-01-01 10:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150194', 'tblTempUsageDetail_20' ) end [2025-01-01 10:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:13:21] Production.INFO: ==32490== Releasing lock... [2025-01-01 10:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:13:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:14:05 [end_date_ymd] => 2025-01-01 10:14:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:14:05' and `end` < '2025-01-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-01-01 10:14:19] Production.INFO: count ==108 [2025-01-01 10:14:19] Production.ERROR: pbx CDR StartTime 2025-01-01 07:14:05 - End Time 2025-01-01 10:14:05 [2025-01-01 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150199', 'tblTempUsageDetail_20' ) start [2025-01-01 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150199', 'tblTempUsageDetail_20' ) end [2025-01-01 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150199', 'tblTempVendorCDR_20' ) start [2025-01-01 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150199', 'tblTempVendorCDR_20' ) end [2025-01-01 10:14:19] Production.INFO: ProcessCDR(1,14150199,1,1,2) [2025-01-01 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150199', 'tblTempUsageDetail_20' ) start [2025-01-01 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150199', 'tblTempUsageDetail_20' ) end [2025-01-01 10:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:14:23] Production.INFO: ==32567== Releasing lock... [2025-01-01 10:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:14:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:15:05 [end_date_ymd] => 2025-01-01 10:15:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:15:05' and `end` < '2025-01-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-01-01 10:15:19] Production.INFO: count ==108 [2025-01-01 10:15:19] Production.ERROR: pbx CDR StartTime 2025-01-01 07:15:05 - End Time 2025-01-01 10:15:05 [2025-01-01 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150204', 'tblTempUsageDetail_20' ) start [2025-01-01 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150204', 'tblTempUsageDetail_20' ) end [2025-01-01 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150204', 'tblTempVendorCDR_20' ) start [2025-01-01 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150204', 'tblTempVendorCDR_20' ) end [2025-01-01 10:15:19] Production.INFO: ProcessCDR(1,14150204,1,1,2) [2025-01-01 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150204', 'tblTempUsageDetail_20' ) start [2025-01-01 10:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150204', 'tblTempUsageDetail_20' ) end [2025-01-01 10:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:15:22] Production.INFO: ==32639== Releasing lock... [2025-01-01 10:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:15:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:16:05 [end_date_ymd] => 2025-01-01 10:16:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:16:05' and `end` < '2025-01-01 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 10:16:17] Production.INFO: count ==108 [2025-01-01 10:16:17] Production.ERROR: pbx CDR StartTime 2025-01-01 07:16:05 - End Time 2025-01-01 10:16:05 [2025-01-01 10:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150209', 'tblTempUsageDetail_20' ) start [2025-01-01 10:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150209', 'tblTempUsageDetail_20' ) end [2025-01-01 10:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150209', 'tblTempVendorCDR_20' ) start [2025-01-01 10:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150209', 'tblTempVendorCDR_20' ) end [2025-01-01 10:16:17] Production.INFO: ProcessCDR(1,14150209,1,1,2) [2025-01-01 10:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150209', 'tblTempUsageDetail_20' ) start [2025-01-01 10:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150209', 'tblTempUsageDetail_20' ) end [2025-01-01 10:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:16:20] Production.INFO: ==32713== Releasing lock... [2025-01-01 10:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:16:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:17:05 [end_date_ymd] => 2025-01-01 10:17:05 [RateCDR] => 1 ) [2025-01-01 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 07:17:05' and `end` < '2025-01-01 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 10:17:19] Production.INFO: count ==108 [2025-01-01 10:17:19] Production.ERROR: pbx CDR StartTime 2025-01-01 07:17:05 - End Time 2025-01-01 10:17:05 [2025-01-01 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150214', 'tblTempUsageDetail_20' ) start [2025-01-01 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150214', 'tblTempUsageDetail_20' ) end [2025-01-01 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150214', 'tblTempVendorCDR_20' ) start [2025-01-01 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150214', 'tblTempVendorCDR_20' ) end [2025-01-01 10:17:19] Production.INFO: ProcessCDR(1,14150214,1,1,2) [2025-01-01 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150214', 'tblTempUsageDetail_20' ) start [2025-01-01 10:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150214', 'tblTempUsageDetail_20' ) end [2025-01-01 10:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:17:22] Production.INFO: ==331== Releasing lock... [2025-01-01 10:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:17:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 10:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:18:04 [end_date_ymd] => 2025-01-01 10:18:04 [RateCDR] => 1 ) [2025-01-01 10: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-01-01 07:18:04' and `end` < '2025-01-01 10: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-01-01 10:18:18] Production.INFO: count ==114 [2025-01-01 10:18:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:18:04 - End Time 2025-01-01 10:18:04 [2025-01-01 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150219', 'tblTempUsageDetail_20' ) start [2025-01-01 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150219', 'tblTempUsageDetail_20' ) end [2025-01-01 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150219', 'tblTempVendorCDR_20' ) start [2025-01-01 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150219', 'tblTempVendorCDR_20' ) end [2025-01-01 10:18:18] Production.INFO: ProcessCDR(1,14150219,1,1,2) [2025-01-01 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150219', 'tblTempUsageDetail_20' ) start [2025-01-01 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150219', 'tblTempUsageDetail_20' ) end [2025-01-01 10:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:18:21] Production.INFO: ==419== Releasing lock... [2025-01-01 10:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 10:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:19:04 [end_date_ymd] => 2025-01-01 10:19:04 [RateCDR] => 1 ) [2025-01-01 10:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 07:19:04' and `end` < '2025-01-01 10:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 10:19:18] Production.INFO: count ==114 [2025-01-01 10:19:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:19:04 - End Time 2025-01-01 10:19:04 [2025-01-01 10:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150224', 'tblTempUsageDetail_20' ) start [2025-01-01 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150224', 'tblTempUsageDetail_20' ) end [2025-01-01 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150224', 'tblTempVendorCDR_20' ) start [2025-01-01 10:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150224', 'tblTempVendorCDR_20' ) end [2025-01-01 10:19:18] Production.INFO: ProcessCDR(1,14150224,1,1,2) [2025-01-01 10:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150224', 'tblTempUsageDetail_20' ) start [2025-01-01 10:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150224', 'tblTempUsageDetail_20' ) end [2025-01-01 10:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:19:21] Production.INFO: ==497== Releasing lock... [2025-01-01 10:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-01 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:20:06 [end_date_ymd] => 2025-01-01 10:20:06 [RateCDR] => 1 ) [2025-01-01 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 07:20:06' and `end` < '2025-01-01 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 10:20:20] Production.INFO: count ==120 [2025-01-01 10:20:20] Production.ERROR: pbx CDR StartTime 2025-01-01 07:20:06 - End Time 2025-01-01 10:20:06 [2025-01-01 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150230', 'tblTempUsageDetail_20' ) start [2025-01-01 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150230', 'tblTempUsageDetail_20' ) end [2025-01-01 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150230', 'tblTempVendorCDR_20' ) start [2025-01-01 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150230', 'tblTempVendorCDR_20' ) end [2025-01-01 10:20:20] Production.INFO: ProcessCDR(1,14150230,1,1,2) [2025-01-01 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150230', 'tblTempUsageDetail_20' ) start [2025-01-01 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150230', 'tblTempUsageDetail_20' ) end [2025-01-01 10:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:20:23] Production.INFO: ==588== Releasing lock... [2025-01-01 10:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:20:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:21:05 [end_date_ymd] => 2025-01-01 10:21:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:21:05' and `end` < '2025-01-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-01-01 10:21:19] Production.INFO: count ==120 [2025-01-01 10:21:19] Production.ERROR: pbx CDR StartTime 2025-01-01 07:21:05 - End Time 2025-01-01 10:21:05 [2025-01-01 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150235', 'tblTempUsageDetail_20' ) start [2025-01-01 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150235', 'tblTempUsageDetail_20' ) end [2025-01-01 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150235', 'tblTempVendorCDR_20' ) start [2025-01-01 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150235', 'tblTempVendorCDR_20' ) end [2025-01-01 10:21:19] Production.INFO: ProcessCDR(1,14150235,1,1,2) [2025-01-01 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150235', 'tblTempUsageDetail_20' ) start [2025-01-01 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150235', 'tblTempUsageDetail_20' ) end [2025-01-01 10:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:21:22] Production.INFO: ==752== Releasing lock... [2025-01-01 10:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:21:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:22:05 [end_date_ymd] => 2025-01-01 10:22:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:22:05' and `end` < '2025-01-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-01-01 10:22:18] Production.INFO: count ==120 [2025-01-01 10:22:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:22:05 - End Time 2025-01-01 10:22:05 [2025-01-01 10:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150240', 'tblTempUsageDetail_20' ) start [2025-01-01 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150240', 'tblTempUsageDetail_20' ) end [2025-01-01 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150240', 'tblTempVendorCDR_20' ) start [2025-01-01 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150240', 'tblTempVendorCDR_20' ) end [2025-01-01 10:22:18] Production.INFO: ProcessCDR(1,14150240,1,1,2) [2025-01-01 10:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150240', 'tblTempUsageDetail_20' ) start [2025-01-01 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150240', 'tblTempUsageDetail_20' ) end [2025-01-01 10:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:22:21] Production.INFO: ==833== Releasing lock... [2025-01-01 10:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:23:05 [end_date_ymd] => 2025-01-01 10:23:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:23:05' and `end` < '2025-01-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-01-01 10:23:17] Production.INFO: count ==120 [2025-01-01 10:23:17] Production.ERROR: pbx CDR StartTime 2025-01-01 07:23:05 - End Time 2025-01-01 10:23:05 [2025-01-01 10:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150245', 'tblTempUsageDetail_20' ) start [2025-01-01 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150245', 'tblTempUsageDetail_20' ) end [2025-01-01 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150245', 'tblTempVendorCDR_20' ) start [2025-01-01 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150245', 'tblTempVendorCDR_20' ) end [2025-01-01 10:23:17] Production.INFO: ProcessCDR(1,14150245,1,1,2) [2025-01-01 10:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150245', 'tblTempUsageDetail_20' ) start [2025-01-01 10:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150245', 'tblTempUsageDetail_20' ) end [2025-01-01 10:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:23:20] Production.INFO: ==916== Releasing lock... [2025-01-01 10:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:23:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:24:05 [end_date_ymd] => 2025-01-01 10:24:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:24:05' and `end` < '2025-01-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-01-01 10:24:20] Production.INFO: count ==122 [2025-01-01 10:24:20] Production.ERROR: pbx CDR StartTime 2025-01-01 07:24:05 - End Time 2025-01-01 10:24:05 [2025-01-01 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150250', 'tblTempUsageDetail_20' ) start [2025-01-01 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150250', 'tblTempUsageDetail_20' ) end [2025-01-01 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150250', 'tblTempVendorCDR_20' ) start [2025-01-01 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150250', 'tblTempVendorCDR_20' ) end [2025-01-01 10:24:20] Production.INFO: ProcessCDR(1,14150250,1,1,2) [2025-01-01 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150250', 'tblTempUsageDetail_20' ) start [2025-01-01 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150250', 'tblTempUsageDetail_20' ) end [2025-01-01 10:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:24:23] Production.INFO: ==997== Releasing lock... [2025-01-01 10:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:24:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:25:04 [end_date_ymd] => 2025-01-01 10:25:04 [RateCDR] => 1 ) [2025-01-01 10: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-01 07:25:04' and `end` < '2025-01-01 10: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-01-01 10:25:17] Production.INFO: count ==127 [2025-01-01 10:25:17] Production.ERROR: pbx CDR StartTime 2025-01-01 07:25:04 - End Time 2025-01-01 10:25:04 [2025-01-01 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150255', 'tblTempUsageDetail_20' ) start [2025-01-01 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150255', 'tblTempUsageDetail_20' ) end [2025-01-01 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150255', 'tblTempVendorCDR_20' ) start [2025-01-01 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150255', 'tblTempVendorCDR_20' ) end [2025-01-01 10:25:17] Production.INFO: ProcessCDR(1,14150255,1,1,2) [2025-01-01 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150255', 'tblTempUsageDetail_20' ) start [2025-01-01 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150255', 'tblTempUsageDetail_20' ) end [2025-01-01 10:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:25:21] Production.INFO: ==1086== Releasing lock... [2025-01-01 10:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:26:05 [end_date_ymd] => 2025-01-01 10:26:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:26:05' and `end` < '2025-01-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-01-01 10:26:17] Production.INFO: count ==127 [2025-01-01 10:26:17] Production.ERROR: pbx CDR StartTime 2025-01-01 07:26:05 - End Time 2025-01-01 10:26:05 [2025-01-01 10:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150260', 'tblTempUsageDetail_20' ) start [2025-01-01 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150260', 'tblTempUsageDetail_20' ) end [2025-01-01 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150260', 'tblTempVendorCDR_20' ) start [2025-01-01 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150260', 'tblTempVendorCDR_20' ) end [2025-01-01 10:26:17] Production.INFO: ProcessCDR(1,14150260,1,1,2) [2025-01-01 10:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150260', 'tblTempUsageDetail_20' ) start [2025-01-01 10:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150260', 'tblTempUsageDetail_20' ) end [2025-01-01 10:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:26:20] Production.INFO: ==1170== Releasing lock... [2025-01-01 10:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:26:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:27:04 [end_date_ymd] => 2025-01-01 10:27:04 [RateCDR] => 1 ) [2025-01-01 10: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-01 07:27:04' and `end` < '2025-01-01 10: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-01-01 10:27:18] Production.INFO: count ==128 [2025-01-01 10:27:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:27:04 - End Time 2025-01-01 10:27:04 [2025-01-01 10:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150265', 'tblTempUsageDetail_20' ) start [2025-01-01 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150265', 'tblTempUsageDetail_20' ) end [2025-01-01 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150265', 'tblTempVendorCDR_20' ) start [2025-01-01 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150265', 'tblTempVendorCDR_20' ) end [2025-01-01 10:27:18] Production.INFO: ProcessCDR(1,14150265,1,1,2) [2025-01-01 10:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150265', 'tblTempUsageDetail_20' ) start [2025-01-01 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150265', 'tblTempUsageDetail_20' ) end [2025-01-01 10:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:27:21] Production.INFO: ==1269== Releasing lock... [2025-01-01 10:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:28:05 [end_date_ymd] => 2025-01-01 10:28:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:28:05' and `end` < '2025-01-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-01-01 10:28:18] Production.INFO: count ==128 [2025-01-01 10:28:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:28:05 - End Time 2025-01-01 10:28:05 [2025-01-01 10:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150270', 'tblTempUsageDetail_20' ) start [2025-01-01 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150270', 'tblTempUsageDetail_20' ) end [2025-01-01 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150270', 'tblTempVendorCDR_20' ) start [2025-01-01 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150270', 'tblTempVendorCDR_20' ) end [2025-01-01 10:28:18] Production.INFO: ProcessCDR(1,14150270,1,1,2) [2025-01-01 10:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150270', 'tblTempUsageDetail_20' ) start [2025-01-01 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150270', 'tblTempUsageDetail_20' ) end [2025-01-01 10:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:28:21] Production.INFO: ==1354== Releasing lock... [2025-01-01 10:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:29:04 [end_date_ymd] => 2025-01-01 10:29:04 [RateCDR] => 1 ) [2025-01-01 10: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-01-01 07:29:04' and `end` < '2025-01-01 10: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-01-01 10:29:17] Production.INFO: count ==128 [2025-01-01 10:29:17] Production.ERROR: pbx CDR StartTime 2025-01-01 07:29:04 - End Time 2025-01-01 10:29:04 [2025-01-01 10:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150275', 'tblTempUsageDetail_20' ) start [2025-01-01 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150275', 'tblTempUsageDetail_20' ) end [2025-01-01 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150275', 'tblTempVendorCDR_20' ) start [2025-01-01 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150275', 'tblTempVendorCDR_20' ) end [2025-01-01 10:29:17] Production.INFO: ProcessCDR(1,14150275,1,1,2) [2025-01-01 10:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150275', 'tblTempUsageDetail_20' ) start [2025-01-01 10:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150275', 'tblTempUsageDetail_20' ) end [2025-01-01 10:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:29:20] Production.INFO: ==1438== Releasing lock... [2025-01-01 10:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:29:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:30:06 [end_date_ymd] => 2025-01-01 10:30:06 [RateCDR] => 1 ) [2025-01-01 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 07:30:06' and `end` < '2025-01-01 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 10:30:18] Production.INFO: count ==136 [2025-01-01 10:30:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:30:06 - End Time 2025-01-01 10:30:06 [2025-01-01 10:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150281', 'tblTempUsageDetail_20' ) start [2025-01-01 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150281', 'tblTempUsageDetail_20' ) end [2025-01-01 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150281', 'tblTempVendorCDR_20' ) start [2025-01-01 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150281', 'tblTempVendorCDR_20' ) end [2025-01-01 10:30:18] Production.INFO: ProcessCDR(1,14150281,1,1,2) [2025-01-01 10:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150281', 'tblTempUsageDetail_20' ) start [2025-01-01 10:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150281', 'tblTempUsageDetail_20' ) end [2025-01-01 10:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:30:21] Production.INFO: ==1559== Releasing lock... [2025-01-01 10:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:30:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:31:05 [end_date_ymd] => 2025-01-01 10:31:05 [RateCDR] => 1 ) [2025-01-01 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 07:31:05' and `end` < '2025-01-01 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 10:31:18] Production.INFO: count ==136 [2025-01-01 10:31:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:31:05 - End Time 2025-01-01 10:31:05 [2025-01-01 10:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150286', 'tblTempUsageDetail_20' ) start [2025-01-01 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150286', 'tblTempUsageDetail_20' ) end [2025-01-01 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150286', 'tblTempVendorCDR_20' ) start [2025-01-01 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150286', 'tblTempVendorCDR_20' ) end [2025-01-01 10:31:18] Production.INFO: ProcessCDR(1,14150286,1,1,2) [2025-01-01 10:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150286', 'tblTempUsageDetail_20' ) start [2025-01-01 10:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150286', 'tblTempUsageDetail_20' ) end [2025-01-01 10:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:31:21] Production.INFO: ==1648== Releasing lock... [2025-01-01 10:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:31:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:32:04 [end_date_ymd] => 2025-01-01 10:32:04 [RateCDR] => 1 ) [2025-01-01 10:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 07:32:04' and `end` < '2025-01-01 10:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 10:32:17] Production.INFO: count ==136 [2025-01-01 10:32:17] Production.ERROR: pbx CDR StartTime 2025-01-01 07:32:04 - End Time 2025-01-01 10:32:04 [2025-01-01 10:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150291', 'tblTempUsageDetail_20' ) start [2025-01-01 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150291', 'tblTempUsageDetail_20' ) end [2025-01-01 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150291', 'tblTempVendorCDR_20' ) start [2025-01-01 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150291', 'tblTempVendorCDR_20' ) end [2025-01-01 10:32:17] Production.INFO: ProcessCDR(1,14150291,1,1,2) [2025-01-01 10:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150291', 'tblTempUsageDetail_20' ) start [2025-01-01 10:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150291', 'tblTempUsageDetail_20' ) end [2025-01-01 10:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:32:21] Production.INFO: ==1735== Releasing lock... [2025-01-01 10:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:33:05 [end_date_ymd] => 2025-01-01 10:33:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:33:05' and `end` < '2025-01-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-01-01 10:33:19] Production.INFO: count ==137 [2025-01-01 10:33:19] Production.ERROR: pbx CDR StartTime 2025-01-01 07:33:05 - End Time 2025-01-01 10:33:05 [2025-01-01 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150296', 'tblTempUsageDetail_20' ) start [2025-01-01 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150296', 'tblTempUsageDetail_20' ) end [2025-01-01 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150296', 'tblTempVendorCDR_20' ) start [2025-01-01 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150296', 'tblTempVendorCDR_20' ) end [2025-01-01 10:33:19] Production.INFO: ProcessCDR(1,14150296,1,1,2) [2025-01-01 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150296', 'tblTempUsageDetail_20' ) start [2025-01-01 10:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150296', 'tblTempUsageDetail_20' ) end [2025-01-01 10:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:33:22] Production.INFO: ==1828== Releasing lock... [2025-01-01 10:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:33:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:34:05 [end_date_ymd] => 2025-01-01 10:34:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:34:05' and `end` < '2025-01-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-01-01 10:34:18] Production.INFO: count ==137 [2025-01-01 10:34:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:34:05 - End Time 2025-01-01 10:34:05 [2025-01-01 10:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150301', 'tblTempUsageDetail_20' ) start [2025-01-01 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150301', 'tblTempUsageDetail_20' ) end [2025-01-01 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150301', 'tblTempVendorCDR_20' ) start [2025-01-01 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150301', 'tblTempVendorCDR_20' ) end [2025-01-01 10:34:18] Production.INFO: ProcessCDR(1,14150301,1,1,2) [2025-01-01 10:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150301', 'tblTempUsageDetail_20' ) start [2025-01-01 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150301', 'tblTempUsageDetail_20' ) end [2025-01-01 10:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:34:21] Production.INFO: ==1915== Releasing lock... [2025-01-01 10:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:35:05 [end_date_ymd] => 2025-01-01 10:35:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:35:05' and `end` < '2025-01-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-01-01 10:35:19] Production.INFO: count ==137 [2025-01-01 10:35:19] Production.ERROR: pbx CDR StartTime 2025-01-01 07:35:05 - End Time 2025-01-01 10:35:05 [2025-01-01 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150306', 'tblTempUsageDetail_20' ) start [2025-01-01 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150306', 'tblTempUsageDetail_20' ) end [2025-01-01 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150306', 'tblTempVendorCDR_20' ) start [2025-01-01 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150306', 'tblTempVendorCDR_20' ) end [2025-01-01 10:35:19] Production.INFO: ProcessCDR(1,14150306,1,1,2) [2025-01-01 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150306', 'tblTempUsageDetail_20' ) start [2025-01-01 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150306', 'tblTempUsageDetail_20' ) end [2025-01-01 10:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:35:22] Production.INFO: ==1994== Releasing lock... [2025-01-01 10:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:35:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:36:04 [end_date_ymd] => 2025-01-01 10:36:04 [RateCDR] => 1 ) [2025-01-01 10:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 07:36:04' and `end` < '2025-01-01 10:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 10:36:17] Production.INFO: count ==137 [2025-01-01 10:36:17] Production.ERROR: pbx CDR StartTime 2025-01-01 07:36:04 - End Time 2025-01-01 10:36:04 [2025-01-01 10:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150311', 'tblTempUsageDetail_20' ) start [2025-01-01 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150311', 'tblTempUsageDetail_20' ) end [2025-01-01 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150311', 'tblTempVendorCDR_20' ) start [2025-01-01 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150311', 'tblTempVendorCDR_20' ) end [2025-01-01 10:36:17] Production.INFO: ProcessCDR(1,14150311,1,1,2) [2025-01-01 10:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150311', 'tblTempUsageDetail_20' ) start [2025-01-01 10:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150311', 'tblTempUsageDetail_20' ) end [2025-01-01 10:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:36:20] Production.INFO: ==2083== Releasing lock... [2025-01-01 10:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:36:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:37:05 [end_date_ymd] => 2025-01-01 10:37:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:37:05' and `end` < '2025-01-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-01-01 10:37:17] Production.INFO: count ==137 [2025-01-01 10:37:17] Production.ERROR: pbx CDR StartTime 2025-01-01 07:37:05 - End Time 2025-01-01 10:37:05 [2025-01-01 10:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150316', 'tblTempUsageDetail_20' ) start [2025-01-01 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150316', 'tblTempUsageDetail_20' ) end [2025-01-01 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150316', 'tblTempVendorCDR_20' ) start [2025-01-01 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150316', 'tblTempVendorCDR_20' ) end [2025-01-01 10:37:17] Production.INFO: ProcessCDR(1,14150316,1,1,2) [2025-01-01 10:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150316', 'tblTempUsageDetail_20' ) start [2025-01-01 10:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150316', 'tblTempUsageDetail_20' ) end [2025-01-01 10:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:37:20] Production.INFO: ==2216== Releasing lock... [2025-01-01 10:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:37:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:38:05 [end_date_ymd] => 2025-01-01 10:38:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:38:05' and `end` < '2025-01-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-01-01 10:38:17] Production.INFO: count ==137 [2025-01-01 10:38:17] Production.ERROR: pbx CDR StartTime 2025-01-01 07:38:05 - End Time 2025-01-01 10:38:05 [2025-01-01 10:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150321', 'tblTempUsageDetail_20' ) start [2025-01-01 10:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150321', 'tblTempUsageDetail_20' ) end [2025-01-01 10:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150321', 'tblTempVendorCDR_20' ) start [2025-01-01 10:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150321', 'tblTempVendorCDR_20' ) end [2025-01-01 10:38:17] Production.INFO: ProcessCDR(1,14150321,1,1,2) [2025-01-01 10:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150321', 'tblTempUsageDetail_20' ) start [2025-01-01 10:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150321', 'tblTempUsageDetail_20' ) end [2025-01-01 10:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:38:20] Production.INFO: ==2308== Releasing lock... [2025-01-01 10:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:38:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:39:05 [end_date_ymd] => 2025-01-01 10:39:05 [RateCDR] => 1 ) [2025-01-01 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 07:39:05' and `end` < '2025-01-01 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 10:39:20] Production.INFO: count ==138 [2025-01-01 10:39:20] Production.ERROR: pbx CDR StartTime 2025-01-01 07:39:05 - End Time 2025-01-01 10:39:05 [2025-01-01 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150326', 'tblTempUsageDetail_20' ) start [2025-01-01 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150326', 'tblTempUsageDetail_20' ) end [2025-01-01 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150326', 'tblTempVendorCDR_20' ) start [2025-01-01 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150326', 'tblTempVendorCDR_20' ) end [2025-01-01 10:39:20] Production.INFO: ProcessCDR(1,14150326,1,1,2) [2025-01-01 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150326', 'tblTempUsageDetail_20' ) start [2025-01-01 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150326', 'tblTempUsageDetail_20' ) end [2025-01-01 10:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:39:24] Production.INFO: ==2393== Releasing lock... [2025-01-01 10:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:39:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:40:06 [end_date_ymd] => 2025-01-01 10:40:06 [RateCDR] => 1 ) [2025-01-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-01-01 07:40:06' and `end` < '2025-01-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-01-01 10:40:18] Production.INFO: count ==146 [2025-01-01 10:40:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:40:06 - End Time 2025-01-01 10:40:06 [2025-01-01 10:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150332', 'tblTempUsageDetail_20' ) start [2025-01-01 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150332', 'tblTempUsageDetail_20' ) end [2025-01-01 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150332', 'tblTempVendorCDR_20' ) start [2025-01-01 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150332', 'tblTempVendorCDR_20' ) end [2025-01-01 10:40:18] Production.INFO: ProcessCDR(1,14150332,1,1,2) [2025-01-01 10:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150332', 'tblTempUsageDetail_20' ) start [2025-01-01 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150332', 'tblTempUsageDetail_20' ) end [2025-01-01 10:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:40:22] Production.INFO: ==2484== Releasing lock... [2025-01-01 10:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-01 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:41:05 [end_date_ymd] => 2025-01-01 10:41:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:41:05' and `end` < '2025-01-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-01-01 10:41:17] Production.INFO: count ==152 [2025-01-01 10:41:17] Production.ERROR: pbx CDR StartTime 2025-01-01 07:41:05 - End Time 2025-01-01 10:41:05 [2025-01-01 10:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150337', 'tblTempUsageDetail_20' ) start [2025-01-01 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150337', 'tblTempUsageDetail_20' ) end [2025-01-01 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150337', 'tblTempVendorCDR_20' ) start [2025-01-01 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150337', 'tblTempVendorCDR_20' ) end [2025-01-01 10:41:18] Production.INFO: ProcessCDR(1,14150337,1,1,2) [2025-01-01 10:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150337', 'tblTempUsageDetail_20' ) start [2025-01-01 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150337', 'tblTempUsageDetail_20' ) end [2025-01-01 10:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:41:21] Production.INFO: ==2569== Releasing lock... [2025-01-01 10:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:41:21] Production.INFO: 29 MB #Memory Used# [2025-01-01 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:42:05 [end_date_ymd] => 2025-01-01 10:42:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:42:05' and `end` < '2025-01-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-01-01 10:42:19] Production.INFO: count ==152 [2025-01-01 10:42:19] Production.ERROR: pbx CDR StartTime 2025-01-01 07:42:05 - End Time 2025-01-01 10:42:05 [2025-01-01 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150342', 'tblTempUsageDetail_20' ) start [2025-01-01 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150342', 'tblTempUsageDetail_20' ) end [2025-01-01 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150342', 'tblTempVendorCDR_20' ) start [2025-01-01 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150342', 'tblTempVendorCDR_20' ) end [2025-01-01 10:42:19] Production.INFO: ProcessCDR(1,14150342,1,1,2) [2025-01-01 10:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150342', 'tblTempUsageDetail_20' ) start [2025-01-01 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150342', 'tblTempUsageDetail_20' ) end [2025-01-01 10:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:42:22] Production.INFO: ==2673== Releasing lock... [2025-01-01 10:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:42:22] Production.INFO: 29 MB #Memory Used# [2025-01-01 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:43:05 [end_date_ymd] => 2025-01-01 10:43:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:43:05' and `end` < '2025-01-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-01-01 10:43:17] Production.INFO: count ==153 [2025-01-01 10:43:17] Production.ERROR: pbx CDR StartTime 2025-01-01 07:43:05 - End Time 2025-01-01 10:43:05 [2025-01-01 10:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150347', 'tblTempUsageDetail_20' ) start [2025-01-01 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150347', 'tblTempUsageDetail_20' ) end [2025-01-01 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150347', 'tblTempVendorCDR_20' ) start [2025-01-01 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150347', 'tblTempVendorCDR_20' ) end [2025-01-01 10:43:17] Production.INFO: ProcessCDR(1,14150347,1,1,2) [2025-01-01 10:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150347', 'tblTempUsageDetail_20' ) start [2025-01-01 10:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150347', 'tblTempUsageDetail_20' ) end [2025-01-01 10:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:43:21] Production.INFO: ==2759== Releasing lock... [2025-01-01 10:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:43:21] Production.INFO: 29 MB #Memory Used# [2025-01-01 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:44:05 [end_date_ymd] => 2025-01-01 10:44:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:44:05' and `end` < '2025-01-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-01-01 10:44:19] Production.INFO: count ==153 [2025-01-01 10:44:19] Production.ERROR: pbx CDR StartTime 2025-01-01 07:44:05 - End Time 2025-01-01 10:44:05 [2025-01-01 10:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150352', 'tblTempUsageDetail_20' ) start [2025-01-01 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150352', 'tblTempUsageDetail_20' ) end [2025-01-01 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150352', 'tblTempVendorCDR_20' ) start [2025-01-01 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150352', 'tblTempVendorCDR_20' ) end [2025-01-01 10:44:19] Production.INFO: ProcessCDR(1,14150352,1,1,2) [2025-01-01 10:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150352', 'tblTempUsageDetail_20' ) start [2025-01-01 10:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150352', 'tblTempUsageDetail_20' ) end [2025-01-01 10:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:44:22] Production.INFO: ==2847== Releasing lock... [2025-01-01 10:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:44:22] Production.INFO: 29 MB #Memory Used# [2025-01-01 10:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:45:04 [end_date_ymd] => 2025-01-01 10:45:04 [RateCDR] => 1 ) [2025-01-01 10:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 07:45:04' and `end` < '2025-01-01 10:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 10:45:18] Production.INFO: count ==153 [2025-01-01 10:45:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:45:04 - End Time 2025-01-01 10:45:04 [2025-01-01 10:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150357', 'tblTempUsageDetail_20' ) start [2025-01-01 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150357', 'tblTempUsageDetail_20' ) end [2025-01-01 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150357', 'tblTempVendorCDR_20' ) start [2025-01-01 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150357', 'tblTempVendorCDR_20' ) end [2025-01-01 10:45:18] Production.INFO: ProcessCDR(1,14150357,1,1,2) [2025-01-01 10:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150357', 'tblTempUsageDetail_20' ) start [2025-01-01 10:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150357', 'tblTempUsageDetail_20' ) end [2025-01-01 10:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:45:21] Production.INFO: ==2921== Releasing lock... [2025-01-01 10:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:45:21] Production.INFO: 29 MB #Memory Used# [2025-01-01 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:46:05 [end_date_ymd] => 2025-01-01 10:46:05 [RateCDR] => 1 ) [2025-01-01 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 07:46:05' and `end` < '2025-01-01 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 10:46:18] Production.INFO: count ==153 [2025-01-01 10:46:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:46:05 - End Time 2025-01-01 10:46:05 [2025-01-01 10:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150362', 'tblTempUsageDetail_20' ) start [2025-01-01 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150362', 'tblTempUsageDetail_20' ) end [2025-01-01 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150362', 'tblTempVendorCDR_20' ) start [2025-01-01 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150362', 'tblTempVendorCDR_20' ) end [2025-01-01 10:46:18] Production.INFO: ProcessCDR(1,14150362,1,1,2) [2025-01-01 10:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150362', 'tblTempUsageDetail_20' ) start [2025-01-01 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150362', 'tblTempUsageDetail_20' ) end [2025-01-01 10:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:46:21] Production.INFO: ==3003== Releasing lock... [2025-01-01 10:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:46:21] Production.INFO: 29 MB #Memory Used# [2025-01-01 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:47:05 [end_date_ymd] => 2025-01-01 10:47:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:47:05' and `end` < '2025-01-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-01-01 10:47:18] Production.INFO: count ==153 [2025-01-01 10:47:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:47:05 - End Time 2025-01-01 10:47:05 [2025-01-01 10:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150367', 'tblTempUsageDetail_20' ) start [2025-01-01 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150367', 'tblTempUsageDetail_20' ) end [2025-01-01 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150367', 'tblTempVendorCDR_20' ) start [2025-01-01 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150367', 'tblTempVendorCDR_20' ) end [2025-01-01 10:47:18] Production.INFO: ProcessCDR(1,14150367,1,1,2) [2025-01-01 10:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150367', 'tblTempUsageDetail_20' ) start [2025-01-01 10:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150367', 'tblTempUsageDetail_20' ) end [2025-01-01 10:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:47:21] Production.INFO: ==3086== Releasing lock... [2025-01-01 10:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:47:21] Production.INFO: 29 MB #Memory Used# [2025-01-01 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:48:05 [end_date_ymd] => 2025-01-01 10:48:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:48:05' and `end` < '2025-01-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-01-01 10:48:19] Production.INFO: count ==153 [2025-01-01 10:48:19] Production.ERROR: pbx CDR StartTime 2025-01-01 07:48:05 - End Time 2025-01-01 10:48:05 [2025-01-01 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150372', 'tblTempUsageDetail_20' ) start [2025-01-01 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150372', 'tblTempUsageDetail_20' ) end [2025-01-01 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150372', 'tblTempVendorCDR_20' ) start [2025-01-01 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150372', 'tblTempVendorCDR_20' ) end [2025-01-01 10:48:19] Production.INFO: ProcessCDR(1,14150372,1,1,2) [2025-01-01 10:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150372', 'tblTempUsageDetail_20' ) start [2025-01-01 10:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150372', 'tblTempUsageDetail_20' ) end [2025-01-01 10:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:48:22] Production.INFO: ==3165== Releasing lock... [2025-01-01 10:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:48:22] Production.INFO: 29 MB #Memory Used# [2025-01-01 10:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:49:04 [end_date_ymd] => 2025-01-01 10:49:04 [RateCDR] => 1 ) [2025-01-01 10: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-01-01 07:49:04' and `end` < '2025-01-01 10: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-01-01 10:49:18] Production.INFO: count ==153 [2025-01-01 10:49:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:49:04 - End Time 2025-01-01 10:49:04 [2025-01-01 10:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150377', 'tblTempUsageDetail_20' ) start [2025-01-01 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150377', 'tblTempUsageDetail_20' ) end [2025-01-01 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150377', 'tblTempVendorCDR_20' ) start [2025-01-01 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150377', 'tblTempVendorCDR_20' ) end [2025-01-01 10:49:18] Production.INFO: ProcessCDR(1,14150377,1,1,2) [2025-01-01 10:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150377', 'tblTempUsageDetail_20' ) start [2025-01-01 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150377', 'tblTempUsageDetail_20' ) end [2025-01-01 10:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:49:21] Production.INFO: ==3245== Releasing lock... [2025-01-01 10:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:49:21] Production.INFO: 29 MB #Memory Used# [2025-01-01 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:50:05 [end_date_ymd] => 2025-01-01 10:50:05 [RateCDR] => 1 ) [2025-01-01 10: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-01-01 07:50:05' and `end` < '2025-01-01 10: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-01-01 10:50:18] Production.INFO: count ==162 [2025-01-01 10:50:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:50:05 - End Time 2025-01-01 10:50:05 [2025-01-01 10:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150383', 'tblTempUsageDetail_20' ) start [2025-01-01 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150383', 'tblTempUsageDetail_20' ) end [2025-01-01 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150383', 'tblTempVendorCDR_20' ) start [2025-01-01 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150383', 'tblTempVendorCDR_20' ) end [2025-01-01 10:50:18] Production.INFO: ProcessCDR(1,14150383,1,1,2) [2025-01-01 10:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150383', 'tblTempUsageDetail_20' ) start [2025-01-01 10:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150383', 'tblTempUsageDetail_20' ) end [2025-01-01 10:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:50:23] Production.INFO: ==3325== Releasing lock... [2025-01-01 10:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:50:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-01 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:51:05 [end_date_ymd] => 2025-01-01 10:51:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:51:05' and `end` < '2025-01-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-01-01 10:51:19] Production.INFO: count ==177 [2025-01-01 10:51:19] Production.ERROR: pbx CDR StartTime 2025-01-01 07:51:05 - End Time 2025-01-01 10:51:05 [2025-01-01 10:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150388', 'tblTempUsageDetail_20' ) start [2025-01-01 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150388', 'tblTempUsageDetail_20' ) end [2025-01-01 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150388', 'tblTempVendorCDR_20' ) start [2025-01-01 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150388', 'tblTempVendorCDR_20' ) end [2025-01-01 10:51:19] Production.INFO: ProcessCDR(1,14150388,1,1,2) [2025-01-01 10:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150388', 'tblTempUsageDetail_20' ) start [2025-01-01 10:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150388', 'tblTempUsageDetail_20' ) end [2025-01-01 10:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:51:22] Production.INFO: ==3406== Releasing lock... [2025-01-01 10:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:51:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-01 10:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:52:04 [end_date_ymd] => 2025-01-01 10:52:04 [RateCDR] => 1 ) [2025-01-01 10: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-01-01 07:52:04' and `end` < '2025-01-01 10: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-01-01 10:52:17] Production.INFO: count ==181 [2025-01-01 10:52:17] Production.ERROR: pbx CDR StartTime 2025-01-01 07:52:04 - End Time 2025-01-01 10:52:04 [2025-01-01 10:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150393', 'tblTempUsageDetail_20' ) start [2025-01-01 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150393', 'tblTempUsageDetail_20' ) end [2025-01-01 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150393', 'tblTempVendorCDR_20' ) start [2025-01-01 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150393', 'tblTempVendorCDR_20' ) end [2025-01-01 10:52:17] Production.INFO: ProcessCDR(1,14150393,1,1,2) [2025-01-01 10:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150393', 'tblTempUsageDetail_20' ) start [2025-01-01 10:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150393', 'tblTempUsageDetail_20' ) end [2025-01-01 10:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:52:21] Production.INFO: ==3482== Releasing lock... [2025-01-01 10:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:53:05 [end_date_ymd] => 2025-01-01 10:53:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:53:05' and `end` < '2025-01-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-01-01 10:53:17] Production.INFO: count ==184 [2025-01-01 10:53:17] Production.ERROR: pbx CDR StartTime 2025-01-01 07:53:05 - End Time 2025-01-01 10:53:05 [2025-01-01 10:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150398', 'tblTempUsageDetail_20' ) start [2025-01-01 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150398', 'tblTempUsageDetail_20' ) end [2025-01-01 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150398', 'tblTempVendorCDR_20' ) start [2025-01-01 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150398', 'tblTempVendorCDR_20' ) end [2025-01-01 10:53:17] Production.INFO: ProcessCDR(1,14150398,1,1,2) [2025-01-01 10:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150398', 'tblTempUsageDetail_20' ) start [2025-01-01 10:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150398', 'tblTempUsageDetail_20' ) end [2025-01-01 10:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:53:20] Production.INFO: ==3598== Releasing lock... [2025-01-01 10:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:53:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:54:05 [end_date_ymd] => 2025-01-01 10:54:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:54:05' and `end` < '2025-01-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-01-01 10:54:17] Production.INFO: count ==188 [2025-01-01 10:54:17] Production.ERROR: pbx CDR StartTime 2025-01-01 07:54:05 - End Time 2025-01-01 10:54:05 [2025-01-01 10:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150403', 'tblTempUsageDetail_20' ) start [2025-01-01 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150403', 'tblTempUsageDetail_20' ) end [2025-01-01 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150403', 'tblTempVendorCDR_20' ) start [2025-01-01 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150403', 'tblTempVendorCDR_20' ) end [2025-01-01 10:54:17] Production.INFO: ProcessCDR(1,14150403,1,1,2) [2025-01-01 10:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150403', 'tblTempUsageDetail_20' ) start [2025-01-01 10:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150403', 'tblTempUsageDetail_20' ) end [2025-01-01 10:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:54:21] Production.INFO: ==3672== Releasing lock... [2025-01-01 10:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-01 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:55:05 [end_date_ymd] => 2025-01-01 10:55:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:55:05' and `end` < '2025-01-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-01-01 10:55:18] Production.INFO: count ==193 [2025-01-01 10:55:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:55:05 - End Time 2025-01-01 10:55:05 [2025-01-01 10:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150408', 'tblTempUsageDetail_20' ) start [2025-01-01 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150408', 'tblTempUsageDetail_20' ) end [2025-01-01 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150408', 'tblTempVendorCDR_20' ) start [2025-01-01 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150408', 'tblTempVendorCDR_20' ) end [2025-01-01 10:55:18] Production.INFO: ProcessCDR(1,14150408,1,1,2) [2025-01-01 10:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150408', 'tblTempUsageDetail_20' ) start [2025-01-01 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150408', 'tblTempUsageDetail_20' ) end [2025-01-01 10:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:55:21] Production.INFO: ==3747== Releasing lock... [2025-01-01 10:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-01 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:56:05 [end_date_ymd] => 2025-01-01 10:56:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:56:05' and `end` < '2025-01-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-01-01 10:56:17] Production.INFO: count ==196 [2025-01-01 10:56:18] Production.ERROR: pbx CDR StartTime 2025-01-01 07:56:05 - End Time 2025-01-01 10:56:05 [2025-01-01 10:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150413', 'tblTempUsageDetail_20' ) start [2025-01-01 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150413', 'tblTempUsageDetail_20' ) end [2025-01-01 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150413', 'tblTempVendorCDR_20' ) start [2025-01-01 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150413', 'tblTempVendorCDR_20' ) end [2025-01-01 10:56:18] Production.INFO: ProcessCDR(1,14150413,1,1,2) [2025-01-01 10:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150413', 'tblTempUsageDetail_20' ) start [2025-01-01 10:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150413', 'tblTempUsageDetail_20' ) end [2025-01-01 10:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:56:21] Production.INFO: ==3819== Releasing lock... [2025-01-01 10:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-01 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:57:05 [end_date_ymd] => 2025-01-01 10:57:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:57:05' and `end` < '2025-01-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-01-01 10:57:19] Production.INFO: count ==221 [2025-01-01 10:57:19] Production.ERROR: pbx CDR StartTime 2025-01-01 07:57:05 - End Time 2025-01-01 10:57:05 [2025-01-01 10:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150418', 'tblTempUsageDetail_20' ) start [2025-01-01 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150418', 'tblTempUsageDetail_20' ) end [2025-01-01 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150418', 'tblTempVendorCDR_20' ) start [2025-01-01 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150418', 'tblTempVendorCDR_20' ) end [2025-01-01 10:57:19] Production.INFO: ProcessCDR(1,14150418,1,1,2) [2025-01-01 10:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150418', 'tblTempUsageDetail_20' ) start [2025-01-01 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150418', 'tblTempUsageDetail_20' ) end [2025-01-01 10:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:57:22] Production.INFO: ==3894== Releasing lock... [2025-01-01 10:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:57:22] Production.INFO: 30 MB #Memory Used# [2025-01-01 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:58:05 [end_date_ymd] => 2025-01-01 10:58:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:58:05' and `end` < '2025-01-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-01-01 10:58:19] Production.INFO: count ==226 [2025-01-01 10:58:19] Production.ERROR: pbx CDR StartTime 2025-01-01 07:58:05 - End Time 2025-01-01 10:58:05 [2025-01-01 10:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150423', 'tblTempUsageDetail_20' ) start [2025-01-01 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150423', 'tblTempUsageDetail_20' ) end [2025-01-01 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150423', 'tblTempVendorCDR_20' ) start [2025-01-01 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150423', 'tblTempVendorCDR_20' ) end [2025-01-01 10:58:19] Production.INFO: ProcessCDR(1,14150423,1,1,2) [2025-01-01 10:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150423', 'tblTempUsageDetail_20' ) start [2025-01-01 10:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150423', 'tblTempUsageDetail_20' ) end [2025-01-01 10:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:58:24] Production.INFO: ==3977== Releasing lock... [2025-01-01 10:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:58:24] Production.INFO: 30 MB #Memory Used# [2025-01-01 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 07:59:05 [end_date_ymd] => 2025-01-01 10:59:05 [RateCDR] => 1 ) [2025-01-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-01-01 07:59:05' and `end` < '2025-01-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-01-01 10:59:17] Production.INFO: count ==229 [2025-01-01 10:59:17] Production.ERROR: pbx CDR StartTime 2025-01-01 07:59:05 - End Time 2025-01-01 10:59:05 [2025-01-01 10:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150428', 'tblTempUsageDetail_20' ) start [2025-01-01 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150428', 'tblTempUsageDetail_20' ) end [2025-01-01 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150428', 'tblTempVendorCDR_20' ) start [2025-01-01 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150428', 'tblTempVendorCDR_20' ) end [2025-01-01 10:59:17] Production.INFO: ProcessCDR(1,14150428,1,1,2) [2025-01-01 10:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 10:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 10:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150428', 'tblTempUsageDetail_20' ) start [2025-01-01 10:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150428', 'tblTempUsageDetail_20' ) end [2025-01-01 10:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 10:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 10:59:20] Production.INFO: ==4052== Releasing lock... [2025-01-01 10:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 10:59:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-01 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:00:06 [end_date_ymd] => 2025-01-01 11:00:06 [RateCDR] => 1 ) [2025-01-01 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 08:00:06' and `end` < '2025-01-01 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 11:00:18] Production.INFO: count ==241 [2025-01-01 11:00:19] Production.ERROR: pbx CDR StartTime 2025-01-01 08:00:06 - End Time 2025-01-01 11:00:06 [2025-01-01 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150434', 'tblTempUsageDetail_20' ) start [2025-01-01 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150434', 'tblTempUsageDetail_20' ) end [2025-01-01 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150434', 'tblTempVendorCDR_20' ) start [2025-01-01 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150434', 'tblTempVendorCDR_20' ) end [2025-01-01 11:00:19] Production.INFO: ProcessCDR(1,14150434,1,1,2) [2025-01-01 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150434', 'tblTempUsageDetail_20' ) start [2025-01-01 11:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150434', 'tblTempUsageDetail_20' ) end [2025-01-01 11:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:00:22] Production.INFO: ==4129== Releasing lock... [2025-01-01 11:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:00:22] Production.INFO: 30 MB #Memory Used# [2025-01-01 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:01:05 [end_date_ymd] => 2025-01-01 11:01:05 [RateCDR] => 1 ) [2025-01-01 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 08:01:05' and `end` < '2025-01-01 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 11:01:20] Production.INFO: count ==256 [2025-01-01 11:01:20] Production.ERROR: pbx CDR StartTime 2025-01-01 08:01:05 - End Time 2025-01-01 11:01:05 [2025-01-01 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150439', 'tblTempUsageDetail_20' ) start [2025-01-01 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150439', 'tblTempUsageDetail_20' ) end [2025-01-01 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150439', 'tblTempVendorCDR_20' ) start [2025-01-01 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150439', 'tblTempVendorCDR_20' ) end [2025-01-01 11:01:20] Production.INFO: ProcessCDR(1,14150439,1,1,2) [2025-01-01 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150439', 'tblTempUsageDetail_20' ) start [2025-01-01 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150439', 'tblTempUsageDetail_20' ) end [2025-01-01 11:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:01:23] Production.INFO: ==4214== Releasing lock... [2025-01-01 11:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:01:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-01 11:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:02:04 [end_date_ymd] => 2025-01-01 11:02:04 [RateCDR] => 1 ) [2025-01-01 11:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 08:02:04' and `end` < '2025-01-01 11:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 11:02:18] Production.INFO: count ==259 [2025-01-01 11:02:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:02:04 - End Time 2025-01-01 11:02:04 [2025-01-01 11:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150444', 'tblTempUsageDetail_20' ) start [2025-01-01 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150444', 'tblTempUsageDetail_20' ) end [2025-01-01 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150444', 'tblTempVendorCDR_20' ) start [2025-01-01 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150444', 'tblTempVendorCDR_20' ) end [2025-01-01 11:02:18] Production.INFO: ProcessCDR(1,14150444,1,1,2) [2025-01-01 11:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150444', 'tblTempUsageDetail_20' ) start [2025-01-01 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150444', 'tblTempUsageDetail_20' ) end [2025-01-01 11:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:02:22] Production.INFO: ==4361== Releasing lock... [2025-01-01 11:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:02:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-01 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:03:05 [end_date_ymd] => 2025-01-01 11:03:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:03:05' and `end` < '2025-01-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-01-01 11:03:17] Production.INFO: count ==260 [2025-01-01 11:03:17] Production.ERROR: pbx CDR StartTime 2025-01-01 08:03:05 - End Time 2025-01-01 11:03:05 [2025-01-01 11:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150449', 'tblTempUsageDetail_20' ) start [2025-01-01 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150449', 'tblTempUsageDetail_20' ) end [2025-01-01 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150449', 'tblTempVendorCDR_20' ) start [2025-01-01 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150449', 'tblTempVendorCDR_20' ) end [2025-01-01 11:03:17] Production.INFO: ProcessCDR(1,14150449,1,1,2) [2025-01-01 11:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150449', 'tblTempUsageDetail_20' ) start [2025-01-01 11:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150449', 'tblTempUsageDetail_20' ) end [2025-01-01 11:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:03:20] Production.INFO: ==4435== Releasing lock... [2025-01-01 11:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:03:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-01 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:04:05 [end_date_ymd] => 2025-01-01 11:04:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:04:05' and `end` < '2025-01-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-01-01 11:04:18] Production.INFO: count ==285 [2025-01-01 11:04:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:04:05 - End Time 2025-01-01 11:04:05 [2025-01-01 11:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150454', 'tblTempUsageDetail_20' ) start [2025-01-01 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150454', 'tblTempUsageDetail_20' ) end [2025-01-01 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150454', 'tblTempVendorCDR_20' ) start [2025-01-01 11:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150454', 'tblTempVendorCDR_20' ) end [2025-01-01 11:04:18] Production.INFO: ProcessCDR(1,14150454,1,1,2) [2025-01-01 11:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150454', 'tblTempUsageDetail_20' ) start [2025-01-01 11:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150454', 'tblTempUsageDetail_20' ) end [2025-01-01 11:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:04:21] Production.INFO: ==4506== Releasing lock... [2025-01-01 11:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:04:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-01 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:05:05 [end_date_ymd] => 2025-01-01 11:05:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:05:05' and `end` < '2025-01-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-01-01 11:05:17] Production.INFO: count ==286 [2025-01-01 11:05:17] Production.ERROR: pbx CDR StartTime 2025-01-01 08:05:05 - End Time 2025-01-01 11:05:05 [2025-01-01 11:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150459', 'tblTempUsageDetail_20' ) start [2025-01-01 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150459', 'tblTempUsageDetail_20' ) end [2025-01-01 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150459', 'tblTempVendorCDR_20' ) start [2025-01-01 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150459', 'tblTempVendorCDR_20' ) end [2025-01-01 11:05:17] Production.INFO: ProcessCDR(1,14150459,1,1,2) [2025-01-01 11:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150459', 'tblTempUsageDetail_20' ) start [2025-01-01 11:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150459', 'tblTempUsageDetail_20' ) end [2025-01-01 11:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:05:20] Production.INFO: ==4667== Releasing lock... [2025-01-01 11:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:05:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-01 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:06:05 [end_date_ymd] => 2025-01-01 11:06:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:06:05' and `end` < '2025-01-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-01-01 11:06:18] Production.INFO: count ==286 [2025-01-01 11:06:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:06:05 - End Time 2025-01-01 11:06:05 [2025-01-01 11:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150464', 'tblTempUsageDetail_20' ) start [2025-01-01 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150464', 'tblTempUsageDetail_20' ) end [2025-01-01 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150464', 'tblTempVendorCDR_20' ) start [2025-01-01 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150464', 'tblTempVendorCDR_20' ) end [2025-01-01 11:06:18] Production.INFO: ProcessCDR(1,14150464,1,1,2) [2025-01-01 11:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150464', 'tblTempUsageDetail_20' ) start [2025-01-01 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150464', 'tblTempUsageDetail_20' ) end [2025-01-01 11:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:06:21] Production.INFO: ==4741== Releasing lock... [2025-01-01 11:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:06:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-01 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:07:05 [end_date_ymd] => 2025-01-01 11:07:05 [RateCDR] => 1 ) [2025-01-01 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 08:07:05' and `end` < '2025-01-01 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 11:07:20] Production.INFO: count ==286 [2025-01-01 11:07:20] Production.ERROR: pbx CDR StartTime 2025-01-01 08:07:05 - End Time 2025-01-01 11:07:05 [2025-01-01 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150469', 'tblTempUsageDetail_20' ) start [2025-01-01 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150469', 'tblTempUsageDetail_20' ) end [2025-01-01 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150469', 'tblTempVendorCDR_20' ) start [2025-01-01 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150469', 'tblTempVendorCDR_20' ) end [2025-01-01 11:07:20] Production.INFO: ProcessCDR(1,14150469,1,1,2) [2025-01-01 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150469', 'tblTempUsageDetail_20' ) start [2025-01-01 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150469', 'tblTempUsageDetail_20' ) end [2025-01-01 11:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:07:24] Production.INFO: ==4811== Releasing lock... [2025-01-01 11:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:07:24] Production.INFO: 30.25 MB #Memory Used# [2025-01-01 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:08:05 [end_date_ymd] => 2025-01-01 11:08:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:08:05' and `end` < '2025-01-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-01-01 11:08:20] Production.INFO: count ==286 [2025-01-01 11:08:20] Production.ERROR: pbx CDR StartTime 2025-01-01 08:08:05 - End Time 2025-01-01 11:08:05 [2025-01-01 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150474', 'tblTempUsageDetail_20' ) start [2025-01-01 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150474', 'tblTempUsageDetail_20' ) end [2025-01-01 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150474', 'tblTempVendorCDR_20' ) start [2025-01-01 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150474', 'tblTempVendorCDR_20' ) end [2025-01-01 11:08:20] Production.INFO: ProcessCDR(1,14150474,1,1,2) [2025-01-01 11:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150474', 'tblTempUsageDetail_20' ) start [2025-01-01 11:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150474', 'tblTempUsageDetail_20' ) end [2025-01-01 11:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:08:23] Production.INFO: ==4959== Releasing lock... [2025-01-01 11:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:08:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-01 11:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:09:04 [end_date_ymd] => 2025-01-01 11:09:04 [RateCDR] => 1 ) [2025-01-01 11: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-01-01 08:09:04' and `end` < '2025-01-01 11: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-01-01 11:09:18] Production.INFO: count ==287 [2025-01-01 11:09:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:09:04 - End Time 2025-01-01 11:09:04 [2025-01-01 11:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150479', 'tblTempUsageDetail_20' ) start [2025-01-01 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150479', 'tblTempUsageDetail_20' ) end [2025-01-01 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150479', 'tblTempVendorCDR_20' ) start [2025-01-01 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150479', 'tblTempVendorCDR_20' ) end [2025-01-01 11:09:18] Production.INFO: ProcessCDR(1,14150479,1,1,2) [2025-01-01 11:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150479', 'tblTempUsageDetail_20' ) start [2025-01-01 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150479', 'tblTempUsageDetail_20' ) end [2025-01-01 11:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:09:23] Production.INFO: ==5068== Releasing lock... [2025-01-01 11:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:09:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-01 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:10:05 [end_date_ymd] => 2025-01-01 11:10:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:10:05' and `end` < '2025-01-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-01-01 11:10:18] Production.INFO: count ==296 [2025-01-01 11:10:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:10:05 - End Time 2025-01-01 11:10:05 [2025-01-01 11:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150484', 'tblTempUsageDetail_20' ) start [2025-01-01 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150484', 'tblTempUsageDetail_20' ) end [2025-01-01 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150484', 'tblTempVendorCDR_20' ) start [2025-01-01 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150484', 'tblTempVendorCDR_20' ) end [2025-01-01 11:10:18] Production.INFO: ProcessCDR(1,14150484,1,1,2) [2025-01-01 11:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150484', 'tblTempUsageDetail_20' ) start [2025-01-01 11:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150484', 'tblTempUsageDetail_20' ) end [2025-01-01 11:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:10:23] Production.INFO: ==5144== Releasing lock... [2025-01-01 11:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:10:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-01 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:11:05 [end_date_ymd] => 2025-01-01 11:11:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:11:05' and `end` < '2025-01-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-01-01 11:11:19] Production.INFO: count ==301 [2025-01-01 11:11:19] Production.ERROR: pbx CDR StartTime 2025-01-01 08:11:05 - End Time 2025-01-01 11:11:05 [2025-01-01 11:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150490', 'tblTempUsageDetail_20' ) start [2025-01-01 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150490', 'tblTempUsageDetail_20' ) end [2025-01-01 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150490', 'tblTempVendorCDR_20' ) start [2025-01-01 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150490', 'tblTempVendorCDR_20' ) end [2025-01-01 11:11:19] Production.INFO: ProcessCDR(1,14150490,1,1,2) [2025-01-01 11:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150490', 'tblTempUsageDetail_20' ) start [2025-01-01 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150490', 'tblTempUsageDetail_20' ) end [2025-01-01 11:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:11:23] Production.INFO: ==5218== Releasing lock... [2025-01-01 11:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:11:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-01 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:12:05 [end_date_ymd] => 2025-01-01 11:12:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:12:05' and `end` < '2025-01-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-01-01 11:12:21] Production.INFO: count ==301 [2025-01-01 11:12:21] Production.ERROR: pbx CDR StartTime 2025-01-01 08:12:05 - End Time 2025-01-01 11:12:05 [2025-01-01 11:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150495', 'tblTempUsageDetail_20' ) start [2025-01-01 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150495', 'tblTempUsageDetail_20' ) end [2025-01-01 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150495', 'tblTempVendorCDR_20' ) start [2025-01-01 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150495', 'tblTempVendorCDR_20' ) end [2025-01-01 11:12:21] Production.INFO: ProcessCDR(1,14150495,1,1,2) [2025-01-01 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150495', 'tblTempUsageDetail_20' ) start [2025-01-01 11:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150495', 'tblTempUsageDetail_20' ) end [2025-01-01 11:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:12:24] Production.INFO: ==5368== Releasing lock... [2025-01-01 11:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:12:24] Production.INFO: 30.75 MB #Memory Used# [2025-01-01 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:13:05 [end_date_ymd] => 2025-01-01 11:13:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:13:05' and `end` < '2025-01-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-01-01 11:13:18] Production.INFO: count ==301 [2025-01-01 11:13:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:13:05 - End Time 2025-01-01 11:13:05 [2025-01-01 11:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150500', 'tblTempUsageDetail_20' ) start [2025-01-01 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150500', 'tblTempUsageDetail_20' ) end [2025-01-01 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150500', 'tblTempVendorCDR_20' ) start [2025-01-01 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150500', 'tblTempVendorCDR_20' ) end [2025-01-01 11:13:18] Production.INFO: ProcessCDR(1,14150500,1,1,2) [2025-01-01 11:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150500', 'tblTempUsageDetail_20' ) start [2025-01-01 11:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150500', 'tblTempUsageDetail_20' ) end [2025-01-01 11:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:13:21] Production.INFO: ==5445== Releasing lock... [2025-01-01 11:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:13:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-01 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:14:05 [end_date_ymd] => 2025-01-01 11:14:05 [RateCDR] => 1 ) [2025-01-01 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 08:14:05' and `end` < '2025-01-01 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 11:14:17] Production.INFO: count ==302 [2025-01-01 11:14:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:14:05 - End Time 2025-01-01 11:14:05 [2025-01-01 11:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150505', 'tblTempUsageDetail_20' ) start [2025-01-01 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150505', 'tblTempUsageDetail_20' ) end [2025-01-01 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150505', 'tblTempVendorCDR_20' ) start [2025-01-01 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150505', 'tblTempVendorCDR_20' ) end [2025-01-01 11:14:18] Production.INFO: ProcessCDR(1,14150505,1,1,2) [2025-01-01 11:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150505', 'tblTempUsageDetail_20' ) start [2025-01-01 11:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150505', 'tblTempUsageDetail_20' ) end [2025-01-01 11:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:14:21] Production.INFO: ==5515== Releasing lock... [2025-01-01 11:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:14:21] Production.INFO: 31 MB #Memory Used# [2025-01-01 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:15:05 [end_date_ymd] => 2025-01-01 11:15:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:15:05' and `end` < '2025-01-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-01-01 11:15:18] Production.INFO: count ==305 [2025-01-01 11:15:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:15:05 - End Time 2025-01-01 11:15:05 [2025-01-01 11:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150510', 'tblTempUsageDetail_20' ) start [2025-01-01 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150510', 'tblTempUsageDetail_20' ) end [2025-01-01 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150510', 'tblTempVendorCDR_20' ) start [2025-01-01 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150510', 'tblTempVendorCDR_20' ) end [2025-01-01 11:15:18] Production.INFO: ProcessCDR(1,14150510,1,1,2) [2025-01-01 11:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150510', 'tblTempUsageDetail_20' ) start [2025-01-01 11:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150510', 'tblTempUsageDetail_20' ) end [2025-01-01 11:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:15:23] Production.INFO: ==5665== Releasing lock... [2025-01-01 11:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:15:23] Production.INFO: 31 MB #Memory Used# [2025-01-01 11:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:16:04 [end_date_ymd] => 2025-01-01 11:16:04 [RateCDR] => 1 ) [2025-01-01 11: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-01 08:16:04' and `end` < '2025-01-01 11: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-01-01 11:16:17] Production.INFO: count ==309 [2025-01-01 11:16:17] Production.ERROR: pbx CDR StartTime 2025-01-01 08:16:04 - End Time 2025-01-01 11:16:04 [2025-01-01 11:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150515', 'tblTempUsageDetail_20' ) start [2025-01-01 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150515', 'tblTempUsageDetail_20' ) end [2025-01-01 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150515', 'tblTempVendorCDR_20' ) start [2025-01-01 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150515', 'tblTempVendorCDR_20' ) end [2025-01-01 11:16:17] Production.INFO: ProcessCDR(1,14150515,1,1,2) [2025-01-01 11:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150515', 'tblTempUsageDetail_20' ) start [2025-01-01 11:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150515', 'tblTempUsageDetail_20' ) end [2025-01-01 11:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:16:20] Production.INFO: ==5737== Releasing lock... [2025-01-01 11:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:16:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-01 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:17:05 [end_date_ymd] => 2025-01-01 11:17:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:17:05' and `end` < '2025-01-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-01-01 11:17:17] Production.INFO: count ==306 [2025-01-01 11:17:17] Production.ERROR: pbx CDR StartTime 2025-01-01 08:17:05 - End Time 2025-01-01 11:17:05 [2025-01-01 11:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150520', 'tblTempUsageDetail_20' ) start [2025-01-01 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150520', 'tblTempUsageDetail_20' ) end [2025-01-01 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150520', 'tblTempVendorCDR_20' ) start [2025-01-01 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150520', 'tblTempVendorCDR_20' ) end [2025-01-01 11:17:17] Production.INFO: ProcessCDR(1,14150520,1,1,2) [2025-01-01 11:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150520', 'tblTempUsageDetail_20' ) start [2025-01-01 11:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150520', 'tblTempUsageDetail_20' ) end [2025-01-01 11:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:17:21] Production.INFO: ==5809== Releasing lock... [2025-01-01 11:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:17:21] Production.INFO: 31 MB #Memory Used# [2025-01-01 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:18:05 [end_date_ymd] => 2025-01-01 11:18:05 [RateCDR] => 1 ) [2025-01-01 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 08:18:05' and `end` < '2025-01-01 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 11:18:17] Production.INFO: count ==309 [2025-01-01 11:18:17] Production.ERROR: pbx CDR StartTime 2025-01-01 08:18:05 - End Time 2025-01-01 11:18:05 [2025-01-01 11:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150525', 'tblTempUsageDetail_20' ) start [2025-01-01 11:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150525', 'tblTempUsageDetail_20' ) end [2025-01-01 11:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150525', 'tblTempVendorCDR_20' ) start [2025-01-01 11:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150525', 'tblTempVendorCDR_20' ) end [2025-01-01 11:18:17] Production.INFO: ProcessCDR(1,14150525,1,1,2) [2025-01-01 11:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150525', 'tblTempUsageDetail_20' ) start [2025-01-01 11:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150525', 'tblTempUsageDetail_20' ) end [2025-01-01 11:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:18:20] Production.INFO: ==5880== Releasing lock... [2025-01-01 11:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:18:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-01 11:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:19:04 [end_date_ymd] => 2025-01-01 11:19:04 [RateCDR] => 1 ) [2025-01-01 11: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-01-01 08:19:04' and `end` < '2025-01-01 11: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-01-01 11:19:17] Production.INFO: count ==338 [2025-01-01 11:19:17] Production.ERROR: pbx CDR StartTime 2025-01-01 08:19:04 - End Time 2025-01-01 11:19:04 [2025-01-01 11:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150529', 'tblTempUsageDetail_20' ) start [2025-01-01 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150529', 'tblTempUsageDetail_20' ) end [2025-01-01 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150529', 'tblTempVendorCDR_20' ) start [2025-01-01 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150529', 'tblTempVendorCDR_20' ) end [2025-01-01 11:19:17] Production.INFO: ProcessCDR(1,14150529,1,1,2) [2025-01-01 11:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150529', 'tblTempUsageDetail_20' ) start [2025-01-01 11:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150529', 'tblTempUsageDetail_20' ) end [2025-01-01 11:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:19:22] Production.INFO: ==5953== Releasing lock... [2025-01-01 11:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:19:22] Production.INFO: 31 MB #Memory Used# [2025-01-01 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:20:06 [end_date_ymd] => 2025-01-01 11:20:06 [RateCDR] => 1 ) [2025-01-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-01-01 08:20:06' and `end` < '2025-01-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-01-01 11:20:19] Production.INFO: count ==346 [2025-01-01 11:20:19] Production.ERROR: pbx CDR StartTime 2025-01-01 08:20:06 - End Time 2025-01-01 11:20:06 [2025-01-01 11:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150536', 'tblTempUsageDetail_20' ) start [2025-01-01 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150536', 'tblTempUsageDetail_20' ) end [2025-01-01 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150536', 'tblTempVendorCDR_20' ) start [2025-01-01 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150536', 'tblTempVendorCDR_20' ) end [2025-01-01 11:20:19] Production.INFO: ProcessCDR(1,14150536,1,1,2) [2025-01-01 11:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150536', 'tblTempUsageDetail_20' ) start [2025-01-01 11:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150536', 'tblTempUsageDetail_20' ) end [2025-01-01 11:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:20:22] Production.INFO: ==6027== Releasing lock... [2025-01-01 11:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:20:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-01 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:21:05 [end_date_ymd] => 2025-01-01 11:21:05 [RateCDR] => 1 ) [2025-01-01 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 08:21:05' and `end` < '2025-01-01 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 11:21:19] Production.INFO: count ==366 [2025-01-01 11:21:19] Production.ERROR: pbx CDR StartTime 2025-01-01 08:21:05 - End Time 2025-01-01 11:21:05 [2025-01-01 11:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150541', 'tblTempUsageDetail_20' ) start [2025-01-01 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150541', 'tblTempUsageDetail_20' ) end [2025-01-01 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150541', 'tblTempVendorCDR_20' ) start [2025-01-01 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150541', 'tblTempVendorCDR_20' ) end [2025-01-01 11:21:19] Production.INFO: ProcessCDR(1,14150541,1,1,2) [2025-01-01 11:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150541', 'tblTempUsageDetail_20' ) start [2025-01-01 11:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150541', 'tblTempUsageDetail_20' ) end [2025-01-01 11:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:21:22] Production.INFO: ==6099== Releasing lock... [2025-01-01 11:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:21:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:22:05 [end_date_ymd] => 2025-01-01 11:22:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:22:05' and `end` < '2025-01-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-01-01 11:22:18] Production.INFO: count ==366 [2025-01-01 11:22:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:22:05 - End Time 2025-01-01 11:22:05 [2025-01-01 11:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150546', 'tblTempUsageDetail_20' ) start [2025-01-01 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150546', 'tblTempUsageDetail_20' ) end [2025-01-01 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150546', 'tblTempVendorCDR_20' ) start [2025-01-01 11:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150546', 'tblTempVendorCDR_20' ) end [2025-01-01 11:22:18] Production.INFO: ProcessCDR(1,14150546,1,1,2) [2025-01-01 11:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150546', 'tblTempUsageDetail_20' ) start [2025-01-01 11:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150546', 'tblTempUsageDetail_20' ) end [2025-01-01 11:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:22:21] Production.INFO: ==6172== Releasing lock... [2025-01-01 11:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:22:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 11:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:23:04 [end_date_ymd] => 2025-01-01 11:23:04 [RateCDR] => 1 ) [2025-01-01 11: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-01-01 08:23:04' and `end` < '2025-01-01 11: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-01-01 11:23:17] Production.INFO: count ==370 [2025-01-01 11:23:17] Production.ERROR: pbx CDR StartTime 2025-01-01 08:23:04 - End Time 2025-01-01 11:23:04 [2025-01-01 11:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150551', 'tblTempUsageDetail_20' ) start [2025-01-01 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150551', 'tblTempUsageDetail_20' ) end [2025-01-01 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150551', 'tblTempVendorCDR_20' ) start [2025-01-01 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150551', 'tblTempVendorCDR_20' ) end [2025-01-01 11:23:17] Production.INFO: ProcessCDR(1,14150551,1,1,2) [2025-01-01 11:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150551', 'tblTempUsageDetail_20' ) start [2025-01-01 11:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150551', 'tblTempUsageDetail_20' ) end [2025-01-01 11:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:23:20] Production.INFO: ==6241== Releasing lock... [2025-01-01 11:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:23:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-01 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:24:05 [end_date_ymd] => 2025-01-01 11:24:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:24:05' and `end` < '2025-01-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-01-01 11:24:18] Production.INFO: count ==372 [2025-01-01 11:24:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:24:05 - End Time 2025-01-01 11:24:05 [2025-01-01 11:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150556', 'tblTempUsageDetail_20' ) start [2025-01-01 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150556', 'tblTempUsageDetail_20' ) end [2025-01-01 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150556', 'tblTempVendorCDR_20' ) start [2025-01-01 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150556', 'tblTempVendorCDR_20' ) end [2025-01-01 11:24:18] Production.INFO: ProcessCDR(1,14150556,1,1,2) [2025-01-01 11:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150556', 'tblTempUsageDetail_20' ) start [2025-01-01 11:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150556', 'tblTempUsageDetail_20' ) end [2025-01-01 11:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:24:23] Production.INFO: ==6354== Releasing lock... [2025-01-01 11:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:24:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-01 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:25:05 [end_date_ymd] => 2025-01-01 11:25:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:25:05' and `end` < '2025-01-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-01-01 11:25:17] Production.INFO: count ==372 [2025-01-01 11:25:17] Production.ERROR: pbx CDR StartTime 2025-01-01 08:25:05 - End Time 2025-01-01 11:25:05 [2025-01-01 11:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150561', 'tblTempUsageDetail_20' ) start [2025-01-01 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150561', 'tblTempUsageDetail_20' ) end [2025-01-01 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150561', 'tblTempVendorCDR_20' ) start [2025-01-01 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150561', 'tblTempVendorCDR_20' ) end [2025-01-01 11:25:18] Production.INFO: ProcessCDR(1,14150561,1,1,2) [2025-01-01 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150561', 'tblTempUsageDetail_20' ) start [2025-01-01 11:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150561', 'tblTempUsageDetail_20' ) end [2025-01-01 11:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:25:21] Production.INFO: ==6426== Releasing lock... [2025-01-01 11:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:25:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-01 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:26:05 [end_date_ymd] => 2025-01-01 11:26:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:26:05' and `end` < '2025-01-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-01-01 11:26:18] Production.INFO: count ==372 [2025-01-01 11:26:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:26:05 - End Time 2025-01-01 11:26:05 [2025-01-01 11:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150566', 'tblTempUsageDetail_20' ) start [2025-01-01 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150566', 'tblTempUsageDetail_20' ) end [2025-01-01 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150566', 'tblTempVendorCDR_20' ) start [2025-01-01 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150566', 'tblTempVendorCDR_20' ) end [2025-01-01 11:26:18] Production.INFO: ProcessCDR(1,14150566,1,1,2) [2025-01-01 11:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150566', 'tblTempUsageDetail_20' ) start [2025-01-01 11:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150566', 'tblTempUsageDetail_20' ) end [2025-01-01 11:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:26:21] Production.INFO: ==6500== Releasing lock... [2025-01-01 11:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:26:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-01 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:27:05 [end_date_ymd] => 2025-01-01 11:27:05 [RateCDR] => 1 ) [2025-01-01 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 08:27:05' and `end` < '2025-01-01 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 11:27:19] Production.INFO: count ==373 [2025-01-01 11:27:19] Production.ERROR: pbx CDR StartTime 2025-01-01 08:27:05 - End Time 2025-01-01 11:27:05 [2025-01-01 11:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150571', 'tblTempUsageDetail_20' ) start [2025-01-01 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150571', 'tblTempUsageDetail_20' ) end [2025-01-01 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150571', 'tblTempVendorCDR_20' ) start [2025-01-01 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150571', 'tblTempVendorCDR_20' ) end [2025-01-01 11:27:19] Production.INFO: ProcessCDR(1,14150571,1,1,2) [2025-01-01 11:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150571', 'tblTempUsageDetail_20' ) start [2025-01-01 11:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150571', 'tblTempUsageDetail_20' ) end [2025-01-01 11:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:27:23] Production.INFO: ==6577== Releasing lock... [2025-01-01 11:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:27:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-01 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:28:05 [end_date_ymd] => 2025-01-01 11:28:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:28:05' and `end` < '2025-01-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-01-01 11:28:18] Production.INFO: count ==373 [2025-01-01 11:28:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:28:05 - End Time 2025-01-01 11:28:05 [2025-01-01 11:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150576', 'tblTempUsageDetail_20' ) start [2025-01-01 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150576', 'tblTempUsageDetail_20' ) end [2025-01-01 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150576', 'tblTempVendorCDR_20' ) start [2025-01-01 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150576', 'tblTempVendorCDR_20' ) end [2025-01-01 11:28:18] Production.INFO: ProcessCDR(1,14150576,1,1,2) [2025-01-01 11:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150576', 'tblTempUsageDetail_20' ) start [2025-01-01 11:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150576', 'tblTempUsageDetail_20' ) end [2025-01-01 11:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:28:21] Production.INFO: ==6652== Releasing lock... [2025-01-01 11:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:28:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-01 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:29:05 [end_date_ymd] => 2025-01-01 11:29:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:29:05' and `end` < '2025-01-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-01-01 11:29:17] Production.INFO: count ==373 [2025-01-01 11:29:17] Production.ERROR: pbx CDR StartTime 2025-01-01 08:29:05 - End Time 2025-01-01 11:29:05 [2025-01-01 11:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150581', 'tblTempUsageDetail_20' ) start [2025-01-01 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150581', 'tblTempUsageDetail_20' ) end [2025-01-01 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150581', 'tblTempVendorCDR_20' ) start [2025-01-01 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150581', 'tblTempVendorCDR_20' ) end [2025-01-01 11:29:17] Production.INFO: ProcessCDR(1,14150581,1,1,2) [2025-01-01 11:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150581', 'tblTempUsageDetail_20' ) start [2025-01-01 11:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150581', 'tblTempUsageDetail_20' ) end [2025-01-01 11:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:29:20] Production.INFO: ==6722== Releasing lock... [2025-01-01 11:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:29:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-01 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:30:06 [end_date_ymd] => 2025-01-01 11:30:06 [RateCDR] => 1 ) [2025-01-01 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 08:30:06' and `end` < '2025-01-01 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 11:30:18] Production.INFO: count ==379 [2025-01-01 11:30:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:30:06 - End Time 2025-01-01 11:30:06 [2025-01-01 11:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150587', 'tblTempUsageDetail_20' ) start [2025-01-01 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150587', 'tblTempUsageDetail_20' ) end [2025-01-01 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150587', 'tblTempVendorCDR_20' ) start [2025-01-01 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150587', 'tblTempVendorCDR_20' ) end [2025-01-01 11:30:18] Production.INFO: ProcessCDR(1,14150587,1,1,2) [2025-01-01 11:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150587', 'tblTempUsageDetail_20' ) start [2025-01-01 11:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150587', 'tblTempUsageDetail_20' ) end [2025-01-01 11:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:30:22] Production.INFO: ==6795== Releasing lock... [2025-01-01 11:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:30:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-01 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:31:05 [end_date_ymd] => 2025-01-01 11:31:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:31:05' and `end` < '2025-01-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-01-01 11:31:17] Production.INFO: count ==410 [2025-01-01 11:31:17] Production.ERROR: pbx CDR StartTime 2025-01-01 08:31:05 - End Time 2025-01-01 11:31:05 [2025-01-01 11:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150592', 'tblTempUsageDetail_20' ) start [2025-01-01 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150592', 'tblTempUsageDetail_20' ) end [2025-01-01 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150592', 'tblTempVendorCDR_20' ) start [2025-01-01 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150592', 'tblTempVendorCDR_20' ) end [2025-01-01 11:31:17] Production.INFO: ProcessCDR(1,14150592,1,1,2) [2025-01-01 11:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150592', 'tblTempUsageDetail_20' ) start [2025-01-01 11:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150592', 'tblTempUsageDetail_20' ) end [2025-01-01 11:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:31:21] Production.INFO: ==6869== Releasing lock... [2025-01-01 11:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:31:21] Production.INFO: 31 MB #Memory Used# [2025-01-01 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:32:05 [end_date_ymd] => 2025-01-01 11:32:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:32:05' and `end` < '2025-01-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-01-01 11:32:18] Production.INFO: count ==410 [2025-01-01 11:32:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:32:05 - End Time 2025-01-01 11:32:05 [2025-01-01 11:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150597', 'tblTempUsageDetail_20' ) start [2025-01-01 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150597', 'tblTempUsageDetail_20' ) end [2025-01-01 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150597', 'tblTempVendorCDR_20' ) start [2025-01-01 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150597', 'tblTempVendorCDR_20' ) end [2025-01-01 11:32:18] Production.INFO: ProcessCDR(1,14150597,1,1,2) [2025-01-01 11:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150597', 'tblTempUsageDetail_20' ) start [2025-01-01 11:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150597', 'tblTempUsageDetail_20' ) end [2025-01-01 11:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:32:21] Production.INFO: ==6941== Releasing lock... [2025-01-01 11:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:32:21] Production.INFO: 31 MB #Memory Used# [2025-01-01 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:33:05 [end_date_ymd] => 2025-01-01 11:33:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:33:05' and `end` < '2025-01-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-01-01 11:33:21] Production.INFO: count ==410 [2025-01-01 11:33:21] Production.ERROR: pbx CDR StartTime 2025-01-01 08:33:05 - End Time 2025-01-01 11:33:05 [2025-01-01 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150602', 'tblTempUsageDetail_20' ) start [2025-01-01 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150602', 'tblTempUsageDetail_20' ) end [2025-01-01 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150602', 'tblTempVendorCDR_20' ) start [2025-01-01 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150602', 'tblTempVendorCDR_20' ) end [2025-01-01 11:33:21] Production.INFO: ProcessCDR(1,14150602,1,1,2) [2025-01-01 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150602', 'tblTempUsageDetail_20' ) start [2025-01-01 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150602', 'tblTempUsageDetail_20' ) end [2025-01-01 11:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:33:24] Production.INFO: ==7012== Releasing lock... [2025-01-01 11:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:33:24] Production.INFO: 31 MB #Memory Used# [2025-01-01 11:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:34:04 [end_date_ymd] => 2025-01-01 11:34:04 [RateCDR] => 1 ) [2025-01-01 11:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 08:34:04' and `end` < '2025-01-01 11:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 11:34:17] Production.INFO: count ==410 [2025-01-01 11:34:17] Production.ERROR: pbx CDR StartTime 2025-01-01 08:34:04 - End Time 2025-01-01 11:34:04 [2025-01-01 11:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150607', 'tblTempUsageDetail_20' ) start [2025-01-01 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150607', 'tblTempUsageDetail_20' ) end [2025-01-01 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150607', 'tblTempVendorCDR_20' ) start [2025-01-01 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150607', 'tblTempVendorCDR_20' ) end [2025-01-01 11:34:17] Production.INFO: ProcessCDR(1,14150607,1,1,2) [2025-01-01 11:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150607', 'tblTempUsageDetail_20' ) start [2025-01-01 11:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150607', 'tblTempUsageDetail_20' ) end [2025-01-01 11:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:34:20] Production.INFO: ==7084== Releasing lock... [2025-01-01 11:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:34:20] Production.INFO: 31 MB #Memory Used# [2025-01-01 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:35:05 [end_date_ymd] => 2025-01-01 11:35:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:35:05' and `end` < '2025-01-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-01-01 11:35:18] Production.INFO: count ==410 [2025-01-01 11:35:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:35:05 - End Time 2025-01-01 11:35:05 [2025-01-01 11:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150612', 'tblTempUsageDetail_20' ) start [2025-01-01 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150612', 'tblTempUsageDetail_20' ) end [2025-01-01 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150612', 'tblTempVendorCDR_20' ) start [2025-01-01 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150612', 'tblTempVendorCDR_20' ) end [2025-01-01 11:35:18] Production.INFO: ProcessCDR(1,14150612,1,1,2) [2025-01-01 11:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150612', 'tblTempUsageDetail_20' ) start [2025-01-01 11:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150612', 'tblTempUsageDetail_20' ) end [2025-01-01 11:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:35:21] Production.INFO: ==7156== Releasing lock... [2025-01-01 11:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:35:21] Production.INFO: 31 MB #Memory Used# [2025-01-01 11:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:36:04 [end_date_ymd] => 2025-01-01 11:36:04 [RateCDR] => 1 ) [2025-01-01 11:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 08:36:04' and `end` < '2025-01-01 11:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 11:36:17] Production.INFO: count ==410 [2025-01-01 11:36:17] Production.ERROR: pbx CDR StartTime 2025-01-01 08:36:04 - End Time 2025-01-01 11:36:04 [2025-01-01 11:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150617', 'tblTempUsageDetail_20' ) start [2025-01-01 11:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150617', 'tblTempUsageDetail_20' ) end [2025-01-01 11:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150617', 'tblTempVendorCDR_20' ) start [2025-01-01 11:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150617', 'tblTempVendorCDR_20' ) end [2025-01-01 11:36:17] Production.INFO: ProcessCDR(1,14150617,1,1,2) [2025-01-01 11:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150617', 'tblTempUsageDetail_20' ) start [2025-01-01 11:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150617', 'tblTempUsageDetail_20' ) end [2025-01-01 11:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:36:20] Production.INFO: ==7242== Releasing lock... [2025-01-01 11:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:36:20] Production.INFO: 31 MB #Memory Used# [2025-01-01 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:37:05 [end_date_ymd] => 2025-01-01 11:37:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:37:05' and `end` < '2025-01-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-01-01 11:37:18] Production.INFO: count ==410 [2025-01-01 11:37:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:37:05 - End Time 2025-01-01 11:37:05 [2025-01-01 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150622', 'tblTempUsageDetail_20' ) start [2025-01-01 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150622', 'tblTempUsageDetail_20' ) end [2025-01-01 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150622', 'tblTempVendorCDR_20' ) start [2025-01-01 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150622', 'tblTempVendorCDR_20' ) end [2025-01-01 11:37:18] Production.INFO: ProcessCDR(1,14150622,1,1,2) [2025-01-01 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150622', 'tblTempUsageDetail_20' ) start [2025-01-01 11:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150622', 'tblTempUsageDetail_20' ) end [2025-01-01 11:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:37:21] Production.INFO: ==7332== Releasing lock... [2025-01-01 11:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:37:21] Production.INFO: 31 MB #Memory Used# [2025-01-01 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:38:05 [end_date_ymd] => 2025-01-01 11:38:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:38:05' and `end` < '2025-01-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-01-01 11:38:18] Production.INFO: count ==413 [2025-01-01 11:38:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:38:05 - End Time 2025-01-01 11:38:05 [2025-01-01 11:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150627', 'tblTempUsageDetail_20' ) start [2025-01-01 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150627', 'tblTempUsageDetail_20' ) end [2025-01-01 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150627', 'tblTempVendorCDR_20' ) start [2025-01-01 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150627', 'tblTempVendorCDR_20' ) end [2025-01-01 11:38:18] Production.INFO: ProcessCDR(1,14150627,1,1,2) [2025-01-01 11:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150627', 'tblTempUsageDetail_20' ) start [2025-01-01 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150627', 'tblTempUsageDetail_20' ) end [2025-01-01 11:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:38:23] Production.INFO: ==7419== Releasing lock... [2025-01-01 11:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:38:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-01 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:39:05 [end_date_ymd] => 2025-01-01 11:39:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:39:05' and `end` < '2025-01-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-01-01 11:39:19] Production.INFO: count ==415 [2025-01-01 11:39:19] Production.ERROR: pbx CDR StartTime 2025-01-01 08:39:05 - End Time 2025-01-01 11:39:05 [2025-01-01 11:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150632', 'tblTempUsageDetail_20' ) start [2025-01-01 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150632', 'tblTempUsageDetail_20' ) end [2025-01-01 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150632', 'tblTempVendorCDR_20' ) start [2025-01-01 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150632', 'tblTempVendorCDR_20' ) end [2025-01-01 11:39:19] Production.INFO: ProcessCDR(1,14150632,1,1,2) [2025-01-01 11:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150632', 'tblTempUsageDetail_20' ) start [2025-01-01 11:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150632', 'tblTempUsageDetail_20' ) end [2025-01-01 11:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:39:24] Production.INFO: ==7500== Releasing lock... [2025-01-01 11:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:39:24] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:40:05 [end_date_ymd] => 2025-01-01 11:40:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:40:05' and `end` < '2025-01-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-01-01 11:40:17] Production.INFO: count ==423 [2025-01-01 11:40:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:40:05 - End Time 2025-01-01 11:40:05 [2025-01-01 11:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150638', 'tblTempUsageDetail_20' ) start [2025-01-01 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150638', 'tblTempUsageDetail_20' ) end [2025-01-01 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150638', 'tblTempVendorCDR_20' ) start [2025-01-01 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150638', 'tblTempVendorCDR_20' ) end [2025-01-01 11:40:18] Production.INFO: ProcessCDR(1,14150638,1,1,2) [2025-01-01 11:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150638', 'tblTempUsageDetail_20' ) start [2025-01-01 11:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150638', 'tblTempUsageDetail_20' ) end [2025-01-01 11:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:40:22] Production.INFO: ==7613== Releasing lock... [2025-01-01 11:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:40:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:41:06 [end_date_ymd] => 2025-01-01 11:41:06 [RateCDR] => 1 ) [2025-01-01 11:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 08:41:06' and `end` < '2025-01-01 11:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 11:41:18] Production.INFO: count ==440 [2025-01-01 11:41:19] Production.ERROR: pbx CDR StartTime 2025-01-01 08:41:06 - End Time 2025-01-01 11:41:06 [2025-01-01 11:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150643', 'tblTempUsageDetail_20' ) start [2025-01-01 11:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150643', 'tblTempUsageDetail_20' ) end [2025-01-01 11:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150643', 'tblTempVendorCDR_20' ) start [2025-01-01 11:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150643', 'tblTempVendorCDR_20' ) end [2025-01-01 11:41:19] Production.INFO: ProcessCDR(1,14150643,1,1,2) [2025-01-01 11:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150643', 'tblTempUsageDetail_20' ) start [2025-01-01 11:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150643', 'tblTempUsageDetail_20' ) end [2025-01-01 11:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:41:23] Production.INFO: ==7688== Releasing lock... [2025-01-01 11:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:41:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-01 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:42:05 [end_date_ymd] => 2025-01-01 11:42:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:42:05' and `end` < '2025-01-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-01-01 11:42:19] Production.INFO: count ==443 [2025-01-01 11:42:19] Production.ERROR: pbx CDR StartTime 2025-01-01 08:42:05 - End Time 2025-01-01 11:42:05 [2025-01-01 11:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150648', 'tblTempUsageDetail_20' ) start [2025-01-01 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150648', 'tblTempUsageDetail_20' ) end [2025-01-01 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150648', 'tblTempVendorCDR_20' ) start [2025-01-01 11:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150648', 'tblTempVendorCDR_20' ) end [2025-01-01 11:42:19] Production.INFO: ProcessCDR(1,14150648,1,1,2) [2025-01-01 11:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150648', 'tblTempUsageDetail_20' ) start [2025-01-01 11:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150648', 'tblTempUsageDetail_20' ) end [2025-01-01 11:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:42:24] Production.INFO: ==7761== Releasing lock... [2025-01-01 11:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:42:24] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:43:05 [end_date_ymd] => 2025-01-01 11:43:05 [RateCDR] => 1 ) [2025-01-01 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 08:43:05' and `end` < '2025-01-01 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 11:43:18] Production.INFO: count ==445 [2025-01-01 11:43:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:43:05 - End Time 2025-01-01 11:43:05 [2025-01-01 11:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150653', 'tblTempUsageDetail_20' ) start [2025-01-01 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150653', 'tblTempUsageDetail_20' ) end [2025-01-01 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150653', 'tblTempVendorCDR_20' ) start [2025-01-01 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150653', 'tblTempVendorCDR_20' ) end [2025-01-01 11:43:18] Production.INFO: ProcessCDR(1,14150653,1,1,2) [2025-01-01 11:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150653', 'tblTempUsageDetail_20' ) start [2025-01-01 11:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150653', 'tblTempUsageDetail_20' ) end [2025-01-01 11:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:43:22] Production.INFO: ==7833== Releasing lock... [2025-01-01 11:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:43:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-01 11:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:44:04 [end_date_ymd] => 2025-01-01 11:44:04 [RateCDR] => 1 ) [2025-01-01 11: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-01 08:44:04' and `end` < '2025-01-01 11: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-01-01 11:44:17] Production.INFO: count ==447 [2025-01-01 11:44:17] Production.ERROR: pbx CDR StartTime 2025-01-01 08:44:04 - End Time 2025-01-01 11:44:04 [2025-01-01 11:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150658', 'tblTempUsageDetail_20' ) start [2025-01-01 11:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150658', 'tblTempUsageDetail_20' ) end [2025-01-01 11:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150658', 'tblTempVendorCDR_20' ) start [2025-01-01 11:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150658', 'tblTempVendorCDR_20' ) end [2025-01-01 11:44:17] Production.INFO: ProcessCDR(1,14150658,1,1,2) [2025-01-01 11:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150658', 'tblTempUsageDetail_20' ) start [2025-01-01 11:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150658', 'tblTempUsageDetail_20' ) end [2025-01-01 11:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:44:22] Production.INFO: ==7913== Releasing lock... [2025-01-01 11:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:44:22] Production.INFO: 32 MB #Memory Used# [2025-01-01 11:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:45:04 [end_date_ymd] => 2025-01-01 11:45:04 [RateCDR] => 1 ) [2025-01-01 11: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-01-01 08:45:04' and `end` < '2025-01-01 11: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-01-01 11:45:17] Production.INFO: count ==448 [2025-01-01 11:45:17] Production.ERROR: pbx CDR StartTime 2025-01-01 08:45:04 - End Time 2025-01-01 11:45:04 [2025-01-01 11:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150663', 'tblTempUsageDetail_20' ) start [2025-01-01 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150663', 'tblTempUsageDetail_20' ) end [2025-01-01 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150663', 'tblTempVendorCDR_20' ) start [2025-01-01 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150663', 'tblTempVendorCDR_20' ) end [2025-01-01 11:45:17] Production.INFO: ProcessCDR(1,14150663,1,1,2) [2025-01-01 11:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150663', 'tblTempUsageDetail_20' ) start [2025-01-01 11:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150663', 'tblTempUsageDetail_20' ) end [2025-01-01 11:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:45:22] Production.INFO: ==7991== Releasing lock... [2025-01-01 11:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:45:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-01 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:46:06 [end_date_ymd] => 2025-01-01 11:46:06 [RateCDR] => 1 ) [2025-01-01 11: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-01-01 08:46:06' and `end` < '2025-01-01 11: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-01-01 11:46:18] Production.INFO: count ==448 [2025-01-01 11:46:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:46:06 - End Time 2025-01-01 11:46:06 [2025-01-01 11:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150668', 'tblTempUsageDetail_20' ) start [2025-01-01 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150668', 'tblTempUsageDetail_20' ) end [2025-01-01 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150668', 'tblTempVendorCDR_20' ) start [2025-01-01 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150668', 'tblTempVendorCDR_20' ) end [2025-01-01 11:46:19] Production.INFO: ProcessCDR(1,14150668,1,1,2) [2025-01-01 11:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150668', 'tblTempUsageDetail_20' ) start [2025-01-01 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150668', 'tblTempUsageDetail_20' ) end [2025-01-01 11:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:46:22] Production.INFO: ==8071== Releasing lock... [2025-01-01 11:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:46:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-01 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:47:05 [end_date_ymd] => 2025-01-01 11:47:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:47:05' and `end` < '2025-01-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-01-01 11:47:18] Production.INFO: count ==449 [2025-01-01 11:47:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:47:05 - End Time 2025-01-01 11:47:05 [2025-01-01 11:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150671', 'tblTempUsageDetail_20' ) start [2025-01-01 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150671', 'tblTempUsageDetail_20' ) end [2025-01-01 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150671', 'tblTempVendorCDR_20' ) start [2025-01-01 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150671', 'tblTempVendorCDR_20' ) end [2025-01-01 11:47:18] Production.INFO: ProcessCDR(1,14150671,1,1,2) [2025-01-01 11:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150671', 'tblTempUsageDetail_20' ) start [2025-01-01 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150671', 'tblTempUsageDetail_20' ) end [2025-01-01 11:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:47:23] Production.INFO: ==8153== Releasing lock... [2025-01-01 11:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:47:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-01 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:48:05 [end_date_ymd] => 2025-01-01 11:48:05 [RateCDR] => 1 ) [2025-01-01 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 08:48:05' and `end` < '2025-01-01 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 11:48:19] Production.INFO: count ==452 [2025-01-01 11:48:19] Production.ERROR: pbx CDR StartTime 2025-01-01 08:48:05 - End Time 2025-01-01 11:48:05 [2025-01-01 11:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150678', 'tblTempUsageDetail_20' ) start [2025-01-01 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150678', 'tblTempUsageDetail_20' ) end [2025-01-01 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150678', 'tblTempVendorCDR_20' ) start [2025-01-01 11:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150678', 'tblTempVendorCDR_20' ) end [2025-01-01 11:48:19] Production.INFO: ProcessCDR(1,14150678,1,1,2) [2025-01-01 11:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150678', 'tblTempUsageDetail_20' ) start [2025-01-01 11:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150678', 'tblTempUsageDetail_20' ) end [2025-01-01 11:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:48:22] Production.INFO: ==8244== Releasing lock... [2025-01-01 11:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:48:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:49:06 [end_date_ymd] => 2025-01-01 11:49:06 [RateCDR] => 1 ) [2025-01-01 11:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 08:49:06' and `end` < '2025-01-01 11:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 11:49:18] Production.INFO: count ==452 [2025-01-01 11:49:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:49:06 - End Time 2025-01-01 11:49:06 [2025-01-01 11:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150683', 'tblTempUsageDetail_20' ) start [2025-01-01 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150683', 'tblTempUsageDetail_20' ) end [2025-01-01 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150683', 'tblTempVendorCDR_20' ) start [2025-01-01 11:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150683', 'tblTempVendorCDR_20' ) end [2025-01-01 11:49:18] Production.INFO: ProcessCDR(1,14150683,1,1,2) [2025-01-01 11:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150683', 'tblTempUsageDetail_20' ) start [2025-01-01 11:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150683', 'tblTempUsageDetail_20' ) end [2025-01-01 11:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:49:21] Production.INFO: ==8343== Releasing lock... [2025-01-01 11:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:49:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:50:05 [end_date_ymd] => 2025-01-01 11:50:05 [RateCDR] => 1 ) [2025-01-01 11: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-01-01 08:50:05' and `end` < '2025-01-01 11: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-01-01 11:50:18] Production.INFO: count ==458 [2025-01-01 11:50:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:50:05 - End Time 2025-01-01 11:50:05 [2025-01-01 11:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150689', 'tblTempUsageDetail_20' ) start [2025-01-01 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150689', 'tblTempUsageDetail_20' ) end [2025-01-01 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150689', 'tblTempVendorCDR_20' ) start [2025-01-01 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150689', 'tblTempVendorCDR_20' ) end [2025-01-01 11:50:18] Production.INFO: ProcessCDR(1,14150689,1,1,2) [2025-01-01 11:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150689', 'tblTempUsageDetail_20' ) start [2025-01-01 11:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150689', 'tblTempUsageDetail_20' ) end [2025-01-01 11:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:50:21] Production.INFO: ==8437== Releasing lock... [2025-01-01 11:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:50:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-01 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:51:05 [end_date_ymd] => 2025-01-01 11:51:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:51:05' and `end` < '2025-01-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-01-01 11:51:20] Production.INFO: count ==476 [2025-01-01 11:51:20] Production.ERROR: pbx CDR StartTime 2025-01-01 08:51:05 - End Time 2025-01-01 11:51:05 [2025-01-01 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150694', 'tblTempUsageDetail_20' ) start [2025-01-01 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150694', 'tblTempUsageDetail_20' ) end [2025-01-01 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150694', 'tblTempVendorCDR_20' ) start [2025-01-01 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150694', 'tblTempVendorCDR_20' ) end [2025-01-01 11:51:20] Production.INFO: ProcessCDR(1,14150694,1,1,2) [2025-01-01 11:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150694', 'tblTempUsageDetail_20' ) start [2025-01-01 11:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150694', 'tblTempUsageDetail_20' ) end [2025-01-01 11:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:51:23] Production.INFO: ==8528== Releasing lock... [2025-01-01 11:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:51:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-01 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:52:05 [end_date_ymd] => 2025-01-01 11:52:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:52:05' and `end` < '2025-01-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-01-01 11:52:17] Production.INFO: count ==476 [2025-01-01 11:52:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:52:05 - End Time 2025-01-01 11:52:05 [2025-01-01 11:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150699', 'tblTempUsageDetail_20' ) start [2025-01-01 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150699', 'tblTempUsageDetail_20' ) end [2025-01-01 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150699', 'tblTempVendorCDR_20' ) start [2025-01-01 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150699', 'tblTempVendorCDR_20' ) end [2025-01-01 11:52:18] Production.INFO: ProcessCDR(1,14150699,1,1,2) [2025-01-01 11:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150699', 'tblTempUsageDetail_20' ) start [2025-01-01 11:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150699', 'tblTempUsageDetail_20' ) end [2025-01-01 11:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:52:21] Production.INFO: ==8615== Releasing lock... [2025-01-01 11:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:52:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-01 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:53:05 [end_date_ymd] => 2025-01-01 11:53:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:53:05' and `end` < '2025-01-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-01-01 11:53:18] Production.INFO: count ==479 [2025-01-01 11:53:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:53:05 - End Time 2025-01-01 11:53:05 [2025-01-01 11:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150704', 'tblTempUsageDetail_20' ) start [2025-01-01 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150704', 'tblTempUsageDetail_20' ) end [2025-01-01 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150704', 'tblTempVendorCDR_20' ) start [2025-01-01 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150704', 'tblTempVendorCDR_20' ) end [2025-01-01 11:53:18] Production.INFO: ProcessCDR(1,14150704,1,1,2) [2025-01-01 11:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150704', 'tblTempUsageDetail_20' ) start [2025-01-01 11:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150704', 'tblTempUsageDetail_20' ) end [2025-01-01 11:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:53:23] Production.INFO: ==8712== Releasing lock... [2025-01-01 11:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:53:23] Production.INFO: 32 MB #Memory Used# [2025-01-01 11:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:54:04 [end_date_ymd] => 2025-01-01 11:54:04 [RateCDR] => 1 ) [2025-01-01 11: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-01-01 08:54:04' and `end` < '2025-01-01 11: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-01-01 11:54:18] Production.INFO: count ==480 [2025-01-01 11:54:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:54:04 - End Time 2025-01-01 11:54:04 [2025-01-01 11:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150709', 'tblTempUsageDetail_20' ) start [2025-01-01 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150709', 'tblTempUsageDetail_20' ) end [2025-01-01 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150709', 'tblTempVendorCDR_20' ) start [2025-01-01 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150709', 'tblTempVendorCDR_20' ) end [2025-01-01 11:54:18] Production.INFO: ProcessCDR(1,14150709,1,1,2) [2025-01-01 11:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150709', 'tblTempUsageDetail_20' ) start [2025-01-01 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150709', 'tblTempUsageDetail_20' ) end [2025-01-01 11:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:54:23] Production.INFO: ==8808== Releasing lock... [2025-01-01 11:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:54:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-01 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:55:05 [end_date_ymd] => 2025-01-01 11:55:05 [RateCDR] => 1 ) [2025-01-01 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 08:55:05' and `end` < '2025-01-01 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 11:55:18] Production.INFO: count ==481 [2025-01-01 11:55:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:55:05 - End Time 2025-01-01 11:55:05 [2025-01-01 11:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150714', 'tblTempUsageDetail_20' ) start [2025-01-01 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150714', 'tblTempUsageDetail_20' ) end [2025-01-01 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150714', 'tblTempVendorCDR_20' ) start [2025-01-01 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150714', 'tblTempVendorCDR_20' ) end [2025-01-01 11:55:18] Production.INFO: ProcessCDR(1,14150714,1,1,2) [2025-01-01 11:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150714', 'tblTempUsageDetail_20' ) start [2025-01-01 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150714', 'tblTempUsageDetail_20' ) end [2025-01-01 11:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:55:22] Production.INFO: ==8939== Releasing lock... [2025-01-01 11:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:55:22] Production.INFO: 32 MB #Memory Used# [2025-01-01 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:56:05 [end_date_ymd] => 2025-01-01 11:56:05 [RateCDR] => 1 ) [2025-01-01 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 08:56:05' and `end` < '2025-01-01 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 11:56:18] Production.INFO: count ==481 [2025-01-01 11:56:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:56:05 - End Time 2025-01-01 11:56:05 [2025-01-01 11:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150719', 'tblTempUsageDetail_20' ) start [2025-01-01 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150719', 'tblTempUsageDetail_20' ) end [2025-01-01 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150719', 'tblTempVendorCDR_20' ) start [2025-01-01 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150719', 'tblTempVendorCDR_20' ) end [2025-01-01 11:56:18] Production.INFO: ProcessCDR(1,14150719,1,1,2) [2025-01-01 11:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150719', 'tblTempUsageDetail_20' ) start [2025-01-01 11:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150719', 'tblTempUsageDetail_20' ) end [2025-01-01 11:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:56:23] Production.INFO: ==9035== Releasing lock... [2025-01-01 11:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:56:23] Production.INFO: 32 MB #Memory Used# [2025-01-01 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:57:05 [end_date_ymd] => 2025-01-01 11:57:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:57:05' and `end` < '2025-01-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-01-01 11:57:18] Production.INFO: count ==481 [2025-01-01 11:57:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:57:05 - End Time 2025-01-01 11:57:05 [2025-01-01 11:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150724', 'tblTempUsageDetail_20' ) start [2025-01-01 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150724', 'tblTempUsageDetail_20' ) end [2025-01-01 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150724', 'tblTempVendorCDR_20' ) start [2025-01-01 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150724', 'tblTempVendorCDR_20' ) end [2025-01-01 11:57:18] Production.INFO: ProcessCDR(1,14150724,1,1,2) [2025-01-01 11:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150724', 'tblTempUsageDetail_20' ) start [2025-01-01 11:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150724', 'tblTempUsageDetail_20' ) end [2025-01-01 11:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:57:21] Production.INFO: ==9133== Releasing lock... [2025-01-01 11:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:57:21] Production.INFO: 32 MB #Memory Used# [2025-01-01 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:58:05 [end_date_ymd] => 2025-01-01 11:58:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:58:05' and `end` < '2025-01-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-01-01 11:58:18] Production.INFO: count ==498 [2025-01-01 11:58:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:58:05 - End Time 2025-01-01 11:58:05 [2025-01-01 11:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150729', 'tblTempUsageDetail_20' ) start [2025-01-01 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150729', 'tblTempUsageDetail_20' ) end [2025-01-01 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150729', 'tblTempVendorCDR_20' ) start [2025-01-01 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150729', 'tblTempVendorCDR_20' ) end [2025-01-01 11:58:18] Production.INFO: ProcessCDR(1,14150729,1,1,2) [2025-01-01 11:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150729', 'tblTempUsageDetail_20' ) start [2025-01-01 11:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150729', 'tblTempUsageDetail_20' ) end [2025-01-01 11:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:58:22] Production.INFO: ==9229== Releasing lock... [2025-01-01 11:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:58:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 08:59:05 [end_date_ymd] => 2025-01-01 11:59:05 [RateCDR] => 1 ) [2025-01-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-01-01 08:59:05' and `end` < '2025-01-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-01-01 11:59:18] Production.INFO: count ==500 [2025-01-01 11:59:18] Production.ERROR: pbx CDR StartTime 2025-01-01 08:59:05 - End Time 2025-01-01 11:59:05 [2025-01-01 11:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150734', 'tblTempUsageDetail_20' ) start [2025-01-01 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150734', 'tblTempUsageDetail_20' ) end [2025-01-01 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150734', 'tblTempVendorCDR_20' ) start [2025-01-01 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150734', 'tblTempVendorCDR_20' ) end [2025-01-01 11:59:18] Production.INFO: ProcessCDR(1,14150734,1,1,2) [2025-01-01 11:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 11:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 11:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150734', 'tblTempUsageDetail_20' ) start [2025-01-01 11:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150734', 'tblTempUsageDetail_20' ) end [2025-01-01 11:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 11:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 11:59:22] Production.INFO: ==9325== Releasing lock... [2025-01-01 11:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 11:59:22] Production.INFO: 32 MB #Memory Used# [2025-01-01 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:00:05 [end_date_ymd] => 2025-01-01 12:00:05 [RateCDR] => 1 ) [2025-01-01 12: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-01-01 09:00:05' and `end` < '2025-01-01 12: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-01-01 12:00:18] Production.INFO: count ==498 [2025-01-01 12:00:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:00:05 - End Time 2025-01-01 12:00:05 [2025-01-01 12:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150739', 'tblTempUsageDetail_20' ) start [2025-01-01 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150739', 'tblTempUsageDetail_20' ) end [2025-01-01 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150739', 'tblTempVendorCDR_20' ) start [2025-01-01 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150739', 'tblTempVendorCDR_20' ) end [2025-01-01 12:00:18] Production.INFO: ProcessCDR(1,14150739,1,1,2) [2025-01-01 12:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150739', 'tblTempUsageDetail_20' ) start [2025-01-01 12:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150739', 'tblTempUsageDetail_20' ) end [2025-01-01 12:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:00:22] Production.INFO: ==9421== Releasing lock... [2025-01-01 12:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:00:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-01 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:01:05 [end_date_ymd] => 2025-01-01 12:01:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:01:05' and `end` < '2025-01-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-01-01 12:01:18] Production.INFO: count ==522 [2025-01-01 12:01:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:01:05 - End Time 2025-01-01 12:01:05 [2025-01-01 12:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150745', 'tblTempUsageDetail_20' ) start [2025-01-01 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150745', 'tblTempUsageDetail_20' ) end [2025-01-01 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150745', 'tblTempVendorCDR_20' ) start [2025-01-01 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150745', 'tblTempVendorCDR_20' ) end [2025-01-01 12:01:18] Production.INFO: ProcessCDR(1,14150745,1,1,2) [2025-01-01 12:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150745', 'tblTempUsageDetail_20' ) start [2025-01-01 12:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150745', 'tblTempUsageDetail_20' ) end [2025-01-01 12:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:01:23] Production.INFO: ==9535== Releasing lock... [2025-01-01 12:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:01:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 12:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:02:04 [end_date_ymd] => 2025-01-01 12:02:04 [RateCDR] => 1 ) [2025-01-01 12:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 09:02:04' and `end` < '2025-01-01 12:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 12:02:17] Production.INFO: count ==522 [2025-01-01 12:02:17] Production.ERROR: pbx CDR StartTime 2025-01-01 09:02:04 - End Time 2025-01-01 12:02:04 [2025-01-01 12:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150750', 'tblTempUsageDetail_20' ) start [2025-01-01 12:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150750', 'tblTempUsageDetail_20' ) end [2025-01-01 12:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150750', 'tblTempVendorCDR_20' ) start [2025-01-01 12:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150750', 'tblTempVendorCDR_20' ) end [2025-01-01 12:02:17] Production.INFO: ProcessCDR(1,14150750,1,1,2) [2025-01-01 12:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150750', 'tblTempUsageDetail_20' ) start [2025-01-01 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150750', 'tblTempUsageDetail_20' ) end [2025-01-01 12:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:02:22] Production.INFO: ==9631== Releasing lock... [2025-01-01 12:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:02:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 12:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:03:04 [end_date_ymd] => 2025-01-01 12:03:04 [RateCDR] => 1 ) [2025-01-01 12: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-01 09:03:04' and `end` < '2025-01-01 12: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-01-01 12:03:18] Production.INFO: count ==523 [2025-01-01 12:03:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:03:04 - End Time 2025-01-01 12:03:04 [2025-01-01 12:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150755', 'tblTempUsageDetail_20' ) start [2025-01-01 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150755', 'tblTempUsageDetail_20' ) end [2025-01-01 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150755', 'tblTempVendorCDR_20' ) start [2025-01-01 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150755', 'tblTempVendorCDR_20' ) end [2025-01-01 12:03:18] Production.INFO: ProcessCDR(1,14150755,1,1,2) [2025-01-01 12:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150755', 'tblTempUsageDetail_20' ) start [2025-01-01 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150755', 'tblTempUsageDetail_20' ) end [2025-01-01 12:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:03:23] Production.INFO: ==9724== Releasing lock... [2025-01-01 12:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:03:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:04:05 [end_date_ymd] => 2025-01-01 12:04:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:04:05' and `end` < '2025-01-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-01-01 12:04:18] Production.INFO: count ==525 [2025-01-01 12:04:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:04:05 - End Time 2025-01-01 12:04:05 [2025-01-01 12:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150760', 'tblTempUsageDetail_20' ) start [2025-01-01 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150760', 'tblTempUsageDetail_20' ) end [2025-01-01 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150760', 'tblTempVendorCDR_20' ) start [2025-01-01 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150760', 'tblTempVendorCDR_20' ) end [2025-01-01 12:04:18] Production.INFO: ProcessCDR(1,14150760,1,1,2) [2025-01-01 12:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150760', 'tblTempUsageDetail_20' ) start [2025-01-01 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150760', 'tblTempUsageDetail_20' ) end [2025-01-01 12:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:04:23] Production.INFO: ==9821== Releasing lock... [2025-01-01 12:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:04:23] Production.INFO: 33 MB #Memory Used# [2025-01-01 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:05:05 [end_date_ymd] => 2025-01-01 12:05:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:05:05' and `end` < '2025-01-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-01-01 12:05:19] Production.INFO: count ==525 [2025-01-01 12:05:19] Production.ERROR: pbx CDR StartTime 2025-01-01 09:05:05 - End Time 2025-01-01 12:05:05 [2025-01-01 12:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150765', 'tblTempUsageDetail_20' ) start [2025-01-01 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150765', 'tblTempUsageDetail_20' ) end [2025-01-01 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150765', 'tblTempVendorCDR_20' ) start [2025-01-01 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150765', 'tblTempVendorCDR_20' ) end [2025-01-01 12:05:19] Production.INFO: ProcessCDR(1,14150765,1,1,2) [2025-01-01 12:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150765', 'tblTempUsageDetail_20' ) start [2025-01-01 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150765', 'tblTempUsageDetail_20' ) end [2025-01-01 12:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:05:22] Production.INFO: ==9909== Releasing lock... [2025-01-01 12:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:05:22] Production.INFO: 33 MB #Memory Used# [2025-01-01 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:06:05 [end_date_ymd] => 2025-01-01 12:06:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:06:05' and `end` < '2025-01-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-01-01 12:06:18] Production.INFO: count ==524 [2025-01-01 12:06:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:06:05 - End Time 2025-01-01 12:06:05 [2025-01-01 12:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150770', 'tblTempUsageDetail_20' ) start [2025-01-01 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150770', 'tblTempUsageDetail_20' ) end [2025-01-01 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150770', 'tblTempVendorCDR_20' ) start [2025-01-01 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150770', 'tblTempVendorCDR_20' ) end [2025-01-01 12:06:18] Production.INFO: ProcessCDR(1,14150770,1,1,2) [2025-01-01 12:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150770', 'tblTempUsageDetail_20' ) start [2025-01-01 12:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150770', 'tblTempUsageDetail_20' ) end [2025-01-01 12:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:06:21] Production.INFO: ==10001== Releasing lock... [2025-01-01 12:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:06:21] Production.INFO: 33 MB #Memory Used# [2025-01-01 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:07:05 [end_date_ymd] => 2025-01-01 12:07:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:07:05' and `end` < '2025-01-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-01-01 12:07:17] Production.INFO: count ==524 [2025-01-01 12:07:17] Production.ERROR: pbx CDR StartTime 2025-01-01 09:07:05 - End Time 2025-01-01 12:07:05 [2025-01-01 12:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150775', 'tblTempUsageDetail_20' ) start [2025-01-01 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150775', 'tblTempUsageDetail_20' ) end [2025-01-01 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150775', 'tblTempVendorCDR_20' ) start [2025-01-01 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150775', 'tblTempVendorCDR_20' ) end [2025-01-01 12:07:17] Production.INFO: ProcessCDR(1,14150775,1,1,2) [2025-01-01 12:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150775', 'tblTempUsageDetail_20' ) start [2025-01-01 12:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150775', 'tblTempUsageDetail_20' ) end [2025-01-01 12:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:07:21] Production.INFO: ==10090== Releasing lock... [2025-01-01 12:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:07:21] Production.INFO: 33 MB #Memory Used# [2025-01-01 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:08:05 [end_date_ymd] => 2025-01-01 12:08:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:08:05' and `end` < '2025-01-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-01-01 12:08:18] Production.INFO: count ==526 [2025-01-01 12:08:19] Production.ERROR: pbx CDR StartTime 2025-01-01 09:08:05 - End Time 2025-01-01 12:08:05 [2025-01-01 12:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150780', 'tblTempUsageDetail_20' ) start [2025-01-01 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150780', 'tblTempUsageDetail_20' ) end [2025-01-01 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150780', 'tblTempVendorCDR_20' ) start [2025-01-01 12:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150780', 'tblTempVendorCDR_20' ) end [2025-01-01 12:08:19] Production.INFO: ProcessCDR(1,14150780,1,1,2) [2025-01-01 12:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150780', 'tblTempUsageDetail_20' ) start [2025-01-01 12:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150780', 'tblTempUsageDetail_20' ) end [2025-01-01 12:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:08:22] Production.INFO: ==10182== Releasing lock... [2025-01-01 12:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:08:22] Production.INFO: 33 MB #Memory Used# [2025-01-01 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:09:05 [end_date_ymd] => 2025-01-01 12:09:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:09:05' and `end` < '2025-01-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-01-01 12:09:18] Production.INFO: count ==511 [2025-01-01 12:09:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:09:05 - End Time 2025-01-01 12:09:05 [2025-01-01 12:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150785', 'tblTempUsageDetail_20' ) start [2025-01-01 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150785', 'tblTempUsageDetail_20' ) end [2025-01-01 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150785', 'tblTempVendorCDR_20' ) start [2025-01-01 12:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150785', 'tblTempVendorCDR_20' ) end [2025-01-01 12:09:18] Production.INFO: ProcessCDR(1,14150785,1,1,2) [2025-01-01 12:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150785', 'tblTempUsageDetail_20' ) start [2025-01-01 12:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150785', 'tblTempUsageDetail_20' ) end [2025-01-01 12:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:09:21] Production.INFO: ==10263== Releasing lock... [2025-01-01 12:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:09:21] Production.INFO: 32 MB #Memory Used# [2025-01-01 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:10:05 [end_date_ymd] => 2025-01-01 12:10:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:10:05' and `end` < '2025-01-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-01-01 12:10:18] Production.INFO: count ==517 [2025-01-01 12:10:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:10:05 - End Time 2025-01-01 12:10:05 [2025-01-01 12:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150791', 'tblTempUsageDetail_20' ) start [2025-01-01 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150791', 'tblTempUsageDetail_20' ) end [2025-01-01 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150791', 'tblTempVendorCDR_20' ) start [2025-01-01 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150791', 'tblTempVendorCDR_20' ) end [2025-01-01 12:10:18] Production.INFO: ProcessCDR(1,14150791,1,1,2) [2025-01-01 12:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150791', 'tblTempUsageDetail_20' ) start [2025-01-01 12:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150791', 'tblTempUsageDetail_20' ) end [2025-01-01 12:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:10:21] Production.INFO: ==10352== Releasing lock... [2025-01-01 12:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:10:21] Production.INFO: 32 MB #Memory Used# [2025-01-01 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:11:05 [end_date_ymd] => 2025-01-01 12:11:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:11:05' and `end` < '2025-01-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-01-01 12:11:18] Production.INFO: count ==531 [2025-01-01 12:11:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:11:05 - End Time 2025-01-01 12:11:05 [2025-01-01 12:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150796', 'tblTempUsageDetail_20' ) start [2025-01-01 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150796', 'tblTempUsageDetail_20' ) end [2025-01-01 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150796', 'tblTempVendorCDR_20' ) start [2025-01-01 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150796', 'tblTempVendorCDR_20' ) end [2025-01-01 12:11:18] Production.INFO: ProcessCDR(1,14150796,1,1,2) [2025-01-01 12:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150796', 'tblTempUsageDetail_20' ) start [2025-01-01 12:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150796', 'tblTempUsageDetail_20' ) end [2025-01-01 12:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:11:22] Production.INFO: ==10481== Releasing lock... [2025-01-01 12:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:11:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-01 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:12:05 [end_date_ymd] => 2025-01-01 12:12:05 [RateCDR] => 1 ) [2025-01-01 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 09:12:05' and `end` < '2025-01-01 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 12:12:17] Production.INFO: count ==531 [2025-01-01 12:12:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:12:05 - End Time 2025-01-01 12:12:05 [2025-01-01 12:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150801', 'tblTempUsageDetail_20' ) start [2025-01-01 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150801', 'tblTempUsageDetail_20' ) end [2025-01-01 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150801', 'tblTempVendorCDR_20' ) start [2025-01-01 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150801', 'tblTempVendorCDR_20' ) end [2025-01-01 12:12:18] Production.INFO: ProcessCDR(1,14150801,1,1,2) [2025-01-01 12:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150801', 'tblTempUsageDetail_20' ) start [2025-01-01 12:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150801', 'tblTempUsageDetail_20' ) end [2025-01-01 12:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:12:21] Production.INFO: ==10559== Releasing lock... [2025-01-01 12:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:12:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-01 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:13:05 [end_date_ymd] => 2025-01-01 12:13:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:13:05' and `end` < '2025-01-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-01-01 12:13:18] Production.INFO: count ==531 [2025-01-01 12:13:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:13:05 - End Time 2025-01-01 12:13:05 [2025-01-01 12:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150806', 'tblTempUsageDetail_20' ) start [2025-01-01 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150806', 'tblTempUsageDetail_20' ) end [2025-01-01 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150806', 'tblTempVendorCDR_20' ) start [2025-01-01 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150806', 'tblTempVendorCDR_20' ) end [2025-01-01 12:13:18] Production.INFO: ProcessCDR(1,14150806,1,1,2) [2025-01-01 12:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150806', 'tblTempUsageDetail_20' ) start [2025-01-01 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150806', 'tblTempUsageDetail_20' ) end [2025-01-01 12:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:13:21] Production.INFO: ==10646== Releasing lock... [2025-01-01 12:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:13:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-01 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:14:05 [end_date_ymd] => 2025-01-01 12:14:05 [RateCDR] => 1 ) [2025-01-01 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 09:14:05' and `end` < '2025-01-01 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 12:14:19] Production.INFO: count ==531 [2025-01-01 12:14:19] Production.ERROR: pbx CDR StartTime 2025-01-01 09:14:05 - End Time 2025-01-01 12:14:05 [2025-01-01 12:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150811', 'tblTempUsageDetail_20' ) start [2025-01-01 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150811', 'tblTempUsageDetail_20' ) end [2025-01-01 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150811', 'tblTempVendorCDR_20' ) start [2025-01-01 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150811', 'tblTempVendorCDR_20' ) end [2025-01-01 12:14:19] Production.INFO: ProcessCDR(1,14150811,1,1,2) [2025-01-01 12:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150811', 'tblTempUsageDetail_20' ) start [2025-01-01 12:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150811', 'tblTempUsageDetail_20' ) end [2025-01-01 12:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:14:23] Production.INFO: ==10731== Releasing lock... [2025-01-01 12:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:14:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:15:05 [end_date_ymd] => 2025-01-01 12:15:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:15:05' and `end` < '2025-01-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-01-01 12:15:17] Production.INFO: count ==531 [2025-01-01 12:15:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:15:05 - End Time 2025-01-01 12:15:05 [2025-01-01 12:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150816', 'tblTempUsageDetail_20' ) start [2025-01-01 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150816', 'tblTempUsageDetail_20' ) end [2025-01-01 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150816', 'tblTempVendorCDR_20' ) start [2025-01-01 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150816', 'tblTempVendorCDR_20' ) end [2025-01-01 12:15:18] Production.INFO: ProcessCDR(1,14150816,1,1,2) [2025-01-01 12:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150816', 'tblTempUsageDetail_20' ) start [2025-01-01 12:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150816', 'tblTempUsageDetail_20' ) end [2025-01-01 12:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:15:21] Production.INFO: ==10812== Releasing lock... [2025-01-01 12:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:15:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-01 12:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:16:04 [end_date_ymd] => 2025-01-01 12:16:04 [RateCDR] => 1 ) [2025-01-01 12: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-01 09:16:04' and `end` < '2025-01-01 12: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-01-01 12:16:17] Production.INFO: count ==533 [2025-01-01 12:16:17] Production.ERROR: pbx CDR StartTime 2025-01-01 09:16:04 - End Time 2025-01-01 12:16:04 [2025-01-01 12:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150821', 'tblTempUsageDetail_20' ) start [2025-01-01 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150821', 'tblTempUsageDetail_20' ) end [2025-01-01 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150821', 'tblTempVendorCDR_20' ) start [2025-01-01 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150821', 'tblTempVendorCDR_20' ) end [2025-01-01 12:16:17] Production.INFO: ProcessCDR(1,14150821,1,1,2) [2025-01-01 12:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150821', 'tblTempUsageDetail_20' ) start [2025-01-01 12:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150821', 'tblTempUsageDetail_20' ) end [2025-01-01 12:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:16:21] Production.INFO: ==10902== Releasing lock... [2025-01-01 12:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:16:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:17:05 [end_date_ymd] => 2025-01-01 12:17:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:17:05' and `end` < '2025-01-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-01-01 12:17:17] Production.INFO: count ==533 [2025-01-01 12:17:17] Production.ERROR: pbx CDR StartTime 2025-01-01 09:17:05 - End Time 2025-01-01 12:17:05 [2025-01-01 12:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150826', 'tblTempUsageDetail_20' ) start [2025-01-01 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150826', 'tblTempUsageDetail_20' ) end [2025-01-01 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150826', 'tblTempVendorCDR_20' ) start [2025-01-01 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150826', 'tblTempVendorCDR_20' ) end [2025-01-01 12:17:18] Production.INFO: ProcessCDR(1,14150826,1,1,2) [2025-01-01 12:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150826', 'tblTempUsageDetail_20' ) start [2025-01-01 12:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150826', 'tblTempUsageDetail_20' ) end [2025-01-01 12:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:17:21] Production.INFO: ==10999== Releasing lock... [2025-01-01 12:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:17:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:18:05 [end_date_ymd] => 2025-01-01 12:18:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:18:05' and `end` < '2025-01-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-01-01 12:18:21] Production.INFO: count ==536 [2025-01-01 12:18:21] Production.ERROR: pbx CDR StartTime 2025-01-01 09:18:05 - End Time 2025-01-01 12:18:05 [2025-01-01 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150831', 'tblTempUsageDetail_20' ) start [2025-01-01 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150831', 'tblTempUsageDetail_20' ) end [2025-01-01 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150831', 'tblTempVendorCDR_20' ) start [2025-01-01 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150831', 'tblTempVendorCDR_20' ) end [2025-01-01 12:18:21] Production.INFO: ProcessCDR(1,14150831,1,1,2) [2025-01-01 12:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150831', 'tblTempUsageDetail_20' ) start [2025-01-01 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150831', 'tblTempUsageDetail_20' ) end [2025-01-01 12:18:26] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:18:26] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:18:26] Production.INFO: ==11084== Releasing lock... [2025-01-01 12:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:18:26] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:19:05 [end_date_ymd] => 2025-01-01 12:19:05 [RateCDR] => 1 ) [2025-01-01 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 09:19:05' and `end` < '2025-01-01 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 12:19:18] Production.INFO: count ==539 [2025-01-01 12:19:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:19:05 - End Time 2025-01-01 12:19:05 [2025-01-01 12:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150836', 'tblTempUsageDetail_20' ) start [2025-01-01 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150836', 'tblTempUsageDetail_20' ) end [2025-01-01 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150836', 'tblTempVendorCDR_20' ) start [2025-01-01 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150836', 'tblTempVendorCDR_20' ) end [2025-01-01 12:19:18] Production.INFO: ProcessCDR(1,14150836,1,1,2) [2025-01-01 12:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150836', 'tblTempUsageDetail_20' ) start [2025-01-01 12:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150836', 'tblTempUsageDetail_20' ) end [2025-01-01 12:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:19:21] Production.INFO: ==11171== Releasing lock... [2025-01-01 12:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:19:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-01 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:20:05 [end_date_ymd] => 2025-01-01 12:20:05 [RateCDR] => 1 ) [2025-01-01 12:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 09:20:05' and `end` < '2025-01-01 12:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 12:20:18] Production.INFO: count ==547 [2025-01-01 12:20:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:20:05 - End Time 2025-01-01 12:20:05 [2025-01-01 12:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150841', 'tblTempUsageDetail_20' ) start [2025-01-01 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150841', 'tblTempUsageDetail_20' ) end [2025-01-01 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150841', 'tblTempVendorCDR_20' ) start [2025-01-01 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150841', 'tblTempVendorCDR_20' ) end [2025-01-01 12:20:18] Production.INFO: ProcessCDR(1,14150841,1,1,2) [2025-01-01 12:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150841', 'tblTempUsageDetail_20' ) start [2025-01-01 12:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150841', 'tblTempUsageDetail_20' ) end [2025-01-01 12:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:20:21] Production.INFO: ==11255== Releasing lock... [2025-01-01 12:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:20:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-01 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:21:05 [end_date_ymd] => 2025-01-01 12:21:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:21:05' and `end` < '2025-01-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-01-01 12:21:19] Production.INFO: count ==557 [2025-01-01 12:21:19] Production.ERROR: pbx CDR StartTime 2025-01-01 09:21:05 - End Time 2025-01-01 12:21:05 [2025-01-01 12:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150847', 'tblTempUsageDetail_20' ) start [2025-01-01 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150847', 'tblTempUsageDetail_20' ) end [2025-01-01 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150847', 'tblTempVendorCDR_20' ) start [2025-01-01 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150847', 'tblTempVendorCDR_20' ) end [2025-01-01 12:21:19] Production.INFO: ProcessCDR(1,14150847,1,1,2) [2025-01-01 12:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150847', 'tblTempUsageDetail_20' ) start [2025-01-01 12:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150847', 'tblTempUsageDetail_20' ) end [2025-01-01 12:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:21:22] Production.INFO: ==11341== Releasing lock... [2025-01-01 12:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:21:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-01 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:22:05 [end_date_ymd] => 2025-01-01 12:22:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:22:05' and `end` < '2025-01-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-01-01 12:22:18] Production.INFO: count ==557 [2025-01-01 12:22:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:22:05 - End Time 2025-01-01 12:22:05 [2025-01-01 12:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150852', 'tblTempUsageDetail_20' ) start [2025-01-01 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150852', 'tblTempUsageDetail_20' ) end [2025-01-01 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150852', 'tblTempVendorCDR_20' ) start [2025-01-01 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150852', 'tblTempVendorCDR_20' ) end [2025-01-01 12:22:18] Production.INFO: ProcessCDR(1,14150852,1,1,2) [2025-01-01 12:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150852', 'tblTempUsageDetail_20' ) start [2025-01-01 12:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150852', 'tblTempUsageDetail_20' ) end [2025-01-01 12:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:22:21] Production.INFO: ==11428== Releasing lock... [2025-01-01 12:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:22:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-01 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:23:05 [end_date_ymd] => 2025-01-01 12:23:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:23:05' and `end` < '2025-01-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-01-01 12:23:19] Production.INFO: count ==559 [2025-01-01 12:23:19] Production.ERROR: pbx CDR StartTime 2025-01-01 09:23:05 - End Time 2025-01-01 12:23:05 [2025-01-01 12:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150857', 'tblTempUsageDetail_20' ) start [2025-01-01 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150857', 'tblTempUsageDetail_20' ) end [2025-01-01 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150857', 'tblTempVendorCDR_20' ) start [2025-01-01 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150857', 'tblTempVendorCDR_20' ) end [2025-01-01 12:23:19] Production.INFO: ProcessCDR(1,14150857,1,1,2) [2025-01-01 12:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150857', 'tblTempUsageDetail_20' ) start [2025-01-01 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150857', 'tblTempUsageDetail_20' ) end [2025-01-01 12:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:23:22] Production.INFO: ==11520== Releasing lock... [2025-01-01 12:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:23:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:24:05 [end_date_ymd] => 2025-01-01 12:24:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:24:05' and `end` < '2025-01-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-01-01 12:24:19] Production.INFO: count ==564 [2025-01-01 12:24:19] Production.ERROR: pbx CDR StartTime 2025-01-01 09:24:05 - End Time 2025-01-01 12:24:05 [2025-01-01 12:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150862', 'tblTempUsageDetail_20' ) start [2025-01-01 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150862', 'tblTempUsageDetail_20' ) end [2025-01-01 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150862', 'tblTempVendorCDR_20' ) start [2025-01-01 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150862', 'tblTempVendorCDR_20' ) end [2025-01-01 12:24:19] Production.INFO: ProcessCDR(1,14150862,1,1,2) [2025-01-01 12:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150862', 'tblTempUsageDetail_20' ) start [2025-01-01 12:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150862', 'tblTempUsageDetail_20' ) end [2025-01-01 12:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:24:22] Production.INFO: ==11607== Releasing lock... [2025-01-01 12:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:24:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 12:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:25:04 [end_date_ymd] => 2025-01-01 12:25:04 [RateCDR] => 1 ) [2025-01-01 12: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-01 09:25:04' and `end` < '2025-01-01 12: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-01-01 12:25:17] Production.INFO: count ==564 [2025-01-01 12:25:17] Production.ERROR: pbx CDR StartTime 2025-01-01 09:25:04 - End Time 2025-01-01 12:25:04 [2025-01-01 12:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150867', 'tblTempUsageDetail_20' ) start [2025-01-01 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150867', 'tblTempUsageDetail_20' ) end [2025-01-01 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150867', 'tblTempVendorCDR_20' ) start [2025-01-01 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150867', 'tblTempVendorCDR_20' ) end [2025-01-01 12:25:17] Production.INFO: ProcessCDR(1,14150867,1,1,2) [2025-01-01 12:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150867', 'tblTempUsageDetail_20' ) start [2025-01-01 12:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150867', 'tblTempUsageDetail_20' ) end [2025-01-01 12:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:25:21] Production.INFO: ==11692== Releasing lock... [2025-01-01 12:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:25:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:26:05 [end_date_ymd] => 2025-01-01 12:26:05 [RateCDR] => 1 ) [2025-01-01 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 09:26:05' and `end` < '2025-01-01 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 12:26:18] Production.INFO: count ==565 [2025-01-01 12:26:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:26:05 - End Time 2025-01-01 12:26:05 [2025-01-01 12:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150872', 'tblTempUsageDetail_20' ) start [2025-01-01 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150872', 'tblTempUsageDetail_20' ) end [2025-01-01 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150872', 'tblTempVendorCDR_20' ) start [2025-01-01 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150872', 'tblTempVendorCDR_20' ) end [2025-01-01 12:26:18] Production.INFO: ProcessCDR(1,14150872,1,1,2) [2025-01-01 12:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150872', 'tblTempUsageDetail_20' ) start [2025-01-01 12:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150872', 'tblTempUsageDetail_20' ) end [2025-01-01 12:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:26:23] Production.INFO: ==11783== Releasing lock... [2025-01-01 12:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:26:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 12:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:27:04 [end_date_ymd] => 2025-01-01 12:27:04 [RateCDR] => 1 ) [2025-01-01 12: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-01 09:27:04' and `end` < '2025-01-01 12: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-01-01 12:27:18] Production.INFO: count ==568 [2025-01-01 12:27:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:27:04 - End Time 2025-01-01 12:27:04 [2025-01-01 12:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150877', 'tblTempUsageDetail_20' ) start [2025-01-01 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150877', 'tblTempUsageDetail_20' ) end [2025-01-01 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150877', 'tblTempVendorCDR_20' ) start [2025-01-01 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150877', 'tblTempVendorCDR_20' ) end [2025-01-01 12:27:18] Production.INFO: ProcessCDR(1,14150877,1,1,2) [2025-01-01 12:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150877', 'tblTempUsageDetail_20' ) start [2025-01-01 12:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150877', 'tblTempUsageDetail_20' ) end [2025-01-01 12:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:27:23] Production.INFO: ==11904== Releasing lock... [2025-01-01 12:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:27:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:28:05 [end_date_ymd] => 2025-01-01 12:28:05 [RateCDR] => 1 ) [2025-01-01 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 09:28:05' and `end` < '2025-01-01 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 12:28:19] Production.INFO: count ==567 [2025-01-01 12:28:19] Production.ERROR: pbx CDR StartTime 2025-01-01 09:28:05 - End Time 2025-01-01 12:28:05 [2025-01-01 12:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150882', 'tblTempUsageDetail_20' ) start [2025-01-01 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150882', 'tblTempUsageDetail_20' ) end [2025-01-01 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150882', 'tblTempVendorCDR_20' ) start [2025-01-01 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150882', 'tblTempVendorCDR_20' ) end [2025-01-01 12:28:19] Production.INFO: ProcessCDR(1,14150882,1,1,2) [2025-01-01 12:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150882', 'tblTempUsageDetail_20' ) start [2025-01-01 12:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150882', 'tblTempUsageDetail_20' ) end [2025-01-01 12:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:28:22] Production.INFO: ==11989== Releasing lock... [2025-01-01 12:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:28:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:29:05 [end_date_ymd] => 2025-01-01 12:29:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:29:05' and `end` < '2025-01-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-01-01 12:29:18] Production.INFO: count ==567 [2025-01-01 12:29:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:29:05 - End Time 2025-01-01 12:29:05 [2025-01-01 12:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150887', 'tblTempUsageDetail_20' ) start [2025-01-01 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150887', 'tblTempUsageDetail_20' ) end [2025-01-01 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150887', 'tblTempVendorCDR_20' ) start [2025-01-01 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150887', 'tblTempVendorCDR_20' ) end [2025-01-01 12:29:18] Production.INFO: ProcessCDR(1,14150887,1,1,2) [2025-01-01 12:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150887', 'tblTempUsageDetail_20' ) start [2025-01-01 12:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150887', 'tblTempUsageDetail_20' ) end [2025-01-01 12:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:29:21] Production.INFO: ==12075== Releasing lock... [2025-01-01 12:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:29:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:30:06 [end_date_ymd] => 2025-01-01 12:30:06 [RateCDR] => 1 ) [2025-01-01 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 09:30:06' and `end` < '2025-01-01 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 12:30:19] Production.INFO: count ==575 [2025-01-01 12:30:19] Production.ERROR: pbx CDR StartTime 2025-01-01 09:30:06 - End Time 2025-01-01 12:30:06 [2025-01-01 12:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150893', 'tblTempUsageDetail_20' ) start [2025-01-01 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150893', 'tblTempUsageDetail_20' ) end [2025-01-01 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150893', 'tblTempVendorCDR_20' ) start [2025-01-01 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150893', 'tblTempVendorCDR_20' ) end [2025-01-01 12:30:19] Production.INFO: ProcessCDR(1,14150893,1,1,2) [2025-01-01 12:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150893', 'tblTempUsageDetail_20' ) start [2025-01-01 12:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150893', 'tblTempUsageDetail_20' ) end [2025-01-01 12:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:30:22] Production.INFO: ==12167== Releasing lock... [2025-01-01 12:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:30:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:31:05 [end_date_ymd] => 2025-01-01 12:31:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:31:05' and `end` < '2025-01-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-01-01 12:31:19] Production.INFO: count ==588 [2025-01-01 12:31:19] Production.ERROR: pbx CDR StartTime 2025-01-01 09:31:05 - End Time 2025-01-01 12:31:05 [2025-01-01 12:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150898', 'tblTempUsageDetail_20' ) start [2025-01-01 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150898', 'tblTempUsageDetail_20' ) end [2025-01-01 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150898', 'tblTempVendorCDR_20' ) start [2025-01-01 12:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150898', 'tblTempVendorCDR_20' ) end [2025-01-01 12:31:19] Production.INFO: ProcessCDR(1,14150898,1,1,2) [2025-01-01 12:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150898', 'tblTempUsageDetail_20' ) start [2025-01-01 12:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150898', 'tblTempUsageDetail_20' ) end [2025-01-01 12:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:31:23] Production.INFO: ==12259== Releasing lock... [2025-01-01 12:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:31:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:32:05 [end_date_ymd] => 2025-01-01 12:32:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:32:05' and `end` < '2025-01-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-01-01 12:32:18] Production.INFO: count ==588 [2025-01-01 12:32:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:32:05 - End Time 2025-01-01 12:32:05 [2025-01-01 12:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150903', 'tblTempUsageDetail_20' ) start [2025-01-01 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150903', 'tblTempUsageDetail_20' ) end [2025-01-01 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150903', 'tblTempVendorCDR_20' ) start [2025-01-01 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150903', 'tblTempVendorCDR_20' ) end [2025-01-01 12:32:19] Production.INFO: ProcessCDR(1,14150903,1,1,2) [2025-01-01 12:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150903', 'tblTempUsageDetail_20' ) start [2025-01-01 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150903', 'tblTempUsageDetail_20' ) end [2025-01-01 12:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:32:22] Production.INFO: ==12354== Releasing lock... [2025-01-01 12:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:32:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:33:05 [end_date_ymd] => 2025-01-01 12:33:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:33:05' and `end` < '2025-01-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-01-01 12:33:18] Production.INFO: count ==590 [2025-01-01 12:33:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:33:05 - End Time 2025-01-01 12:33:05 [2025-01-01 12:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150908', 'tblTempUsageDetail_20' ) start [2025-01-01 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150908', 'tblTempUsageDetail_20' ) end [2025-01-01 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150908', 'tblTempVendorCDR_20' ) start [2025-01-01 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150908', 'tblTempVendorCDR_20' ) end [2025-01-01 12:33:18] Production.INFO: ProcessCDR(1,14150908,1,1,2) [2025-01-01 12:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150908', 'tblTempUsageDetail_20' ) start [2025-01-01 12:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150908', 'tblTempUsageDetail_20' ) end [2025-01-01 12:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:33:23] Production.INFO: ==12434== Releasing lock... [2025-01-01 12:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:33:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 12:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:34:04 [end_date_ymd] => 2025-01-01 12:34:04 [RateCDR] => 1 ) [2025-01-01 12: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-01-01 09:34:04' and `end` < '2025-01-01 12: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-01-01 12:34:17] Production.INFO: count ==594 [2025-01-01 12:34:17] Production.ERROR: pbx CDR StartTime 2025-01-01 09:34:04 - End Time 2025-01-01 12:34:04 [2025-01-01 12:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150913', 'tblTempUsageDetail_20' ) start [2025-01-01 12:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150913', 'tblTempUsageDetail_20' ) end [2025-01-01 12:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150913', 'tblTempVendorCDR_20' ) start [2025-01-01 12:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150913', 'tblTempVendorCDR_20' ) end [2025-01-01 12:34:17] Production.INFO: ProcessCDR(1,14150913,1,1,2) [2025-01-01 12:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150913', 'tblTempUsageDetail_20' ) start [2025-01-01 12:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150913', 'tblTempUsageDetail_20' ) end [2025-01-01 12:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:34:21] Production.INFO: ==12521== Releasing lock... [2025-01-01 12:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:34:21] Production.INFO: 33 MB #Memory Used# [2025-01-01 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:35:05 [end_date_ymd] => 2025-01-01 12:35:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:35:05' and `end` < '2025-01-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-01-01 12:35:18] Production.INFO: count ==595 [2025-01-01 12:35:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:35:05 - End Time 2025-01-01 12:35:05 [2025-01-01 12:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150918', 'tblTempUsageDetail_20' ) start [2025-01-01 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150918', 'tblTempUsageDetail_20' ) end [2025-01-01 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150918', 'tblTempVendorCDR_20' ) start [2025-01-01 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150918', 'tblTempVendorCDR_20' ) end [2025-01-01 12:35:18] Production.INFO: ProcessCDR(1,14150918,1,1,2) [2025-01-01 12:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150918', 'tblTempUsageDetail_20' ) start [2025-01-01 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150918', 'tblTempUsageDetail_20' ) end [2025-01-01 12:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:35:22] Production.INFO: ==12610== Releasing lock... [2025-01-01 12:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:35:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:36:05 [end_date_ymd] => 2025-01-01 12:36:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:36:05' and `end` < '2025-01-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-01-01 12:36:19] Production.INFO: count ==595 [2025-01-01 12:36:19] Production.ERROR: pbx CDR StartTime 2025-01-01 09:36:05 - End Time 2025-01-01 12:36:05 [2025-01-01 12:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150923', 'tblTempUsageDetail_20' ) start [2025-01-01 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150923', 'tblTempUsageDetail_20' ) end [2025-01-01 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150923', 'tblTempVendorCDR_20' ) start [2025-01-01 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150923', 'tblTempVendorCDR_20' ) end [2025-01-01 12:36:19] Production.INFO: ProcessCDR(1,14150923,1,1,2) [2025-01-01 12:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150923', 'tblTempUsageDetail_20' ) start [2025-01-01 12:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150923', 'tblTempUsageDetail_20' ) end [2025-01-01 12:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:36:22] Production.INFO: ==12692== Releasing lock... [2025-01-01 12:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:36:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:37:05 [end_date_ymd] => 2025-01-01 12:37:05 [RateCDR] => 1 ) [2025-01-01 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 09:37:05' and `end` < '2025-01-01 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 12:37:17] Production.INFO: count ==595 [2025-01-01 12:37:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:37:05 - End Time 2025-01-01 12:37:05 [2025-01-01 12:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150928', 'tblTempUsageDetail_20' ) start [2025-01-01 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150928', 'tblTempUsageDetail_20' ) end [2025-01-01 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150928', 'tblTempVendorCDR_20' ) start [2025-01-01 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150928', 'tblTempVendorCDR_20' ) end [2025-01-01 12:37:18] Production.INFO: ProcessCDR(1,14150928,1,1,2) [2025-01-01 12:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150928', 'tblTempUsageDetail_20' ) start [2025-01-01 12:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150928', 'tblTempUsageDetail_20' ) end [2025-01-01 12:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:37:21] Production.INFO: ==12780== Releasing lock... [2025-01-01 12:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:37:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:38:05 [end_date_ymd] => 2025-01-01 12:38:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:38:05' and `end` < '2025-01-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-01-01 12:38:18] Production.INFO: count ==595 [2025-01-01 12:38:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:38:05 - End Time 2025-01-01 12:38:05 [2025-01-01 12:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150933', 'tblTempUsageDetail_20' ) start [2025-01-01 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150933', 'tblTempUsageDetail_20' ) end [2025-01-01 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150933', 'tblTempVendorCDR_20' ) start [2025-01-01 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150933', 'tblTempVendorCDR_20' ) end [2025-01-01 12:38:18] Production.INFO: ProcessCDR(1,14150933,1,1,2) [2025-01-01 12:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150933', 'tblTempUsageDetail_20' ) start [2025-01-01 12:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150933', 'tblTempUsageDetail_20' ) end [2025-01-01 12:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:38:22] Production.INFO: ==12864== Releasing lock... [2025-01-01 12:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:38:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:39:05 [end_date_ymd] => 2025-01-01 12:39:05 [RateCDR] => 1 ) [2025-01-01 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 09:39:05' and `end` < '2025-01-01 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 12:39:19] Production.INFO: count ==599 [2025-01-01 12:39:19] Production.ERROR: pbx CDR StartTime 2025-01-01 09:39:05 - End Time 2025-01-01 12:39:05 [2025-01-01 12:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150938', 'tblTempUsageDetail_20' ) start [2025-01-01 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150938', 'tblTempUsageDetail_20' ) end [2025-01-01 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150938', 'tblTempVendorCDR_20' ) start [2025-01-01 12:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150938', 'tblTempVendorCDR_20' ) end [2025-01-01 12:39:19] Production.INFO: ProcessCDR(1,14150938,1,1,2) [2025-01-01 12:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150938', 'tblTempUsageDetail_20' ) start [2025-01-01 12:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150938', 'tblTempUsageDetail_20' ) end [2025-01-01 12:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:39:22] Production.INFO: ==12944== Releasing lock... [2025-01-01 12:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:39:22] Production.INFO: 33 MB #Memory Used# [2025-01-01 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:40:06 [end_date_ymd] => 2025-01-01 12:40:06 [RateCDR] => 1 ) [2025-01-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-01-01 09:40:06' and `end` < '2025-01-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-01-01 12:40:19] Production.INFO: count ==601 [2025-01-01 12:40:19] Production.ERROR: pbx CDR StartTime 2025-01-01 09:40:06 - End Time 2025-01-01 12:40:06 [2025-01-01 12:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150944', 'tblTempUsageDetail_20' ) start [2025-01-01 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150944', 'tblTempUsageDetail_20' ) end [2025-01-01 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150944', 'tblTempVendorCDR_20' ) start [2025-01-01 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150944', 'tblTempVendorCDR_20' ) end [2025-01-01 12:40:19] Production.INFO: ProcessCDR(1,14150944,1,1,2) [2025-01-01 12:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150944', 'tblTempUsageDetail_20' ) start [2025-01-01 12:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150944', 'tblTempUsageDetail_20' ) end [2025-01-01 12:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:40:22] Production.INFO: ==13028== Releasing lock... [2025-01-01 12:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:40:22] Production.INFO: 33 MB #Memory Used# [2025-01-01 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:41:05 [end_date_ymd] => 2025-01-01 12:41:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:41:05' and `end` < '2025-01-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-01-01 12:41:19] Production.INFO: count ==623 [2025-01-01 12:41:19] Production.ERROR: pbx CDR StartTime 2025-01-01 09:41:05 - End Time 2025-01-01 12:41:05 [2025-01-01 12:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150949', 'tblTempUsageDetail_20' ) start [2025-01-01 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150949', 'tblTempUsageDetail_20' ) end [2025-01-01 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150949', 'tblTempVendorCDR_20' ) start [2025-01-01 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150949', 'tblTempVendorCDR_20' ) end [2025-01-01 12:41:19] Production.INFO: ProcessCDR(1,14150949,1,1,2) [2025-01-01 12:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150949', 'tblTempUsageDetail_20' ) start [2025-01-01 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150949', 'tblTempUsageDetail_20' ) end [2025-01-01 12:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:41:22] Production.INFO: ==13105== Releasing lock... [2025-01-01 12:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:41:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:42:06 [end_date_ymd] => 2025-01-01 12:42:06 [RateCDR] => 1 ) [2025-01-01 12: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-01 09:42:06' and `end` < '2025-01-01 12: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-01-01 12:42:21] Production.INFO: count ==629 [2025-01-01 12:42:21] Production.ERROR: pbx CDR StartTime 2025-01-01 09:42:06 - End Time 2025-01-01 12:42:06 [2025-01-01 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150954', 'tblTempUsageDetail_20' ) start [2025-01-01 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150954', 'tblTempUsageDetail_20' ) end [2025-01-01 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150954', 'tblTempVendorCDR_20' ) start [2025-01-01 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150954', 'tblTempVendorCDR_20' ) end [2025-01-01 12:42:21] Production.INFO: ProcessCDR(1,14150954,1,1,2) [2025-01-01 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150954', 'tblTempUsageDetail_20' ) start [2025-01-01 12:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150954', 'tblTempUsageDetail_20' ) end [2025-01-01 12:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:42:24] Production.INFO: ==13215== Releasing lock... [2025-01-01 12:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:42:24] Production.INFO: 33 MB #Memory Used# [2025-01-01 12:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:43:04 [end_date_ymd] => 2025-01-01 12:43:04 [RateCDR] => 1 ) [2025-01-01 12: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-01-01 09:43:04' and `end` < '2025-01-01 12: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-01-01 12:43:17] Production.INFO: count ==629 [2025-01-01 12:43:17] Production.ERROR: pbx CDR StartTime 2025-01-01 09:43:04 - End Time 2025-01-01 12:43:04 [2025-01-01 12:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150959', 'tblTempUsageDetail_20' ) start [2025-01-01 12:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150959', 'tblTempUsageDetail_20' ) end [2025-01-01 12:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150959', 'tblTempVendorCDR_20' ) start [2025-01-01 12:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150959', 'tblTempVendorCDR_20' ) end [2025-01-01 12:43:17] Production.INFO: ProcessCDR(1,14150959,1,1,2) [2025-01-01 12:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150959', 'tblTempUsageDetail_20' ) start [2025-01-01 12:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150959', 'tblTempUsageDetail_20' ) end [2025-01-01 12:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:43:20] Production.INFO: ==13284== Releasing lock... [2025-01-01 12:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:43:20] Production.INFO: 33 MB #Memory Used# [2025-01-01 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:44:05 [end_date_ymd] => 2025-01-01 12:44:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:44:05' and `end` < '2025-01-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-01-01 12:44:18] Production.INFO: count ==630 [2025-01-01 12:44:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:44:05 - End Time 2025-01-01 12:44:05 [2025-01-01 12:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150964', 'tblTempUsageDetail_20' ) start [2025-01-01 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150964', 'tblTempUsageDetail_20' ) end [2025-01-01 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150964', 'tblTempVendorCDR_20' ) start [2025-01-01 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150964', 'tblTempVendorCDR_20' ) end [2025-01-01 12:44:18] Production.INFO: ProcessCDR(1,14150964,1,1,2) [2025-01-01 12:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150964', 'tblTempUsageDetail_20' ) start [2025-01-01 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150964', 'tblTempUsageDetail_20' ) end [2025-01-01 12:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:44:23] Production.INFO: ==13356== Releasing lock... [2025-01-01 12:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:44:23] Production.INFO: 33 MB #Memory Used# [2025-01-01 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:45:05 [end_date_ymd] => 2025-01-01 12:45:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:45:05' and `end` < '2025-01-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-01-01 12:45:18] Production.INFO: count ==631 [2025-01-01 12:45:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:45:05 - End Time 2025-01-01 12:45:05 [2025-01-01 12:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150969', 'tblTempUsageDetail_20' ) start [2025-01-01 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150969', 'tblTempUsageDetail_20' ) end [2025-01-01 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150969', 'tblTempVendorCDR_20' ) start [2025-01-01 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150969', 'tblTempVendorCDR_20' ) end [2025-01-01 12:45:18] Production.INFO: ProcessCDR(1,14150969,1,1,2) [2025-01-01 12:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150969', 'tblTempUsageDetail_20' ) start [2025-01-01 12:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150969', 'tblTempUsageDetail_20' ) end [2025-01-01 12:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:45:22] Production.INFO: ==13431== Releasing lock... [2025-01-01 12:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:45:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:46:05 [end_date_ymd] => 2025-01-01 12:46:05 [RateCDR] => 1 ) [2025-01-01 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 09:46:05' and `end` < '2025-01-01 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 12:46:18] Production.INFO: count ==634 [2025-01-01 12:46:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:46:05 - End Time 2025-01-01 12:46:05 [2025-01-01 12:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150974', 'tblTempUsageDetail_20' ) start [2025-01-01 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150974', 'tblTempUsageDetail_20' ) end [2025-01-01 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150974', 'tblTempVendorCDR_20' ) start [2025-01-01 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150974', 'tblTempVendorCDR_20' ) end [2025-01-01 12:46:18] Production.INFO: ProcessCDR(1,14150974,1,1,2) [2025-01-01 12:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150974', 'tblTempUsageDetail_20' ) start [2025-01-01 12:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150974', 'tblTempUsageDetail_20' ) end [2025-01-01 12:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:46:21] Production.INFO: ==13501== Releasing lock... [2025-01-01 12:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:46:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-01 12:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:47:04 [end_date_ymd] => 2025-01-01 12:47:04 [RateCDR] => 1 ) [2025-01-01 12: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-01-01 09:47:04' and `end` < '2025-01-01 12: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-01-01 12:47:18] Production.INFO: count ==634 [2025-01-01 12:47:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:47:04 - End Time 2025-01-01 12:47:04 [2025-01-01 12:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150979', 'tblTempUsageDetail_20' ) start [2025-01-01 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150979', 'tblTempUsageDetail_20' ) end [2025-01-01 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150979', 'tblTempVendorCDR_20' ) start [2025-01-01 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150979', 'tblTempVendorCDR_20' ) end [2025-01-01 12:47:18] Production.INFO: ProcessCDR(1,14150979,1,1,2) [2025-01-01 12:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150979', 'tblTempUsageDetail_20' ) start [2025-01-01 12:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150979', 'tblTempUsageDetail_20' ) end [2025-01-01 12:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:47:21] Production.INFO: ==13577== Releasing lock... [2025-01-01 12:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:47:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-01 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:48:05 [end_date_ymd] => 2025-01-01 12:48:05 [RateCDR] => 1 ) [2025-01-01 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 09:48:05' and `end` < '2025-01-01 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 12:48:19] Production.INFO: count ==637 [2025-01-01 12:48:19] Production.ERROR: pbx CDR StartTime 2025-01-01 09:48:05 - End Time 2025-01-01 12:48:05 [2025-01-01 12:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150984', 'tblTempUsageDetail_20' ) start [2025-01-01 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150984', 'tblTempUsageDetail_20' ) end [2025-01-01 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150984', 'tblTempVendorCDR_20' ) start [2025-01-01 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150984', 'tblTempVendorCDR_20' ) end [2025-01-01 12:48:19] Production.INFO: ProcessCDR(1,14150984,1,1,2) [2025-01-01 12:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150984', 'tblTempUsageDetail_20' ) start [2025-01-01 12:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150984', 'tblTempUsageDetail_20' ) end [2025-01-01 12:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:48:23] Production.INFO: ==13650== Releasing lock... [2025-01-01 12:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:48:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-01 12:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:49:04 [end_date_ymd] => 2025-01-01 12:49:04 [RateCDR] => 1 ) [2025-01-01 12: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-01-01 09:49:04' and `end` < '2025-01-01 12: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-01-01 12:49:17] Production.INFO: count ==638 [2025-01-01 12:49:17] Production.ERROR: pbx CDR StartTime 2025-01-01 09:49:04 - End Time 2025-01-01 12:49:04 [2025-01-01 12:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150989', 'tblTempUsageDetail_20' ) start [2025-01-01 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150989', 'tblTempUsageDetail_20' ) end [2025-01-01 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150989', 'tblTempVendorCDR_20' ) start [2025-01-01 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150989', 'tblTempVendorCDR_20' ) end [2025-01-01 12:49:17] Production.INFO: ProcessCDR(1,14150989,1,1,2) [2025-01-01 12:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150989', 'tblTempUsageDetail_20' ) start [2025-01-01 12:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150989', 'tblTempUsageDetail_20' ) end [2025-01-01 12:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:49:21] Production.INFO: ==13724== Releasing lock... [2025-01-01 12:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:49:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:50:06 [end_date_ymd] => 2025-01-01 12:50:06 [RateCDR] => 1 ) [2025-01-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-01-01 09:50:06' and `end` < '2025-01-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-01-01 12:50:19] Production.INFO: count ==640 [2025-01-01 12:50:19] Production.ERROR: pbx CDR StartTime 2025-01-01 09:50:06 - End Time 2025-01-01 12:50:06 [2025-01-01 12:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150994', 'tblTempUsageDetail_20' ) start [2025-01-01 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14150994', 'tblTempUsageDetail_20' ) end [2025-01-01 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150994', 'tblTempVendorCDR_20' ) start [2025-01-01 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14150994', 'tblTempVendorCDR_20' ) end [2025-01-01 12:50:19] Production.INFO: ProcessCDR(1,14150994,1,1,2) [2025-01-01 12:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14150994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14150994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14150994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14150994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150994', 'tblTempUsageDetail_20' ) start [2025-01-01 12:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14150994', 'tblTempUsageDetail_20' ) end [2025-01-01 12:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:50:22] Production.INFO: ==13800== Releasing lock... [2025-01-01 12:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:50:22] Production.INFO: 33 MB #Memory Used# [2025-01-01 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:51:05 [end_date_ymd] => 2025-01-01 12:51:05 [RateCDR] => 1 ) [2025-01-01 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 09:51:05' and `end` < '2025-01-01 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 12:51:18] Production.INFO: count ==679 [2025-01-01 12:51:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:51:05 - End Time 2025-01-01 12:51:05 [2025-01-01 12:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151000', 'tblTempUsageDetail_20' ) start [2025-01-01 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151000', 'tblTempUsageDetail_20' ) end [2025-01-01 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151000', 'tblTempVendorCDR_20' ) start [2025-01-01 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151000', 'tblTempVendorCDR_20' ) end [2025-01-01 12:51:18] Production.INFO: ProcessCDR(1,14151000,1,1,2) [2025-01-01 12:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151000', 'tblTempUsageDetail_20' ) start [2025-01-01 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151000', 'tblTempUsageDetail_20' ) end [2025-01-01 12:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:51:21] Production.INFO: ==13879== Releasing lock... [2025-01-01 12:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:51:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 12:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:52:04 [end_date_ymd] => 2025-01-01 12:52:04 [RateCDR] => 1 ) [2025-01-01 12: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-01-01 09:52:04' and `end` < '2025-01-01 12: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-01-01 12:52:18] Production.INFO: count ==680 [2025-01-01 12:52:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:52:04 - End Time 2025-01-01 12:52:04 [2025-01-01 12:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151005', 'tblTempUsageDetail_20' ) start [2025-01-01 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151005', 'tblTempUsageDetail_20' ) end [2025-01-01 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151005', 'tblTempVendorCDR_20' ) start [2025-01-01 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151005', 'tblTempVendorCDR_20' ) end [2025-01-01 12:52:18] Production.INFO: ProcessCDR(1,14151005,1,1,2) [2025-01-01 12:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151005', 'tblTempUsageDetail_20' ) start [2025-01-01 12:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151005', 'tblTempUsageDetail_20' ) end [2025-01-01 12:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:52:23] Production.INFO: ==13955== Releasing lock... [2025-01-01 12:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:52:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:53:05 [end_date_ymd] => 2025-01-01 12:53:05 [RateCDR] => 1 ) [2025-01-01 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 09:53:05' and `end` < '2025-01-01 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 12:53:17] Production.INFO: count ==680 [2025-01-01 12:53:17] Production.ERROR: pbx CDR StartTime 2025-01-01 09:53:05 - End Time 2025-01-01 12:53:05 [2025-01-01 12:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151010', 'tblTempUsageDetail_20' ) start [2025-01-01 12:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151010', 'tblTempUsageDetail_20' ) end [2025-01-01 12:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151010', 'tblTempVendorCDR_20' ) start [2025-01-01 12:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151010', 'tblTempVendorCDR_20' ) end [2025-01-01 12:53:17] Production.INFO: ProcessCDR(1,14151010,1,1,2) [2025-01-01 12:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151010', 'tblTempUsageDetail_20' ) start [2025-01-01 12:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151010', 'tblTempUsageDetail_20' ) end [2025-01-01 12:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:53:21] Production.INFO: ==14031== Releasing lock... [2025-01-01 12:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:53:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:54:05 [end_date_ymd] => 2025-01-01 12:54:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:54:05' and `end` < '2025-01-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-01-01 12:54:18] Production.INFO: count ==664 [2025-01-01 12:54:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:54:05 - End Time 2025-01-01 12:54:05 [2025-01-01 12:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151015', 'tblTempUsageDetail_20' ) start [2025-01-01 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151015', 'tblTempUsageDetail_20' ) end [2025-01-01 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151015', 'tblTempVendorCDR_20' ) start [2025-01-01 12:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151015', 'tblTempVendorCDR_20' ) end [2025-01-01 12:54:19] Production.INFO: ProcessCDR(1,14151015,1,1,2) [2025-01-01 12:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151015', 'tblTempUsageDetail_20' ) start [2025-01-01 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151015', 'tblTempUsageDetail_20' ) end [2025-01-01 12:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:54:22] Production.INFO: ==14109== Releasing lock... [2025-01-01 12:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:54:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-01 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:55:05 [end_date_ymd] => 2025-01-01 12:55:05 [RateCDR] => 1 ) [2025-01-01 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 09:55:05' and `end` < '2025-01-01 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 12:55:18] Production.INFO: count ==667 [2025-01-01 12:55:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:55:05 - End Time 2025-01-01 12:55:05 [2025-01-01 12:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151020', 'tblTempUsageDetail_20' ) start [2025-01-01 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151020', 'tblTempUsageDetail_20' ) end [2025-01-01 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151020', 'tblTempVendorCDR_20' ) start [2025-01-01 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151020', 'tblTempVendorCDR_20' ) end [2025-01-01 12:55:18] Production.INFO: ProcessCDR(1,14151020,1,1,2) [2025-01-01 12:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151020', 'tblTempUsageDetail_20' ) start [2025-01-01 12:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151020', 'tblTempUsageDetail_20' ) end [2025-01-01 12:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:55:21] Production.INFO: ==14190== Releasing lock... [2025-01-01 12:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:55:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-01 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:56:05 [end_date_ymd] => 2025-01-01 12:56:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:56:05' and `end` < '2025-01-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-01-01 12:56:18] Production.INFO: count ==670 [2025-01-01 12:56:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:56:05 - End Time 2025-01-01 12:56:05 [2025-01-01 12:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151025', 'tblTempUsageDetail_20' ) start [2025-01-01 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151025', 'tblTempUsageDetail_20' ) end [2025-01-01 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151025', 'tblTempVendorCDR_20' ) start [2025-01-01 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151025', 'tblTempVendorCDR_20' ) end [2025-01-01 12:56:18] Production.INFO: ProcessCDR(1,14151025,1,1,2) [2025-01-01 12:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151025', 'tblTempUsageDetail_20' ) start [2025-01-01 12:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151025', 'tblTempUsageDetail_20' ) end [2025-01-01 12:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:56:21] Production.INFO: ==14265== Releasing lock... [2025-01-01 12:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:56:21] Production.INFO: 33 MB #Memory Used# [2025-01-01 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:57:05 [end_date_ymd] => 2025-01-01 12:57:05 [RateCDR] => 1 ) [2025-01-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-01-01 09:57:05' and `end` < '2025-01-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-01-01 12:57:18] Production.INFO: count ==671 [2025-01-01 12:57:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:57:05 - End Time 2025-01-01 12:57:05 [2025-01-01 12:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151030', 'tblTempUsageDetail_20' ) start [2025-01-01 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151030', 'tblTempUsageDetail_20' ) end [2025-01-01 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151030', 'tblTempVendorCDR_20' ) start [2025-01-01 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151030', 'tblTempVendorCDR_20' ) end [2025-01-01 12:57:18] Production.INFO: ProcessCDR(1,14151030,1,1,2) [2025-01-01 12:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151030', 'tblTempUsageDetail_20' ) start [2025-01-01 12:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151030', 'tblTempUsageDetail_20' ) end [2025-01-01 12:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:57:21] Production.INFO: ==14343== Releasing lock... [2025-01-01 12:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:57:21] Production.INFO: 33 MB #Memory Used# [2025-01-01 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:58:06 [end_date_ymd] => 2025-01-01 12:58:06 [RateCDR] => 1 ) [2025-01-01 12:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 09:58:06' and `end` < '2025-01-01 12:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 12:58:18] Production.INFO: count ==671 [2025-01-01 12:58:18] Production.ERROR: pbx CDR StartTime 2025-01-01 09:58:06 - End Time 2025-01-01 12:58:06 [2025-01-01 12:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151035', 'tblTempUsageDetail_20' ) start [2025-01-01 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151035', 'tblTempUsageDetail_20' ) end [2025-01-01 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151035', 'tblTempVendorCDR_20' ) start [2025-01-01 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151035', 'tblTempVendorCDR_20' ) end [2025-01-01 12:58:18] Production.INFO: ProcessCDR(1,14151035,1,1,2) [2025-01-01 12:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151035', 'tblTempUsageDetail_20' ) start [2025-01-01 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151035', 'tblTempUsageDetail_20' ) end [2025-01-01 12:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:58:22] Production.INFO: ==14458== Releasing lock... [2025-01-01 12:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:58:22] Production.INFO: 33 MB #Memory Used# [2025-01-01 12:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 09:59:04 [end_date_ymd] => 2025-01-01 12:59:04 [RateCDR] => 1 ) [2025-01-01 12: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-01-01 09:59:04' and `end` < '2025-01-01 12: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-01-01 12:59:17] Production.INFO: count ==677 [2025-01-01 12:59:17] Production.ERROR: pbx CDR StartTime 2025-01-01 09:59:04 - End Time 2025-01-01 12:59:04 [2025-01-01 12:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 12:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151040', 'tblTempUsageDetail_20' ) start [2025-01-01 12:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151040', 'tblTempUsageDetail_20' ) end [2025-01-01 12:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151040', 'tblTempVendorCDR_20' ) start [2025-01-01 12:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151040', 'tblTempVendorCDR_20' ) end [2025-01-01 12:59:17] Production.INFO: ProcessCDR(1,14151040,1,1,2) [2025-01-01 12:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 12:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 12:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151040', 'tblTempUsageDetail_20' ) start [2025-01-01 12:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151040', 'tblTempUsageDetail_20' ) end [2025-01-01 12:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 12:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 12:59:20] Production.INFO: ==14535== Releasing lock... [2025-01-01 12:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 12:59:20] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:00:06 [end_date_ymd] => 2025-01-01 13:00:06 [RateCDR] => 1 ) [2025-01-01 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 10:00:06' and `end` < '2025-01-01 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 13:00:18] Production.INFO: count ==679 [2025-01-01 13:00:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:00:06 - End Time 2025-01-01 13:00:06 [2025-01-01 13:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151046', 'tblTempUsageDetail_20' ) start [2025-01-01 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151046', 'tblTempUsageDetail_20' ) end [2025-01-01 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151046', 'tblTempVendorCDR_20' ) start [2025-01-01 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151046', 'tblTempVendorCDR_20' ) end [2025-01-01 13:00:19] Production.INFO: ProcessCDR(1,14151046,1,1,2) [2025-01-01 13:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151046', 'tblTempUsageDetail_20' ) start [2025-01-01 13:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151046', 'tblTempUsageDetail_20' ) end [2025-01-01 13:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:00:22] Production.INFO: ==14617== Releasing lock... [2025-01-01 13:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:00:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-01 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:01:05 [end_date_ymd] => 2025-01-01 13:01:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:01:05' and `end` < '2025-01-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-01-01 13:01:18] Production.INFO: count ==693 [2025-01-01 13:01:19] Production.ERROR: pbx CDR StartTime 2025-01-01 10:01:05 - End Time 2025-01-01 13:01:05 [2025-01-01 13:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151051', 'tblTempUsageDetail_20' ) start [2025-01-01 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151051', 'tblTempUsageDetail_20' ) end [2025-01-01 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151051', 'tblTempVendorCDR_20' ) start [2025-01-01 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151051', 'tblTempVendorCDR_20' ) end [2025-01-01 13:01:19] Production.INFO: ProcessCDR(1,14151051,1,1,2) [2025-01-01 13:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151051', 'tblTempUsageDetail_20' ) start [2025-01-01 13:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151051', 'tblTempUsageDetail_20' ) end [2025-01-01 13:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:01:22] Production.INFO: ==14711== Releasing lock... [2025-01-01 13:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:01:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:02:05 [end_date_ymd] => 2025-01-01 13:02:05 [RateCDR] => 1 ) [2025-01-01 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 10:02:05' and `end` < '2025-01-01 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 13:02:17] Production.INFO: count ==693 [2025-01-01 13:02:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:02:05 - End Time 2025-01-01 13:02:05 [2025-01-01 13:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151056', 'tblTempUsageDetail_20' ) start [2025-01-01 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151056', 'tblTempUsageDetail_20' ) end [2025-01-01 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151056', 'tblTempVendorCDR_20' ) start [2025-01-01 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151056', 'tblTempVendorCDR_20' ) end [2025-01-01 13:02:18] Production.INFO: ProcessCDR(1,14151056,1,1,2) [2025-01-01 13:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151056', 'tblTempUsageDetail_20' ) start [2025-01-01 13:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151056', 'tblTempUsageDetail_20' ) end [2025-01-01 13:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:02:21] Production.INFO: ==14793== Releasing lock... [2025-01-01 13:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:02:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 13:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:03:04 [end_date_ymd] => 2025-01-01 13:03:04 [RateCDR] => 1 ) [2025-01-01 13: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-01 10:03:04' and `end` < '2025-01-01 13: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-01-01 13:03:18] Production.INFO: count ==695 [2025-01-01 13:03:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:03:04 - End Time 2025-01-01 13:03:04 [2025-01-01 13:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151061', 'tblTempUsageDetail_20' ) start [2025-01-01 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151061', 'tblTempUsageDetail_20' ) end [2025-01-01 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151061', 'tblTempVendorCDR_20' ) start [2025-01-01 13:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151061', 'tblTempVendorCDR_20' ) end [2025-01-01 13:03:19] Production.INFO: ProcessCDR(1,14151061,1,1,2) [2025-01-01 13:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151061', 'tblTempUsageDetail_20' ) start [2025-01-01 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151061', 'tblTempUsageDetail_20' ) end [2025-01-01 13:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:03:23] Production.INFO: ==14872== Releasing lock... [2025-01-01 13:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:03:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:04:05 [end_date_ymd] => 2025-01-01 13:04:05 [RateCDR] => 1 ) [2025-01-01 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 10:04:05' and `end` < '2025-01-01 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 13:04:18] Production.INFO: count ==695 [2025-01-01 13:04:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:04:05 - End Time 2025-01-01 13:04:05 [2025-01-01 13:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151066', 'tblTempUsageDetail_20' ) start [2025-01-01 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151066', 'tblTempUsageDetail_20' ) end [2025-01-01 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151066', 'tblTempVendorCDR_20' ) start [2025-01-01 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151066', 'tblTempVendorCDR_20' ) end [2025-01-01 13:04:18] Production.INFO: ProcessCDR(1,14151066,1,1,2) [2025-01-01 13:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151066', 'tblTempUsageDetail_20' ) start [2025-01-01 13:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151066', 'tblTempUsageDetail_20' ) end [2025-01-01 13:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:04:21] Production.INFO: ==14950== Releasing lock... [2025-01-01 13:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:04:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:05:05 [end_date_ymd] => 2025-01-01 13:05:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:05:05' and `end` < '2025-01-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-01-01 13:05:18] Production.INFO: count ==695 [2025-01-01 13:05:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:05:05 - End Time 2025-01-01 13:05:05 [2025-01-01 13:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151071', 'tblTempUsageDetail_20' ) start [2025-01-01 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151071', 'tblTempUsageDetail_20' ) end [2025-01-01 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151071', 'tblTempVendorCDR_20' ) start [2025-01-01 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151071', 'tblTempVendorCDR_20' ) end [2025-01-01 13:05:18] Production.INFO: ProcessCDR(1,14151071,1,1,2) [2025-01-01 13:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151071', 'tblTempUsageDetail_20' ) start [2025-01-01 13:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151071', 'tblTempUsageDetail_20' ) end [2025-01-01 13:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:05:22] Production.INFO: ==15027== Releasing lock... [2025-01-01 13:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:05:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:06:05 [end_date_ymd] => 2025-01-01 13:06:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:06:05' and `end` < '2025-01-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-01-01 13:06:18] Production.INFO: count ==696 [2025-01-01 13:06:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:06:05 - End Time 2025-01-01 13:06:05 [2025-01-01 13:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151076', 'tblTempUsageDetail_20' ) start [2025-01-01 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151076', 'tblTempUsageDetail_20' ) end [2025-01-01 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151076', 'tblTempVendorCDR_20' ) start [2025-01-01 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151076', 'tblTempVendorCDR_20' ) end [2025-01-01 13:06:18] Production.INFO: ProcessCDR(1,14151076,1,1,2) [2025-01-01 13:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151076', 'tblTempUsageDetail_20' ) start [2025-01-01 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151076', 'tblTempUsageDetail_20' ) end [2025-01-01 13:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:06:23] Production.INFO: ==15103== Releasing lock... [2025-01-01 13:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:06:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-01 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:07:06 [end_date_ymd] => 2025-01-01 13:07:06 [RateCDR] => 1 ) [2025-01-01 13:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 10:07:06' and `end` < '2025-01-01 13:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 13:07:18] Production.INFO: count ==696 [2025-01-01 13:07:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:07:06 - End Time 2025-01-01 13:07:06 [2025-01-01 13:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151081', 'tblTempUsageDetail_20' ) start [2025-01-01 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151081', 'tblTempUsageDetail_20' ) end [2025-01-01 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151081', 'tblTempVendorCDR_20' ) start [2025-01-01 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151081', 'tblTempVendorCDR_20' ) end [2025-01-01 13:07:19] Production.INFO: ProcessCDR(1,14151081,1,1,2) [2025-01-01 13:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151081', 'tblTempUsageDetail_20' ) start [2025-01-01 13:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151081', 'tblTempUsageDetail_20' ) end [2025-01-01 13:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:07:22] Production.INFO: ==15181== Releasing lock... [2025-01-01 13:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:07:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-01 13:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:08:04 [end_date_ymd] => 2025-01-01 13:08:04 [RateCDR] => 1 ) [2025-01-01 13: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-01 10:08:04' and `end` < '2025-01-01 13: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-01-01 13:08:17] Production.INFO: count ==696 [2025-01-01 13:08:17] Production.ERROR: pbx CDR StartTime 2025-01-01 10:08:04 - End Time 2025-01-01 13:08:04 [2025-01-01 13:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151086', 'tblTempUsageDetail_20' ) start [2025-01-01 13:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151086', 'tblTempUsageDetail_20' ) end [2025-01-01 13:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151086', 'tblTempVendorCDR_20' ) start [2025-01-01 13:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151086', 'tblTempVendorCDR_20' ) end [2025-01-01 13:08:17] Production.INFO: ProcessCDR(1,14151086,1,1,2) [2025-01-01 13:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151086', 'tblTempUsageDetail_20' ) start [2025-01-01 13:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151086', 'tblTempUsageDetail_20' ) end [2025-01-01 13:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:08:20] Production.INFO: ==15255== Releasing lock... [2025-01-01 13:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:08:20] Production.INFO: 33.5 MB #Memory Used# [2025-01-01 13:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:09:04 [end_date_ymd] => 2025-01-01 13:09:04 [RateCDR] => 1 ) [2025-01-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-01-01 10:09:04' and `end` < '2025-01-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-01-01 13:09:19] Production.INFO: count ==696 [2025-01-01 13:09:19] Production.ERROR: pbx CDR StartTime 2025-01-01 10:09:04 - End Time 2025-01-01 13:09:04 [2025-01-01 13:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151091', 'tblTempUsageDetail_20' ) start [2025-01-01 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151091', 'tblTempUsageDetail_20' ) end [2025-01-01 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151091', 'tblTempVendorCDR_20' ) start [2025-01-01 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151091', 'tblTempVendorCDR_20' ) end [2025-01-01 13:09:19] Production.INFO: ProcessCDR(1,14151091,1,1,2) [2025-01-01 13:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151091', 'tblTempUsageDetail_20' ) start [2025-01-01 13:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151091', 'tblTempUsageDetail_20' ) end [2025-01-01 13:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:09:22] Production.INFO: ==15328== Releasing lock... [2025-01-01 13:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:09:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-01 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:10:05 [end_date_ymd] => 2025-01-01 13:10:05 [RateCDR] => 1 ) [2025-01-01 13: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-01 10:10:05' and `end` < '2025-01-01 13: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-01-01 13:10:17] Production.INFO: count ==696 [2025-01-01 13:10:17] Production.ERROR: pbx CDR StartTime 2025-01-01 10:10:05 - End Time 2025-01-01 13:10:05 [2025-01-01 13:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151096', 'tblTempUsageDetail_20' ) start [2025-01-01 13:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151096', 'tblTempUsageDetail_20' ) end [2025-01-01 13:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151096', 'tblTempVendorCDR_20' ) start [2025-01-01 13:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151096', 'tblTempVendorCDR_20' ) end [2025-01-01 13:10:17] Production.INFO: ProcessCDR(1,14151096,1,1,2) [2025-01-01 13:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151096', 'tblTempUsageDetail_20' ) start [2025-01-01 13:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151096', 'tblTempUsageDetail_20' ) end [2025-01-01 13:10:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:10:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:10:20] Production.INFO: ==15410== Releasing lock... [2025-01-01 13:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:10:20] Production.INFO: 33.5 MB #Memory Used# [2025-01-01 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:11:05 [end_date_ymd] => 2025-01-01 13:11:05 [RateCDR] => 1 ) [2025-01-01 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 10:11:05' and `end` < '2025-01-01 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 13:11:19] Production.INFO: count ==708 [2025-01-01 13:11:19] Production.ERROR: pbx CDR StartTime 2025-01-01 10:11:05 - End Time 2025-01-01 13:11:05 [2025-01-01 13:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151102', 'tblTempUsageDetail_20' ) start [2025-01-01 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151102', 'tblTempUsageDetail_20' ) end [2025-01-01 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151102', 'tblTempVendorCDR_20' ) start [2025-01-01 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151102', 'tblTempVendorCDR_20' ) end [2025-01-01 13:11:19] Production.INFO: ProcessCDR(1,14151102,1,1,2) [2025-01-01 13:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151102', 'tblTempUsageDetail_20' ) start [2025-01-01 13:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151102', 'tblTempUsageDetail_20' ) end [2025-01-01 13:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:11:22] Production.INFO: ==15483== Releasing lock... [2025-01-01 13:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:11:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:12:05 [end_date_ymd] => 2025-01-01 13:12:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:12:05' and `end` < '2025-01-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-01-01 13:12:17] Production.INFO: count ==709 [2025-01-01 13:12:17] Production.ERROR: pbx CDR StartTime 2025-01-01 10:12:05 - End Time 2025-01-01 13:12:05 [2025-01-01 13:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151107', 'tblTempUsageDetail_20' ) start [2025-01-01 13:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151107', 'tblTempUsageDetail_20' ) end [2025-01-01 13:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151107', 'tblTempVendorCDR_20' ) start [2025-01-01 13:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151107', 'tblTempVendorCDR_20' ) end [2025-01-01 13:12:17] Production.INFO: ProcessCDR(1,14151107,1,1,2) [2025-01-01 13:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151107', 'tblTempUsageDetail_20' ) start [2025-01-01 13:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151107', 'tblTempUsageDetail_20' ) end [2025-01-01 13:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:12:21] Production.INFO: ==15553== Releasing lock... [2025-01-01 13:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:12:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:13:05 [end_date_ymd] => 2025-01-01 13:13:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:13:05' and `end` < '2025-01-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-01-01 13:13:18] Production.INFO: count ==714 [2025-01-01 13:13:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:13:05 - End Time 2025-01-01 13:13:05 [2025-01-01 13:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151112', 'tblTempUsageDetail_20' ) start [2025-01-01 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151112', 'tblTempUsageDetail_20' ) end [2025-01-01 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151112', 'tblTempVendorCDR_20' ) start [2025-01-01 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151112', 'tblTempVendorCDR_20' ) end [2025-01-01 13:13:18] Production.INFO: ProcessCDR(1,14151112,1,1,2) [2025-01-01 13:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151112', 'tblTempUsageDetail_20' ) start [2025-01-01 13:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151112', 'tblTempUsageDetail_20' ) end [2025-01-01 13:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:13:21] Production.INFO: ==15623== Releasing lock... [2025-01-01 13:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:13:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-01 13:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:14:04 [end_date_ymd] => 2025-01-01 13:14:04 [RateCDR] => 1 ) [2025-01-01 13: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-01-01 10:14:04' and `end` < '2025-01-01 13: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-01-01 13:14:17] Production.INFO: count ==715 [2025-01-01 13:14:17] Production.ERROR: pbx CDR StartTime 2025-01-01 10:14:04 - End Time 2025-01-01 13:14:04 [2025-01-01 13:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151117', 'tblTempUsageDetail_20' ) start [2025-01-01 13:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151117', 'tblTempUsageDetail_20' ) end [2025-01-01 13:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151117', 'tblTempVendorCDR_20' ) start [2025-01-01 13:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151117', 'tblTempVendorCDR_20' ) end [2025-01-01 13:14:17] Production.INFO: ProcessCDR(1,14151117,1,1,2) [2025-01-01 13:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151117', 'tblTempUsageDetail_20' ) start [2025-01-01 13:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151117', 'tblTempUsageDetail_20' ) end [2025-01-01 13:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:14:20] Production.INFO: ==15734== Releasing lock... [2025-01-01 13:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:14:20] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:15:05 [end_date_ymd] => 2025-01-01 13:15:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:15:05' and `end` < '2025-01-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-01-01 13:15:19] Production.INFO: count ==716 [2025-01-01 13:15:19] Production.ERROR: pbx CDR StartTime 2025-01-01 10:15:05 - End Time 2025-01-01 13:15:05 [2025-01-01 13:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151122', 'tblTempUsageDetail_20' ) start [2025-01-01 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151122', 'tblTempUsageDetail_20' ) end [2025-01-01 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151122', 'tblTempVendorCDR_20' ) start [2025-01-01 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151122', 'tblTempVendorCDR_20' ) end [2025-01-01 13:15:19] Production.INFO: ProcessCDR(1,14151122,1,1,2) [2025-01-01 13:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151122', 'tblTempUsageDetail_20' ) start [2025-01-01 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151122', 'tblTempUsageDetail_20' ) end [2025-01-01 13:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:15:24] Production.INFO: ==15804== Releasing lock... [2025-01-01 13:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:15:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 13:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:16:04 [end_date_ymd] => 2025-01-01 13:16:04 [RateCDR] => 1 ) [2025-01-01 13: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-01 10:16:04' and `end` < '2025-01-01 13: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-01-01 13:16:17] Production.INFO: count ==718 [2025-01-01 13:16:17] Production.ERROR: pbx CDR StartTime 2025-01-01 10:16:04 - End Time 2025-01-01 13:16:04 [2025-01-01 13:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151127', 'tblTempUsageDetail_20' ) start [2025-01-01 13:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151127', 'tblTempUsageDetail_20' ) end [2025-01-01 13:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151127', 'tblTempVendorCDR_20' ) start [2025-01-01 13:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151127', 'tblTempVendorCDR_20' ) end [2025-01-01 13:16:17] Production.INFO: ProcessCDR(1,14151127,1,1,2) [2025-01-01 13:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151127', 'tblTempUsageDetail_20' ) start [2025-01-01 13:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151127', 'tblTempUsageDetail_20' ) end [2025-01-01 13:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:16:21] Production.INFO: ==15880== Releasing lock... [2025-01-01 13:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:16:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-01 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:17:05 [end_date_ymd] => 2025-01-01 13:17:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:17:05' and `end` < '2025-01-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-01-01 13:17:18] Production.INFO: count ==733 [2025-01-01 13:17:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:17:05 - End Time 2025-01-01 13:17:05 [2025-01-01 13:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151132', 'tblTempUsageDetail_20' ) start [2025-01-01 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151132', 'tblTempUsageDetail_20' ) end [2025-01-01 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151132', 'tblTempVendorCDR_20' ) start [2025-01-01 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151132', 'tblTempVendorCDR_20' ) end [2025-01-01 13:17:18] Production.INFO: ProcessCDR(1,14151132,1,1,2) [2025-01-01 13:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151132', 'tblTempUsageDetail_20' ) start [2025-01-01 13:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151132', 'tblTempUsageDetail_20' ) end [2025-01-01 13:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:17:21] Production.INFO: ==15951== Releasing lock... [2025-01-01 13:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:17:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:18:05 [end_date_ymd] => 2025-01-01 13:18:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:18:05' and `end` < '2025-01-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-01-01 13:18:18] Production.INFO: count ==727 [2025-01-01 13:18:19] Production.ERROR: pbx CDR StartTime 2025-01-01 10:18:05 - End Time 2025-01-01 13:18:05 [2025-01-01 13:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151137', 'tblTempUsageDetail_20' ) start [2025-01-01 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151137', 'tblTempUsageDetail_20' ) end [2025-01-01 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151137', 'tblTempVendorCDR_20' ) start [2025-01-01 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151137', 'tblTempVendorCDR_20' ) end [2025-01-01 13:18:19] Production.INFO: ProcessCDR(1,14151137,1,1,2) [2025-01-01 13:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151137', 'tblTempUsageDetail_20' ) start [2025-01-01 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151137', 'tblTempUsageDetail_20' ) end [2025-01-01 13:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:18:22] Production.INFO: ==16022== Releasing lock... [2025-01-01 13:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:18:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:19:05 [end_date_ymd] => 2025-01-01 13:19:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:19:05' and `end` < '2025-01-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-01-01 13:19:18] Production.INFO: count ==728 [2025-01-01 13:19:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:19:05 - End Time 2025-01-01 13:19:05 [2025-01-01 13:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151142', 'tblTempUsageDetail_20' ) start [2025-01-01 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151142', 'tblTempUsageDetail_20' ) end [2025-01-01 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151142', 'tblTempVendorCDR_20' ) start [2025-01-01 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151142', 'tblTempVendorCDR_20' ) end [2025-01-01 13:19:18] Production.INFO: ProcessCDR(1,14151142,1,1,2) [2025-01-01 13:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151142', 'tblTempUsageDetail_20' ) start [2025-01-01 13:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151142', 'tblTempUsageDetail_20' ) end [2025-01-01 13:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:19:22] Production.INFO: ==16093== Releasing lock... [2025-01-01 13:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:19:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:20:06 [end_date_ymd] => 2025-01-01 13:20:06 [RateCDR] => 1 ) [2025-01-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-01-01 10:20:06' and `end` < '2025-01-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-01-01 13:20:18] Production.INFO: count ==755 [2025-01-01 13:20:19] Production.ERROR: pbx CDR StartTime 2025-01-01 10:20:06 - End Time 2025-01-01 13:20:06 [2025-01-01 13:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151148', 'tblTempUsageDetail_20' ) start [2025-01-01 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151148', 'tblTempUsageDetail_20' ) end [2025-01-01 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151148', 'tblTempVendorCDR_20' ) start [2025-01-01 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151148', 'tblTempVendorCDR_20' ) end [2025-01-01 13:20:19] Production.INFO: ProcessCDR(1,14151148,1,1,2) [2025-01-01 13:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151148', 'tblTempUsageDetail_20' ) start [2025-01-01 13:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151148', 'tblTempUsageDetail_20' ) end [2025-01-01 13:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:20:22] Production.INFO: ==16165== Releasing lock... [2025-01-01 13:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:20:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:21:05 [end_date_ymd] => 2025-01-01 13:21:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:21:05' and `end` < '2025-01-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-01-01 13:21:18] Production.INFO: count ==791 [2025-01-01 13:21:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:21:05 - End Time 2025-01-01 13:21:05 [2025-01-01 13:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151153', 'tblTempUsageDetail_20' ) start [2025-01-01 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151153', 'tblTempUsageDetail_20' ) end [2025-01-01 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151153', 'tblTempVendorCDR_20' ) start [2025-01-01 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151153', 'tblTempVendorCDR_20' ) end [2025-01-01 13:21:18] Production.INFO: ProcessCDR(1,14151153,1,1,2) [2025-01-01 13:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151153', 'tblTempUsageDetail_20' ) start [2025-01-01 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151153', 'tblTempUsageDetail_20' ) end [2025-01-01 13:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:21:23] Production.INFO: ==16237== Releasing lock... [2025-01-01 13:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:21:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-01 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:22:05 [end_date_ymd] => 2025-01-01 13:22:05 [RateCDR] => 1 ) [2025-01-01 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 10:22:05' and `end` < '2025-01-01 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 13:22:18] Production.INFO: count ==792 [2025-01-01 13:22:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:22:05 - End Time 2025-01-01 13:22:05 [2025-01-01 13:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151158', 'tblTempUsageDetail_20' ) start [2025-01-01 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151158', 'tblTempUsageDetail_20' ) end [2025-01-01 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151158', 'tblTempVendorCDR_20' ) start [2025-01-01 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151158', 'tblTempVendorCDR_20' ) end [2025-01-01 13:22:18] Production.INFO: ProcessCDR(1,14151158,1,1,2) [2025-01-01 13:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151158', 'tblTempUsageDetail_20' ) start [2025-01-01 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151158', 'tblTempUsageDetail_20' ) end [2025-01-01 13:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:22:22] Production.INFO: ==16307== Releasing lock... [2025-01-01 13:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:22:22] Production.INFO: 34 MB #Memory Used# [2025-01-01 13:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:23:04 [end_date_ymd] => 2025-01-01 13:23:04 [RateCDR] => 1 ) [2025-01-01 13: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-01-01 10:23:04' and `end` < '2025-01-01 13: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-01-01 13:23:17] Production.INFO: count ==793 [2025-01-01 13:23:17] Production.ERROR: pbx CDR StartTime 2025-01-01 10:23:04 - End Time 2025-01-01 13:23:04 [2025-01-01 13:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151163', 'tblTempUsageDetail_20' ) start [2025-01-01 13:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151163', 'tblTempUsageDetail_20' ) end [2025-01-01 13:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151163', 'tblTempVendorCDR_20' ) start [2025-01-01 13:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151163', 'tblTempVendorCDR_20' ) end [2025-01-01 13:23:17] Production.INFO: ProcessCDR(1,14151163,1,1,2) [2025-01-01 13:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151163', 'tblTempUsageDetail_20' ) start [2025-01-01 13:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151163', 'tblTempUsageDetail_20' ) end [2025-01-01 13:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:23:21] Production.INFO: ==16380== Releasing lock... [2025-01-01 13:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:23:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-01 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:24:05 [end_date_ymd] => 2025-01-01 13:24:05 [RateCDR] => 1 ) [2025-01-01 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 10:24:05' and `end` < '2025-01-01 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 13:24:18] Production.INFO: count ==799 [2025-01-01 13:24:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:24:05 - End Time 2025-01-01 13:24:05 [2025-01-01 13:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151168', 'tblTempUsageDetail_20' ) start [2025-01-01 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151168', 'tblTempUsageDetail_20' ) end [2025-01-01 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151168', 'tblTempVendorCDR_20' ) start [2025-01-01 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151168', 'tblTempVendorCDR_20' ) end [2025-01-01 13:24:18] Production.INFO: ProcessCDR(1,14151168,1,1,2) [2025-01-01 13:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151168', 'tblTempUsageDetail_20' ) start [2025-01-01 13:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151168', 'tblTempUsageDetail_20' ) end [2025-01-01 13:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:24:22] Production.INFO: ==16455== Releasing lock... [2025-01-01 13:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:24:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-01 13:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:25:04 [end_date_ymd] => 2025-01-01 13:25:04 [RateCDR] => 1 ) [2025-01-01 13: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-01 10:25:04' and `end` < '2025-01-01 13: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-01-01 13:25:17] Production.INFO: count ==797 [2025-01-01 13:25:17] Production.ERROR: pbx CDR StartTime 2025-01-01 10:25:04 - End Time 2025-01-01 13:25:04 [2025-01-01 13:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151173', 'tblTempUsageDetail_20' ) start [2025-01-01 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151173', 'tblTempUsageDetail_20' ) end [2025-01-01 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151173', 'tblTempVendorCDR_20' ) start [2025-01-01 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151173', 'tblTempVendorCDR_20' ) end [2025-01-01 13:25:17] Production.INFO: ProcessCDR(1,14151173,1,1,2) [2025-01-01 13:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151173', 'tblTempUsageDetail_20' ) start [2025-01-01 13:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151173', 'tblTempUsageDetail_20' ) end [2025-01-01 13:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:25:21] Production.INFO: ==16527== Releasing lock... [2025-01-01 13:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:25:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-01 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:26:05 [end_date_ymd] => 2025-01-01 13:26:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:26:05' and `end` < '2025-01-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-01-01 13:26:18] Production.INFO: count ==797 [2025-01-01 13:26:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:26:05 - End Time 2025-01-01 13:26:05 [2025-01-01 13:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151178', 'tblTempUsageDetail_20' ) start [2025-01-01 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151178', 'tblTempUsageDetail_20' ) end [2025-01-01 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151178', 'tblTempVendorCDR_20' ) start [2025-01-01 13:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151178', 'tblTempVendorCDR_20' ) end [2025-01-01 13:26:18] Production.INFO: ProcessCDR(1,14151178,1,1,2) [2025-01-01 13:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151178', 'tblTempUsageDetail_20' ) start [2025-01-01 13:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151178', 'tblTempUsageDetail_20' ) end [2025-01-01 13:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:26:22] Production.INFO: ==16598== Releasing lock... [2025-01-01 13:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:26:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-01 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:27:05 [end_date_ymd] => 2025-01-01 13:27:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:27:05' and `end` < '2025-01-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-01-01 13:27:19] Production.INFO: count ==796 [2025-01-01 13:27:20] Production.ERROR: pbx CDR StartTime 2025-01-01 10:27:05 - End Time 2025-01-01 13:27:05 [2025-01-01 13:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151183', 'tblTempUsageDetail_20' ) start [2025-01-01 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151183', 'tblTempUsageDetail_20' ) end [2025-01-01 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151183', 'tblTempVendorCDR_20' ) start [2025-01-01 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151183', 'tblTempVendorCDR_20' ) end [2025-01-01 13:27:20] Production.INFO: ProcessCDR(1,14151183,1,1,2) [2025-01-01 13:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151183', 'tblTempUsageDetail_20' ) start [2025-01-01 13:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151183', 'tblTempUsageDetail_20' ) end [2025-01-01 13:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:27:23] Production.INFO: ==16669== Releasing lock... [2025-01-01 13:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:27:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-01 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:28:05 [end_date_ymd] => 2025-01-01 13:28:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:28:05' and `end` < '2025-01-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-01-01 13:28:18] Production.INFO: count ==796 [2025-01-01 13:28:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:28:05 - End Time 2025-01-01 13:28:05 [2025-01-01 13:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151188', 'tblTempUsageDetail_20' ) start [2025-01-01 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151188', 'tblTempUsageDetail_20' ) end [2025-01-01 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151188', 'tblTempVendorCDR_20' ) start [2025-01-01 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151188', 'tblTempVendorCDR_20' ) end [2025-01-01 13:28:18] Production.INFO: ProcessCDR(1,14151188,1,1,2) [2025-01-01 13:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151188', 'tblTempUsageDetail_20' ) start [2025-01-01 13:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151188', 'tblTempUsageDetail_20' ) end [2025-01-01 13:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:28:21] Production.INFO: ==16739== Releasing lock... [2025-01-01 13:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:28:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-01 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:29:05 [end_date_ymd] => 2025-01-01 13:29:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:29:05' and `end` < '2025-01-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-01-01 13:29:17] Production.INFO: count ==793 [2025-01-01 13:29:17] Production.ERROR: pbx CDR StartTime 2025-01-01 10:29:05 - End Time 2025-01-01 13:29:05 [2025-01-01 13:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151193', 'tblTempUsageDetail_20' ) start [2025-01-01 13:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151193', 'tblTempUsageDetail_20' ) end [2025-01-01 13:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151193', 'tblTempVendorCDR_20' ) start [2025-01-01 13:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151193', 'tblTempVendorCDR_20' ) end [2025-01-01 13:29:17] Production.INFO: ProcessCDR(1,14151193,1,1,2) [2025-01-01 13:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151193', 'tblTempUsageDetail_20' ) start [2025-01-01 13:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151193', 'tblTempUsageDetail_20' ) end [2025-01-01 13:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:29:20] Production.INFO: ==16812== Releasing lock... [2025-01-01 13:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:29:20] Production.INFO: 34.25 MB #Memory Used# [2025-01-01 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:30:05 [end_date_ymd] => 2025-01-01 13:30:05 [RateCDR] => 1 ) [2025-01-01 13: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-01-01 10:30:05' and `end` < '2025-01-01 13: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-01-01 13:30:18] Production.INFO: count ==800 [2025-01-01 13:30:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:30:05 - End Time 2025-01-01 13:30:05 [2025-01-01 13:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151198', 'tblTempUsageDetail_20' ) start [2025-01-01 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151198', 'tblTempUsageDetail_20' ) end [2025-01-01 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151198', 'tblTempVendorCDR_20' ) start [2025-01-01 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151198', 'tblTempVendorCDR_20' ) end [2025-01-01 13:30:18] Production.INFO: ProcessCDR(1,14151198,1,1,2) [2025-01-01 13:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151198', 'tblTempUsageDetail_20' ) start [2025-01-01 13:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151198', 'tblTempUsageDetail_20' ) end [2025-01-01 13:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:30:21] Production.INFO: ==16922== Releasing lock... [2025-01-01 13:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:30:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-01 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:31:05 [end_date_ymd] => 2025-01-01 13:31:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:31:05' and `end` < '2025-01-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-01-01 13:31:19] Production.INFO: count ==828 [2025-01-01 13:31:19] Production.ERROR: pbx CDR StartTime 2025-01-01 10:31:05 - End Time 2025-01-01 13:31:05 [2025-01-01 13:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151204', 'tblTempUsageDetail_20' ) start [2025-01-01 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151204', 'tblTempUsageDetail_20' ) end [2025-01-01 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151204', 'tblTempVendorCDR_20' ) start [2025-01-01 13:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151204', 'tblTempVendorCDR_20' ) end [2025-01-01 13:31:19] Production.INFO: ProcessCDR(1,14151204,1,1,2) [2025-01-01 13:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151204', 'tblTempUsageDetail_20' ) start [2025-01-01 13:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151204', 'tblTempUsageDetail_20' ) end [2025-01-01 13:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:31:22] Production.INFO: ==16997== Releasing lock... [2025-01-01 13:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:31:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-01 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:32:05 [end_date_ymd] => 2025-01-01 13:32:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:32:05' and `end` < '2025-01-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-01-01 13:32:18] Production.INFO: count ==830 [2025-01-01 13:32:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:32:05 - End Time 2025-01-01 13:32:05 [2025-01-01 13:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151209', 'tblTempUsageDetail_20' ) start [2025-01-01 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151209', 'tblTempUsageDetail_20' ) end [2025-01-01 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151209', 'tblTempVendorCDR_20' ) start [2025-01-01 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151209', 'tblTempVendorCDR_20' ) end [2025-01-01 13:32:18] Production.INFO: ProcessCDR(1,14151209,1,1,2) [2025-01-01 13:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151209', 'tblTempUsageDetail_20' ) start [2025-01-01 13:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151209', 'tblTempUsageDetail_20' ) end [2025-01-01 13:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:32:21] Production.INFO: ==17066== Releasing lock... [2025-01-01 13:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:32:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-01 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:33:05 [end_date_ymd] => 2025-01-01 13:33:05 [RateCDR] => 1 ) [2025-01-01 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 10:33:05' and `end` < '2025-01-01 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 13:33:18] Production.INFO: count ==834 [2025-01-01 13:33:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:33:05 - End Time 2025-01-01 13:33:05 [2025-01-01 13:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151214', 'tblTempUsageDetail_20' ) start [2025-01-01 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151214', 'tblTempUsageDetail_20' ) end [2025-01-01 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151214', 'tblTempVendorCDR_20' ) start [2025-01-01 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151214', 'tblTempVendorCDR_20' ) end [2025-01-01 13:33:18] Production.INFO: ProcessCDR(1,14151214,1,1,2) [2025-01-01 13:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151214', 'tblTempUsageDetail_20' ) start [2025-01-01 13:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151214', 'tblTempUsageDetail_20' ) end [2025-01-01 13:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:33:21] Production.INFO: ==17137== Releasing lock... [2025-01-01 13:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:33:21] Production.INFO: 34 MB #Memory Used# [2025-01-01 13:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:34:04 [end_date_ymd] => 2025-01-01 13:34:04 [RateCDR] => 1 ) [2025-01-01 13: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-01-01 10:34:04' and `end` < '2025-01-01 13: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-01-01 13:34:17] Production.INFO: count ==854 [2025-01-01 13:34:17] Production.ERROR: pbx CDR StartTime 2025-01-01 10:34:04 - End Time 2025-01-01 13:34:04 [2025-01-01 13:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151218', 'tblTempUsageDetail_20' ) start [2025-01-01 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151218', 'tblTempUsageDetail_20' ) end [2025-01-01 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151218', 'tblTempVendorCDR_20' ) start [2025-01-01 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151218', 'tblTempVendorCDR_20' ) end [2025-01-01 13:34:17] Production.INFO: ProcessCDR(1,14151218,1,1,2) [2025-01-01 13:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151218', 'tblTempUsageDetail_20' ) start [2025-01-01 13:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151218', 'tblTempUsageDetail_20' ) end [2025-01-01 13:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:34:20] Production.INFO: ==17207== Releasing lock... [2025-01-01 13:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:34:20] Production.INFO: 34.5 MB #Memory Used# [2025-01-01 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:35:05 [end_date_ymd] => 2025-01-01 13:35:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:35:05' and `end` < '2025-01-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-01-01 13:35:18] Production.INFO: count ==880 [2025-01-01 13:35:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:35:05 - End Time 2025-01-01 13:35:05 [2025-01-01 13:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151224', 'tblTempUsageDetail_20' ) start [2025-01-01 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151224', 'tblTempUsageDetail_20' ) end [2025-01-01 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151224', 'tblTempVendorCDR_20' ) start [2025-01-01 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151224', 'tblTempVendorCDR_20' ) end [2025-01-01 13:35:18] Production.INFO: ProcessCDR(1,14151224,1,1,2) [2025-01-01 13:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151224', 'tblTempUsageDetail_20' ) start [2025-01-01 13:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151224', 'tblTempUsageDetail_20' ) end [2025-01-01 13:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:35:21] Production.INFO: ==17279== Releasing lock... [2025-01-01 13:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:35:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-01 13:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:36:04 [end_date_ymd] => 2025-01-01 13:36:04 [RateCDR] => 1 ) [2025-01-01 13:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 10:36:04' and `end` < '2025-01-01 13:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 13:36:17] Production.INFO: count ==881 [2025-01-01 13:36:17] Production.ERROR: pbx CDR StartTime 2025-01-01 10:36:04 - End Time 2025-01-01 13:36:04 [2025-01-01 13:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151229', 'tblTempUsageDetail_20' ) start [2025-01-01 13:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151229', 'tblTempUsageDetail_20' ) end [2025-01-01 13:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151229', 'tblTempVendorCDR_20' ) start [2025-01-01 13:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151229', 'tblTempVendorCDR_20' ) end [2025-01-01 13:36:17] Production.INFO: ProcessCDR(1,14151229,1,1,2) [2025-01-01 13:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151229', 'tblTempUsageDetail_20' ) start [2025-01-01 13:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151229', 'tblTempUsageDetail_20' ) end [2025-01-01 13:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:36:22] Production.INFO: ==17354== Releasing lock... [2025-01-01 13:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:36:22] Production.INFO: 35 MB #Memory Used# [2025-01-01 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:37:05 [end_date_ymd] => 2025-01-01 13:37:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:37:05' and `end` < '2025-01-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-01-01 13:37:20] Production.INFO: count ==881 [2025-01-01 13:37:20] Production.ERROR: pbx CDR StartTime 2025-01-01 10:37:05 - End Time 2025-01-01 13:37:05 [2025-01-01 13:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151234', 'tblTempUsageDetail_20' ) start [2025-01-01 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151234', 'tblTempUsageDetail_20' ) end [2025-01-01 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151234', 'tblTempVendorCDR_20' ) start [2025-01-01 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151234', 'tblTempVendorCDR_20' ) end [2025-01-01 13:37:20] Production.INFO: ProcessCDR(1,14151234,1,1,2) [2025-01-01 13:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151234', 'tblTempUsageDetail_20' ) start [2025-01-01 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151234', 'tblTempUsageDetail_20' ) end [2025-01-01 13:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:37:23] Production.INFO: ==17425== Releasing lock... [2025-01-01 13:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:37:23] Production.INFO: 35 MB #Memory Used# [2025-01-01 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:38:05 [end_date_ymd] => 2025-01-01 13:38:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:38:05' and `end` < '2025-01-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-01-01 13:38:19] Production.INFO: count ==882 [2025-01-01 13:38:19] Production.ERROR: pbx CDR StartTime 2025-01-01 10:38:05 - End Time 2025-01-01 13:38:05 [2025-01-01 13:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151239', 'tblTempUsageDetail_20' ) start [2025-01-01 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151239', 'tblTempUsageDetail_20' ) end [2025-01-01 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151239', 'tblTempVendorCDR_20' ) start [2025-01-01 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151239', 'tblTempVendorCDR_20' ) end [2025-01-01 13:38:19] Production.INFO: ProcessCDR(1,14151239,1,1,2) [2025-01-01 13:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151239', 'tblTempUsageDetail_20' ) start [2025-01-01 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151239', 'tblTempUsageDetail_20' ) end [2025-01-01 13:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:38:22] Production.INFO: ==17503== Releasing lock... [2025-01-01 13:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:38:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:39:05 [end_date_ymd] => 2025-01-01 13:39:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:39:05' and `end` < '2025-01-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-01-01 13:39:20] Production.INFO: count ==881 [2025-01-01 13:39:20] Production.ERROR: pbx CDR StartTime 2025-01-01 10:39:05 - End Time 2025-01-01 13:39:05 [2025-01-01 13:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151244', 'tblTempUsageDetail_20' ) start [2025-01-01 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151244', 'tblTempUsageDetail_20' ) end [2025-01-01 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151244', 'tblTempVendorCDR_20' ) start [2025-01-01 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151244', 'tblTempVendorCDR_20' ) end [2025-01-01 13:39:20] Production.INFO: ProcessCDR(1,14151244,1,1,2) [2025-01-01 13:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151244', 'tblTempUsageDetail_20' ) start [2025-01-01 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151244', 'tblTempUsageDetail_20' ) end [2025-01-01 13:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:39:23] Production.INFO: ==17580== Releasing lock... [2025-01-01 13:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:39:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-01 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:40:06 [end_date_ymd] => 2025-01-01 13:40:06 [RateCDR] => 1 ) [2025-01-01 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 10:40:06' and `end` < '2025-01-01 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 13:40:19] Production.INFO: count ==879 [2025-01-01 13:40:19] Production.ERROR: pbx CDR StartTime 2025-01-01 10:40:06 - End Time 2025-01-01 13:40:06 [2025-01-01 13:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151250', 'tblTempUsageDetail_20' ) start [2025-01-01 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151250', 'tblTempUsageDetail_20' ) end [2025-01-01 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151250', 'tblTempVendorCDR_20' ) start [2025-01-01 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151250', 'tblTempVendorCDR_20' ) end [2025-01-01 13:40:19] Production.INFO: ProcessCDR(1,14151250,1,1,2) [2025-01-01 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151250', 'tblTempUsageDetail_20' ) start [2025-01-01 13:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151250', 'tblTempUsageDetail_20' ) end [2025-01-01 13:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:40:22] Production.INFO: ==17662== Releasing lock... [2025-01-01 13:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:40:22] Production.INFO: 35 MB #Memory Used# [2025-01-01 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:41:05 [end_date_ymd] => 2025-01-01 13:41:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:41:05' and `end` < '2025-01-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-01-01 13:41:19] Production.INFO: count ==905 [2025-01-01 13:41:19] Production.ERROR: pbx CDR StartTime 2025-01-01 10:41:05 - End Time 2025-01-01 13:41:05 [2025-01-01 13:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151255', 'tblTempUsageDetail_20' ) start [2025-01-01 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151255', 'tblTempUsageDetail_20' ) end [2025-01-01 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151255', 'tblTempVendorCDR_20' ) start [2025-01-01 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151255', 'tblTempVendorCDR_20' ) end [2025-01-01 13:41:19] Production.INFO: ProcessCDR(1,14151255,1,1,2) [2025-01-01 13:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151255', 'tblTempUsageDetail_20' ) start [2025-01-01 13:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151255', 'tblTempUsageDetail_20' ) end [2025-01-01 13:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:41:22] Production.INFO: ==17742== Releasing lock... [2025-01-01 13:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:41:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:42:05 [end_date_ymd] => 2025-01-01 13:42:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:42:05' and `end` < '2025-01-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-01-01 13:42:20] Production.INFO: count ==914 [2025-01-01 13:42:20] Production.ERROR: pbx CDR StartTime 2025-01-01 10:42:05 - End Time 2025-01-01 13:42:05 [2025-01-01 13:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151260', 'tblTempUsageDetail_20' ) start [2025-01-01 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151260', 'tblTempUsageDetail_20' ) end [2025-01-01 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151260', 'tblTempVendorCDR_20' ) start [2025-01-01 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151260', 'tblTempVendorCDR_20' ) end [2025-01-01 13:42:20] Production.INFO: ProcessCDR(1,14151260,1,1,2) [2025-01-01 13:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151260', 'tblTempUsageDetail_20' ) start [2025-01-01 13:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151260', 'tblTempUsageDetail_20' ) end [2025-01-01 13:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:42:24] Production.INFO: ==17823== Releasing lock... [2025-01-01 13:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:42:24] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:43:05 [end_date_ymd] => 2025-01-01 13:43:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:43:05' and `end` < '2025-01-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-01-01 13:43:19] Production.INFO: count ==914 [2025-01-01 13:43:19] Production.ERROR: pbx CDR StartTime 2025-01-01 10:43:05 - End Time 2025-01-01 13:43:05 [2025-01-01 13:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151265', 'tblTempUsageDetail_20' ) start [2025-01-01 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151265', 'tblTempUsageDetail_20' ) end [2025-01-01 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151265', 'tblTempVendorCDR_20' ) start [2025-01-01 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151265', 'tblTempVendorCDR_20' ) end [2025-01-01 13:43:19] Production.INFO: ProcessCDR(1,14151265,1,1,2) [2025-01-01 13:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151265', 'tblTempUsageDetail_20' ) start [2025-01-01 13:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151265', 'tblTempUsageDetail_20' ) end [2025-01-01 13:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:43:24] Production.INFO: ==17902== Releasing lock... [2025-01-01 13:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:43:24] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:44:05 [end_date_ymd] => 2025-01-01 13:44:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:44:05' and `end` < '2025-01-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-01-01 13:44:18] Production.INFO: count ==914 [2025-01-01 13:44:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:44:05 - End Time 2025-01-01 13:44:05 [2025-01-01 13:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151270', 'tblTempUsageDetail_20' ) start [2025-01-01 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151270', 'tblTempUsageDetail_20' ) end [2025-01-01 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151270', 'tblTempVendorCDR_20' ) start [2025-01-01 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151270', 'tblTempVendorCDR_20' ) end [2025-01-01 13:44:18] Production.INFO: ProcessCDR(1,14151270,1,1,2) [2025-01-01 13:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151270', 'tblTempUsageDetail_20' ) start [2025-01-01 13:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151270', 'tblTempUsageDetail_20' ) end [2025-01-01 13:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:44:21] Production.INFO: ==17985== Releasing lock... [2025-01-01 13:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:44:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 13:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:45:04 [end_date_ymd] => 2025-01-01 13:45:04 [RateCDR] => 1 ) [2025-01-01 13: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-01-01 10:45:04' and `end` < '2025-01-01 13: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-01-01 13:45:17] Production.INFO: count ==918 [2025-01-01 13:45:17] Production.ERROR: pbx CDR StartTime 2025-01-01 10:45:04 - End Time 2025-01-01 13:45:04 [2025-01-01 13:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151275', 'tblTempUsageDetail_20' ) start [2025-01-01 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151275', 'tblTempUsageDetail_20' ) end [2025-01-01 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151275', 'tblTempVendorCDR_20' ) start [2025-01-01 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151275', 'tblTempVendorCDR_20' ) end [2025-01-01 13:45:18] Production.INFO: ProcessCDR(1,14151275,1,1,2) [2025-01-01 13:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151275', 'tblTempUsageDetail_20' ) start [2025-01-01 13:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151275', 'tblTempUsageDetail_20' ) end [2025-01-01 13:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:45:22] Production.INFO: ==18106== Releasing lock... [2025-01-01 13:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:45:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:46:05 [end_date_ymd] => 2025-01-01 13:46:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:46:05' and `end` < '2025-01-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-01-01 13:46:18] Production.INFO: count ==919 [2025-01-01 13:46:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:46:05 - End Time 2025-01-01 13:46:05 [2025-01-01 13:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151280', 'tblTempUsageDetail_20' ) start [2025-01-01 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151280', 'tblTempUsageDetail_20' ) end [2025-01-01 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151280', 'tblTempVendorCDR_20' ) start [2025-01-01 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151280', 'tblTempVendorCDR_20' ) end [2025-01-01 13:46:18] Production.INFO: ProcessCDR(1,14151280,1,1,2) [2025-01-01 13:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151280', 'tblTempUsageDetail_20' ) start [2025-01-01 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151280', 'tblTempUsageDetail_20' ) end [2025-01-01 13:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:46:23] Production.INFO: ==18189== Releasing lock... [2025-01-01 13:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:46:23] Production.INFO: 35 MB #Memory Used# [2025-01-01 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:47:05 [end_date_ymd] => 2025-01-01 13:47:05 [RateCDR] => 1 ) [2025-01-01 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 10:47:05' and `end` < '2025-01-01 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 13:47:18] Production.INFO: count ==940 [2025-01-01 13:47:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:47:05 - End Time 2025-01-01 13:47:05 [2025-01-01 13:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151285', 'tblTempUsageDetail_20' ) start [2025-01-01 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151285', 'tblTempUsageDetail_20' ) end [2025-01-01 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151285', 'tblTempVendorCDR_20' ) start [2025-01-01 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151285', 'tblTempVendorCDR_20' ) end [2025-01-01 13:47:18] Production.INFO: ProcessCDR(1,14151285,1,1,2) [2025-01-01 13:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151285', 'tblTempUsageDetail_20' ) start [2025-01-01 13:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151285', 'tblTempUsageDetail_20' ) end [2025-01-01 13:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:47:22] Production.INFO: ==18269== Releasing lock... [2025-01-01 13:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:47:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:48:06 [end_date_ymd] => 2025-01-01 13:48:06 [RateCDR] => 1 ) [2025-01-01 13:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 10:48:06' and `end` < '2025-01-01 13:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 13:48:19] Production.INFO: count ==954 [2025-01-01 13:48:19] Production.ERROR: pbx CDR StartTime 2025-01-01 10:48:06 - End Time 2025-01-01 13:48:06 [2025-01-01 13:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151290', 'tblTempUsageDetail_20' ) start [2025-01-01 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151290', 'tblTempUsageDetail_20' ) end [2025-01-01 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151290', 'tblTempVendorCDR_20' ) start [2025-01-01 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151290', 'tblTempVendorCDR_20' ) end [2025-01-01 13:48:19] Production.INFO: ProcessCDR(1,14151290,1,1,2) [2025-01-01 13:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151290', 'tblTempUsageDetail_20' ) start [2025-01-01 13:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151290', 'tblTempUsageDetail_20' ) end [2025-01-01 13:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:48:23] Production.INFO: ==18347== Releasing lock... [2025-01-01 13:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:48:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:49:05 [end_date_ymd] => 2025-01-01 13:49:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:49:05' and `end` < '2025-01-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-01-01 13:49:17] Production.INFO: count ==955 [2025-01-01 13:49:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:49:05 - End Time 2025-01-01 13:49:05 [2025-01-01 13:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151295', 'tblTempUsageDetail_20' ) start [2025-01-01 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151295', 'tblTempUsageDetail_20' ) end [2025-01-01 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151295', 'tblTempVendorCDR_20' ) start [2025-01-01 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151295', 'tblTempVendorCDR_20' ) end [2025-01-01 13:49:18] Production.INFO: ProcessCDR(1,14151295,1,1,2) [2025-01-01 13:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151295', 'tblTempUsageDetail_20' ) start [2025-01-01 13:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151295', 'tblTempUsageDetail_20' ) end [2025-01-01 13:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:49:22] Production.INFO: ==18427== Releasing lock... [2025-01-01 13:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:49:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:50:06 [end_date_ymd] => 2025-01-01 13:50:06 [RateCDR] => 1 ) [2025-01-01 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 10:50:06' and `end` < '2025-01-01 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 13:50:19] Production.INFO: count ==952 [2025-01-01 13:50:19] Production.ERROR: pbx CDR StartTime 2025-01-01 10:50:06 - End Time 2025-01-01 13:50:06 [2025-01-01 13:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151301', 'tblTempUsageDetail_20' ) start [2025-01-01 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151301', 'tblTempUsageDetail_20' ) end [2025-01-01 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151301', 'tblTempVendorCDR_20' ) start [2025-01-01 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151301', 'tblTempVendorCDR_20' ) end [2025-01-01 13:50:19] Production.INFO: ProcessCDR(1,14151301,1,1,2) [2025-01-01 13:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151301', 'tblTempUsageDetail_20' ) start [2025-01-01 13:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151301', 'tblTempUsageDetail_20' ) end [2025-01-01 13:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:50:22] Production.INFO: ==18507== Releasing lock... [2025-01-01 13:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:50:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:51:05 [end_date_ymd] => 2025-01-01 13:51:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:51:05' and `end` < '2025-01-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-01-01 13:51:18] Production.INFO: count ==960 [2025-01-01 13:51:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:51:05 - End Time 2025-01-01 13:51:05 [2025-01-01 13:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151306', 'tblTempUsageDetail_20' ) start [2025-01-01 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151306', 'tblTempUsageDetail_20' ) end [2025-01-01 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151306', 'tblTempVendorCDR_20' ) start [2025-01-01 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151306', 'tblTempVendorCDR_20' ) end [2025-01-01 13:51:18] Production.INFO: ProcessCDR(1,14151306,1,1,2) [2025-01-01 13:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151306', 'tblTempUsageDetail_20' ) start [2025-01-01 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151306', 'tblTempUsageDetail_20' ) end [2025-01-01 13:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:51:23] Production.INFO: ==18593== Releasing lock... [2025-01-01 13:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:51:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:52:05 [end_date_ymd] => 2025-01-01 13:52:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:52:05' and `end` < '2025-01-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-01-01 13:52:19] Production.INFO: count ==952 [2025-01-01 13:52:19] Production.ERROR: pbx CDR StartTime 2025-01-01 10:52:05 - End Time 2025-01-01 13:52:05 [2025-01-01 13:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151311', 'tblTempUsageDetail_20' ) start [2025-01-01 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151311', 'tblTempUsageDetail_20' ) end [2025-01-01 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151311', 'tblTempVendorCDR_20' ) start [2025-01-01 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151311', 'tblTempVendorCDR_20' ) end [2025-01-01 13:52:19] Production.INFO: ProcessCDR(1,14151311,1,1,2) [2025-01-01 13:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151311', 'tblTempUsageDetail_20' ) start [2025-01-01 13:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151311', 'tblTempUsageDetail_20' ) end [2025-01-01 13:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:52:23] Production.INFO: ==18675== Releasing lock... [2025-01-01 13:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:52:23] Production.INFO: 36 MB #Memory Used# [2025-01-01 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:53:05 [end_date_ymd] => 2025-01-01 13:53:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:53:05' and `end` < '2025-01-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-01-01 13:53:18] Production.INFO: count ==951 [2025-01-01 13:53:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:53:05 - End Time 2025-01-01 13:53:05 [2025-01-01 13:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151316', 'tblTempUsageDetail_20' ) start [2025-01-01 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151316', 'tblTempUsageDetail_20' ) end [2025-01-01 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151316', 'tblTempVendorCDR_20' ) start [2025-01-01 13:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151316', 'tblTempVendorCDR_20' ) end [2025-01-01 13:53:18] Production.INFO: ProcessCDR(1,14151316,1,1,2) [2025-01-01 13:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151316', 'tblTempUsageDetail_20' ) start [2025-01-01 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151316', 'tblTempUsageDetail_20' ) end [2025-01-01 13:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:53:23] Production.INFO: ==18764== Releasing lock... [2025-01-01 13:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:53:23] Production.INFO: 36 MB #Memory Used# [2025-01-01 13:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:54:04 [end_date_ymd] => 2025-01-01 13:54:04 [RateCDR] => 1 ) [2025-01-01 13: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-01-01 10:54:04' and `end` < '2025-01-01 13: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-01-01 13:54:19] Production.INFO: count ==941 [2025-01-01 13:54:20] Production.ERROR: pbx CDR StartTime 2025-01-01 10:54:04 - End Time 2025-01-01 13:54:04 [2025-01-01 13:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151321', 'tblTempUsageDetail_20' ) start [2025-01-01 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151321', 'tblTempUsageDetail_20' ) end [2025-01-01 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151321', 'tblTempVendorCDR_20' ) start [2025-01-01 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151321', 'tblTempVendorCDR_20' ) end [2025-01-01 13:54:20] Production.INFO: ProcessCDR(1,14151321,1,1,2) [2025-01-01 13:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151321', 'tblTempUsageDetail_20' ) start [2025-01-01 13:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151321', 'tblTempUsageDetail_20' ) end [2025-01-01 13:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:54:24] Production.INFO: ==18845== Releasing lock... [2025-01-01 13:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:54:24] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:55:05 [end_date_ymd] => 2025-01-01 13:55:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:55:05' and `end` < '2025-01-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-01-01 13:55:18] Production.INFO: count ==935 [2025-01-01 13:55:19] Production.ERROR: pbx CDR StartTime 2025-01-01 10:55:05 - End Time 2025-01-01 13:55:05 [2025-01-01 13:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151326', 'tblTempUsageDetail_20' ) start [2025-01-01 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151326', 'tblTempUsageDetail_20' ) end [2025-01-01 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151326', 'tblTempVendorCDR_20' ) start [2025-01-01 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151326', 'tblTempVendorCDR_20' ) end [2025-01-01 13:55:19] Production.INFO: ProcessCDR(1,14151326,1,1,2) [2025-01-01 13:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151326', 'tblTempUsageDetail_20' ) start [2025-01-01 13:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151326', 'tblTempUsageDetail_20' ) end [2025-01-01 13:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:55:23] Production.INFO: ==18940== Releasing lock... [2025-01-01 13:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:55:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:56:05 [end_date_ymd] => 2025-01-01 13:56:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:56:05' and `end` < '2025-01-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-01-01 13:56:18] Production.INFO: count ==930 [2025-01-01 13:56:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:56:05 - End Time 2025-01-01 13:56:05 [2025-01-01 13:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151331', 'tblTempUsageDetail_20' ) start [2025-01-01 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151331', 'tblTempUsageDetail_20' ) end [2025-01-01 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151331', 'tblTempVendorCDR_20' ) start [2025-01-01 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151331', 'tblTempVendorCDR_20' ) end [2025-01-01 13:56:18] Production.INFO: ProcessCDR(1,14151331,1,1,2) [2025-01-01 13:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151331', 'tblTempUsageDetail_20' ) start [2025-01-01 13:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151331', 'tblTempUsageDetail_20' ) end [2025-01-01 13:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:56:22] Production.INFO: ==19040== Releasing lock... [2025-01-01 13:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:56:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:57:05 [end_date_ymd] => 2025-01-01 13:57:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:57:05' and `end` < '2025-01-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-01-01 13:57:18] Production.INFO: count ==937 [2025-01-01 13:57:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:57:05 - End Time 2025-01-01 13:57:05 [2025-01-01 13:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151336', 'tblTempUsageDetail_20' ) start [2025-01-01 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151336', 'tblTempUsageDetail_20' ) end [2025-01-01 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151336', 'tblTempVendorCDR_20' ) start [2025-01-01 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151336', 'tblTempVendorCDR_20' ) end [2025-01-01 13:57:18] Production.INFO: ProcessCDR(1,14151336,1,1,2) [2025-01-01 13:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151336', 'tblTempUsageDetail_20' ) start [2025-01-01 13:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151336', 'tblTempUsageDetail_20' ) end [2025-01-01 13:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:57:23] Production.INFO: ==19137== Releasing lock... [2025-01-01 13:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:57:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:58:05 [end_date_ymd] => 2025-01-01 13:58:05 [RateCDR] => 1 ) [2025-01-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-01-01 10:58:05' and `end` < '2025-01-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-01-01 13:58:18] Production.INFO: count ==938 [2025-01-01 13:58:18] Production.ERROR: pbx CDR StartTime 2025-01-01 10:58:05 - End Time 2025-01-01 13:58:05 [2025-01-01 13:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151341', 'tblTempUsageDetail_20' ) start [2025-01-01 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151341', 'tblTempUsageDetail_20' ) end [2025-01-01 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151341', 'tblTempVendorCDR_20' ) start [2025-01-01 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151341', 'tblTempVendorCDR_20' ) end [2025-01-01 13:58:18] Production.INFO: ProcessCDR(1,14151341,1,1,2) [2025-01-01 13:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151341', 'tblTempUsageDetail_20' ) start [2025-01-01 13:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151341', 'tblTempUsageDetail_20' ) end [2025-01-01 13:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:58:22] Production.INFO: ==19224== Releasing lock... [2025-01-01 13:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:58:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 13:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 10:59:04 [end_date_ymd] => 2025-01-01 13:59:04 [RateCDR] => 1 ) [2025-01-01 13: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-01-01 10:59:04' and `end` < '2025-01-01 13: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-01-01 13:59:17] Production.INFO: count ==932 [2025-01-01 13:59:17] Production.ERROR: pbx CDR StartTime 2025-01-01 10:59:04 - End Time 2025-01-01 13:59:04 [2025-01-01 13:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 13:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151346', 'tblTempUsageDetail_20' ) start [2025-01-01 13:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151346', 'tblTempUsageDetail_20' ) end [2025-01-01 13:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151346', 'tblTempVendorCDR_20' ) start [2025-01-01 13:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151346', 'tblTempVendorCDR_20' ) end [2025-01-01 13:59:17] Production.INFO: ProcessCDR(1,14151346,1,1,2) [2025-01-01 13:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 13:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 13:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151346', 'tblTempUsageDetail_20' ) start [2025-01-01 13:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151346', 'tblTempUsageDetail_20' ) end [2025-01-01 13:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 13:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 13:59:22] Production.INFO: ==19302== Releasing lock... [2025-01-01 13:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 13:59:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:00:05 [end_date_ymd] => 2025-01-01 14:00:05 [RateCDR] => 1 ) [2025-01-01 14: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-01-01 11:00:05' and `end` < '2025-01-01 14: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-01-01 14:00:18] Production.INFO: count ==929 [2025-01-01 14:00:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:00:05 - End Time 2025-01-01 14:00:05 [2025-01-01 14:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151352', 'tblTempUsageDetail_20' ) start [2025-01-01 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151352', 'tblTempUsageDetail_20' ) end [2025-01-01 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151352', 'tblTempVendorCDR_20' ) start [2025-01-01 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151352', 'tblTempVendorCDR_20' ) end [2025-01-01 14:00:18] Production.INFO: ProcessCDR(1,14151352,1,1,2) [2025-01-01 14:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151352', 'tblTempUsageDetail_20' ) start [2025-01-01 14:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151352', 'tblTempUsageDetail_20' ) end [2025-01-01 14:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:00:23] Production.INFO: ==19380== Releasing lock... [2025-01-01 14:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:00:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-01 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:01:05 [end_date_ymd] => 2025-01-01 14:01:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:01:05' and `end` < '2025-01-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-01-01 14:01:17] Production.INFO: count ==930 [2025-01-01 14:01:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:01:05 - End Time 2025-01-01 14:01:05 [2025-01-01 14:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151357', 'tblTempUsageDetail_20' ) start [2025-01-01 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151357', 'tblTempUsageDetail_20' ) end [2025-01-01 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151357', 'tblTempVendorCDR_20' ) start [2025-01-01 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151357', 'tblTempVendorCDR_20' ) end [2025-01-01 14:01:18] Production.INFO: ProcessCDR(1,14151357,1,1,2) [2025-01-01 14:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151357', 'tblTempUsageDetail_20' ) start [2025-01-01 14:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151357', 'tblTempUsageDetail_20' ) end [2025-01-01 14:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:01:22] Production.INFO: ==19508== Releasing lock... [2025-01-01 14:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:01:22] Production.INFO: 35 MB #Memory Used# [2025-01-01 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:02:05 [end_date_ymd] => 2025-01-01 14:02:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:02:05' and `end` < '2025-01-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-01-01 14:02:18] Production.INFO: count ==923 [2025-01-01 14:02:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:02:05 - End Time 2025-01-01 14:02:05 [2025-01-01 14:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151362', 'tblTempUsageDetail_20' ) start [2025-01-01 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151362', 'tblTempUsageDetail_20' ) end [2025-01-01 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151362', 'tblTempVendorCDR_20' ) start [2025-01-01 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151362', 'tblTempVendorCDR_20' ) end [2025-01-01 14:02:18] Production.INFO: ProcessCDR(1,14151362,1,1,2) [2025-01-01 14:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151362', 'tblTempUsageDetail_20' ) start [2025-01-01 14:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151362', 'tblTempUsageDetail_20' ) end [2025-01-01 14:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:02:23] Production.INFO: ==19586== Releasing lock... [2025-01-01 14:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:02:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 14:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:03:04 [end_date_ymd] => 2025-01-01 14:03:04 [RateCDR] => 1 ) [2025-01-01 14: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-01 11:03:04' and `end` < '2025-01-01 14: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-01-01 14:03:17] Production.INFO: count ==922 [2025-01-01 14:03:17] Production.ERROR: pbx CDR StartTime 2025-01-01 11:03:04 - End Time 2025-01-01 14:03:04 [2025-01-01 14:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151367', 'tblTempUsageDetail_20' ) start [2025-01-01 14:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151367', 'tblTempUsageDetail_20' ) end [2025-01-01 14:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151367', 'tblTempVendorCDR_20' ) start [2025-01-01 14:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151367', 'tblTempVendorCDR_20' ) end [2025-01-01 14:03:17] Production.INFO: ProcessCDR(1,14151367,1,1,2) [2025-01-01 14:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151367', 'tblTempUsageDetail_20' ) start [2025-01-01 14:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151367', 'tblTempUsageDetail_20' ) end [2025-01-01 14:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:03:22] Production.INFO: ==19658== Releasing lock... [2025-01-01 14:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:03:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:04:05 [end_date_ymd] => 2025-01-01 14:04:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:04:05' and `end` < '2025-01-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-01-01 14:04:18] Production.INFO: count ==923 [2025-01-01 14:04:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:04:05 - End Time 2025-01-01 14:04:05 [2025-01-01 14:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151372', 'tblTempUsageDetail_20' ) start [2025-01-01 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151372', 'tblTempUsageDetail_20' ) end [2025-01-01 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151372', 'tblTempVendorCDR_20' ) start [2025-01-01 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151372', 'tblTempVendorCDR_20' ) end [2025-01-01 14:04:18] Production.INFO: ProcessCDR(1,14151372,1,1,2) [2025-01-01 14:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151372', 'tblTempUsageDetail_20' ) start [2025-01-01 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151372', 'tblTempUsageDetail_20' ) end [2025-01-01 14:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:04:23] Production.INFO: ==19732== Releasing lock... [2025-01-01 14:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:04:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:05:05 [end_date_ymd] => 2025-01-01 14:05:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:05:05' and `end` < '2025-01-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-01-01 14:05:17] Production.INFO: count ==931 [2025-01-01 14:05:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:05:05 - End Time 2025-01-01 14:05:05 [2025-01-01 14:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151377', 'tblTempUsageDetail_20' ) start [2025-01-01 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151377', 'tblTempUsageDetail_20' ) end [2025-01-01 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151377', 'tblTempVendorCDR_20' ) start [2025-01-01 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151377', 'tblTempVendorCDR_20' ) end [2025-01-01 14:05:18] Production.INFO: ProcessCDR(1,14151377,1,1,2) [2025-01-01 14:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151377', 'tblTempUsageDetail_20' ) start [2025-01-01 14:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151377', 'tblTempUsageDetail_20' ) end [2025-01-01 14:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:05:22] Production.INFO: ==19802== Releasing lock... [2025-01-01 14:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:05:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:06:05 [end_date_ymd] => 2025-01-01 14:06:05 [RateCDR] => 1 ) [2025-01-01 14: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-01 11:06:05' and `end` < '2025-01-01 14: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-01-01 14:06:18] Production.INFO: count ==936 [2025-01-01 14:06:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:06:05 - End Time 2025-01-01 14:06:05 [2025-01-01 14:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151382', 'tblTempUsageDetail_20' ) start [2025-01-01 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151382', 'tblTempUsageDetail_20' ) end [2025-01-01 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151382', 'tblTempVendorCDR_20' ) start [2025-01-01 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151382', 'tblTempVendorCDR_20' ) end [2025-01-01 14:06:18] Production.INFO: ProcessCDR(1,14151382,1,1,2) [2025-01-01 14:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151382', 'tblTempUsageDetail_20' ) start [2025-01-01 14:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151382', 'tblTempUsageDetail_20' ) end [2025-01-01 14:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:06:23] Production.INFO: ==19875== Releasing lock... [2025-01-01 14:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:06:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:07:06 [end_date_ymd] => 2025-01-01 14:07:06 [RateCDR] => 1 ) [2025-01-01 14: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-01 11:07:06' and `end` < '2025-01-01 14: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-01-01 14:07:18] Production.INFO: count ==937 [2025-01-01 14:07:19] Production.ERROR: pbx CDR StartTime 2025-01-01 11:07:06 - End Time 2025-01-01 14:07:06 [2025-01-01 14:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151387', 'tblTempUsageDetail_20' ) start [2025-01-01 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151387', 'tblTempUsageDetail_20' ) end [2025-01-01 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151387', 'tblTempVendorCDR_20' ) start [2025-01-01 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151387', 'tblTempVendorCDR_20' ) end [2025-01-01 14:07:19] Production.INFO: ProcessCDR(1,14151387,1,1,2) [2025-01-01 14:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151387', 'tblTempUsageDetail_20' ) start [2025-01-01 14:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151387', 'tblTempUsageDetail_20' ) end [2025-01-01 14:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:07:23] Production.INFO: ==19953== Releasing lock... [2025-01-01 14:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:07:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:08:05 [end_date_ymd] => 2025-01-01 14:08:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:08:05' and `end` < '2025-01-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-01-01 14:08:18] Production.INFO: count ==938 [2025-01-01 14:08:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:08:05 - End Time 2025-01-01 14:08:05 [2025-01-01 14:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151392', 'tblTempUsageDetail_20' ) start [2025-01-01 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151392', 'tblTempUsageDetail_20' ) end [2025-01-01 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151392', 'tblTempVendorCDR_20' ) start [2025-01-01 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151392', 'tblTempVendorCDR_20' ) end [2025-01-01 14:08:18] Production.INFO: ProcessCDR(1,14151392,1,1,2) [2025-01-01 14:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151392', 'tblTempUsageDetail_20' ) start [2025-01-01 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151392', 'tblTempUsageDetail_20' ) end [2025-01-01 14:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:08:22] Production.INFO: ==20025== Releasing lock... [2025-01-01 14:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:08:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:09:05 [end_date_ymd] => 2025-01-01 14:09:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:09:05' and `end` < '2025-01-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-01-01 14:09:17] Production.INFO: count ==937 [2025-01-01 14:09:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:09:05 - End Time 2025-01-01 14:09:05 [2025-01-01 14:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151397', 'tblTempUsageDetail_20' ) start [2025-01-01 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151397', 'tblTempUsageDetail_20' ) end [2025-01-01 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151397', 'tblTempVendorCDR_20' ) start [2025-01-01 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151397', 'tblTempVendorCDR_20' ) end [2025-01-01 14:09:18] Production.INFO: ProcessCDR(1,14151397,1,1,2) [2025-01-01 14:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151397', 'tblTempUsageDetail_20' ) start [2025-01-01 14:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151397', 'tblTempUsageDetail_20' ) end [2025-01-01 14:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:09:22] Production.INFO: ==20096== Releasing lock... [2025-01-01 14:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:09:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:10:04 [end_date_ymd] => 2025-01-01 14:10:04 [RateCDR] => 1 ) [2025-01-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-01-01 11:10:04' and `end` < '2025-01-01 14:10:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 14:10:17] Production.INFO: count ==936 [2025-01-01 14:10:17] Production.ERROR: pbx CDR StartTime 2025-01-01 11:10:04 - End Time 2025-01-01 14:10:04 [2025-01-01 14:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151401', 'tblTempUsageDetail_20' ) start [2025-01-01 14:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151401', 'tblTempUsageDetail_20' ) end [2025-01-01 14:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151401', 'tblTempVendorCDR_20' ) start [2025-01-01 14:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151401', 'tblTempVendorCDR_20' ) end [2025-01-01 14:10:17] Production.INFO: ProcessCDR(1,14151401,1,1,2) [2025-01-01 14:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151401', 'tblTempUsageDetail_20' ) start [2025-01-01 14:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151401', 'tblTempUsageDetail_20' ) end [2025-01-01 14:10:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:10:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:10:20] Production.INFO: ==20167== Releasing lock... [2025-01-01 14:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:10:20] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:11:05 [end_date_ymd] => 2025-01-01 14:11:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:11:05' and `end` < '2025-01-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-01-01 14:11:17] Production.INFO: count ==972 [2025-01-01 14:11:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:11:05 - End Time 2025-01-01 14:11:05 [2025-01-01 14:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151408', 'tblTempUsageDetail_20' ) start [2025-01-01 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151408', 'tblTempUsageDetail_20' ) end [2025-01-01 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151408', 'tblTempVendorCDR_20' ) start [2025-01-01 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151408', 'tblTempVendorCDR_20' ) end [2025-01-01 14:11:18] Production.INFO: ProcessCDR(1,14151408,1,1,2) [2025-01-01 14:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151408', 'tblTempUsageDetail_20' ) start [2025-01-01 14:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151408', 'tblTempUsageDetail_20' ) end [2025-01-01 14:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:11:22] Production.INFO: ==20241== Releasing lock... [2025-01-01 14:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:11:22] Production.INFO: 36 MB #Memory Used# [2025-01-01 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:12:05 [end_date_ymd] => 2025-01-01 14:12:05 [RateCDR] => 1 ) [2025-01-01 14:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 11:12:05' and `end` < '2025-01-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-01-01 14:12:21] Production.INFO: count ==973 [2025-01-01 14:12:21] Production.ERROR: pbx CDR StartTime 2025-01-01 11:12:05 - End Time 2025-01-01 14:12:05 [2025-01-01 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151413', 'tblTempUsageDetail_20' ) start [2025-01-01 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151413', 'tblTempUsageDetail_20' ) end [2025-01-01 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151413', 'tblTempVendorCDR_20' ) start [2025-01-01 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151413', 'tblTempVendorCDR_20' ) end [2025-01-01 14:12:21] Production.INFO: ProcessCDR(1,14151413,1,1,2) [2025-01-01 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151413', 'tblTempUsageDetail_20' ) start [2025-01-01 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151413', 'tblTempUsageDetail_20' ) end [2025-01-01 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:12:26] Production.INFO: ==20314== Releasing lock... [2025-01-01 14:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:12:26] Production.INFO: 36 MB #Memory Used# [2025-01-01 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:13:05 [end_date_ymd] => 2025-01-01 14:13:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:13:05' and `end` < '2025-01-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-01-01 14:13:19] Production.INFO: count ==974 [2025-01-01 14:13:19] Production.ERROR: pbx CDR StartTime 2025-01-01 11:13:05 - End Time 2025-01-01 14:13:05 [2025-01-01 14:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151418', 'tblTempUsageDetail_20' ) start [2025-01-01 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151418', 'tblTempUsageDetail_20' ) end [2025-01-01 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151418', 'tblTempVendorCDR_20' ) start [2025-01-01 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151418', 'tblTempVendorCDR_20' ) end [2025-01-01 14:13:19] Production.INFO: ProcessCDR(1,14151418,1,1,2) [2025-01-01 14:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151418', 'tblTempUsageDetail_20' ) start [2025-01-01 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151418', 'tblTempUsageDetail_20' ) end [2025-01-01 14:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:13:23] Production.INFO: ==20384== Releasing lock... [2025-01-01 14:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:13:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:14:05 [end_date_ymd] => 2025-01-01 14:14:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:14:05' and `end` < '2025-01-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-01-01 14:14:18] Production.INFO: count ==973 [2025-01-01 14:14:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:14:05 - End Time 2025-01-01 14:14:05 [2025-01-01 14:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151423', 'tblTempUsageDetail_20' ) start [2025-01-01 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151423', 'tblTempUsageDetail_20' ) end [2025-01-01 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151423', 'tblTempVendorCDR_20' ) start [2025-01-01 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151423', 'tblTempVendorCDR_20' ) end [2025-01-01 14:14:18] Production.INFO: ProcessCDR(1,14151423,1,1,2) [2025-01-01 14:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151423', 'tblTempUsageDetail_20' ) start [2025-01-01 14:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151423', 'tblTempUsageDetail_20' ) end [2025-01-01 14:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:14:23] Production.INFO: ==20454== Releasing lock... [2025-01-01 14:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:14:23] Production.INFO: 36 MB #Memory Used# [2025-01-01 14:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:15:04 [end_date_ymd] => 2025-01-01 14:15:04 [RateCDR] => 1 ) [2025-01-01 14:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 11:15:04' and `end` < '2025-01-01 14:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 14:15:17] Production.INFO: count ==966 [2025-01-01 14:15:17] Production.ERROR: pbx CDR StartTime 2025-01-01 11:15:04 - End Time 2025-01-01 14:15:04 [2025-01-01 14:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151428', 'tblTempUsageDetail_20' ) start [2025-01-01 14:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151428', 'tblTempUsageDetail_20' ) end [2025-01-01 14:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151428', 'tblTempVendorCDR_20' ) start [2025-01-01 14:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151428', 'tblTempVendorCDR_20' ) end [2025-01-01 14:15:17] Production.INFO: ProcessCDR(1,14151428,1,1,2) [2025-01-01 14:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151428', 'tblTempUsageDetail_20' ) start [2025-01-01 14:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151428', 'tblTempUsageDetail_20' ) end [2025-01-01 14:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:15:20] Production.INFO: ==20523== Releasing lock... [2025-01-01 14:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:15:20] Production.INFO: 36 MB #Memory Used# [2025-01-01 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:16:05 [end_date_ymd] => 2025-01-01 14:16:05 [RateCDR] => 1 ) [2025-01-01 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 11:16:05' and `end` < '2025-01-01 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 14:16:18] Production.INFO: count ==955 [2025-01-01 14:16:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:16:05 - End Time 2025-01-01 14:16:05 [2025-01-01 14:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151433', 'tblTempUsageDetail_20' ) start [2025-01-01 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151433', 'tblTempUsageDetail_20' ) end [2025-01-01 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151433', 'tblTempVendorCDR_20' ) start [2025-01-01 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151433', 'tblTempVendorCDR_20' ) end [2025-01-01 14:16:18] Production.INFO: ProcessCDR(1,14151433,1,1,2) [2025-01-01 14:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151433', 'tblTempUsageDetail_20' ) start [2025-01-01 14:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151433', 'tblTempUsageDetail_20' ) end [2025-01-01 14:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:16:23] Production.INFO: ==20594== Releasing lock... [2025-01-01 14:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:16:23] Production.INFO: 36 MB #Memory Used# [2025-01-01 14:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:17:04 [end_date_ymd] => 2025-01-01 14:17:04 [RateCDR] => 1 ) [2025-01-01 14: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-01 11:17:04' and `end` < '2025-01-01 14: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-01-01 14:17:17] Production.INFO: count ==953 [2025-01-01 14:17:17] Production.ERROR: pbx CDR StartTime 2025-01-01 11:17:04 - End Time 2025-01-01 14:17:04 [2025-01-01 14:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151438', 'tblTempUsageDetail_20' ) start [2025-01-01 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151438', 'tblTempUsageDetail_20' ) end [2025-01-01 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151438', 'tblTempVendorCDR_20' ) start [2025-01-01 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151438', 'tblTempVendorCDR_20' ) end [2025-01-01 14:17:17] Production.INFO: ProcessCDR(1,14151438,1,1,2) [2025-01-01 14:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151438', 'tblTempUsageDetail_20' ) start [2025-01-01 14:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151438', 'tblTempUsageDetail_20' ) end [2025-01-01 14:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:17:21] Production.INFO: ==20705== Releasing lock... [2025-01-01 14:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:17:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 14:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:18:04 [end_date_ymd] => 2025-01-01 14:18:04 [RateCDR] => 1 ) [2025-01-01 14: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-01-01 11:18:04' and `end` < '2025-01-01 14: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-01-01 14:18:19] Production.INFO: count ==946 [2025-01-01 14:18:19] Production.ERROR: pbx CDR StartTime 2025-01-01 11:18:04 - End Time 2025-01-01 14:18:04 [2025-01-01 14:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151443', 'tblTempUsageDetail_20' ) start [2025-01-01 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151443', 'tblTempUsageDetail_20' ) end [2025-01-01 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151443', 'tblTempVendorCDR_20' ) start [2025-01-01 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151443', 'tblTempVendorCDR_20' ) end [2025-01-01 14:18:19] Production.INFO: ProcessCDR(1,14151443,1,1,2) [2025-01-01 14:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151443', 'tblTempUsageDetail_20' ) start [2025-01-01 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151443', 'tblTempUsageDetail_20' ) end [2025-01-01 14:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:18:24] Production.INFO: ==20776== Releasing lock... [2025-01-01 14:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:18:24] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:19:05 [end_date_ymd] => 2025-01-01 14:19:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:19:05' and `end` < '2025-01-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-01-01 14:19:18] Production.INFO: count ==936 [2025-01-01 14:19:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:19:05 - End Time 2025-01-01 14:19:05 [2025-01-01 14:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151448', 'tblTempUsageDetail_20' ) start [2025-01-01 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151448', 'tblTempUsageDetail_20' ) end [2025-01-01 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151448', 'tblTempVendorCDR_20' ) start [2025-01-01 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151448', 'tblTempVendorCDR_20' ) end [2025-01-01 14:19:19] Production.INFO: ProcessCDR(1,14151448,1,1,2) [2025-01-01 14:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151448', 'tblTempUsageDetail_20' ) start [2025-01-01 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151448', 'tblTempUsageDetail_20' ) end [2025-01-01 14:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:19:22] Production.INFO: ==20847== Releasing lock... [2025-01-01 14:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:19:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:20:05 [end_date_ymd] => 2025-01-01 14:20:05 [RateCDR] => 1 ) [2025-01-01 14: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-01-01 11:20:05' and `end` < '2025-01-01 14: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-01-01 14:20:18] Production.INFO: count ==939 [2025-01-01 14:20:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:20:05 - End Time 2025-01-01 14:20:05 [2025-01-01 14:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151453', 'tblTempUsageDetail_20' ) start [2025-01-01 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151453', 'tblTempUsageDetail_20' ) end [2025-01-01 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151453', 'tblTempVendorCDR_20' ) start [2025-01-01 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151453', 'tblTempVendorCDR_20' ) end [2025-01-01 14:20:18] Production.INFO: ProcessCDR(1,14151453,1,1,2) [2025-01-01 14:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151453', 'tblTempUsageDetail_20' ) start [2025-01-01 14:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151453', 'tblTempUsageDetail_20' ) end [2025-01-01 14:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:20:23] Production.INFO: ==20917== Releasing lock... [2025-01-01 14:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:20:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:21:05 [end_date_ymd] => 2025-01-01 14:21:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:21:05' and `end` < '2025-01-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-01-01 14:21:18] Production.INFO: count ==952 [2025-01-01 14:21:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:21:05 - End Time 2025-01-01 14:21:05 [2025-01-01 14:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151459', 'tblTempUsageDetail_20' ) start [2025-01-01 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151459', 'tblTempUsageDetail_20' ) end [2025-01-01 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151459', 'tblTempVendorCDR_20' ) start [2025-01-01 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151459', 'tblTempVendorCDR_20' ) end [2025-01-01 14:21:18] Production.INFO: ProcessCDR(1,14151459,1,1,2) [2025-01-01 14:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151459', 'tblTempUsageDetail_20' ) start [2025-01-01 14:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151459', 'tblTempUsageDetail_20' ) end [2025-01-01 14:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:21:21] Production.INFO: ==20992== Releasing lock... [2025-01-01 14:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:21:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:22:05 [end_date_ymd] => 2025-01-01 14:22:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:22:05' and `end` < '2025-01-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-01-01 14:22:17] Production.INFO: count ==952 [2025-01-01 14:22:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:22:05 - End Time 2025-01-01 14:22:05 [2025-01-01 14:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151464', 'tblTempUsageDetail_20' ) start [2025-01-01 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151464', 'tblTempUsageDetail_20' ) end [2025-01-01 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151464', 'tblTempVendorCDR_20' ) start [2025-01-01 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151464', 'tblTempVendorCDR_20' ) end [2025-01-01 14:22:18] Production.INFO: ProcessCDR(1,14151464,1,1,2) [2025-01-01 14:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151464', 'tblTempUsageDetail_20' ) start [2025-01-01 14:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151464', 'tblTempUsageDetail_20' ) end [2025-01-01 14:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:22:21] Production.INFO: ==21066== Releasing lock... [2025-01-01 14:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:22:21] Production.INFO: 36 MB #Memory Used# [2025-01-01 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:23:05 [end_date_ymd] => 2025-01-01 14:23:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:23:05' and `end` < '2025-01-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-01-01 14:23:18] Production.INFO: count ==951 [2025-01-01 14:23:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:23:05 - End Time 2025-01-01 14:23:05 [2025-01-01 14:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151469', 'tblTempUsageDetail_20' ) start [2025-01-01 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151469', 'tblTempUsageDetail_20' ) end [2025-01-01 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151469', 'tblTempVendorCDR_20' ) start [2025-01-01 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151469', 'tblTempVendorCDR_20' ) end [2025-01-01 14:23:18] Production.INFO: ProcessCDR(1,14151469,1,1,2) [2025-01-01 14:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151469', 'tblTempUsageDetail_20' ) start [2025-01-01 14:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151469', 'tblTempUsageDetail_20' ) end [2025-01-01 14:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:23:21] Production.INFO: ==21139== Releasing lock... [2025-01-01 14:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:23:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:24:05 [end_date_ymd] => 2025-01-01 14:24:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:24:05' and `end` < '2025-01-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-01-01 14:24:18] Production.INFO: count ==948 [2025-01-01 14:24:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:24:05 - End Time 2025-01-01 14:24:05 [2025-01-01 14:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151474', 'tblTempUsageDetail_20' ) start [2025-01-01 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151474', 'tblTempUsageDetail_20' ) end [2025-01-01 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151474', 'tblTempVendorCDR_20' ) start [2025-01-01 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151474', 'tblTempVendorCDR_20' ) end [2025-01-01 14:24:18] Production.INFO: ProcessCDR(1,14151474,1,1,2) [2025-01-01 14:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151474', 'tblTempUsageDetail_20' ) start [2025-01-01 14:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151474', 'tblTempUsageDetail_20' ) end [2025-01-01 14:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:24:21] Production.INFO: ==21211== Releasing lock... [2025-01-01 14:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:24:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:25:05 [end_date_ymd] => 2025-01-01 14:25:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:25:05' and `end` < '2025-01-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-01-01 14:25:18] Production.INFO: count ==951 [2025-01-01 14:25:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:25:05 - End Time 2025-01-01 14:25:05 [2025-01-01 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151479', 'tblTempUsageDetail_20' ) start [2025-01-01 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151479', 'tblTempUsageDetail_20' ) end [2025-01-01 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151479', 'tblTempVendorCDR_20' ) start [2025-01-01 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151479', 'tblTempVendorCDR_20' ) end [2025-01-01 14:25:18] Production.INFO: ProcessCDR(1,14151479,1,1,2) [2025-01-01 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151479', 'tblTempUsageDetail_20' ) start [2025-01-01 14:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151479', 'tblTempUsageDetail_20' ) end [2025-01-01 14:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:25:23] Production.INFO: ==21281== Releasing lock... [2025-01-01 14:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:25:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:26:06 [end_date_ymd] => 2025-01-01 14:26:06 [RateCDR] => 1 ) [2025-01-01 14:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 11:26:06' and `end` < '2025-01-01 14:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 14:26:18] Production.INFO: count ==954 [2025-01-01 14:26:19] Production.ERROR: pbx CDR StartTime 2025-01-01 11:26:06 - End Time 2025-01-01 14:26:06 [2025-01-01 14:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151484', 'tblTempUsageDetail_20' ) start [2025-01-01 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151484', 'tblTempUsageDetail_20' ) end [2025-01-01 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151484', 'tblTempVendorCDR_20' ) start [2025-01-01 14:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151484', 'tblTempVendorCDR_20' ) end [2025-01-01 14:26:19] Production.INFO: ProcessCDR(1,14151484,1,1,2) [2025-01-01 14:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151484', 'tblTempUsageDetail_20' ) start [2025-01-01 14:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151484', 'tblTempUsageDetail_20' ) end [2025-01-01 14:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:26:22] Production.INFO: ==21353== Releasing lock... [2025-01-01 14:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:26:22] Production.INFO: 36 MB #Memory Used# [2025-01-01 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:27:05 [end_date_ymd] => 2025-01-01 14:27:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:27:05' and `end` < '2025-01-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-01-01 14:27:17] Production.INFO: count ==953 [2025-01-01 14:27:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:27:05 - End Time 2025-01-01 14:27:05 [2025-01-01 14:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151489', 'tblTempUsageDetail_20' ) start [2025-01-01 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151489', 'tblTempUsageDetail_20' ) end [2025-01-01 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151489', 'tblTempVendorCDR_20' ) start [2025-01-01 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151489', 'tblTempVendorCDR_20' ) end [2025-01-01 14:27:18] Production.INFO: ProcessCDR(1,14151489,1,1,2) [2025-01-01 14:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151489', 'tblTempUsageDetail_20' ) start [2025-01-01 14:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151489', 'tblTempUsageDetail_20' ) end [2025-01-01 14:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:27:21] Production.INFO: ==21422== Releasing lock... [2025-01-01 14:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:27:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:28:06 [end_date_ymd] => 2025-01-01 14:28:06 [RateCDR] => 1 ) [2025-01-01 14:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 11:28:06' and `end` < '2025-01-01 14:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 14:28:19] Production.INFO: count ==955 [2025-01-01 14:28:19] Production.ERROR: pbx CDR StartTime 2025-01-01 11:28:06 - End Time 2025-01-01 14:28:06 [2025-01-01 14:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151494', 'tblTempUsageDetail_20' ) start [2025-01-01 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151494', 'tblTempUsageDetail_20' ) end [2025-01-01 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151494', 'tblTempVendorCDR_20' ) start [2025-01-01 14:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151494', 'tblTempVendorCDR_20' ) end [2025-01-01 14:28:19] Production.INFO: ProcessCDR(1,14151494,1,1,2) [2025-01-01 14:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151494', 'tblTempUsageDetail_20' ) start [2025-01-01 14:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151494', 'tblTempUsageDetail_20' ) end [2025-01-01 14:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:28:22] Production.INFO: ==21495== Releasing lock... [2025-01-01 14:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:28:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:29:05 [end_date_ymd] => 2025-01-01 14:29:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:29:05' and `end` < '2025-01-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-01-01 14:29:19] Production.INFO: count ==955 [2025-01-01 14:29:19] Production.ERROR: pbx CDR StartTime 2025-01-01 11:29:05 - End Time 2025-01-01 14:29:05 [2025-01-01 14:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151499', 'tblTempUsageDetail_20' ) start [2025-01-01 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151499', 'tblTempUsageDetail_20' ) end [2025-01-01 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151499', 'tblTempVendorCDR_20' ) start [2025-01-01 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151499', 'tblTempVendorCDR_20' ) end [2025-01-01 14:29:19] Production.INFO: ProcessCDR(1,14151499,1,1,2) [2025-01-01 14:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151499', 'tblTempUsageDetail_20' ) start [2025-01-01 14:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151499', 'tblTempUsageDetail_20' ) end [2025-01-01 14:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:29:22] Production.INFO: ==21566== Releasing lock... [2025-01-01 14:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:29:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:30:06 [end_date_ymd] => 2025-01-01 14:30:06 [RateCDR] => 1 ) [2025-01-01 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 11:30:06' and `end` < '2025-01-01 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 14:30:18] Production.INFO: count ==954 [2025-01-01 14:30:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:30:06 - End Time 2025-01-01 14:30:06 [2025-01-01 14:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151505', 'tblTempUsageDetail_20' ) start [2025-01-01 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151505', 'tblTempUsageDetail_20' ) end [2025-01-01 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151505', 'tblTempVendorCDR_20' ) start [2025-01-01 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151505', 'tblTempVendorCDR_20' ) end [2025-01-01 14:30:18] Production.INFO: ProcessCDR(1,14151505,1,1,2) [2025-01-01 14:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151505', 'tblTempUsageDetail_20' ) start [2025-01-01 14:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151505', 'tblTempUsageDetail_20' ) end [2025-01-01 14:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:30:22] Production.INFO: ==21643== Releasing lock... [2025-01-01 14:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:30:22] Production.INFO: 36 MB #Memory Used# [2025-01-01 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:31:05 [end_date_ymd] => 2025-01-01 14:31:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:31:05' and `end` < '2025-01-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-01-01 14:31:17] Production.INFO: count ==965 [2025-01-01 14:31:17] Production.ERROR: pbx CDR StartTime 2025-01-01 11:31:05 - End Time 2025-01-01 14:31:05 [2025-01-01 14:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151510', 'tblTempUsageDetail_20' ) start [2025-01-01 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151510', 'tblTempUsageDetail_20' ) end [2025-01-01 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151510', 'tblTempVendorCDR_20' ) start [2025-01-01 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151510', 'tblTempVendorCDR_20' ) end [2025-01-01 14:31:18] Production.INFO: ProcessCDR(1,14151510,1,1,2) [2025-01-01 14:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151510', 'tblTempUsageDetail_20' ) start [2025-01-01 14:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151510', 'tblTempUsageDetail_20' ) end [2025-01-01 14:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:31:22] Production.INFO: ==21724== Releasing lock... [2025-01-01 14:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:31:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:32:05 [end_date_ymd] => 2025-01-01 14:32:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:32:05' and `end` < '2025-01-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-01-01 14:32:18] Production.INFO: count ==969 [2025-01-01 14:32:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:32:05 - End Time 2025-01-01 14:32:05 [2025-01-01 14:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151515', 'tblTempUsageDetail_20' ) start [2025-01-01 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151515', 'tblTempUsageDetail_20' ) end [2025-01-01 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151515', 'tblTempVendorCDR_20' ) start [2025-01-01 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151515', 'tblTempVendorCDR_20' ) end [2025-01-01 14:32:18] Production.INFO: ProcessCDR(1,14151515,1,1,2) [2025-01-01 14:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151515', 'tblTempUsageDetail_20' ) start [2025-01-01 14:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151515', 'tblTempUsageDetail_20' ) end [2025-01-01 14:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:32:22] Production.INFO: ==21836== Releasing lock... [2025-01-01 14:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:32:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 14:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:33:04 [end_date_ymd] => 2025-01-01 14:33:04 [RateCDR] => 1 ) [2025-01-01 14: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-01-01 11:33:04' and `end` < '2025-01-01 14: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-01-01 14:33:17] Production.INFO: count ==976 [2025-01-01 14:33:17] Production.ERROR: pbx CDR StartTime 2025-01-01 11:33:04 - End Time 2025-01-01 14:33:04 [2025-01-01 14:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151520', 'tblTempUsageDetail_20' ) start [2025-01-01 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151520', 'tblTempUsageDetail_20' ) end [2025-01-01 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151520', 'tblTempVendorCDR_20' ) start [2025-01-01 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151520', 'tblTempVendorCDR_20' ) end [2025-01-01 14:33:17] Production.INFO: ProcessCDR(1,14151520,1,1,2) [2025-01-01 14:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151520', 'tblTempUsageDetail_20' ) start [2025-01-01 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151520', 'tblTempUsageDetail_20' ) end [2025-01-01 14:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:33:22] Production.INFO: ==21917== Releasing lock... [2025-01-01 14:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:33:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:34:05 [end_date_ymd] => 2025-01-01 14:34:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:34:05' and `end` < '2025-01-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-01-01 14:34:18] Production.INFO: count ==976 [2025-01-01 14:34:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:34:05 - End Time 2025-01-01 14:34:05 [2025-01-01 14:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151525', 'tblTempUsageDetail_20' ) start [2025-01-01 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151525', 'tblTempUsageDetail_20' ) end [2025-01-01 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151525', 'tblTempVendorCDR_20' ) start [2025-01-01 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151525', 'tblTempVendorCDR_20' ) end [2025-01-01 14:34:18] Production.INFO: ProcessCDR(1,14151525,1,1,2) [2025-01-01 14:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151525', 'tblTempUsageDetail_20' ) start [2025-01-01 14:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151525', 'tblTempUsageDetail_20' ) end [2025-01-01 14:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:34:21] Production.INFO: ==21999== Releasing lock... [2025-01-01 14:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:34:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:35:05 [end_date_ymd] => 2025-01-01 14:35:05 [RateCDR] => 1 ) [2025-01-01 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 11:35:05' and `end` < '2025-01-01 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 14:35:17] Production.INFO: count ==976 [2025-01-01 14:35:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:35:05 - End Time 2025-01-01 14:35:05 [2025-01-01 14:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151530', 'tblTempUsageDetail_20' ) start [2025-01-01 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151530', 'tblTempUsageDetail_20' ) end [2025-01-01 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151530', 'tblTempVendorCDR_20' ) start [2025-01-01 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151530', 'tblTempVendorCDR_20' ) end [2025-01-01 14:35:18] Production.INFO: ProcessCDR(1,14151530,1,1,2) [2025-01-01 14:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151530', 'tblTempUsageDetail_20' ) start [2025-01-01 14:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151530', 'tblTempUsageDetail_20' ) end [2025-01-01 14:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:35:21] Production.INFO: ==22093== Releasing lock... [2025-01-01 14:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:35:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:36:05 [end_date_ymd] => 2025-01-01 14:36:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:36:05' and `end` < '2025-01-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-01-01 14:36:18] Production.INFO: count ==983 [2025-01-01 14:36:19] Production.ERROR: pbx CDR StartTime 2025-01-01 11:36:05 - End Time 2025-01-01 14:36:05 [2025-01-01 14:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151535', 'tblTempUsageDetail_20' ) start [2025-01-01 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151535', 'tblTempUsageDetail_20' ) end [2025-01-01 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151535', 'tblTempVendorCDR_20' ) start [2025-01-01 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151535', 'tblTempVendorCDR_20' ) end [2025-01-01 14:36:19] Production.INFO: ProcessCDR(1,14151535,1,1,2) [2025-01-01 14:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151535', 'tblTempUsageDetail_20' ) start [2025-01-01 14:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151535', 'tblTempUsageDetail_20' ) end [2025-01-01 14:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:36:22] Production.INFO: ==22176== Releasing lock... [2025-01-01 14:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:36:22] Production.INFO: 36 MB #Memory Used# [2025-01-01 14:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:37:04 [end_date_ymd] => 2025-01-01 14:37:04 [RateCDR] => 1 ) [2025-01-01 14:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 11:37:04' and `end` < '2025-01-01 14:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 14:37:17] Production.INFO: count ==1003 [2025-01-01 14:37:17] Production.ERROR: pbx CDR StartTime 2025-01-01 11:37:04 - End Time 2025-01-01 14:37:04 [2025-01-01 14:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151540', 'tblTempUsageDetail_20' ) start [2025-01-01 14:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151540', 'tblTempUsageDetail_20' ) end [2025-01-01 14:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151540', 'tblTempVendorCDR_20' ) start [2025-01-01 14:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151540', 'tblTempVendorCDR_20' ) end [2025-01-01 14:37:17] Production.INFO: ProcessCDR(1,14151540,1,1,2) [2025-01-01 14:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151540', 'tblTempUsageDetail_20' ) start [2025-01-01 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151540', 'tblTempUsageDetail_20' ) end [2025-01-01 14:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:37:22] Production.INFO: ==22256== Releasing lock... [2025-01-01 14:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:37:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-01 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:38:05 [end_date_ymd] => 2025-01-01 14:38:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:38:05' and `end` < '2025-01-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-01-01 14:38:18] Production.INFO: count ==998 [2025-01-01 14:38:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:38:05 - End Time 2025-01-01 14:38:05 [2025-01-01 14:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151545', 'tblTempUsageDetail_20' ) start [2025-01-01 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151545', 'tblTempUsageDetail_20' ) end [2025-01-01 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151545', 'tblTempVendorCDR_20' ) start [2025-01-01 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151545', 'tblTempVendorCDR_20' ) end [2025-01-01 14:38:18] Production.INFO: ProcessCDR(1,14151545,1,1,2) [2025-01-01 14:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151545', 'tblTempUsageDetail_20' ) start [2025-01-01 14:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151545', 'tblTempUsageDetail_20' ) end [2025-01-01 14:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:38:21] Production.INFO: ==22337== Releasing lock... [2025-01-01 14:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:38:21] Production.INFO: 36 MB #Memory Used# [2025-01-01 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:39:05 [end_date_ymd] => 2025-01-01 14:39:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:39:05' and `end` < '2025-01-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-01-01 14:39:17] Production.INFO: count ==995 [2025-01-01 14:39:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:39:05 - End Time 2025-01-01 14:39:05 [2025-01-01 14:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151550', 'tblTempUsageDetail_20' ) start [2025-01-01 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151550', 'tblTempUsageDetail_20' ) end [2025-01-01 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151550', 'tblTempVendorCDR_20' ) start [2025-01-01 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151550', 'tblTempVendorCDR_20' ) end [2025-01-01 14:39:18] Production.INFO: ProcessCDR(1,14151550,1,1,2) [2025-01-01 14:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151550', 'tblTempUsageDetail_20' ) start [2025-01-01 14:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151550', 'tblTempUsageDetail_20' ) end [2025-01-01 14:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:39:21] Production.INFO: ==22423== Releasing lock... [2025-01-01 14:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:39:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:40:05 [end_date_ymd] => 2025-01-01 14:40:05 [RateCDR] => 1 ) [2025-01-01 14: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-01-01 11:40:05' and `end` < '2025-01-01 14: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-01-01 14:40:18] Production.INFO: count ==999 [2025-01-01 14:40:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:40:05 - End Time 2025-01-01 14:40:05 [2025-01-01 14:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151556', 'tblTempUsageDetail_20' ) start [2025-01-01 14:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151556', 'tblTempUsageDetail_20' ) end [2025-01-01 14:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151556', 'tblTempVendorCDR_20' ) start [2025-01-01 14:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151556', 'tblTempVendorCDR_20' ) end [2025-01-01 14:40:18] Production.INFO: ProcessCDR(1,14151556,1,1,2) [2025-01-01 14:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151556', 'tblTempUsageDetail_20' ) start [2025-01-01 14:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151556', 'tblTempUsageDetail_20' ) end [2025-01-01 14:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:40:22] Production.INFO: ==22506== Releasing lock... [2025-01-01 14:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:40:22] Production.INFO: 36 MB #Memory Used# [2025-01-01 14:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:41:04 [end_date_ymd] => 2025-01-01 14:41:04 [RateCDR] => 1 ) [2025-01-01 14: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-01-01 11:41:04' and `end` < '2025-01-01 14: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-01-01 14:41:17] Production.INFO: count ==1025 [2025-01-01 14:41:17] Production.ERROR: pbx CDR StartTime 2025-01-01 11:41:04 - End Time 2025-01-01 14:41:04 [2025-01-01 14:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151561', 'tblTempUsageDetail_20' ) start [2025-01-01 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151561', 'tblTempUsageDetail_20' ) end [2025-01-01 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151561', 'tblTempVendorCDR_20' ) start [2025-01-01 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151561', 'tblTempVendorCDR_20' ) end [2025-01-01 14:41:17] Production.INFO: ProcessCDR(1,14151561,1,1,2) [2025-01-01 14:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151561', 'tblTempUsageDetail_20' ) start [2025-01-01 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151561', 'tblTempUsageDetail_20' ) end [2025-01-01 14:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:41:22] Production.INFO: ==22588== Releasing lock... [2025-01-01 14:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:41:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-01 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:42:05 [end_date_ymd] => 2025-01-01 14:42:05 [RateCDR] => 1 ) [2025-01-01 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 11:42:05' and `end` < '2025-01-01 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 14:42:19] Production.INFO: count ==1023 [2025-01-01 14:42:20] Production.ERROR: pbx CDR StartTime 2025-01-01 11:42:05 - End Time 2025-01-01 14:42:05 [2025-01-01 14:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151566', 'tblTempUsageDetail_20' ) start [2025-01-01 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151566', 'tblTempUsageDetail_20' ) end [2025-01-01 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151566', 'tblTempVendorCDR_20' ) start [2025-01-01 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151566', 'tblTempVendorCDR_20' ) end [2025-01-01 14:42:20] Production.INFO: ProcessCDR(1,14151566,1,1,2) [2025-01-01 14:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151566', 'tblTempUsageDetail_20' ) start [2025-01-01 14:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151566', 'tblTempUsageDetail_20' ) end [2025-01-01 14:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:42:23] Production.INFO: ==22667== Releasing lock... [2025-01-01 14:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:42:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-01 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:43:05 [end_date_ymd] => 2025-01-01 14:43:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:43:05' and `end` < '2025-01-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-01-01 14:43:19] Production.INFO: count ==1020 [2025-01-01 14:43:19] Production.ERROR: pbx CDR StartTime 2025-01-01 11:43:05 - End Time 2025-01-01 14:43:05 [2025-01-01 14:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151571', 'tblTempUsageDetail_20' ) start [2025-01-01 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151571', 'tblTempUsageDetail_20' ) end [2025-01-01 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151571', 'tblTempVendorCDR_20' ) start [2025-01-01 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151571', 'tblTempVendorCDR_20' ) end [2025-01-01 14:43:19] Production.INFO: ProcessCDR(1,14151571,1,1,2) [2025-01-01 14:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151571', 'tblTempUsageDetail_20' ) start [2025-01-01 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151571', 'tblTempUsageDetail_20' ) end [2025-01-01 14:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:43:22] Production.INFO: ==22748== Releasing lock... [2025-01-01 14:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:43:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:44:05 [end_date_ymd] => 2025-01-01 14:44:05 [RateCDR] => 1 ) [2025-01-01 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 11:44:05' and `end` < '2025-01-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-01-01 14:44:17] Production.INFO: count ==1018 [2025-01-01 14:44:17] Production.ERROR: pbx CDR StartTime 2025-01-01 11:44:05 - End Time 2025-01-01 14:44:05 [2025-01-01 14:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151576', 'tblTempUsageDetail_20' ) start [2025-01-01 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151576', 'tblTempUsageDetail_20' ) end [2025-01-01 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151576', 'tblTempVendorCDR_20' ) start [2025-01-01 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151576', 'tblTempVendorCDR_20' ) end [2025-01-01 14:44:18] Production.INFO: ProcessCDR(1,14151576,1,1,2) [2025-01-01 14:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151576', 'tblTempUsageDetail_20' ) start [2025-01-01 14:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151576', 'tblTempUsageDetail_20' ) end [2025-01-01 14:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:44:21] Production.INFO: ==22833== Releasing lock... [2025-01-01 14:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:44:21] Production.INFO: 36 MB #Memory Used# [2025-01-01 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:45:05 [end_date_ymd] => 2025-01-01 14:45:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:45:05' and `end` < '2025-01-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-01-01 14:45:18] Production.INFO: count ==1017 [2025-01-01 14:45:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:45:05 - End Time 2025-01-01 14:45:05 [2025-01-01 14:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151581', 'tblTempUsageDetail_20' ) start [2025-01-01 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151581', 'tblTempUsageDetail_20' ) end [2025-01-01 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151581', 'tblTempVendorCDR_20' ) start [2025-01-01 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151581', 'tblTempVendorCDR_20' ) end [2025-01-01 14:45:18] Production.INFO: ProcessCDR(1,14151581,1,1,2) [2025-01-01 14:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151581', 'tblTempUsageDetail_20' ) start [2025-01-01 14:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151581', 'tblTempUsageDetail_20' ) end [2025-01-01 14:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:45:22] Production.INFO: ==22915== Releasing lock... [2025-01-01 14:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:45:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:46:05 [end_date_ymd] => 2025-01-01 14:46:05 [RateCDR] => 1 ) [2025-01-01 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 11:46:05' and `end` < '2025-01-01 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 14:46:18] Production.INFO: count ==1017 [2025-01-01 14:46:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:46:05 - End Time 2025-01-01 14:46:05 [2025-01-01 14:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151586', 'tblTempUsageDetail_20' ) start [2025-01-01 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151586', 'tblTempUsageDetail_20' ) end [2025-01-01 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151586', 'tblTempVendorCDR_20' ) start [2025-01-01 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151586', 'tblTempVendorCDR_20' ) end [2025-01-01 14:46:18] Production.INFO: ProcessCDR(1,14151586,1,1,2) [2025-01-01 14:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151586', 'tblTempUsageDetail_20' ) start [2025-01-01 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151586', 'tblTempUsageDetail_20' ) end [2025-01-01 14:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:46:22] Production.INFO: ==22992== Releasing lock... [2025-01-01 14:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:46:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:47:05 [end_date_ymd] => 2025-01-01 14:47:05 [RateCDR] => 1 ) [2025-01-01 14: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-01 11:47:05' and `end` < '2025-01-01 14: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-01-01 14:47:18] Production.INFO: count ==1015 [2025-01-01 14:47:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:47:05 - End Time 2025-01-01 14:47:05 [2025-01-01 14:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151591', 'tblTempUsageDetail_20' ) start [2025-01-01 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151591', 'tblTempUsageDetail_20' ) end [2025-01-01 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151591', 'tblTempVendorCDR_20' ) start [2025-01-01 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151591', 'tblTempVendorCDR_20' ) end [2025-01-01 14:47:18] Production.INFO: ProcessCDR(1,14151591,1,1,2) [2025-01-01 14:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151591', 'tblTempUsageDetail_20' ) start [2025-01-01 14:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151591', 'tblTempUsageDetail_20' ) end [2025-01-01 14:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:47:21] Production.INFO: ==23073== Releasing lock... [2025-01-01 14:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:47:21] Production.INFO: 36 MB #Memory Used# [2025-01-01 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:48:05 [end_date_ymd] => 2025-01-01 14:48:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:48:05' and `end` < '2025-01-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-01-01 14:48:18] Production.INFO: count ==1013 [2025-01-01 14:48:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:48:05 - End Time 2025-01-01 14:48:05 [2025-01-01 14:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151596', 'tblTempUsageDetail_20' ) start [2025-01-01 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151596', 'tblTempUsageDetail_20' ) end [2025-01-01 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151596', 'tblTempVendorCDR_20' ) start [2025-01-01 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151596', 'tblTempVendorCDR_20' ) end [2025-01-01 14:48:18] Production.INFO: ProcessCDR(1,14151596,1,1,2) [2025-01-01 14:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151596', 'tblTempUsageDetail_20' ) start [2025-01-01 14:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151596', 'tblTempUsageDetail_20' ) end [2025-01-01 14:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:48:21] Production.INFO: ==23193== Releasing lock... [2025-01-01 14:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:48:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:49:05 [end_date_ymd] => 2025-01-01 14:49:05 [RateCDR] => 1 ) [2025-01-01 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 11:49:05' and `end` < '2025-01-01 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 14:49:18] Production.INFO: count ==1014 [2025-01-01 14:49:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:49:05 - End Time 2025-01-01 14:49:05 [2025-01-01 14:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151601', 'tblTempUsageDetail_20' ) start [2025-01-01 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151601', 'tblTempUsageDetail_20' ) end [2025-01-01 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151601', 'tblTempVendorCDR_20' ) start [2025-01-01 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151601', 'tblTempVendorCDR_20' ) end [2025-01-01 14:49:18] Production.INFO: ProcessCDR(1,14151601,1,1,2) [2025-01-01 14:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151601', 'tblTempUsageDetail_20' ) start [2025-01-01 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151601', 'tblTempUsageDetail_20' ) end [2025-01-01 14:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:49:23] Production.INFO: ==23275== Releasing lock... [2025-01-01 14:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:49:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:50:06 [end_date_ymd] => 2025-01-01 14:50:06 [RateCDR] => 1 ) [2025-01-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-01-01 11:50:06' and `end` < '2025-01-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-01-01 14:50:19] Production.INFO: count ==1014 [2025-01-01 14:50:19] Production.ERROR: pbx CDR StartTime 2025-01-01 11:50:06 - End Time 2025-01-01 14:50:06 [2025-01-01 14:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151607', 'tblTempUsageDetail_20' ) start [2025-01-01 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151607', 'tblTempUsageDetail_20' ) end [2025-01-01 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151607', 'tblTempVendorCDR_20' ) start [2025-01-01 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151607', 'tblTempVendorCDR_20' ) end [2025-01-01 14:50:19] Production.INFO: ProcessCDR(1,14151607,1,1,2) [2025-01-01 14:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151607', 'tblTempUsageDetail_20' ) start [2025-01-01 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151607', 'tblTempUsageDetail_20' ) end [2025-01-01 14:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:50:22] Production.INFO: ==23361== Releasing lock... [2025-01-01 14:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:50:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:51:05 [end_date_ymd] => 2025-01-01 14:51:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:51:05' and `end` < '2025-01-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-01-01 14:51:20] Production.INFO: count ==1022 [2025-01-01 14:51:20] Production.ERROR: pbx CDR StartTime 2025-01-01 11:51:05 - End Time 2025-01-01 14:51:05 [2025-01-01 14:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151612', 'tblTempUsageDetail_20' ) start [2025-01-01 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151612', 'tblTempUsageDetail_20' ) end [2025-01-01 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151612', 'tblTempVendorCDR_20' ) start [2025-01-01 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151612', 'tblTempVendorCDR_20' ) end [2025-01-01 14:51:20] Production.INFO: ProcessCDR(1,14151612,1,1,2) [2025-01-01 14:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151612', 'tblTempUsageDetail_20' ) start [2025-01-01 14:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151612', 'tblTempUsageDetail_20' ) end [2025-01-01 14:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:51:23] Production.INFO: ==23444== Releasing lock... [2025-01-01 14:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:51:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 14:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:52:04 [end_date_ymd] => 2025-01-01 14:52:04 [RateCDR] => 1 ) [2025-01-01 14: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-01-01 11:52:04' and `end` < '2025-01-01 14: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-01-01 14:52:17] Production.INFO: count ==1025 [2025-01-01 14:52:17] Production.ERROR: pbx CDR StartTime 2025-01-01 11:52:04 - End Time 2025-01-01 14:52:04 [2025-01-01 14:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151617', 'tblTempUsageDetail_20' ) start [2025-01-01 14:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151617', 'tblTempUsageDetail_20' ) end [2025-01-01 14:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151617', 'tblTempVendorCDR_20' ) start [2025-01-01 14:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151617', 'tblTempVendorCDR_20' ) end [2025-01-01 14:52:17] Production.INFO: ProcessCDR(1,14151617,1,1,2) [2025-01-01 14:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151617', 'tblTempUsageDetail_20' ) start [2025-01-01 14:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151617', 'tblTempUsageDetail_20' ) end [2025-01-01 14:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:52:20] Production.INFO: ==23523== Releasing lock... [2025-01-01 14:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:52:20] Production.INFO: 36 MB #Memory Used# [2025-01-01 14:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:53:04 [end_date_ymd] => 2025-01-01 14:53:04 [RateCDR] => 1 ) [2025-01-01 14: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-01-01 11:53:04' and `end` < '2025-01-01 14: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-01-01 14:53:18] Production.INFO: count ==1023 [2025-01-01 14:53:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:53:04 - End Time 2025-01-01 14:53:04 [2025-01-01 14:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151622', 'tblTempUsageDetail_20' ) start [2025-01-01 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151622', 'tblTempUsageDetail_20' ) end [2025-01-01 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151622', 'tblTempVendorCDR_20' ) start [2025-01-01 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151622', 'tblTempVendorCDR_20' ) end [2025-01-01 14:53:18] Production.INFO: ProcessCDR(1,14151622,1,1,2) [2025-01-01 14:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151622', 'tblTempUsageDetail_20' ) start [2025-01-01 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151622', 'tblTempUsageDetail_20' ) end [2025-01-01 14:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:53:22] Production.INFO: ==23598== Releasing lock... [2025-01-01 14:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:53:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:54:05 [end_date_ymd] => 2025-01-01 14:54:05 [RateCDR] => 1 ) [2025-01-01 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 11:54:05' and `end` < '2025-01-01 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 14:54:18] Production.INFO: count ==1022 [2025-01-01 14:54:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:54:05 - End Time 2025-01-01 14:54:05 [2025-01-01 14:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151627', 'tblTempUsageDetail_20' ) start [2025-01-01 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151627', 'tblTempUsageDetail_20' ) end [2025-01-01 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151627', 'tblTempVendorCDR_20' ) start [2025-01-01 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151627', 'tblTempVendorCDR_20' ) end [2025-01-01 14:54:18] Production.INFO: ProcessCDR(1,14151627,1,1,2) [2025-01-01 14:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151627', 'tblTempUsageDetail_20' ) start [2025-01-01 14:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151627', 'tblTempUsageDetail_20' ) end [2025-01-01 14:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:54:21] Production.INFO: ==23676== Releasing lock... [2025-01-01 14:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:54:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 14:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:55:04 [end_date_ymd] => 2025-01-01 14:55:04 [RateCDR] => 1 ) [2025-01-01 14: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-01-01 11:55:04' and `end` < '2025-01-01 14: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-01-01 14:55:17] Production.INFO: count ==1021 [2025-01-01 14:55:17] Production.ERROR: pbx CDR StartTime 2025-01-01 11:55:04 - End Time 2025-01-01 14:55:04 [2025-01-01 14:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151632', 'tblTempUsageDetail_20' ) start [2025-01-01 14:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151632', 'tblTempUsageDetail_20' ) end [2025-01-01 14:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151632', 'tblTempVendorCDR_20' ) start [2025-01-01 14:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151632', 'tblTempVendorCDR_20' ) end [2025-01-01 14:55:17] Production.INFO: ProcessCDR(1,14151632,1,1,2) [2025-01-01 14:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151632', 'tblTempUsageDetail_20' ) start [2025-01-01 14:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151632', 'tblTempUsageDetail_20' ) end [2025-01-01 14:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:55:20] Production.INFO: ==23751== Releasing lock... [2025-01-01 14:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:55:20] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:56:06 [end_date_ymd] => 2025-01-01 14:56:06 [RateCDR] => 1 ) [2025-01-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-01-01 11:56:06' and `end` < '2025-01-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-01-01 14:56:19] Production.INFO: count ==1020 [2025-01-01 14:56:19] Production.ERROR: pbx CDR StartTime 2025-01-01 11:56:06 - End Time 2025-01-01 14:56:06 [2025-01-01 14:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151637', 'tblTempUsageDetail_20' ) start [2025-01-01 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151637', 'tblTempUsageDetail_20' ) end [2025-01-01 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151637', 'tblTempVendorCDR_20' ) start [2025-01-01 14:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151637', 'tblTempVendorCDR_20' ) end [2025-01-01 14:56:19] Production.INFO: ProcessCDR(1,14151637,1,1,2) [2025-01-01 14:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151637', 'tblTempUsageDetail_20' ) start [2025-01-01 14:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151637', 'tblTempUsageDetail_20' ) end [2025-01-01 14:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:56:22] Production.INFO: ==23823== Releasing lock... [2025-01-01 14:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:56:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 14:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:57:04 [end_date_ymd] => 2025-01-01 14:57:04 [RateCDR] => 1 ) [2025-01-01 14: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-01-01 11:57:04' and `end` < '2025-01-01 14: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-01-01 14:57:18] Production.INFO: count ==1011 [2025-01-01 14:57:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:57:04 - End Time 2025-01-01 14:57:04 [2025-01-01 14:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151642', 'tblTempUsageDetail_20' ) start [2025-01-01 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151642', 'tblTempUsageDetail_20' ) end [2025-01-01 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151642', 'tblTempVendorCDR_20' ) start [2025-01-01 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151642', 'tblTempVendorCDR_20' ) end [2025-01-01 14:57:18] Production.INFO: ProcessCDR(1,14151642,1,1,2) [2025-01-01 14:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151642', 'tblTempUsageDetail_20' ) start [2025-01-01 14:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151642', 'tblTempUsageDetail_20' ) end [2025-01-01 14:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:57:21] Production.INFO: ==23891== Releasing lock... [2025-01-01 14:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:57:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:58:05 [end_date_ymd] => 2025-01-01 14:58:05 [RateCDR] => 1 ) [2025-01-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-01-01 11:58:05' and `end` < '2025-01-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-01-01 14:58:18] Production.INFO: count ==1003 [2025-01-01 14:58:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:58:05 - End Time 2025-01-01 14:58:05 [2025-01-01 14:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151647', 'tblTempUsageDetail_20' ) start [2025-01-01 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151647', 'tblTempUsageDetail_20' ) end [2025-01-01 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151647', 'tblTempVendorCDR_20' ) start [2025-01-01 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151647', 'tblTempVendorCDR_20' ) end [2025-01-01 14:58:18] Production.INFO: ProcessCDR(1,14151647,1,1,2) [2025-01-01 14:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151647', 'tblTempUsageDetail_20' ) start [2025-01-01 14:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151647', 'tblTempUsageDetail_20' ) end [2025-01-01 14:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:58:21] Production.INFO: ==23961== Releasing lock... [2025-01-01 14:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:58:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 14:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 11:59:04 [end_date_ymd] => 2025-01-01 14:59:04 [RateCDR] => 1 ) [2025-01-01 14: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-01-01 11:59:04' and `end` < '2025-01-01 14: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-01-01 14:59:18] Production.INFO: count ==1002 [2025-01-01 14:59:18] Production.ERROR: pbx CDR StartTime 2025-01-01 11:59:04 - End Time 2025-01-01 14:59:04 [2025-01-01 14:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151652', 'tblTempUsageDetail_20' ) start [2025-01-01 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151652', 'tblTempUsageDetail_20' ) end [2025-01-01 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151652', 'tblTempVendorCDR_20' ) start [2025-01-01 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151652', 'tblTempVendorCDR_20' ) end [2025-01-01 14:59:18] Production.INFO: ProcessCDR(1,14151652,1,1,2) [2025-01-01 14:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 14:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151652', 'tblTempUsageDetail_20' ) start [2025-01-01 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151652', 'tblTempUsageDetail_20' ) end [2025-01-01 14:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 14:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 14:59:22] Production.INFO: ==24030== Releasing lock... [2025-01-01 14:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 14:59:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:00:05 [end_date_ymd] => 2025-01-01 15:00:05 [RateCDR] => 1 ) [2025-01-01 15: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-01-01 12:00:05' and `end` < '2025-01-01 15: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-01-01 15:00:18] Production.INFO: count ==1000 [2025-01-01 15:00:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:00:05 - End Time 2025-01-01 15:00:05 [2025-01-01 15:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151658', 'tblTempUsageDetail_20' ) start [2025-01-01 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151658', 'tblTempUsageDetail_20' ) end [2025-01-01 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151658', 'tblTempVendorCDR_20' ) start [2025-01-01 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151658', 'tblTempVendorCDR_20' ) end [2025-01-01 15:00:18] Production.INFO: ProcessCDR(1,14151658,1,1,2) [2025-01-01 15:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151658', 'tblTempUsageDetail_20' ) start [2025-01-01 15:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151658', 'tblTempUsageDetail_20' ) end [2025-01-01 15:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:00:21] Production.INFO: ==24108== Releasing lock... [2025-01-01 15:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:00:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 15:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:01:04 [end_date_ymd] => 2025-01-01 15:01:04 [RateCDR] => 1 ) [2025-01-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-01-01 12:01:04' and `end` < '2025-01-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-01-01 15:01:17] Production.INFO: count ==1010 [2025-01-01 15:01:17] Production.ERROR: pbx CDR StartTime 2025-01-01 12:01:04 - End Time 2025-01-01 15:01:04 [2025-01-01 15:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151663', 'tblTempUsageDetail_20' ) start [2025-01-01 15:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151663', 'tblTempUsageDetail_20' ) end [2025-01-01 15:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151663', 'tblTempVendorCDR_20' ) start [2025-01-01 15:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151663', 'tblTempVendorCDR_20' ) end [2025-01-01 15:01:17] Production.INFO: ProcessCDR(1,14151663,1,1,2) [2025-01-01 15:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151663', 'tblTempUsageDetail_20' ) start [2025-01-01 15:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151663', 'tblTempUsageDetail_20' ) end [2025-01-01 15:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:01:20] Production.INFO: ==24193== Releasing lock... [2025-01-01 15:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:01:20] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:02:05 [end_date_ymd] => 2025-01-01 15:02:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:02:05' and `end` < '2025-01-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-01-01 15:02:18] Production.INFO: count ==1009 [2025-01-01 15:02:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:02:05 - End Time 2025-01-01 15:02:05 [2025-01-01 15:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151668', 'tblTempUsageDetail_20' ) start [2025-01-01 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151668', 'tblTempUsageDetail_20' ) end [2025-01-01 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151668', 'tblTempVendorCDR_20' ) start [2025-01-01 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151668', 'tblTempVendorCDR_20' ) end [2025-01-01 15:02:18] Production.INFO: ProcessCDR(1,14151668,1,1,2) [2025-01-01 15:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151668', 'tblTempUsageDetail_20' ) start [2025-01-01 15:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151668', 'tblTempUsageDetail_20' ) end [2025-01-01 15:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:02:21] Production.INFO: ==24342== Releasing lock... [2025-01-01 15:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:02:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:03:05 [end_date_ymd] => 2025-01-01 15:03:05 [RateCDR] => 1 ) [2025-01-01 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 12:03:05' and `end` < '2025-01-01 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 15:03:17] Production.INFO: count ==1010 [2025-01-01 15:03:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:03:05 - End Time 2025-01-01 15:03:05 [2025-01-01 15:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151673', 'tblTempUsageDetail_20' ) start [2025-01-01 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151673', 'tblTempUsageDetail_20' ) end [2025-01-01 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151673', 'tblTempVendorCDR_20' ) start [2025-01-01 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151673', 'tblTempVendorCDR_20' ) end [2025-01-01 15:03:18] Production.INFO: ProcessCDR(1,14151673,1,1,2) [2025-01-01 15:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151673', 'tblTempUsageDetail_20' ) start [2025-01-01 15:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151673', 'tblTempUsageDetail_20' ) end [2025-01-01 15:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:03:22] Production.INFO: ==24413== Releasing lock... [2025-01-01 15:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:03:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 15:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:04:04 [end_date_ymd] => 2025-01-01 15:04:04 [RateCDR] => 1 ) [2025-01-01 15:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 12:04:04' and `end` < '2025-01-01 15:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 15:04:17] Production.INFO: count ==1007 [2025-01-01 15:04:17] Production.ERROR: pbx CDR StartTime 2025-01-01 12:04:04 - End Time 2025-01-01 15:04:04 [2025-01-01 15:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151678', 'tblTempUsageDetail_20' ) start [2025-01-01 15:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151678', 'tblTempUsageDetail_20' ) end [2025-01-01 15:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151678', 'tblTempVendorCDR_20' ) start [2025-01-01 15:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151678', 'tblTempVendorCDR_20' ) end [2025-01-01 15:04:17] Production.INFO: ProcessCDR(1,14151678,1,1,2) [2025-01-01 15:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151678', 'tblTempUsageDetail_20' ) start [2025-01-01 15:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151678', 'tblTempUsageDetail_20' ) end [2025-01-01 15:04:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:04:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:04:20] Production.INFO: ==24527== Releasing lock... [2025-01-01 15:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:04:20] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:05:06 [end_date_ymd] => 2025-01-01 15:05:06 [RateCDR] => 1 ) [2025-01-01 15:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 12:05:06' and `end` < '2025-01-01 15:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 15:05:18] Production.INFO: count ==1007 [2025-01-01 15:05:19] Production.ERROR: pbx CDR StartTime 2025-01-01 12:05:06 - End Time 2025-01-01 15:05:06 [2025-01-01 15:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151683', 'tblTempUsageDetail_20' ) start [2025-01-01 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151683', 'tblTempUsageDetail_20' ) end [2025-01-01 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151683', 'tblTempVendorCDR_20' ) start [2025-01-01 15:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151683', 'tblTempVendorCDR_20' ) end [2025-01-01 15:05:19] Production.INFO: ProcessCDR(1,14151683,1,1,2) [2025-01-01 15:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151683', 'tblTempUsageDetail_20' ) start [2025-01-01 15:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151683', 'tblTempUsageDetail_20' ) end [2025-01-01 15:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:05:23] Production.INFO: ==24679== Releasing lock... [2025-01-01 15:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:05:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:06:05 [end_date_ymd] => 2025-01-01 15:06:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:06:05' and `end` < '2025-01-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-01-01 15:06:19] Production.INFO: count ==1011 [2025-01-01 15:06:19] Production.ERROR: pbx CDR StartTime 2025-01-01 12:06:05 - End Time 2025-01-01 15:06:05 [2025-01-01 15:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151688', 'tblTempUsageDetail_20' ) start [2025-01-01 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151688', 'tblTempUsageDetail_20' ) end [2025-01-01 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151688', 'tblTempVendorCDR_20' ) start [2025-01-01 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151688', 'tblTempVendorCDR_20' ) end [2025-01-01 15:06:19] Production.INFO: ProcessCDR(1,14151688,1,1,2) [2025-01-01 15:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151688', 'tblTempUsageDetail_20' ) start [2025-01-01 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151688', 'tblTempUsageDetail_20' ) end [2025-01-01 15:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:06:22] Production.INFO: ==24749== Releasing lock... [2025-01-01 15:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:06:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:07:05 [end_date_ymd] => 2025-01-01 15:07:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:07:05' and `end` < '2025-01-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-01-01 15:07:19] Production.INFO: count ==1011 [2025-01-01 15:07:20] Production.ERROR: pbx CDR StartTime 2025-01-01 12:07:05 - End Time 2025-01-01 15:07:05 [2025-01-01 15:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151693', 'tblTempUsageDetail_20' ) start [2025-01-01 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151693', 'tblTempUsageDetail_20' ) end [2025-01-01 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151693', 'tblTempVendorCDR_20' ) start [2025-01-01 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151693', 'tblTempVendorCDR_20' ) end [2025-01-01 15:07:20] Production.INFO: ProcessCDR(1,14151693,1,1,2) [2025-01-01 15:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151693', 'tblTempUsageDetail_20' ) start [2025-01-01 15:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151693', 'tblTempUsageDetail_20' ) end [2025-01-01 15:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:07:23] Production.INFO: ==24819== Releasing lock... [2025-01-01 15:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:07:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 15:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:08:04 [end_date_ymd] => 2025-01-01 15:08:04 [RateCDR] => 1 ) [2025-01-01 15: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-01 12:08:04' and `end` < '2025-01-01 15: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-01-01 15:08:17] Production.INFO: count ==1014 [2025-01-01 15:08:17] Production.ERROR: pbx CDR StartTime 2025-01-01 12:08:04 - End Time 2025-01-01 15:08:04 [2025-01-01 15:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151698', 'tblTempUsageDetail_20' ) start [2025-01-01 15:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151698', 'tblTempUsageDetail_20' ) end [2025-01-01 15:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151698', 'tblTempVendorCDR_20' ) start [2025-01-01 15:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151698', 'tblTempVendorCDR_20' ) end [2025-01-01 15:08:17] Production.INFO: ProcessCDR(1,14151698,1,1,2) [2025-01-01 15:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151698', 'tblTempUsageDetail_20' ) start [2025-01-01 15:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151698', 'tblTempUsageDetail_20' ) end [2025-01-01 15:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:08:20] Production.INFO: ==24929== Releasing lock... [2025-01-01 15:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:08:20] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:09:05 [end_date_ymd] => 2025-01-01 15:09:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:09:05' and `end` < '2025-01-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-01-01 15:09:20] Production.INFO: count ==1015 [2025-01-01 15:09:20] Production.ERROR: pbx CDR StartTime 2025-01-01 12:09:05 - End Time 2025-01-01 15:09:05 [2025-01-01 15:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151703', 'tblTempUsageDetail_20' ) start [2025-01-01 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151703', 'tblTempUsageDetail_20' ) end [2025-01-01 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151703', 'tblTempVendorCDR_20' ) start [2025-01-01 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151703', 'tblTempVendorCDR_20' ) end [2025-01-01 15:09:21] Production.INFO: ProcessCDR(1,14151703,1,1,2) [2025-01-01 15:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151703', 'tblTempUsageDetail_20' ) start [2025-01-01 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151703', 'tblTempUsageDetail_20' ) end [2025-01-01 15:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:09:24] Production.INFO: ==25040== Releasing lock... [2025-01-01 15:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:09:24] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:10:05 [end_date_ymd] => 2025-01-01 15:10:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:10:05' and `end` < '2025-01-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-01-01 15:10:18] Production.INFO: count ==1014 [2025-01-01 15:10:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:10:05 - End Time 2025-01-01 15:10:05 [2025-01-01 15:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151709', 'tblTempUsageDetail_20' ) start [2025-01-01 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151709', 'tblTempUsageDetail_20' ) end [2025-01-01 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151709', 'tblTempVendorCDR_20' ) start [2025-01-01 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151709', 'tblTempVendorCDR_20' ) end [2025-01-01 15:10:18] Production.INFO: ProcessCDR(1,14151709,1,1,2) [2025-01-01 15:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151709', 'tblTempUsageDetail_20' ) start [2025-01-01 15:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151709', 'tblTempUsageDetail_20' ) end [2025-01-01 15:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:10:21] Production.INFO: ==25111== Releasing lock... [2025-01-01 15:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:10:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:11:05 [end_date_ymd] => 2025-01-01 15:11:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:11:05' and `end` < '2025-01-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-01-01 15:11:19] Production.INFO: count ==1025 [2025-01-01 15:11:19] Production.ERROR: pbx CDR StartTime 2025-01-01 12:11:05 - End Time 2025-01-01 15:11:05 [2025-01-01 15:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151714', 'tblTempUsageDetail_20' ) start [2025-01-01 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151714', 'tblTempUsageDetail_20' ) end [2025-01-01 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151714', 'tblTempVendorCDR_20' ) start [2025-01-01 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151714', 'tblTempVendorCDR_20' ) end [2025-01-01 15:11:19] Production.INFO: ProcessCDR(1,14151714,1,1,2) [2025-01-01 15:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151714', 'tblTempUsageDetail_20' ) start [2025-01-01 15:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151714', 'tblTempUsageDetail_20' ) end [2025-01-01 15:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:11:22] Production.INFO: ==25185== Releasing lock... [2025-01-01 15:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:11:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:12:05 [end_date_ymd] => 2025-01-01 15:12:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:12:05' and `end` < '2025-01-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-01-01 15:12:17] Production.INFO: count ==1027 [2025-01-01 15:12:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:12:05 - End Time 2025-01-01 15:12:05 [2025-01-01 15:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151719', 'tblTempUsageDetail_20' ) start [2025-01-01 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151719', 'tblTempUsageDetail_20' ) end [2025-01-01 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151719', 'tblTempVendorCDR_20' ) start [2025-01-01 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151719', 'tblTempVendorCDR_20' ) end [2025-01-01 15:12:18] Production.INFO: ProcessCDR(1,14151719,1,1,2) [2025-01-01 15:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151719', 'tblTempUsageDetail_20' ) start [2025-01-01 15:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151719', 'tblTempUsageDetail_20' ) end [2025-01-01 15:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:12:21] Production.INFO: ==25332== Releasing lock... [2025-01-01 15:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:12:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:13:05 [end_date_ymd] => 2025-01-01 15:13:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:13:05' and `end` < '2025-01-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-01-01 15:13:17] Production.INFO: count ==1027 [2025-01-01 15:13:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:13:05 - End Time 2025-01-01 15:13:05 [2025-01-01 15:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151724', 'tblTempUsageDetail_20' ) start [2025-01-01 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151724', 'tblTempUsageDetail_20' ) end [2025-01-01 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151724', 'tblTempVendorCDR_20' ) start [2025-01-01 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151724', 'tblTempVendorCDR_20' ) end [2025-01-01 15:13:18] Production.INFO: ProcessCDR(1,14151724,1,1,2) [2025-01-01 15:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151724', 'tblTempUsageDetail_20' ) start [2025-01-01 15:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151724', 'tblTempUsageDetail_20' ) end [2025-01-01 15:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:13:21] Production.INFO: ==25402== Releasing lock... [2025-01-01 15:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:13:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:14:05 [end_date_ymd] => 2025-01-01 15:14:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:14:05' and `end` < '2025-01-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-01-01 15:14:18] Production.INFO: count ==1030 [2025-01-01 15:14:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:14:05 - End Time 2025-01-01 15:14:05 [2025-01-01 15:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151729', 'tblTempUsageDetail_20' ) start [2025-01-01 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151729', 'tblTempUsageDetail_20' ) end [2025-01-01 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151729', 'tblTempVendorCDR_20' ) start [2025-01-01 15:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151729', 'tblTempVendorCDR_20' ) end [2025-01-01 15:14:18] Production.INFO: ProcessCDR(1,14151729,1,1,2) [2025-01-01 15:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151729', 'tblTempUsageDetail_20' ) start [2025-01-01 15:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151729', 'tblTempUsageDetail_20' ) end [2025-01-01 15:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:14:21] Production.INFO: ==25473== Releasing lock... [2025-01-01 15:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:14:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:15:05 [end_date_ymd] => 2025-01-01 15:15:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:15:05' and `end` < '2025-01-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-01-01 15:15:17] Production.INFO: count ==1032 [2025-01-01 15:15:17] Production.ERROR: pbx CDR StartTime 2025-01-01 12:15:05 - End Time 2025-01-01 15:15:05 [2025-01-01 15:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151734', 'tblTempUsageDetail_20' ) start [2025-01-01 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151734', 'tblTempUsageDetail_20' ) end [2025-01-01 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151734', 'tblTempVendorCDR_20' ) start [2025-01-01 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151734', 'tblTempVendorCDR_20' ) end [2025-01-01 15:15:18] Production.INFO: ProcessCDR(1,14151734,1,1,2) [2025-01-01 15:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151734', 'tblTempUsageDetail_20' ) start [2025-01-01 15:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151734', 'tblTempUsageDetail_20' ) end [2025-01-01 15:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:15:22] Production.INFO: ==25624== Releasing lock... [2025-01-01 15:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:15:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:16:06 [end_date_ymd] => 2025-01-01 15:16:06 [RateCDR] => 1 ) [2025-01-01 15:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 12:16:06' and `end` < '2025-01-01 15:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 15:16:19] Production.INFO: count ==1034 [2025-01-01 15:16:19] Production.ERROR: pbx CDR StartTime 2025-01-01 12:16:06 - End Time 2025-01-01 15:16:06 [2025-01-01 15:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151739', 'tblTempUsageDetail_20' ) start [2025-01-01 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151739', 'tblTempUsageDetail_20' ) end [2025-01-01 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151739', 'tblTempVendorCDR_20' ) start [2025-01-01 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151739', 'tblTempVendorCDR_20' ) end [2025-01-01 15:16:19] Production.INFO: ProcessCDR(1,14151739,1,1,2) [2025-01-01 15:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151739', 'tblTempUsageDetail_20' ) start [2025-01-01 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151739', 'tblTempUsageDetail_20' ) end [2025-01-01 15:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:16:22] Production.INFO: ==25700== Releasing lock... [2025-01-01 15:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:16:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:17:05 [end_date_ymd] => 2025-01-01 15:17:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:17:05' and `end` < '2025-01-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-01-01 15:17:17] Production.INFO: count ==1038 [2025-01-01 15:17:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:17:05 - End Time 2025-01-01 15:17:05 [2025-01-01 15:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151744', 'tblTempUsageDetail_20' ) start [2025-01-01 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151744', 'tblTempUsageDetail_20' ) end [2025-01-01 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151744', 'tblTempVendorCDR_20' ) start [2025-01-01 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151744', 'tblTempVendorCDR_20' ) end [2025-01-01 15:17:18] Production.INFO: ProcessCDR(1,14151744,1,1,2) [2025-01-01 15:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151744', 'tblTempUsageDetail_20' ) start [2025-01-01 15:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151744', 'tblTempUsageDetail_20' ) end [2025-01-01 15:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:17:21] Production.INFO: ==25770== Releasing lock... [2025-01-01 15:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:17:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:18:05 [end_date_ymd] => 2025-01-01 15:18:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:18:05' and `end` < '2025-01-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-01-01 15:18:18] Production.INFO: count ==1038 [2025-01-01 15:18:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:18:05 - End Time 2025-01-01 15:18:05 [2025-01-01 15:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151748', 'tblTempUsageDetail_20' ) start [2025-01-01 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151748', 'tblTempUsageDetail_20' ) end [2025-01-01 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151748', 'tblTempVendorCDR_20' ) start [2025-01-01 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151748', 'tblTempVendorCDR_20' ) end [2025-01-01 15:18:18] Production.INFO: ProcessCDR(1,14151748,1,1,2) [2025-01-01 15:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151748', 'tblTempUsageDetail_20' ) start [2025-01-01 15:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151748', 'tblTempUsageDetail_20' ) end [2025-01-01 15:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:18:21] Production.INFO: ==25847== Releasing lock... [2025-01-01 15:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:18:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 15:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:19:04 [end_date_ymd] => 2025-01-01 15:19:04 [RateCDR] => 1 ) [2025-01-01 15: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-01-01 12:19:04' and `end` < '2025-01-01 15: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-01-01 15:19:18] Production.INFO: count ==1043 [2025-01-01 15:19:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:19:04 - End Time 2025-01-01 15:19:04 [2025-01-01 15:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151754', 'tblTempUsageDetail_20' ) start [2025-01-01 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151754', 'tblTempUsageDetail_20' ) end [2025-01-01 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151754', 'tblTempVendorCDR_20' ) start [2025-01-01 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151754', 'tblTempVendorCDR_20' ) end [2025-01-01 15:19:18] Production.INFO: ProcessCDR(1,14151754,1,1,2) [2025-01-01 15:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151754', 'tblTempUsageDetail_20' ) start [2025-01-01 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151754', 'tblTempUsageDetail_20' ) end [2025-01-01 15:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:19:23] Production.INFO: ==25955== Releasing lock... [2025-01-01 15:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:19:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-01 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:20:05 [end_date_ymd] => 2025-01-01 15:20:05 [RateCDR] => 1 ) [2025-01-01 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 12:20:05' and `end` < '2025-01-01 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 15:20:18] Production.INFO: count ==1066 [2025-01-01 15:20:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:20:05 - End Time 2025-01-01 15:20:05 [2025-01-01 15:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151760', 'tblTempUsageDetail_20' ) start [2025-01-01 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151760', 'tblTempUsageDetail_20' ) end [2025-01-01 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151760', 'tblTempVendorCDR_20' ) start [2025-01-01 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151760', 'tblTempVendorCDR_20' ) end [2025-01-01 15:20:18] Production.INFO: ProcessCDR(1,14151760,1,1,2) [2025-01-01 15:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151760', 'tblTempUsageDetail_20' ) start [2025-01-01 15:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151760', 'tblTempUsageDetail_20' ) end [2025-01-01 15:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:20:21] Production.INFO: ==26027== Releasing lock... [2025-01-01 15:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:20:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:21:05 [end_date_ymd] => 2025-01-01 15:21:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:21:05' and `end` < '2025-01-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-01-01 15:21:19] Production.INFO: count ==1074 [2025-01-01 15:21:19] Production.ERROR: pbx CDR StartTime 2025-01-01 12:21:05 - End Time 2025-01-01 15:21:05 [2025-01-01 15:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151765', 'tblTempUsageDetail_20' ) start [2025-01-01 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151765', 'tblTempUsageDetail_20' ) end [2025-01-01 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151765', 'tblTempVendorCDR_20' ) start [2025-01-01 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151765', 'tblTempVendorCDR_20' ) end [2025-01-01 15:21:19] Production.INFO: ProcessCDR(1,14151765,1,1,2) [2025-01-01 15:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151765', 'tblTempUsageDetail_20' ) start [2025-01-01 15:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151765', 'tblTempUsageDetail_20' ) end [2025-01-01 15:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:21:23] Production.INFO: ==26101== Releasing lock... [2025-01-01 15:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:21:23] Production.INFO: 36 MB #Memory Used# [2025-01-01 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:22:05 [end_date_ymd] => 2025-01-01 15:22:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:22:05' and `end` < '2025-01-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-01-01 15:22:18] Production.INFO: count ==1078 [2025-01-01 15:22:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:22:05 - End Time 2025-01-01 15:22:05 [2025-01-01 15:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151770', 'tblTempUsageDetail_20' ) start [2025-01-01 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151770', 'tblTempUsageDetail_20' ) end [2025-01-01 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151770', 'tblTempVendorCDR_20' ) start [2025-01-01 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151770', 'tblTempVendorCDR_20' ) end [2025-01-01 15:22:18] Production.INFO: ProcessCDR(1,14151770,1,1,2) [2025-01-01 15:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151770', 'tblTempUsageDetail_20' ) start [2025-01-01 15:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151770', 'tblTempUsageDetail_20' ) end [2025-01-01 15:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:22:22] Production.INFO: ==26170== Releasing lock... [2025-01-01 15:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:22:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:23:05 [end_date_ymd] => 2025-01-01 15:23:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:23:05' and `end` < '2025-01-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-01-01 15:23:20] Production.INFO: count ==1075 [2025-01-01 15:23:20] Production.ERROR: pbx CDR StartTime 2025-01-01 12:23:05 - End Time 2025-01-01 15:23:05 [2025-01-01 15:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151775', 'tblTempUsageDetail_20' ) start [2025-01-01 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151775', 'tblTempUsageDetail_20' ) end [2025-01-01 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151775', 'tblTempVendorCDR_20' ) start [2025-01-01 15:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151775', 'tblTempVendorCDR_20' ) end [2025-01-01 15:23:20] Production.INFO: ProcessCDR(1,14151775,1,1,2) [2025-01-01 15:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151775', 'tblTempUsageDetail_20' ) start [2025-01-01 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151775', 'tblTempUsageDetail_20' ) end [2025-01-01 15:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:23:23] Production.INFO: ==26240== Releasing lock... [2025-01-01 15:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:23:23] Production.INFO: 36 MB #Memory Used# [2025-01-01 15:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:24:04 [end_date_ymd] => 2025-01-01 15:24:04 [RateCDR] => 1 ) [2025-01-01 15: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-01-01 12:24:04' and `end` < '2025-01-01 15: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-01-01 15:24:17] Production.INFO: count ==1076 [2025-01-01 15:24:17] Production.ERROR: pbx CDR StartTime 2025-01-01 12:24:04 - End Time 2025-01-01 15:24:04 [2025-01-01 15:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151780', 'tblTempUsageDetail_20' ) start [2025-01-01 15:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151780', 'tblTempUsageDetail_20' ) end [2025-01-01 15:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151780', 'tblTempVendorCDR_20' ) start [2025-01-01 15:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151780', 'tblTempVendorCDR_20' ) end [2025-01-01 15:24:17] Production.INFO: ProcessCDR(1,14151780,1,1,2) [2025-01-01 15:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151780', 'tblTempUsageDetail_20' ) start [2025-01-01 15:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151780', 'tblTempUsageDetail_20' ) end [2025-01-01 15:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:24:20] Production.INFO: ==26310== Releasing lock... [2025-01-01 15:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:24:20] Production.INFO: 36 MB #Memory Used# [2025-01-01 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:25:05 [end_date_ymd] => 2025-01-01 15:25:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:25:05' and `end` < '2025-01-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-01-01 15:25:17] Production.INFO: count ==1081 [2025-01-01 15:25:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:25:05 - End Time 2025-01-01 15:25:05 [2025-01-01 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151785', 'tblTempUsageDetail_20' ) start [2025-01-01 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151785', 'tblTempUsageDetail_20' ) end [2025-01-01 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151785', 'tblTempVendorCDR_20' ) start [2025-01-01 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151785', 'tblTempVendorCDR_20' ) end [2025-01-01 15:25:18] Production.INFO: ProcessCDR(1,14151785,1,1,2) [2025-01-01 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151785', 'tblTempUsageDetail_20' ) start [2025-01-01 15:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151785', 'tblTempUsageDetail_20' ) end [2025-01-01 15:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:25:21] Production.INFO: ==26382== Releasing lock... [2025-01-01 15:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:25:21] Production.INFO: 36 MB #Memory Used# [2025-01-01 15:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:26:04 [end_date_ymd] => 2025-01-01 15:26:04 [RateCDR] => 1 ) [2025-01-01 15: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-01-01 12:26:04' and `end` < '2025-01-01 15: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-01-01 15:26:17] Production.INFO: count ==1101 [2025-01-01 15:26:17] Production.ERROR: pbx CDR StartTime 2025-01-01 12:26:04 - End Time 2025-01-01 15:26:04 [2025-01-01 15:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151790', 'tblTempUsageDetail_20' ) start [2025-01-01 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151790', 'tblTempUsageDetail_20' ) end [2025-01-01 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151790', 'tblTempVendorCDR_20' ) start [2025-01-01 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151790', 'tblTempVendorCDR_20' ) end [2025-01-01 15:26:18] Production.INFO: ProcessCDR(1,14151790,1,1,2) [2025-01-01 15:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151790', 'tblTempUsageDetail_20' ) start [2025-01-01 15:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151790', 'tblTempUsageDetail_20' ) end [2025-01-01 15:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:26:21] Production.INFO: ==26456== Releasing lock... [2025-01-01 15:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:26:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-01 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:27:05 [end_date_ymd] => 2025-01-01 15:27:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:27:05' and `end` < '2025-01-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-01-01 15:27:18] Production.INFO: count ==1103 [2025-01-01 15:27:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:27:05 - End Time 2025-01-01 15:27:05 [2025-01-01 15:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151795', 'tblTempUsageDetail_20' ) start [2025-01-01 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151795', 'tblTempUsageDetail_20' ) end [2025-01-01 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151795', 'tblTempVendorCDR_20' ) start [2025-01-01 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151795', 'tblTempVendorCDR_20' ) end [2025-01-01 15:27:18] Production.INFO: ProcessCDR(1,14151795,1,1,2) [2025-01-01 15:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151795', 'tblTempUsageDetail_20' ) start [2025-01-01 15:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151795', 'tblTempUsageDetail_20' ) end [2025-01-01 15:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:27:23] Production.INFO: ==26527== Releasing lock... [2025-01-01 15:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:27:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-01 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:28:05 [end_date_ymd] => 2025-01-01 15:28:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:28:05' and `end` < '2025-01-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-01-01 15:28:18] Production.INFO: count ==1106 [2025-01-01 15:28:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:28:05 - End Time 2025-01-01 15:28:05 [2025-01-01 15:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151800', 'tblTempUsageDetail_20' ) start [2025-01-01 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151800', 'tblTempUsageDetail_20' ) end [2025-01-01 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151800', 'tblTempVendorCDR_20' ) start [2025-01-01 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151800', 'tblTempVendorCDR_20' ) end [2025-01-01 15:28:18] Production.INFO: ProcessCDR(1,14151800,1,1,2) [2025-01-01 15:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151800', 'tblTempUsageDetail_20' ) start [2025-01-01 15:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151800', 'tblTempUsageDetail_20' ) end [2025-01-01 15:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:28:22] Production.INFO: ==26600== Releasing lock... [2025-01-01 15:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:28:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-01 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:29:05 [end_date_ymd] => 2025-01-01 15:29:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:29:05' and `end` < '2025-01-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-01-01 15:29:18] Production.INFO: count ==1137 [2025-01-01 15:29:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:29:05 - End Time 2025-01-01 15:29:05 [2025-01-01 15:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151805', 'tblTempUsageDetail_20' ) start [2025-01-01 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151805', 'tblTempUsageDetail_20' ) end [2025-01-01 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151805', 'tblTempVendorCDR_20' ) start [2025-01-01 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151805', 'tblTempVendorCDR_20' ) end [2025-01-01 15:29:18] Production.INFO: ProcessCDR(1,14151805,1,1,2) [2025-01-01 15:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151805', 'tblTempUsageDetail_20' ) start [2025-01-01 15:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151805', 'tblTempUsageDetail_20' ) end [2025-01-01 15:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:29:21] Production.INFO: ==26669== Releasing lock... [2025-01-01 15:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:29:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-01 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:30:06 [end_date_ymd] => 2025-01-01 15:30:06 [RateCDR] => 1 ) [2025-01-01 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 12:30:06' and `end` < '2025-01-01 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 15:30:18] Production.INFO: count ==1137 [2025-01-01 15:30:19] Production.ERROR: pbx CDR StartTime 2025-01-01 12:30:06 - End Time 2025-01-01 15:30:06 [2025-01-01 15:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151810', 'tblTempUsageDetail_20' ) start [2025-01-01 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151810', 'tblTempUsageDetail_20' ) end [2025-01-01 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151810', 'tblTempVendorCDR_20' ) start [2025-01-01 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151810', 'tblTempVendorCDR_20' ) end [2025-01-01 15:30:19] Production.INFO: ProcessCDR(1,14151810,1,1,2) [2025-01-01 15:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151810', 'tblTempUsageDetail_20' ) start [2025-01-01 15:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151810', 'tblTempUsageDetail_20' ) end [2025-01-01 15:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:30:22] Production.INFO: ==26743== Releasing lock... [2025-01-01 15:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:30:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-01 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:31:05 [end_date_ymd] => 2025-01-01 15:31:05 [RateCDR] => 1 ) [2025-01-01 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 12:31:05' and `end` < '2025-01-01 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 15:31:18] Production.INFO: count ==1151 [2025-01-01 15:31:19] Production.ERROR: pbx CDR StartTime 2025-01-01 12:31:05 - End Time 2025-01-01 15:31:05 [2025-01-01 15:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151816', 'tblTempUsageDetail_20' ) start [2025-01-01 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151816', 'tblTempUsageDetail_20' ) end [2025-01-01 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151816', 'tblTempVendorCDR_20' ) start [2025-01-01 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151816', 'tblTempVendorCDR_20' ) end [2025-01-01 15:31:19] Production.INFO: ProcessCDR(1,14151816,1,1,2) [2025-01-01 15:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151816', 'tblTempUsageDetail_20' ) start [2025-01-01 15:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151816', 'tblTempUsageDetail_20' ) end [2025-01-01 15:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:31:23] Production.INFO: ==26816== Releasing lock... [2025-01-01 15:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:31:23] Production.INFO: 37 MB #Memory Used# [2025-01-01 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:32:05 [end_date_ymd] => 2025-01-01 15:32:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:32:05' and `end` < '2025-01-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-01-01 15:32:18] Production.INFO: count ==1155 [2025-01-01 15:32:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:32:05 - End Time 2025-01-01 15:32:05 [2025-01-01 15:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151821', 'tblTempUsageDetail_20' ) start [2025-01-01 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151821', 'tblTempUsageDetail_20' ) end [2025-01-01 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151821', 'tblTempVendorCDR_20' ) start [2025-01-01 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151821', 'tblTempVendorCDR_20' ) end [2025-01-01 15:32:18] Production.INFO: ProcessCDR(1,14151821,1,1,2) [2025-01-01 15:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151821', 'tblTempUsageDetail_20' ) start [2025-01-01 15:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151821', 'tblTempUsageDetail_20' ) end [2025-01-01 15:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:32:21] Production.INFO: ==26893== Releasing lock... [2025-01-01 15:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:32:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:33:05 [end_date_ymd] => 2025-01-01 15:33:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:33:05' and `end` < '2025-01-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-01-01 15:33:20] Production.INFO: count ==1150 [2025-01-01 15:33:20] Production.ERROR: pbx CDR StartTime 2025-01-01 12:33:05 - End Time 2025-01-01 15:33:05 [2025-01-01 15:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151826', 'tblTempUsageDetail_20' ) start [2025-01-01 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151826', 'tblTempUsageDetail_20' ) end [2025-01-01 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151826', 'tblTempVendorCDR_20' ) start [2025-01-01 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151826', 'tblTempVendorCDR_20' ) end [2025-01-01 15:33:20] Production.INFO: ProcessCDR(1,14151826,1,1,2) [2025-01-01 15:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151826', 'tblTempUsageDetail_20' ) start [2025-01-01 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151826', 'tblTempUsageDetail_20' ) end [2025-01-01 15:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:33:23] Production.INFO: ==26965== Releasing lock... [2025-01-01 15:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:33:23] Production.INFO: 37 MB #Memory Used# [2025-01-01 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:34:05 [end_date_ymd] => 2025-01-01 15:34:05 [RateCDR] => 1 ) [2025-01-01 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 12:34:05' and `end` < '2025-01-01 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 15:34:18] Production.INFO: count ==1146 [2025-01-01 15:34:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:34:05 - End Time 2025-01-01 15:34:05 [2025-01-01 15:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151831', 'tblTempUsageDetail_20' ) start [2025-01-01 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151831', 'tblTempUsageDetail_20' ) end [2025-01-01 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151831', 'tblTempVendorCDR_20' ) start [2025-01-01 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151831', 'tblTempVendorCDR_20' ) end [2025-01-01 15:34:18] Production.INFO: ProcessCDR(1,14151831,1,1,2) [2025-01-01 15:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151831', 'tblTempUsageDetail_20' ) start [2025-01-01 15:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151831', 'tblTempUsageDetail_20' ) end [2025-01-01 15:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:34:21] Production.INFO: ==27036== Releasing lock... [2025-01-01 15:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:34:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-01 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:35:05 [end_date_ymd] => 2025-01-01 15:35:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:35:05' and `end` < '2025-01-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-01-01 15:35:18] Production.INFO: count ==1145 [2025-01-01 15:35:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:35:05 - End Time 2025-01-01 15:35:05 [2025-01-01 15:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151836', 'tblTempUsageDetail_20' ) start [2025-01-01 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151836', 'tblTempUsageDetail_20' ) end [2025-01-01 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151836', 'tblTempVendorCDR_20' ) start [2025-01-01 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151836', 'tblTempVendorCDR_20' ) end [2025-01-01 15:35:18] Production.INFO: ProcessCDR(1,14151836,1,1,2) [2025-01-01 15:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151836', 'tblTempUsageDetail_20' ) start [2025-01-01 15:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151836', 'tblTempUsageDetail_20' ) end [2025-01-01 15:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:35:21] Production.INFO: ==27146== Releasing lock... [2025-01-01 15:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:35:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-01 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:36:05 [end_date_ymd] => 2025-01-01 15:36:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:36:05' and `end` < '2025-01-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-01-01 15:36:18] Production.INFO: count ==1145 [2025-01-01 15:36:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:36:05 - End Time 2025-01-01 15:36:05 [2025-01-01 15:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151841', 'tblTempUsageDetail_20' ) start [2025-01-01 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151841', 'tblTempUsageDetail_20' ) end [2025-01-01 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151841', 'tblTempVendorCDR_20' ) start [2025-01-01 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151841', 'tblTempVendorCDR_20' ) end [2025-01-01 15:36:18] Production.INFO: ProcessCDR(1,14151841,1,1,2) [2025-01-01 15:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151841', 'tblTempUsageDetail_20' ) start [2025-01-01 15:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151841', 'tblTempUsageDetail_20' ) end [2025-01-01 15:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:36:21] Production.INFO: ==27217== Releasing lock... [2025-01-01 15:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:36:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-01 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:37:05 [end_date_ymd] => 2025-01-01 15:37:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:37:05' and `end` < '2025-01-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-01-01 15:37:17] Production.INFO: count ==1145 [2025-01-01 15:37:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:37:05 - End Time 2025-01-01 15:37:05 [2025-01-01 15:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151846', 'tblTempUsageDetail_20' ) start [2025-01-01 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151846', 'tblTempUsageDetail_20' ) end [2025-01-01 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151846', 'tblTempVendorCDR_20' ) start [2025-01-01 15:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151846', 'tblTempVendorCDR_20' ) end [2025-01-01 15:37:18] Production.INFO: ProcessCDR(1,14151846,1,1,2) [2025-01-01 15:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151846', 'tblTempUsageDetail_20' ) start [2025-01-01 15:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151846', 'tblTempUsageDetail_20' ) end [2025-01-01 15:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:37:21] Production.INFO: ==27288== Releasing lock... [2025-01-01 15:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:37:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-01 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:38:05 [end_date_ymd] => 2025-01-01 15:38:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:38:05' and `end` < '2025-01-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-01-01 15:38:20] Production.INFO: count ==1173 [2025-01-01 15:38:20] Production.ERROR: pbx CDR StartTime 2025-01-01 12:38:05 - End Time 2025-01-01 15:38:05 [2025-01-01 15:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151851', 'tblTempUsageDetail_20' ) start [2025-01-01 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151851', 'tblTempUsageDetail_20' ) end [2025-01-01 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151851', 'tblTempVendorCDR_20' ) start [2025-01-01 15:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151851', 'tblTempVendorCDR_20' ) end [2025-01-01 15:38:20] Production.INFO: ProcessCDR(1,14151851,1,1,2) [2025-01-01 15:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151851', 'tblTempUsageDetail_20' ) start [2025-01-01 15:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151851', 'tblTempUsageDetail_20' ) end [2025-01-01 15:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:38:24] Production.INFO: ==27358== Releasing lock... [2025-01-01 15:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:38:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-01 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:39:05 [end_date_ymd] => 2025-01-01 15:39:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:39:05' and `end` < '2025-01-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-01-01 15:39:18] Production.INFO: count ==1167 [2025-01-01 15:39:19] Production.ERROR: pbx CDR StartTime 2025-01-01 12:39:05 - End Time 2025-01-01 15:39:05 [2025-01-01 15:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151856', 'tblTempUsageDetail_20' ) start [2025-01-01 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151856', 'tblTempUsageDetail_20' ) end [2025-01-01 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151856', 'tblTempVendorCDR_20' ) start [2025-01-01 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151856', 'tblTempVendorCDR_20' ) end [2025-01-01 15:39:19] Production.INFO: ProcessCDR(1,14151856,1,1,2) [2025-01-01 15:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151856', 'tblTempUsageDetail_20' ) start [2025-01-01 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151856', 'tblTempUsageDetail_20' ) end [2025-01-01 15:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:39:22] Production.INFO: ==27428== Releasing lock... [2025-01-01 15:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:39:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:40:06 [end_date_ymd] => 2025-01-01 15:40:06 [RateCDR] => 1 ) [2025-01-01 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 12:40:06' and `end` < '2025-01-01 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 15:40:19] Production.INFO: count ==1167 [2025-01-01 15:40:19] Production.ERROR: pbx CDR StartTime 2025-01-01 12:40:06 - End Time 2025-01-01 15:40:06 [2025-01-01 15:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151862', 'tblTempUsageDetail_20' ) start [2025-01-01 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151862', 'tblTempUsageDetail_20' ) end [2025-01-01 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151862', 'tblTempVendorCDR_20' ) start [2025-01-01 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151862', 'tblTempVendorCDR_20' ) end [2025-01-01 15:40:19] Production.INFO: ProcessCDR(1,14151862,1,1,2) [2025-01-01 15:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151862', 'tblTempUsageDetail_20' ) start [2025-01-01 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151862', 'tblTempUsageDetail_20' ) end [2025-01-01 15:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:40:22] Production.INFO: ==27501== Releasing lock... [2025-01-01 15:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:40:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 15:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:41:04 [end_date_ymd] => 2025-01-01 15:41:04 [RateCDR] => 1 ) [2025-01-01 15: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-01-01 12:41:04' and `end` < '2025-01-01 15: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-01-01 15:41:17] Production.INFO: count ==1160 [2025-01-01 15:41:17] Production.ERROR: pbx CDR StartTime 2025-01-01 12:41:04 - End Time 2025-01-01 15:41:04 [2025-01-01 15:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151867', 'tblTempUsageDetail_20' ) start [2025-01-01 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151867', 'tblTempUsageDetail_20' ) end [2025-01-01 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151867', 'tblTempVendorCDR_20' ) start [2025-01-01 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151867', 'tblTempVendorCDR_20' ) end [2025-01-01 15:41:17] Production.INFO: ProcessCDR(1,14151867,1,1,2) [2025-01-01 15:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151867', 'tblTempUsageDetail_20' ) start [2025-01-01 15:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151867', 'tblTempUsageDetail_20' ) end [2025-01-01 15:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:41:21] Production.INFO: ==27572== Releasing lock... [2025-01-01 15:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:41:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:42:05 [end_date_ymd] => 2025-01-01 15:42:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:42:05' and `end` < '2025-01-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-01-01 15:42:18] Production.INFO: count ==1158 [2025-01-01 15:42:19] Production.ERROR: pbx CDR StartTime 2025-01-01 12:42:05 - End Time 2025-01-01 15:42:05 [2025-01-01 15:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151872', 'tblTempUsageDetail_20' ) start [2025-01-01 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151872', 'tblTempUsageDetail_20' ) end [2025-01-01 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151872', 'tblTempVendorCDR_20' ) start [2025-01-01 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151872', 'tblTempVendorCDR_20' ) end [2025-01-01 15:42:19] Production.INFO: ProcessCDR(1,14151872,1,1,2) [2025-01-01 15:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151872', 'tblTempUsageDetail_20' ) start [2025-01-01 15:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151872', 'tblTempUsageDetail_20' ) end [2025-01-01 15:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:42:22] Production.INFO: ==27645== Releasing lock... [2025-01-01 15:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:42:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-01 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:43:05 [end_date_ymd] => 2025-01-01 15:43:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:43:05' and `end` < '2025-01-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-01-01 15:43:19] Production.INFO: count ==1158 [2025-01-01 15:43:20] Production.ERROR: pbx CDR StartTime 2025-01-01 12:43:05 - End Time 2025-01-01 15:43:05 [2025-01-01 15:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151877', 'tblTempUsageDetail_20' ) start [2025-01-01 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151877', 'tblTempUsageDetail_20' ) end [2025-01-01 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151877', 'tblTempVendorCDR_20' ) start [2025-01-01 15:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151877', 'tblTempVendorCDR_20' ) end [2025-01-01 15:43:20] Production.INFO: ProcessCDR(1,14151877,1,1,2) [2025-01-01 15:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151877', 'tblTempUsageDetail_20' ) start [2025-01-01 15:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151877', 'tblTempUsageDetail_20' ) end [2025-01-01 15:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:43:23] Production.INFO: ==27716== Releasing lock... [2025-01-01 15:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:43:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-01 15:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:44:04 [end_date_ymd] => 2025-01-01 15:44:04 [RateCDR] => 1 ) [2025-01-01 15: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-01 12:44:04' and `end` < '2025-01-01 15: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-01-01 15:44:18] Production.INFO: count ==1157 [2025-01-01 15:44:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:44:04 - End Time 2025-01-01 15:44:04 [2025-01-01 15:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151882', 'tblTempUsageDetail_20' ) start [2025-01-01 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151882', 'tblTempUsageDetail_20' ) end [2025-01-01 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151882', 'tblTempVendorCDR_20' ) start [2025-01-01 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151882', 'tblTempVendorCDR_20' ) end [2025-01-01 15:44:18] Production.INFO: ProcessCDR(1,14151882,1,1,2) [2025-01-01 15:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151882', 'tblTempUsageDetail_20' ) start [2025-01-01 15:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151882', 'tblTempUsageDetail_20' ) end [2025-01-01 15:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:44:21] Production.INFO: ==27787== Releasing lock... [2025-01-01 15:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:44:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:45:06 [end_date_ymd] => 2025-01-01 15:45:06 [RateCDR] => 1 ) [2025-01-01 15: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-01-01 12:45:06' and `end` < '2025-01-01 15: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-01-01 15:45:18] Production.INFO: count ==1153 [2025-01-01 15:45:19] Production.ERROR: pbx CDR StartTime 2025-01-01 12:45:06 - End Time 2025-01-01 15:45:06 [2025-01-01 15:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151887', 'tblTempUsageDetail_20' ) start [2025-01-01 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151887', 'tblTempUsageDetail_20' ) end [2025-01-01 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151887', 'tblTempVendorCDR_20' ) start [2025-01-01 15:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151887', 'tblTempVendorCDR_20' ) end [2025-01-01 15:45:19] Production.INFO: ProcessCDR(1,14151887,1,1,2) [2025-01-01 15:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151887', 'tblTempUsageDetail_20' ) start [2025-01-01 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151887', 'tblTempUsageDetail_20' ) end [2025-01-01 15:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:45:22] Production.INFO: ==27859== Releasing lock... [2025-01-01 15:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:45:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-01 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:46:05 [end_date_ymd] => 2025-01-01 15:46:05 [RateCDR] => 1 ) [2025-01-01 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 12:46:05' and `end` < '2025-01-01 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 15:46:18] Production.INFO: count ==1153 [2025-01-01 15:46:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:46:05 - End Time 2025-01-01 15:46:05 [2025-01-01 15:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151892', 'tblTempUsageDetail_20' ) start [2025-01-01 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151892', 'tblTempUsageDetail_20' ) end [2025-01-01 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151892', 'tblTempVendorCDR_20' ) start [2025-01-01 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151892', 'tblTempVendorCDR_20' ) end [2025-01-01 15:46:18] Production.INFO: ProcessCDR(1,14151892,1,1,2) [2025-01-01 15:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151892', 'tblTempUsageDetail_20' ) start [2025-01-01 15:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151892', 'tblTempUsageDetail_20' ) end [2025-01-01 15:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:46:21] Production.INFO: ==27931== Releasing lock... [2025-01-01 15:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:46:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-01 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:47:05 [end_date_ymd] => 2025-01-01 15:47:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:47:05' and `end` < '2025-01-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-01-01 15:47:17] Production.INFO: count ==1153 [2025-01-01 15:47:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:47:05 - End Time 2025-01-01 15:47:05 [2025-01-01 15:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151897', 'tblTempUsageDetail_20' ) start [2025-01-01 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151897', 'tblTempUsageDetail_20' ) end [2025-01-01 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151897', 'tblTempVendorCDR_20' ) start [2025-01-01 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151897', 'tblTempVendorCDR_20' ) end [2025-01-01 15:47:18] Production.INFO: ProcessCDR(1,14151897,1,1,2) [2025-01-01 15:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151897', 'tblTempUsageDetail_20' ) start [2025-01-01 15:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151897', 'tblTempUsageDetail_20' ) end [2025-01-01 15:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:47:21] Production.INFO: ==28006== Releasing lock... [2025-01-01 15:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:47:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-01 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:48:05 [end_date_ymd] => 2025-01-01 15:48:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:48:05' and `end` < '2025-01-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-01-01 15:48:19] Production.INFO: count ==1148 [2025-01-01 15:48:19] Production.ERROR: pbx CDR StartTime 2025-01-01 12:48:05 - End Time 2025-01-01 15:48:05 [2025-01-01 15:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151902', 'tblTempUsageDetail_20' ) start [2025-01-01 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151902', 'tblTempUsageDetail_20' ) end [2025-01-01 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151902', 'tblTempVendorCDR_20' ) start [2025-01-01 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151902', 'tblTempVendorCDR_20' ) end [2025-01-01 15:48:19] Production.INFO: ProcessCDR(1,14151902,1,1,2) [2025-01-01 15:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151902', 'tblTempUsageDetail_20' ) start [2025-01-01 15:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151902', 'tblTempUsageDetail_20' ) end [2025-01-01 15:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:48:23] Production.INFO: ==28080== Releasing lock... [2025-01-01 15:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:48:23] Production.INFO: 37 MB #Memory Used# [2025-01-01 15:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:49:04 [end_date_ymd] => 2025-01-01 15:49:04 [RateCDR] => 1 ) [2025-01-01 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 12:49:04' and `end` < '2025-01-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-01-01 15:49:17] Production.INFO: count ==1151 [2025-01-01 15:49:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:49:04 - End Time 2025-01-01 15:49:04 [2025-01-01 15:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151907', 'tblTempUsageDetail_20' ) start [2025-01-01 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151907', 'tblTempUsageDetail_20' ) end [2025-01-01 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151907', 'tblTempVendorCDR_20' ) start [2025-01-01 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151907', 'tblTempVendorCDR_20' ) end [2025-01-01 15:49:18] Production.INFO: ProcessCDR(1,14151907,1,1,2) [2025-01-01 15:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151907', 'tblTempUsageDetail_20' ) start [2025-01-01 15:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151907', 'tblTempUsageDetail_20' ) end [2025-01-01 15:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:49:22] Production.INFO: ==28151== Releasing lock... [2025-01-01 15:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:49:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:50:05 [end_date_ymd] => 2025-01-01 15:50:05 [RateCDR] => 1 ) [2025-01-01 15: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-01-01 12:50:05' and `end` < '2025-01-01 15: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-01-01 15:50:18] Production.INFO: count ==1160 [2025-01-01 15:50:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:50:05 - End Time 2025-01-01 15:50:05 [2025-01-01 15:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151912', 'tblTempUsageDetail_20' ) start [2025-01-01 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151912', 'tblTempUsageDetail_20' ) end [2025-01-01 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151912', 'tblTempVendorCDR_20' ) start [2025-01-01 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151912', 'tblTempVendorCDR_20' ) end [2025-01-01 15:50:18] Production.INFO: ProcessCDR(1,14151912,1,1,2) [2025-01-01 15:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151912', 'tblTempUsageDetail_20' ) start [2025-01-01 15:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151912', 'tblTempUsageDetail_20' ) end [2025-01-01 15:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:50:22] Production.INFO: ==28225== Releasing lock... [2025-01-01 15:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:50:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:51:05 [end_date_ymd] => 2025-01-01 15:51:05 [RateCDR] => 1 ) [2025-01-01 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 12:51:05' and `end` < '2025-01-01 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 15:51:19] Production.INFO: count ==1146 [2025-01-01 15:51:19] Production.ERROR: pbx CDR StartTime 2025-01-01 12:51:05 - End Time 2025-01-01 15:51:05 [2025-01-01 15:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151916', 'tblTempUsageDetail_20' ) start [2025-01-01 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151916', 'tblTempUsageDetail_20' ) end [2025-01-01 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151916', 'tblTempVendorCDR_20' ) start [2025-01-01 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151916', 'tblTempVendorCDR_20' ) end [2025-01-01 15:51:19] Production.INFO: ProcessCDR(1,14151916,1,1,2) [2025-01-01 15:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151916', 'tblTempUsageDetail_20' ) start [2025-01-01 15:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151916', 'tblTempUsageDetail_20' ) end [2025-01-01 15:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:51:22] Production.INFO: ==28336== Releasing lock... [2025-01-01 15:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:51:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 15:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:52:04 [end_date_ymd] => 2025-01-01 15:52:04 [RateCDR] => 1 ) [2025-01-01 15: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-01-01 12:52:04' and `end` < '2025-01-01 15: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-01-01 15:52:17] Production.INFO: count ==1146 [2025-01-01 15:52:17] Production.ERROR: pbx CDR StartTime 2025-01-01 12:52:04 - End Time 2025-01-01 15:52:04 [2025-01-01 15:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151923', 'tblTempUsageDetail_20' ) start [2025-01-01 15:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151923', 'tblTempUsageDetail_20' ) end [2025-01-01 15:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151923', 'tblTempVendorCDR_20' ) start [2025-01-01 15:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151923', 'tblTempVendorCDR_20' ) end [2025-01-01 15:52:17] Production.INFO: ProcessCDR(1,14151923,1,1,2) [2025-01-01 15:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151923', 'tblTempUsageDetail_20' ) start [2025-01-01 15:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151923', 'tblTempUsageDetail_20' ) end [2025-01-01 15:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:52:21] Production.INFO: ==28406== Releasing lock... [2025-01-01 15:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:52:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:53:05 [end_date_ymd] => 2025-01-01 15:53:05 [RateCDR] => 1 ) [2025-01-01 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 12:53:05' and `end` < '2025-01-01 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 15:53:19] Production.INFO: count ==1149 [2025-01-01 15:53:19] Production.ERROR: pbx CDR StartTime 2025-01-01 12:53:05 - End Time 2025-01-01 15:53:05 [2025-01-01 15:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151928', 'tblTempUsageDetail_20' ) start [2025-01-01 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151928', 'tblTempUsageDetail_20' ) end [2025-01-01 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151928', 'tblTempVendorCDR_20' ) start [2025-01-01 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151928', 'tblTempVendorCDR_20' ) end [2025-01-01 15:53:19] Production.INFO: ProcessCDR(1,14151928,1,1,2) [2025-01-01 15:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151928', 'tblTempUsageDetail_20' ) start [2025-01-01 15:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151928', 'tblTempUsageDetail_20' ) end [2025-01-01 15:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:53:23] Production.INFO: ==28481== Releasing lock... [2025-01-01 15:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:53:23] Production.INFO: 37 MB #Memory Used# [2025-01-01 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:54:05 [end_date_ymd] => 2025-01-01 15:54:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:54:05' and `end` < '2025-01-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-01-01 15:54:18] Production.INFO: count ==1149 [2025-01-01 15:54:19] Production.ERROR: pbx CDR StartTime 2025-01-01 12:54:05 - End Time 2025-01-01 15:54:05 [2025-01-01 15:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151933', 'tblTempUsageDetail_20' ) start [2025-01-01 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151933', 'tblTempUsageDetail_20' ) end [2025-01-01 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151933', 'tblTempVendorCDR_20' ) start [2025-01-01 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151933', 'tblTempVendorCDR_20' ) end [2025-01-01 15:54:19] Production.INFO: ProcessCDR(1,14151933,1,1,2) [2025-01-01 15:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151933', 'tblTempUsageDetail_20' ) start [2025-01-01 15:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151933', 'tblTempUsageDetail_20' ) end [2025-01-01 15:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:54:22] Production.INFO: ==28551== Releasing lock... [2025-01-01 15:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:54:22] Production.INFO: 37 MB #Memory Used# [2025-01-01 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:55:05 [end_date_ymd] => 2025-01-01 15:55:05 [RateCDR] => 1 ) [2025-01-01 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 12:55:05' and `end` < '2025-01-01 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 15:55:18] Production.INFO: count ==1146 [2025-01-01 15:55:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:55:05 - End Time 2025-01-01 15:55:05 [2025-01-01 15:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151938', 'tblTempUsageDetail_20' ) start [2025-01-01 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151938', 'tblTempUsageDetail_20' ) end [2025-01-01 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151938', 'tblTempVendorCDR_20' ) start [2025-01-01 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151938', 'tblTempVendorCDR_20' ) end [2025-01-01 15:55:18] Production.INFO: ProcessCDR(1,14151938,1,1,2) [2025-01-01 15:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151938', 'tblTempUsageDetail_20' ) start [2025-01-01 15:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151938', 'tblTempUsageDetail_20' ) end [2025-01-01 15:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:55:23] Production.INFO: ==28622== Releasing lock... [2025-01-01 15:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:55:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:56:05 [end_date_ymd] => 2025-01-01 15:56:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:56:05' and `end` < '2025-01-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-01-01 15:56:18] Production.INFO: count ==1146 [2025-01-01 15:56:19] Production.ERROR: pbx CDR StartTime 2025-01-01 12:56:05 - End Time 2025-01-01 15:56:05 [2025-01-01 15:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151943', 'tblTempUsageDetail_20' ) start [2025-01-01 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151943', 'tblTempUsageDetail_20' ) end [2025-01-01 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151943', 'tblTempVendorCDR_20' ) start [2025-01-01 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151943', 'tblTempVendorCDR_20' ) end [2025-01-01 15:56:19] Production.INFO: ProcessCDR(1,14151943,1,1,2) [2025-01-01 15:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151943', 'tblTempUsageDetail_20' ) start [2025-01-01 15:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151943', 'tblTempUsageDetail_20' ) end [2025-01-01 15:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:56:23] Production.INFO: ==28695== Releasing lock... [2025-01-01 15:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:56:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:57:05 [end_date_ymd] => 2025-01-01 15:57:05 [RateCDR] => 1 ) [2025-01-01 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 12:57:05' and `end` < '2025-01-01 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 15:57:19] Production.INFO: count ==1146 [2025-01-01 15:57:19] Production.ERROR: pbx CDR StartTime 2025-01-01 12:57:05 - End Time 2025-01-01 15:57:05 [2025-01-01 15:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151948', 'tblTempUsageDetail_20' ) start [2025-01-01 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151948', 'tblTempUsageDetail_20' ) end [2025-01-01 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151948', 'tblTempVendorCDR_20' ) start [2025-01-01 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151948', 'tblTempVendorCDR_20' ) end [2025-01-01 15:57:19] Production.INFO: ProcessCDR(1,14151948,1,1,2) [2025-01-01 15:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151948', 'tblTempUsageDetail_20' ) start [2025-01-01 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151948', 'tblTempUsageDetail_20' ) end [2025-01-01 15:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:57:24] Production.INFO: ==28765== Releasing lock... [2025-01-01 15:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:57:24] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:58:05 [end_date_ymd] => 2025-01-01 15:58:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:58:05' and `end` < '2025-01-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-01-01 15:58:18] Production.INFO: count ==1149 [2025-01-01 15:58:18] Production.ERROR: pbx CDR StartTime 2025-01-01 12:58:05 - End Time 2025-01-01 15:58:05 [2025-01-01 15:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151953', 'tblTempUsageDetail_20' ) start [2025-01-01 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151953', 'tblTempUsageDetail_20' ) end [2025-01-01 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151953', 'tblTempVendorCDR_20' ) start [2025-01-01 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151953', 'tblTempVendorCDR_20' ) end [2025-01-01 15:58:18] Production.INFO: ProcessCDR(1,14151953,1,1,2) [2025-01-01 15:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151953', 'tblTempUsageDetail_20' ) start [2025-01-01 15:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151953', 'tblTempUsageDetail_20' ) end [2025-01-01 15:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:58:23] Production.INFO: ==28839== Releasing lock... [2025-01-01 15:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:58:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 12:59:05 [end_date_ymd] => 2025-01-01 15:59:05 [RateCDR] => 1 ) [2025-01-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-01-01 12:59:05' and `end` < '2025-01-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-01-01 15:59:19] Production.INFO: count ==1146 [2025-01-01 15:59:19] Production.ERROR: pbx CDR StartTime 2025-01-01 12:59:05 - End Time 2025-01-01 15:59:05 [2025-01-01 15:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151958', 'tblTempUsageDetail_20' ) start [2025-01-01 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151958', 'tblTempUsageDetail_20' ) end [2025-01-01 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151958', 'tblTempVendorCDR_20' ) start [2025-01-01 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151958', 'tblTempVendorCDR_20' ) end [2025-01-01 15:59:19] Production.INFO: ProcessCDR(1,14151958,1,1,2) [2025-01-01 15:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 15:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 15:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151958', 'tblTempUsageDetail_20' ) start [2025-01-01 15:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151958', 'tblTempUsageDetail_20' ) end [2025-01-01 15:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 15:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 15:59:24] Production.INFO: ==28909== Releasing lock... [2025-01-01 15:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 15:59:24] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:00:06 [end_date_ymd] => 2025-01-01 16:00:06 [RateCDR] => 1 ) [2025-01-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-01-01 13:00:06' and `end` < '2025-01-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-01-01 16:00:18] Production.INFO: count ==1148 [2025-01-01 16:00:19] Production.ERROR: pbx CDR StartTime 2025-01-01 13:00:06 - End Time 2025-01-01 16:00:06 [2025-01-01 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151963', 'tblTempUsageDetail_20' ) start [2025-01-01 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151963', 'tblTempUsageDetail_20' ) end [2025-01-01 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151963', 'tblTempVendorCDR_20' ) start [2025-01-01 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151963', 'tblTempVendorCDR_20' ) end [2025-01-01 16:00:19] Production.INFO: ProcessCDR(1,14151963,1,1,2) [2025-01-01 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151963', 'tblTempUsageDetail_20' ) start [2025-01-01 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151963', 'tblTempUsageDetail_20' ) end [2025-01-01 16:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:00:23] Production.INFO: ==28991== Releasing lock... [2025-01-01 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:00:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:01:04 [end_date_ymd] => 2025-01-01 16:01:04 [RateCDR] => 1 ) [2025-01-01 16: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-01 13:01:04' and `end` < '2025-01-01 16: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-01-01 16:01:17] Production.INFO: count ==1194 [2025-01-01 16:01:17] Production.ERROR: pbx CDR StartTime 2025-01-01 13:01:04 - End Time 2025-01-01 16:01:04 [2025-01-01 16:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151969', 'tblTempUsageDetail_20' ) start [2025-01-01 16:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151969', 'tblTempUsageDetail_20' ) end [2025-01-01 16:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151969', 'tblTempVendorCDR_20' ) start [2025-01-01 16:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151969', 'tblTempVendorCDR_20' ) end [2025-01-01 16:01:17] Production.INFO: ProcessCDR(1,14151969,1,1,2) [2025-01-01 16:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151969', 'tblTempUsageDetail_20' ) start [2025-01-01 16:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151969', 'tblTempUsageDetail_20' ) end [2025-01-01 16:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:01:22] Production.INFO: ==29079== Releasing lock... [2025-01-01 16:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:01:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:02:05 [end_date_ymd] => 2025-01-01 16:02:05 [RateCDR] => 1 ) [2025-01-01 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 13:02:05' and `end` < '2025-01-01 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 16:02:18] Production.INFO: count ==1194 [2025-01-01 16:02:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:02:05 - End Time 2025-01-01 16:02:05 [2025-01-01 16:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151974', 'tblTempUsageDetail_20' ) start [2025-01-01 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151974', 'tblTempUsageDetail_20' ) end [2025-01-01 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151974', 'tblTempVendorCDR_20' ) start [2025-01-01 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151974', 'tblTempVendorCDR_20' ) end [2025-01-01 16:02:18] Production.INFO: ProcessCDR(1,14151974,1,1,2) [2025-01-01 16:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151974', 'tblTempUsageDetail_20' ) start [2025-01-01 16:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151974', 'tblTempUsageDetail_20' ) end [2025-01-01 16:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:02:21] Production.INFO: ==29149== Releasing lock... [2025-01-01 16:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:02:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 16:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:03:04 [end_date_ymd] => 2025-01-01 16:03:04 [RateCDR] => 1 ) [2025-01-01 16:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 13:03:04' and `end` < '2025-01-01 16:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 16:03:20] Production.INFO: count ==1193 [2025-01-01 16:03:20] Production.ERROR: pbx CDR StartTime 2025-01-01 13:03:04 - End Time 2025-01-01 16:03:04 [2025-01-01 16:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151979', 'tblTempUsageDetail_20' ) start [2025-01-01 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151979', 'tblTempUsageDetail_20' ) end [2025-01-01 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151979', 'tblTempVendorCDR_20' ) start [2025-01-01 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151979', 'tblTempVendorCDR_20' ) end [2025-01-01 16:03:20] Production.INFO: ProcessCDR(1,14151979,1,1,2) [2025-01-01 16:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151979', 'tblTempUsageDetail_20' ) start [2025-01-01 16:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151979', 'tblTempUsageDetail_20' ) end [2025-01-01 16:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:03:25] Production.INFO: ==29226== Releasing lock... [2025-01-01 16:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:03:25] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:04:05 [end_date_ymd] => 2025-01-01 16:04:05 [RateCDR] => 1 ) [2025-01-01 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 13:04:05' and `end` < '2025-01-01 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 16:04:17] Production.INFO: count ==1198 [2025-01-01 16:04:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:04:05 - End Time 2025-01-01 16:04:05 [2025-01-01 16:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151984', 'tblTempUsageDetail_20' ) start [2025-01-01 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151984', 'tblTempUsageDetail_20' ) end [2025-01-01 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151984', 'tblTempVendorCDR_20' ) start [2025-01-01 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151984', 'tblTempVendorCDR_20' ) end [2025-01-01 16:04:18] Production.INFO: ProcessCDR(1,14151984,1,1,2) [2025-01-01 16:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151984', 'tblTempUsageDetail_20' ) start [2025-01-01 16:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151984', 'tblTempUsageDetail_20' ) end [2025-01-01 16:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:04:22] Production.INFO: ==29304== Releasing lock... [2025-01-01 16:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:04:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:05:05 [end_date_ymd] => 2025-01-01 16:05:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:05:05' and `end` < '2025-01-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-01-01 16:05:18] Production.INFO: count ==1214 [2025-01-01 16:05:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:05:05 - End Time 2025-01-01 16:05:05 [2025-01-01 16:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151989', 'tblTempUsageDetail_20' ) start [2025-01-01 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151989', 'tblTempUsageDetail_20' ) end [2025-01-01 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151989', 'tblTempVendorCDR_20' ) start [2025-01-01 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151989', 'tblTempVendorCDR_20' ) end [2025-01-01 16:05:18] Production.INFO: ProcessCDR(1,14151989,1,1,2) [2025-01-01 16:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151989', 'tblTempUsageDetail_20' ) start [2025-01-01 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151989', 'tblTempUsageDetail_20' ) end [2025-01-01 16:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:05:22] Production.INFO: ==29385== Releasing lock... [2025-01-01 16:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:05:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:06:05 [end_date_ymd] => 2025-01-01 16:06:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:06:05' and `end` < '2025-01-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-01-01 16:06:18] Production.INFO: count ==1213 [2025-01-01 16:06:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:06:05 - End Time 2025-01-01 16:06:05 [2025-01-01 16:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151994', 'tblTempUsageDetail_20' ) start [2025-01-01 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151994', 'tblTempUsageDetail_20' ) end [2025-01-01 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151994', 'tblTempVendorCDR_20' ) start [2025-01-01 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151994', 'tblTempVendorCDR_20' ) end [2025-01-01 16:06:18] Production.INFO: ProcessCDR(1,14151994,1,1,2) [2025-01-01 16:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151994', 'tblTempUsageDetail_20' ) start [2025-01-01 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151994', 'tblTempUsageDetail_20' ) end [2025-01-01 16:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:06:22] Production.INFO: ==29464== Releasing lock... [2025-01-01 16:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:06:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:07:05 [end_date_ymd] => 2025-01-01 16:07:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:07:05' and `end` < '2025-01-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-01-01 16:07:18] Production.INFO: count ==1210 [2025-01-01 16:07:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:07:05 - End Time 2025-01-01 16:07:05 [2025-01-01 16:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151999', 'tblTempUsageDetail_20' ) start [2025-01-01 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14151999', 'tblTempUsageDetail_20' ) end [2025-01-01 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151999', 'tblTempVendorCDR_20' ) start [2025-01-01 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14151999', 'tblTempVendorCDR_20' ) end [2025-01-01 16:07:18] Production.INFO: ProcessCDR(1,14151999,1,1,2) [2025-01-01 16:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14151999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14151999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14151999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14151999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151999', 'tblTempUsageDetail_20' ) start [2025-01-01 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14151999', 'tblTempUsageDetail_20' ) end [2025-01-01 16:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:07:23] Production.INFO: ==29581== Releasing lock... [2025-01-01 16:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:07:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:08:04 [end_date_ymd] => 2025-01-01 16:08:04 [RateCDR] => 1 ) [2025-01-01 16: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-01 13:08:04' and `end` < '2025-01-01 16: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-01-01 16:08:17] Production.INFO: count ==1211 [2025-01-01 16:08:17] Production.ERROR: pbx CDR StartTime 2025-01-01 13:08:04 - End Time 2025-01-01 16:08:04 [2025-01-01 16:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152004', 'tblTempUsageDetail_20' ) start [2025-01-01 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152004', 'tblTempUsageDetail_20' ) end [2025-01-01 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152004', 'tblTempVendorCDR_20' ) start [2025-01-01 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152004', 'tblTempVendorCDR_20' ) end [2025-01-01 16:08:18] Production.INFO: ProcessCDR(1,14152004,1,1,2) [2025-01-01 16:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152004', 'tblTempUsageDetail_20' ) start [2025-01-01 16:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152004', 'tblTempUsageDetail_20' ) end [2025-01-01 16:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:08:22] Production.INFO: ==29659== Releasing lock... [2025-01-01 16:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:08:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-01 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:09:05 [end_date_ymd] => 2025-01-01 16:09:05 [RateCDR] => 1 ) [2025-01-01 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 13:09:05' and `end` < '2025-01-01 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 16:09:18] Production.INFO: count ==1211 [2025-01-01 16:09:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:09:05 - End Time 2025-01-01 16:09:05 [2025-01-01 16:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152009', 'tblTempUsageDetail_20' ) start [2025-01-01 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152009', 'tblTempUsageDetail_20' ) end [2025-01-01 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152009', 'tblTempVendorCDR_20' ) start [2025-01-01 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152009', 'tblTempVendorCDR_20' ) end [2025-01-01 16:09:18] Production.INFO: ProcessCDR(1,14152009,1,1,2) [2025-01-01 16:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152009', 'tblTempUsageDetail_20' ) start [2025-01-01 16:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152009', 'tblTempUsageDetail_20' ) end [2025-01-01 16:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:09:21] Production.INFO: ==29740== Releasing lock... [2025-01-01 16:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:09:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-01 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:10:06 [end_date_ymd] => 2025-01-01 16:10:06 [RateCDR] => 1 ) [2025-01-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-01-01 13:10:06' and `end` < '2025-01-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-01-01 16:10:19] Production.INFO: count ==1213 [2025-01-01 16:10:19] Production.ERROR: pbx CDR StartTime 2025-01-01 13:10:06 - End Time 2025-01-01 16:10:06 [2025-01-01 16:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152015', 'tblTempUsageDetail_20' ) start [2025-01-01 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152015', 'tblTempUsageDetail_20' ) end [2025-01-01 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152015', 'tblTempVendorCDR_20' ) start [2025-01-01 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152015', 'tblTempVendorCDR_20' ) end [2025-01-01 16:10:19] Production.INFO: ProcessCDR(1,14152015,1,1,2) [2025-01-01 16:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152015', 'tblTempUsageDetail_20' ) start [2025-01-01 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152015', 'tblTempUsageDetail_20' ) end [2025-01-01 16:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:10:23] Production.INFO: ==29868== Releasing lock... [2025-01-01 16:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:10:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:11:05 [end_date_ymd] => 2025-01-01 16:11:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:11:05' and `end` < '2025-01-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-01-01 16:11:18] Production.INFO: count ==1224 [2025-01-01 16:11:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:11:05 - End Time 2025-01-01 16:11:05 [2025-01-01 16:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152020', 'tblTempUsageDetail_20' ) start [2025-01-01 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152020', 'tblTempUsageDetail_20' ) end [2025-01-01 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152020', 'tblTempVendorCDR_20' ) start [2025-01-01 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152020', 'tblTempVendorCDR_20' ) end [2025-01-01 16:11:18] Production.INFO: ProcessCDR(1,14152020,1,1,2) [2025-01-01 16:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152020', 'tblTempUsageDetail_20' ) start [2025-01-01 16:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152020', 'tblTempUsageDetail_20' ) end [2025-01-01 16:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:11:23] Production.INFO: ==29987== Releasing lock... [2025-01-01 16:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:11:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:12:05 [end_date_ymd] => 2025-01-01 16:12:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:12:05' and `end` < '2025-01-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-01-01 16:12:18] Production.INFO: count ==1225 [2025-01-01 16:12:19] Production.ERROR: pbx CDR StartTime 2025-01-01 13:12:05 - End Time 2025-01-01 16:12:05 [2025-01-01 16:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152025', 'tblTempUsageDetail_20' ) start [2025-01-01 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152025', 'tblTempUsageDetail_20' ) end [2025-01-01 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152025', 'tblTempVendorCDR_20' ) start [2025-01-01 16:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152025', 'tblTempVendorCDR_20' ) end [2025-01-01 16:12:19] Production.INFO: ProcessCDR(1,14152025,1,1,2) [2025-01-01 16:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152025', 'tblTempUsageDetail_20' ) start [2025-01-01 16:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152025', 'tblTempUsageDetail_20' ) end [2025-01-01 16:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:12:23] Production.INFO: ==30066== Releasing lock... [2025-01-01 16:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:12:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-01 16:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:13:04 [end_date_ymd] => 2025-01-01 16:13:04 [RateCDR] => 1 ) [2025-01-01 16: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-01-01 13:13:04' and `end` < '2025-01-01 16: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-01-01 16:13:17] Production.INFO: count ==1226 [2025-01-01 16:13:17] Production.ERROR: pbx CDR StartTime 2025-01-01 13:13:04 - End Time 2025-01-01 16:13:04 [2025-01-01 16:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152030', 'tblTempUsageDetail_20' ) start [2025-01-01 16:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152030', 'tblTempUsageDetail_20' ) end [2025-01-01 16:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152030', 'tblTempVendorCDR_20' ) start [2025-01-01 16:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152030', 'tblTempVendorCDR_20' ) end [2025-01-01 16:13:17] Production.INFO: ProcessCDR(1,14152030,1,1,2) [2025-01-01 16:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152030', 'tblTempUsageDetail_20' ) start [2025-01-01 16:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152030', 'tblTempUsageDetail_20' ) end [2025-01-01 16:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:13:22] Production.INFO: ==30145== Releasing lock... [2025-01-01 16:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:13:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:14:05 [end_date_ymd] => 2025-01-01 16:14:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:14:05' and `end` < '2025-01-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-01-01 16:14:19] Production.INFO: count ==1228 [2025-01-01 16:14:19] Production.ERROR: pbx CDR StartTime 2025-01-01 13:14:05 - End Time 2025-01-01 16:14:05 [2025-01-01 16:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152035', 'tblTempUsageDetail_20' ) start [2025-01-01 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152035', 'tblTempUsageDetail_20' ) end [2025-01-01 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152035', 'tblTempVendorCDR_20' ) start [2025-01-01 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152035', 'tblTempVendorCDR_20' ) end [2025-01-01 16:14:20] Production.INFO: ProcessCDR(1,14152035,1,1,2) [2025-01-01 16:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152035', 'tblTempUsageDetail_20' ) start [2025-01-01 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152035', 'tblTempUsageDetail_20' ) end [2025-01-01 16:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:14:23] Production.INFO: ==30227== Releasing lock... [2025-01-01 16:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:14:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-01 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:15:05 [end_date_ymd] => 2025-01-01 16:15:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:15:05' and `end` < '2025-01-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-01-01 16:15:18] Production.INFO: count ==1227 [2025-01-01 16:15:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:15:05 - End Time 2025-01-01 16:15:05 [2025-01-01 16:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152040', 'tblTempUsageDetail_20' ) start [2025-01-01 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152040', 'tblTempUsageDetail_20' ) end [2025-01-01 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152040', 'tblTempVendorCDR_20' ) start [2025-01-01 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152040', 'tblTempVendorCDR_20' ) end [2025-01-01 16:15:18] Production.INFO: ProcessCDR(1,14152040,1,1,2) [2025-01-01 16:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152040', 'tblTempUsageDetail_20' ) start [2025-01-01 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152040', 'tblTempUsageDetail_20' ) end [2025-01-01 16:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:15:23] Production.INFO: ==30313== Releasing lock... [2025-01-01 16:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:15:23] Production.INFO: 38 MB #Memory Used# [2025-01-01 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:16:05 [end_date_ymd] => 2025-01-01 16:16:05 [RateCDR] => 1 ) [2025-01-01 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 13:16:05' and `end` < '2025-01-01 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 16:16:18] Production.INFO: count ==1222 [2025-01-01 16:16:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:16:05 - End Time 2025-01-01 16:16:05 [2025-01-01 16:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152045', 'tblTempUsageDetail_20' ) start [2025-01-01 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152045', 'tblTempUsageDetail_20' ) end [2025-01-01 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152045', 'tblTempVendorCDR_20' ) start [2025-01-01 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152045', 'tblTempVendorCDR_20' ) end [2025-01-01 16:16:18] Production.INFO: ProcessCDR(1,14152045,1,1,2) [2025-01-01 16:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152045', 'tblTempUsageDetail_20' ) start [2025-01-01 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152045', 'tblTempUsageDetail_20' ) end [2025-01-01 16:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:16:23] Production.INFO: ==30392== Releasing lock... [2025-01-01 16:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:16:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:17:05 [end_date_ymd] => 2025-01-01 16:17:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:17:05' and `end` < '2025-01-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-01-01 16:17:18] Production.INFO: count ==1218 [2025-01-01 16:17:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:17:05 - End Time 2025-01-01 16:17:05 [2025-01-01 16:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152050', 'tblTempUsageDetail_20' ) start [2025-01-01 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152050', 'tblTempUsageDetail_20' ) end [2025-01-01 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152050', 'tblTempVendorCDR_20' ) start [2025-01-01 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152050', 'tblTempVendorCDR_20' ) end [2025-01-01 16:17:18] Production.INFO: ProcessCDR(1,14152050,1,1,2) [2025-01-01 16:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152050', 'tblTempUsageDetail_20' ) start [2025-01-01 16:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152050', 'tblTempUsageDetail_20' ) end [2025-01-01 16:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:17:23] Production.INFO: ==30487== Releasing lock... [2025-01-01 16:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:17:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:18:05 [end_date_ymd] => 2025-01-01 16:18:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:18:05' and `end` < '2025-01-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-01-01 16:18:19] Production.INFO: count ==1215 [2025-01-01 16:18:19] Production.ERROR: pbx CDR StartTime 2025-01-01 13:18:05 - End Time 2025-01-01 16:18:05 [2025-01-01 16:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152055', 'tblTempUsageDetail_20' ) start [2025-01-01 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152055', 'tblTempUsageDetail_20' ) end [2025-01-01 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152055', 'tblTempVendorCDR_20' ) start [2025-01-01 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152055', 'tblTempVendorCDR_20' ) end [2025-01-01 16:18:19] Production.INFO: ProcessCDR(1,14152055,1,1,2) [2025-01-01 16:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152055', 'tblTempUsageDetail_20' ) start [2025-01-01 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152055', 'tblTempUsageDetail_20' ) end [2025-01-01 16:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:18:24] Production.INFO: ==30567== Releasing lock... [2025-01-01 16:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:18:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-01 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:19:05 [end_date_ymd] => 2025-01-01 16:19:05 [RateCDR] => 1 ) [2025-01-01 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 13:19:05' and `end` < '2025-01-01 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 16:19:18] Production.INFO: count ==1210 [2025-01-01 16:19:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:19:05 - End Time 2025-01-01 16:19:05 [2025-01-01 16:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152060', 'tblTempUsageDetail_20' ) start [2025-01-01 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152060', 'tblTempUsageDetail_20' ) end [2025-01-01 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152060', 'tblTempVendorCDR_20' ) start [2025-01-01 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152060', 'tblTempVendorCDR_20' ) end [2025-01-01 16:19:18] Production.INFO: ProcessCDR(1,14152060,1,1,2) [2025-01-01 16:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152060', 'tblTempUsageDetail_20' ) start [2025-01-01 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152060', 'tblTempUsageDetail_20' ) end [2025-01-01 16:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:19:23] Production.INFO: ==30650== Releasing lock... [2025-01-01 16:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:19:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:20:05 [end_date_ymd] => 2025-01-01 16:20:05 [RateCDR] => 1 ) [2025-01-01 16: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-01-01 13:20:05' and `end` < '2025-01-01 16: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-01-01 16:20:18] Production.INFO: count ==1205 [2025-01-01 16:20:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:20:05 - End Time 2025-01-01 16:20:05 [2025-01-01 16:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152065', 'tblTempUsageDetail_20' ) start [2025-01-01 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152065', 'tblTempUsageDetail_20' ) end [2025-01-01 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152065', 'tblTempVendorCDR_20' ) start [2025-01-01 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152065', 'tblTempVendorCDR_20' ) end [2025-01-01 16:20:18] Production.INFO: ProcessCDR(1,14152065,1,1,2) [2025-01-01 16:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152065', 'tblTempUsageDetail_20' ) start [2025-01-01 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152065', 'tblTempUsageDetail_20' ) end [2025-01-01 16:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:20:23] Production.INFO: ==30726== Releasing lock... [2025-01-01 16:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:20:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:21:05 [end_date_ymd] => 2025-01-01 16:21:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:21:05' and `end` < '2025-01-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-01-01 16:21:18] Production.INFO: count ==1207 [2025-01-01 16:21:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:21:05 - End Time 2025-01-01 16:21:05 [2025-01-01 16:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152071', 'tblTempUsageDetail_20' ) start [2025-01-01 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152071', 'tblTempUsageDetail_20' ) end [2025-01-01 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152071', 'tblTempVendorCDR_20' ) start [2025-01-01 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152071', 'tblTempVendorCDR_20' ) end [2025-01-01 16:21:18] Production.INFO: ProcessCDR(1,14152071,1,1,2) [2025-01-01 16:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152071', 'tblTempUsageDetail_20' ) start [2025-01-01 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152071', 'tblTempUsageDetail_20' ) end [2025-01-01 16:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:21:23] Production.INFO: ==30806== Releasing lock... [2025-01-01 16:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:21:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:22:05 [end_date_ymd] => 2025-01-01 16:22:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:22:05' and `end` < '2025-01-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-01-01 16:22:18] Production.INFO: count ==1206 [2025-01-01 16:22:19] Production.ERROR: pbx CDR StartTime 2025-01-01 13:22:05 - End Time 2025-01-01 16:22:05 [2025-01-01 16:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152076', 'tblTempUsageDetail_20' ) start [2025-01-01 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152076', 'tblTempUsageDetail_20' ) end [2025-01-01 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152076', 'tblTempVendorCDR_20' ) start [2025-01-01 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152076', 'tblTempVendorCDR_20' ) end [2025-01-01 16:22:19] Production.INFO: ProcessCDR(1,14152076,1,1,2) [2025-01-01 16:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152076', 'tblTempUsageDetail_20' ) start [2025-01-01 16:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152076', 'tblTempUsageDetail_20' ) end [2025-01-01 16:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:22:22] Production.INFO: ==30919== Releasing lock... [2025-01-01 16:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:22:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:23:05 [end_date_ymd] => 2025-01-01 16:23:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:23:05' and `end` < '2025-01-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-01-01 16:23:19] Production.INFO: count ==1198 [2025-01-01 16:23:19] Production.ERROR: pbx CDR StartTime 2025-01-01 13:23:05 - End Time 2025-01-01 16:23:05 [2025-01-01 16:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152081', 'tblTempUsageDetail_20' ) start [2025-01-01 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152081', 'tblTempUsageDetail_20' ) end [2025-01-01 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152081', 'tblTempVendorCDR_20' ) start [2025-01-01 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152081', 'tblTempVendorCDR_20' ) end [2025-01-01 16:23:19] Production.INFO: ProcessCDR(1,14152081,1,1,2) [2025-01-01 16:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152081', 'tblTempUsageDetail_20' ) start [2025-01-01 16:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152081', 'tblTempUsageDetail_20' ) end [2025-01-01 16:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:23:23] Production.INFO: ==30992== Releasing lock... [2025-01-01 16:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:23:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:24:05 [end_date_ymd] => 2025-01-01 16:24:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:24:05' and `end` < '2025-01-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-01-01 16:24:19] Production.INFO: count ==1201 [2025-01-01 16:24:19] Production.ERROR: pbx CDR StartTime 2025-01-01 13:24:05 - End Time 2025-01-01 16:24:05 [2025-01-01 16:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152086', 'tblTempUsageDetail_20' ) start [2025-01-01 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152086', 'tblTempUsageDetail_20' ) end [2025-01-01 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152086', 'tblTempVendorCDR_20' ) start [2025-01-01 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152086', 'tblTempVendorCDR_20' ) end [2025-01-01 16:24:19] Production.INFO: ProcessCDR(1,14152086,1,1,2) [2025-01-01 16:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152086', 'tblTempUsageDetail_20' ) start [2025-01-01 16:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152086', 'tblTempUsageDetail_20' ) end [2025-01-01 16:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:24:24] Production.INFO: ==31064== Releasing lock... [2025-01-01 16:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:24:24] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:25:05 [end_date_ymd] => 2025-01-01 16:25:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:25:05' and `end` < '2025-01-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-01-01 16:25:18] Production.INFO: count ==1204 [2025-01-01 16:25:19] Production.ERROR: pbx CDR StartTime 2025-01-01 13:25:05 - End Time 2025-01-01 16:25:05 [2025-01-01 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152091', 'tblTempUsageDetail_20' ) start [2025-01-01 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152091', 'tblTempUsageDetail_20' ) end [2025-01-01 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152091', 'tblTempVendorCDR_20' ) start [2025-01-01 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152091', 'tblTempVendorCDR_20' ) end [2025-01-01 16:25:19] Production.INFO: ProcessCDR(1,14152091,1,1,2) [2025-01-01 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152091', 'tblTempUsageDetail_20' ) start [2025-01-01 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152091', 'tblTempUsageDetail_20' ) end [2025-01-01 16:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:25:23] Production.INFO: ==31137== Releasing lock... [2025-01-01 16:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:25:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 16:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:26:04 [end_date_ymd] => 2025-01-01 16:26:04 [RateCDR] => 1 ) [2025-01-01 16: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-01-01 13:26:04' and `end` < '2025-01-01 16: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-01-01 16:26:17] Production.INFO: count ==1208 [2025-01-01 16:26:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:26:04 - End Time 2025-01-01 16:26:04 [2025-01-01 16:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152096', 'tblTempUsageDetail_20' ) start [2025-01-01 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152096', 'tblTempUsageDetail_20' ) end [2025-01-01 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152096', 'tblTempVendorCDR_20' ) start [2025-01-01 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152096', 'tblTempVendorCDR_20' ) end [2025-01-01 16:26:18] Production.INFO: ProcessCDR(1,14152096,1,1,2) [2025-01-01 16:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152096', 'tblTempUsageDetail_20' ) start [2025-01-01 16:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152096', 'tblTempUsageDetail_20' ) end [2025-01-01 16:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:26:22] Production.INFO: ==31207== Releasing lock... [2025-01-01 16:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:26:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:27:05 [end_date_ymd] => 2025-01-01 16:27:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:27:05' and `end` < '2025-01-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-01-01 16:27:18] Production.INFO: count ==1211 [2025-01-01 16:27:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:27:05 - End Time 2025-01-01 16:27:05 [2025-01-01 16:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152101', 'tblTempUsageDetail_20' ) start [2025-01-01 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152101', 'tblTempUsageDetail_20' ) end [2025-01-01 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152101', 'tblTempVendorCDR_20' ) start [2025-01-01 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152101', 'tblTempVendorCDR_20' ) end [2025-01-01 16:27:18] Production.INFO: ProcessCDR(1,14152101,1,1,2) [2025-01-01 16:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152101', 'tblTempUsageDetail_20' ) start [2025-01-01 16:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152101', 'tblTempUsageDetail_20' ) end [2025-01-01 16:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:27:23] Production.INFO: ==31282== Releasing lock... [2025-01-01 16:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:27:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-01 16:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:28:04 [end_date_ymd] => 2025-01-01 16:28:04 [RateCDR] => 1 ) [2025-01-01 16: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-01-01 13:28:04' and `end` < '2025-01-01 16: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-01-01 16:28:17] Production.INFO: count ==1210 [2025-01-01 16:28:17] Production.ERROR: pbx CDR StartTime 2025-01-01 13:28:04 - End Time 2025-01-01 16:28:04 [2025-01-01 16:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152106', 'tblTempUsageDetail_20' ) start [2025-01-01 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152106', 'tblTempUsageDetail_20' ) end [2025-01-01 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152106', 'tblTempVendorCDR_20' ) start [2025-01-01 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152106', 'tblTempVendorCDR_20' ) end [2025-01-01 16:28:17] Production.INFO: ProcessCDR(1,14152106,1,1,2) [2025-01-01 16:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152106', 'tblTempUsageDetail_20' ) start [2025-01-01 16:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152106', 'tblTempUsageDetail_20' ) end [2025-01-01 16:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:28:22] Production.INFO: ==31357== Releasing lock... [2025-01-01 16:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:28:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 16:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:29:04 [end_date_ymd] => 2025-01-01 16:29:04 [RateCDR] => 1 ) [2025-01-01 16: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-01-01 13:29:04' and `end` < '2025-01-01 16: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-01-01 16:29:17] Production.INFO: count ==1212 [2025-01-01 16:29:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:29:04 - End Time 2025-01-01 16:29:04 [2025-01-01 16:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152111', 'tblTempUsageDetail_20' ) start [2025-01-01 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152111', 'tblTempUsageDetail_20' ) end [2025-01-01 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152111', 'tblTempVendorCDR_20' ) start [2025-01-01 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152111', 'tblTempVendorCDR_20' ) end [2025-01-01 16:29:18] Production.INFO: ProcessCDR(1,14152111,1,1,2) [2025-01-01 16:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152111', 'tblTempUsageDetail_20' ) start [2025-01-01 16:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152111', 'tblTempUsageDetail_20' ) end [2025-01-01 16:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:29:21] Production.INFO: ==31435== Releasing lock... [2025-01-01 16:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:29:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:30:06 [end_date_ymd] => 2025-01-01 16:30:06 [RateCDR] => 1 ) [2025-01-01 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 13:30:06' and `end` < '2025-01-01 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 16:30:19] Production.INFO: count ==1209 [2025-01-01 16:30:19] Production.ERROR: pbx CDR StartTime 2025-01-01 13:30:06 - End Time 2025-01-01 16:30:06 [2025-01-01 16:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152116', 'tblTempUsageDetail_20' ) start [2025-01-01 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152116', 'tblTempUsageDetail_20' ) end [2025-01-01 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152116', 'tblTempVendorCDR_20' ) start [2025-01-01 16:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152116', 'tblTempVendorCDR_20' ) end [2025-01-01 16:30:19] Production.INFO: ProcessCDR(1,14152116,1,1,2) [2025-01-01 16:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152116', 'tblTempUsageDetail_20' ) start [2025-01-01 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152116', 'tblTempUsageDetail_20' ) end [2025-01-01 16:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:30:23] Production.INFO: ==31510== Releasing lock... [2025-01-01 16:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:30:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-01 16:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:31:04 [end_date_ymd] => 2025-01-01 16:31:04 [RateCDR] => 1 ) [2025-01-01 16: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-01-01 13:31:04' and `end` < '2025-01-01 16: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-01-01 16:31:19] Production.INFO: count ==1213 [2025-01-01 16:31:19] Production.ERROR: pbx CDR StartTime 2025-01-01 13:31:04 - End Time 2025-01-01 16:31:04 [2025-01-01 16:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152122', 'tblTempUsageDetail_20' ) start [2025-01-01 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152122', 'tblTempUsageDetail_20' ) end [2025-01-01 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152122', 'tblTempVendorCDR_20' ) start [2025-01-01 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152122', 'tblTempVendorCDR_20' ) end [2025-01-01 16:31:19] Production.INFO: ProcessCDR(1,14152122,1,1,2) [2025-01-01 16:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152122', 'tblTempUsageDetail_20' ) start [2025-01-01 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152122', 'tblTempUsageDetail_20' ) end [2025-01-01 16:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:31:22] Production.INFO: ==31583== Releasing lock... [2025-01-01 16:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:31:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:32:05 [end_date_ymd] => 2025-01-01 16:32:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:32:05' and `end` < '2025-01-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-01-01 16:32:18] Production.INFO: count ==1201 [2025-01-01 16:32:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:32:05 - End Time 2025-01-01 16:32:05 [2025-01-01 16:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152127', 'tblTempUsageDetail_20' ) start [2025-01-01 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152127', 'tblTempUsageDetail_20' ) end [2025-01-01 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152127', 'tblTempVendorCDR_20' ) start [2025-01-01 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152127', 'tblTempVendorCDR_20' ) end [2025-01-01 16:32:18] Production.INFO: ProcessCDR(1,14152127,1,1,2) [2025-01-01 16:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152127', 'tblTempUsageDetail_20' ) start [2025-01-01 16:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152127', 'tblTempUsageDetail_20' ) end [2025-01-01 16:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:32:21] Production.INFO: ==31654== Releasing lock... [2025-01-01 16:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:32:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 16:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:33:04 [end_date_ymd] => 2025-01-01 16:33:04 [RateCDR] => 1 ) [2025-01-01 16: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-01-01 13:33:04' and `end` < '2025-01-01 16: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-01-01 16:33:17] Production.INFO: count ==1199 [2025-01-01 16:33:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:33:04 - End Time 2025-01-01 16:33:04 [2025-01-01 16:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152132', 'tblTempUsageDetail_20' ) start [2025-01-01 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152132', 'tblTempUsageDetail_20' ) end [2025-01-01 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152132', 'tblTempVendorCDR_20' ) start [2025-01-01 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152132', 'tblTempVendorCDR_20' ) end [2025-01-01 16:33:18] Production.INFO: ProcessCDR(1,14152132,1,1,2) [2025-01-01 16:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152132', 'tblTempUsageDetail_20' ) start [2025-01-01 16:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152132', 'tblTempUsageDetail_20' ) end [2025-01-01 16:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:33:21] Production.INFO: ==31726== Releasing lock... [2025-01-01 16:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:33:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:34:05 [end_date_ymd] => 2025-01-01 16:34:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:34:05' and `end` < '2025-01-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-01-01 16:34:18] Production.INFO: count ==1191 [2025-01-01 16:34:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:34:05 - End Time 2025-01-01 16:34:05 [2025-01-01 16:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152137', 'tblTempUsageDetail_20' ) start [2025-01-01 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152137', 'tblTempUsageDetail_20' ) end [2025-01-01 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152137', 'tblTempVendorCDR_20' ) start [2025-01-01 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152137', 'tblTempVendorCDR_20' ) end [2025-01-01 16:34:18] Production.INFO: ProcessCDR(1,14152137,1,1,2) [2025-01-01 16:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152137', 'tblTempUsageDetail_20' ) start [2025-01-01 16:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152137', 'tblTempUsageDetail_20' ) end [2025-01-01 16:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:34:21] Production.INFO: ==31796== Releasing lock... [2025-01-01 16:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:34:21] Production.INFO: 37 MB #Memory Used# [2025-01-01 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:35:05 [end_date_ymd] => 2025-01-01 16:35:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:35:05' and `end` < '2025-01-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-01-01 16:35:18] Production.INFO: count ==1190 [2025-01-01 16:35:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:35:05 - End Time 2025-01-01 16:35:05 [2025-01-01 16:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152142', 'tblTempUsageDetail_20' ) start [2025-01-01 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152142', 'tblTempUsageDetail_20' ) end [2025-01-01 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152142', 'tblTempVendorCDR_20' ) start [2025-01-01 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152142', 'tblTempVendorCDR_20' ) end [2025-01-01 16:35:18] Production.INFO: ProcessCDR(1,14152142,1,1,2) [2025-01-01 16:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152142', 'tblTempUsageDetail_20' ) start [2025-01-01 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152142', 'tblTempUsageDetail_20' ) end [2025-01-01 16:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:35:23] Production.INFO: ==31868== Releasing lock... [2025-01-01 16:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:35:23] Production.INFO: 37 MB #Memory Used# [2025-01-01 16:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:36:04 [end_date_ymd] => 2025-01-01 16:36:04 [RateCDR] => 1 ) [2025-01-01 16:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 13:36:04' and `end` < '2025-01-01 16:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 16:36:17] Production.INFO: count ==1203 [2025-01-01 16:36:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:36:04 - End Time 2025-01-01 16:36:04 [2025-01-01 16:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152147', 'tblTempUsageDetail_20' ) start [2025-01-01 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152147', 'tblTempUsageDetail_20' ) end [2025-01-01 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152147', 'tblTempVendorCDR_20' ) start [2025-01-01 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152147', 'tblTempVendorCDR_20' ) end [2025-01-01 16:36:18] Production.INFO: ProcessCDR(1,14152147,1,1,2) [2025-01-01 16:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152147', 'tblTempUsageDetail_20' ) start [2025-01-01 16:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152147', 'tblTempUsageDetail_20' ) end [2025-01-01 16:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:36:22] Production.INFO: ==31939== Releasing lock... [2025-01-01 16:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:36:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:37:05 [end_date_ymd] => 2025-01-01 16:37:05 [RateCDR] => 1 ) [2025-01-01 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 13:37:05' and `end` < '2025-01-01 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 16:37:18] Production.INFO: count ==1212 [2025-01-01 16:37:19] Production.ERROR: pbx CDR StartTime 2025-01-01 13:37:05 - End Time 2025-01-01 16:37:05 [2025-01-01 16:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152152', 'tblTempUsageDetail_20' ) start [2025-01-01 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152152', 'tblTempUsageDetail_20' ) end [2025-01-01 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152152', 'tblTempVendorCDR_20' ) start [2025-01-01 16:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152152', 'tblTempVendorCDR_20' ) end [2025-01-01 16:37:19] Production.INFO: ProcessCDR(1,14152152,1,1,2) [2025-01-01 16:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152152', 'tblTempUsageDetail_20' ) start [2025-01-01 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152152', 'tblTempUsageDetail_20' ) end [2025-01-01 16:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:37:23] Production.INFO: ==32011== Releasing lock... [2025-01-01 16:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:37:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-01 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:38:05 [end_date_ymd] => 2025-01-01 16:38:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:38:05' and `end` < '2025-01-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-01-01 16:38:18] Production.INFO: count ==1212 [2025-01-01 16:38:19] Production.ERROR: pbx CDR StartTime 2025-01-01 13:38:05 - End Time 2025-01-01 16:38:05 [2025-01-01 16:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152157', 'tblTempUsageDetail_20' ) start [2025-01-01 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152157', 'tblTempUsageDetail_20' ) end [2025-01-01 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152157', 'tblTempVendorCDR_20' ) start [2025-01-01 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152157', 'tblTempVendorCDR_20' ) end [2025-01-01 16:38:19] Production.INFO: ProcessCDR(1,14152157,1,1,2) [2025-01-01 16:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152157', 'tblTempUsageDetail_20' ) start [2025-01-01 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152157', 'tblTempUsageDetail_20' ) end [2025-01-01 16:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:38:23] Production.INFO: ==32121== Releasing lock... [2025-01-01 16:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:38:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:39:05 [end_date_ymd] => 2025-01-01 16:39:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:39:05' and `end` < '2025-01-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-01-01 16:39:19] Production.INFO: count ==1213 [2025-01-01 16:39:19] Production.ERROR: pbx CDR StartTime 2025-01-01 13:39:05 - End Time 2025-01-01 16:39:05 [2025-01-01 16:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152162', 'tblTempUsageDetail_20' ) start [2025-01-01 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152162', 'tblTempUsageDetail_20' ) end [2025-01-01 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152162', 'tblTempVendorCDR_20' ) start [2025-01-01 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152162', 'tblTempVendorCDR_20' ) end [2025-01-01 16:39:19] Production.INFO: ProcessCDR(1,14152162,1,1,2) [2025-01-01 16:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152162', 'tblTempUsageDetail_20' ) start [2025-01-01 16:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152162', 'tblTempUsageDetail_20' ) end [2025-01-01 16:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:39:24] Production.INFO: ==32192== Releasing lock... [2025-01-01 16:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:39:24] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:40:05 [end_date_ymd] => 2025-01-01 16:40:05 [RateCDR] => 1 ) [2025-01-01 16: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-01-01 13:40:05' and `end` < '2025-01-01 16: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-01-01 16:40:18] Production.INFO: count ==1212 [2025-01-01 16:40:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:40:05 - End Time 2025-01-01 16:40:05 [2025-01-01 16:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152168', 'tblTempUsageDetail_20' ) start [2025-01-01 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152168', 'tblTempUsageDetail_20' ) end [2025-01-01 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152168', 'tblTempVendorCDR_20' ) start [2025-01-01 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152168', 'tblTempVendorCDR_20' ) end [2025-01-01 16:40:18] Production.INFO: ProcessCDR(1,14152168,1,1,2) [2025-01-01 16:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152168', 'tblTempUsageDetail_20' ) start [2025-01-01 16:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152168', 'tblTempUsageDetail_20' ) end [2025-01-01 16:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:40:23] Production.INFO: ==32266== Releasing lock... [2025-01-01 16:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:40:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:41:05 [end_date_ymd] => 2025-01-01 16:41:05 [RateCDR] => 1 ) [2025-01-01 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 13:41:05' and `end` < '2025-01-01 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 16:41:18] Production.INFO: count ==1229 [2025-01-01 16:41:19] Production.ERROR: pbx CDR StartTime 2025-01-01 13:41:05 - End Time 2025-01-01 16:41:05 [2025-01-01 16:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152173', 'tblTempUsageDetail_20' ) start [2025-01-01 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152173', 'tblTempUsageDetail_20' ) end [2025-01-01 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152173', 'tblTempVendorCDR_20' ) start [2025-01-01 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152173', 'tblTempVendorCDR_20' ) end [2025-01-01 16:41:19] Production.INFO: ProcessCDR(1,14152173,1,1,2) [2025-01-01 16:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152173', 'tblTempUsageDetail_20' ) start [2025-01-01 16:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152173', 'tblTempUsageDetail_20' ) end [2025-01-01 16:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:41:23] Production.INFO: ==32342== Releasing lock... [2025-01-01 16:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:41:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:42:05 [end_date_ymd] => 2025-01-01 16:42:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:42:05' and `end` < '2025-01-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-01-01 16:42:18] Production.INFO: count ==1223 [2025-01-01 16:42:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:42:05 - End Time 2025-01-01 16:42:05 [2025-01-01 16:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152178', 'tblTempUsageDetail_20' ) start [2025-01-01 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152178', 'tblTempUsageDetail_20' ) end [2025-01-01 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152178', 'tblTempVendorCDR_20' ) start [2025-01-01 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152178', 'tblTempVendorCDR_20' ) end [2025-01-01 16:42:18] Production.INFO: ProcessCDR(1,14152178,1,1,2) [2025-01-01 16:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152178', 'tblTempUsageDetail_20' ) start [2025-01-01 16:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152178', 'tblTempUsageDetail_20' ) end [2025-01-01 16:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:42:21] Production.INFO: ==32413== Releasing lock... [2025-01-01 16:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:42:21] Production.INFO: 37 MB #Memory Used# [2025-01-01 16:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:43:04 [end_date_ymd] => 2025-01-01 16:43:04 [RateCDR] => 1 ) [2025-01-01 16: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-01-01 13:43:04' and `end` < '2025-01-01 16: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-01-01 16:43:17] Production.INFO: count ==1222 [2025-01-01 16:43:17] Production.ERROR: pbx CDR StartTime 2025-01-01 13:43:04 - End Time 2025-01-01 16:43:04 [2025-01-01 16:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152183', 'tblTempUsageDetail_20' ) start [2025-01-01 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152183', 'tblTempUsageDetail_20' ) end [2025-01-01 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152183', 'tblTempVendorCDR_20' ) start [2025-01-01 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152183', 'tblTempVendorCDR_20' ) end [2025-01-01 16:43:17] Production.INFO: ProcessCDR(1,14152183,1,1,2) [2025-01-01 16:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152183', 'tblTempUsageDetail_20' ) start [2025-01-01 16:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152183', 'tblTempUsageDetail_20' ) end [2025-01-01 16:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:43:21] Production.INFO: ==32491== Releasing lock... [2025-01-01 16:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:43:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:44:05 [end_date_ymd] => 2025-01-01 16:44:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:44:05' and `end` < '2025-01-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-01-01 16:44:18] Production.INFO: count ==1221 [2025-01-01 16:44:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:44:05 - End Time 2025-01-01 16:44:05 [2025-01-01 16:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152188', 'tblTempUsageDetail_20' ) start [2025-01-01 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152188', 'tblTempUsageDetail_20' ) end [2025-01-01 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152188', 'tblTempVendorCDR_20' ) start [2025-01-01 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152188', 'tblTempVendorCDR_20' ) end [2025-01-01 16:44:18] Production.INFO: ProcessCDR(1,14152188,1,1,2) [2025-01-01 16:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152188', 'tblTempUsageDetail_20' ) start [2025-01-01 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152188', 'tblTempUsageDetail_20' ) end [2025-01-01 16:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:44:23] Production.INFO: ==32566== Releasing lock... [2025-01-01 16:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:44:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:45:05 [end_date_ymd] => 2025-01-01 16:45:05 [RateCDR] => 1 ) [2025-01-01 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 13:45:05' and `end` < '2025-01-01 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 16:45:18] Production.INFO: count ==1214 [2025-01-01 16:45:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:45:05 - End Time 2025-01-01 16:45:05 [2025-01-01 16:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152193', 'tblTempUsageDetail_20' ) start [2025-01-01 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152193', 'tblTempUsageDetail_20' ) end [2025-01-01 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152193', 'tblTempVendorCDR_20' ) start [2025-01-01 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152193', 'tblTempVendorCDR_20' ) end [2025-01-01 16:45:18] Production.INFO: ProcessCDR(1,14152193,1,1,2) [2025-01-01 16:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152193', 'tblTempUsageDetail_20' ) start [2025-01-01 16:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152193', 'tblTempUsageDetail_20' ) end [2025-01-01 16:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:45:22] Production.INFO: ==32642== Releasing lock... [2025-01-01 16:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:45:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:46:05 [end_date_ymd] => 2025-01-01 16:46:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:46:05' and `end` < '2025-01-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-01-01 16:46:18] Production.INFO: count ==1206 [2025-01-01 16:46:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:46:05 - End Time 2025-01-01 16:46:05 [2025-01-01 16:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152198', 'tblTempUsageDetail_20' ) start [2025-01-01 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152198', 'tblTempUsageDetail_20' ) end [2025-01-01 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152198', 'tblTempVendorCDR_20' ) start [2025-01-01 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152198', 'tblTempVendorCDR_20' ) end [2025-01-01 16:46:18] Production.INFO: ProcessCDR(1,14152198,1,1,2) [2025-01-01 16:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152198', 'tblTempUsageDetail_20' ) start [2025-01-01 16:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152198', 'tblTempUsageDetail_20' ) end [2025-01-01 16:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:46:23] Production.INFO: ==32720== Releasing lock... [2025-01-01 16:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:46:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-01 16:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:47:04 [end_date_ymd] => 2025-01-01 16:47:04 [RateCDR] => 1 ) [2025-01-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-01-01 13:47:04' and `end` < '2025-01-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-01-01 16:47:19] Production.INFO: count ==1195 [2025-01-01 16:47:19] Production.ERROR: pbx CDR StartTime 2025-01-01 13:47:04 - End Time 2025-01-01 16:47:04 [2025-01-01 16:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152203', 'tblTempUsageDetail_20' ) start [2025-01-01 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152203', 'tblTempUsageDetail_20' ) end [2025-01-01 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152203', 'tblTempVendorCDR_20' ) start [2025-01-01 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152203', 'tblTempVendorCDR_20' ) end [2025-01-01 16:47:19] Production.INFO: ProcessCDR(1,14152203,1,1,2) [2025-01-01 16:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152203', 'tblTempUsageDetail_20' ) start [2025-01-01 16:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152203', 'tblTempUsageDetail_20' ) end [2025-01-01 16:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:47:22] Production.INFO: ==331== Releasing lock... [2025-01-01 16:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:47:22] Production.INFO: 37 MB #Memory Used# [2025-01-01 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:48:05 [end_date_ymd] => 2025-01-01 16:48:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:48:05' and `end` < '2025-01-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-01-01 16:48:17] Production.INFO: count ==1185 [2025-01-01 16:48:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:48:05 - End Time 2025-01-01 16:48:05 [2025-01-01 16:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152208', 'tblTempUsageDetail_20' ) start [2025-01-01 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152208', 'tblTempUsageDetail_20' ) end [2025-01-01 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152208', 'tblTempVendorCDR_20' ) start [2025-01-01 16:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152208', 'tblTempVendorCDR_20' ) end [2025-01-01 16:48:18] Production.INFO: ProcessCDR(1,14152208,1,1,2) [2025-01-01 16:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152208', 'tblTempUsageDetail_20' ) start [2025-01-01 16:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152208', 'tblTempUsageDetail_20' ) end [2025-01-01 16:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:48:21] Production.INFO: ==424== Releasing lock... [2025-01-01 16:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:48:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-01 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:49:05 [end_date_ymd] => 2025-01-01 16:49:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:49:05' and `end` < '2025-01-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-01-01 16:49:18] Production.INFO: count ==1188 [2025-01-01 16:49:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:49:05 - End Time 2025-01-01 16:49:05 [2025-01-01 16:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152213', 'tblTempUsageDetail_20' ) start [2025-01-01 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152213', 'tblTempUsageDetail_20' ) end [2025-01-01 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152213', 'tblTempVendorCDR_20' ) start [2025-01-01 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152213', 'tblTempVendorCDR_20' ) end [2025-01-01 16:49:18] Production.INFO: ProcessCDR(1,14152213,1,1,2) [2025-01-01 16:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152213', 'tblTempUsageDetail_20' ) start [2025-01-01 16:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152213', 'tblTempUsageDetail_20' ) end [2025-01-01 16:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:49:21] Production.INFO: ==495== Releasing lock... [2025-01-01 16:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:49:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-01 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:50:05 [end_date_ymd] => 2025-01-01 16:50:05 [RateCDR] => 1 ) [2025-01-01 16:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 13:50:05' and `end` < '2025-01-01 16:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 16:50:18] Production.INFO: count ==1190 [2025-01-01 16:50:19] Production.ERROR: pbx CDR StartTime 2025-01-01 13:50:05 - End Time 2025-01-01 16:50:05 [2025-01-01 16:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152219', 'tblTempUsageDetail_20' ) start [2025-01-01 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152219', 'tblTempUsageDetail_20' ) end [2025-01-01 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152219', 'tblTempVendorCDR_20' ) start [2025-01-01 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152219', 'tblTempVendorCDR_20' ) end [2025-01-01 16:50:19] Production.INFO: ProcessCDR(1,14152219,1,1,2) [2025-01-01 16:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152219', 'tblTempUsageDetail_20' ) start [2025-01-01 16:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152219', 'tblTempUsageDetail_20' ) end [2025-01-01 16:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:50:22] Production.INFO: ==575== Releasing lock... [2025-01-01 16:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:50:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-01 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:51:05 [end_date_ymd] => 2025-01-01 16:51:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:51:05' and `end` < '2025-01-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-01-01 16:51:19] Production.INFO: count ==1229 [2025-01-01 16:51:19] Production.ERROR: pbx CDR StartTime 2025-01-01 13:51:05 - End Time 2025-01-01 16:51:05 [2025-01-01 16:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152224', 'tblTempUsageDetail_20' ) start [2025-01-01 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152224', 'tblTempUsageDetail_20' ) end [2025-01-01 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152224', 'tblTempVendorCDR_20' ) start [2025-01-01 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152224', 'tblTempVendorCDR_20' ) end [2025-01-01 16:51:19] Production.INFO: ProcessCDR(1,14152224,1,1,2) [2025-01-01 16:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152224', 'tblTempUsageDetail_20' ) start [2025-01-01 16:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152224', 'tblTempUsageDetail_20' ) end [2025-01-01 16:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:51:24] Production.INFO: ==665== Releasing lock... [2025-01-01 16:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:51:24] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:52:05 [end_date_ymd] => 2025-01-01 16:52:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:52:05' and `end` < '2025-01-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-01-01 16:52:18] Production.INFO: count ==1228 [2025-01-01 16:52:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:52:05 - End Time 2025-01-01 16:52:05 [2025-01-01 16:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152229', 'tblTempUsageDetail_20' ) start [2025-01-01 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152229', 'tblTempUsageDetail_20' ) end [2025-01-01 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152229', 'tblTempVendorCDR_20' ) start [2025-01-01 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152229', 'tblTempVendorCDR_20' ) end [2025-01-01 16:52:18] Production.INFO: ProcessCDR(1,14152229,1,1,2) [2025-01-01 16:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152229', 'tblTempUsageDetail_20' ) start [2025-01-01 16:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152229', 'tblTempUsageDetail_20' ) end [2025-01-01 16:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:52:21] Production.INFO: ==763== Releasing lock... [2025-01-01 16:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:52:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:53:05 [end_date_ymd] => 2025-01-01 16:53:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:53:05' and `end` < '2025-01-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-01-01 16:53:18] Production.INFO: count ==1239 [2025-01-01 16:53:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:53:05 - End Time 2025-01-01 16:53:05 [2025-01-01 16:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152234', 'tblTempUsageDetail_20' ) start [2025-01-01 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152234', 'tblTempUsageDetail_20' ) end [2025-01-01 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152234', 'tblTempVendorCDR_20' ) start [2025-01-01 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152234', 'tblTempVendorCDR_20' ) end [2025-01-01 16:53:18] Production.INFO: ProcessCDR(1,14152234,1,1,2) [2025-01-01 16:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152234', 'tblTempUsageDetail_20' ) start [2025-01-01 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152234', 'tblTempUsageDetail_20' ) end [2025-01-01 16:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:53:22] Production.INFO: ==836== Releasing lock... [2025-01-01 16:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:53:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:54:04 [end_date_ymd] => 2025-01-01 16:54:04 [RateCDR] => 1 ) [2025-01-01 16: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-01-01 13:54:04' and `end` < '2025-01-01 16: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-01-01 16:54:17] Production.INFO: count ==1240 [2025-01-01 16:54:17] Production.ERROR: pbx CDR StartTime 2025-01-01 13:54:04 - End Time 2025-01-01 16:54:04 [2025-01-01 16:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152239', 'tblTempUsageDetail_20' ) start [2025-01-01 16:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152239', 'tblTempUsageDetail_20' ) end [2025-01-01 16:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152239', 'tblTempVendorCDR_20' ) start [2025-01-01 16:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152239', 'tblTempVendorCDR_20' ) end [2025-01-01 16:54:17] Production.INFO: ProcessCDR(1,14152239,1,1,2) [2025-01-01 16:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152239', 'tblTempUsageDetail_20' ) start [2025-01-01 16:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152239', 'tblTempUsageDetail_20' ) end [2025-01-01 16:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:54:22] Production.INFO: ==948== Releasing lock... [2025-01-01 16:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:54:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:55:05 [end_date_ymd] => 2025-01-01 16:55:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:55:05' and `end` < '2025-01-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-01-01 16:55:17] Production.INFO: count ==1240 [2025-01-01 16:55:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:55:05 - End Time 2025-01-01 16:55:05 [2025-01-01 16:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152244', 'tblTempUsageDetail_20' ) start [2025-01-01 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152244', 'tblTempUsageDetail_20' ) end [2025-01-01 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152244', 'tblTempVendorCDR_20' ) start [2025-01-01 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152244', 'tblTempVendorCDR_20' ) end [2025-01-01 16:55:18] Production.INFO: ProcessCDR(1,14152244,1,1,2) [2025-01-01 16:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152244', 'tblTempUsageDetail_20' ) start [2025-01-01 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152244', 'tblTempUsageDetail_20' ) end [2025-01-01 16:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:55:22] Production.INFO: ==1050== Releasing lock... [2025-01-01 16:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:55:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:56:05 [end_date_ymd] => 2025-01-01 16:56:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:56:05' and `end` < '2025-01-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-01-01 16:56:18] Production.INFO: count ==1235 [2025-01-01 16:56:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:56:05 - End Time 2025-01-01 16:56:05 [2025-01-01 16:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152249', 'tblTempUsageDetail_20' ) start [2025-01-01 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152249', 'tblTempUsageDetail_20' ) end [2025-01-01 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152249', 'tblTempVendorCDR_20' ) start [2025-01-01 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152249', 'tblTempVendorCDR_20' ) end [2025-01-01 16:56:18] Production.INFO: ProcessCDR(1,14152249,1,1,2) [2025-01-01 16:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152249', 'tblTempUsageDetail_20' ) start [2025-01-01 16:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152249', 'tblTempUsageDetail_20' ) end [2025-01-01 16:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:56:22] Production.INFO: ==1146== Releasing lock... [2025-01-01 16:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:56:22] Production.INFO: 37 MB #Memory Used# [2025-01-01 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:57:05 [end_date_ymd] => 2025-01-01 16:57:05 [RateCDR] => 1 ) [2025-01-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-01-01 13:57:05' and `end` < '2025-01-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-01-01 16:57:18] Production.INFO: count ==1225 [2025-01-01 16:57:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:57:05 - End Time 2025-01-01 16:57:05 [2025-01-01 16:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152254', 'tblTempUsageDetail_20' ) start [2025-01-01 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152254', 'tblTempUsageDetail_20' ) end [2025-01-01 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152254', 'tblTempVendorCDR_20' ) start [2025-01-01 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152254', 'tblTempVendorCDR_20' ) end [2025-01-01 16:57:18] Production.INFO: ProcessCDR(1,14152254,1,1,2) [2025-01-01 16:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152254', 'tblTempUsageDetail_20' ) start [2025-01-01 16:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152254', 'tblTempUsageDetail_20' ) end [2025-01-01 16:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:57:22] Production.INFO: ==1255== Releasing lock... [2025-01-01 16:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:57:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:58:05 [end_date_ymd] => 2025-01-01 16:58:05 [RateCDR] => 1 ) [2025-01-01 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 13:58:05' and `end` < '2025-01-01 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 16:58:18] Production.INFO: count ==1220 [2025-01-01 16:58:18] Production.ERROR: pbx CDR StartTime 2025-01-01 13:58:05 - End Time 2025-01-01 16:58:05 [2025-01-01 16:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152259', 'tblTempUsageDetail_20' ) start [2025-01-01 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152259', 'tblTempUsageDetail_20' ) end [2025-01-01 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152259', 'tblTempVendorCDR_20' ) start [2025-01-01 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152259', 'tblTempVendorCDR_20' ) end [2025-01-01 16:58:18] Production.INFO: ProcessCDR(1,14152259,1,1,2) [2025-01-01 16:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152259', 'tblTempUsageDetail_20' ) start [2025-01-01 16:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152259', 'tblTempUsageDetail_20' ) end [2025-01-01 16:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:58:21] Production.INFO: ==1352== Releasing lock... [2025-01-01 16:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:58:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 16:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 13:59:04 [end_date_ymd] => 2025-01-01 16:59:04 [RateCDR] => 1 ) [2025-01-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-01-01 13:59:04' and `end` < '2025-01-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-01-01 16:59:19] Production.INFO: count ==1224 [2025-01-01 16:59:19] Production.ERROR: pbx CDR StartTime 2025-01-01 13:59:04 - End Time 2025-01-01 16:59:04 [2025-01-01 16:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152264', 'tblTempUsageDetail_20' ) start [2025-01-01 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152264', 'tblTempUsageDetail_20' ) end [2025-01-01 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152264', 'tblTempVendorCDR_20' ) start [2025-01-01 16:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152264', 'tblTempVendorCDR_20' ) end [2025-01-01 16:59:19] Production.INFO: ProcessCDR(1,14152264,1,1,2) [2025-01-01 16:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 16:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152264', 'tblTempUsageDetail_20' ) start [2025-01-01 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152264', 'tblTempUsageDetail_20' ) end [2025-01-01 16:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 16:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 16:59:23] Production.INFO: ==1441== Releasing lock... [2025-01-01 16:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 16:59:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:00:05 [end_date_ymd] => 2025-01-01 17:00:05 [RateCDR] => 1 ) [2025-01-01 17: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-01-01 14:00:05' and `end` < '2025-01-01 17: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-01-01 17:00:18] Production.INFO: count ==1219 [2025-01-01 17:00:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:00:05 - End Time 2025-01-01 17:00:05 [2025-01-01 17:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152270', 'tblTempUsageDetail_20' ) start [2025-01-01 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152270', 'tblTempUsageDetail_20' ) end [2025-01-01 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152270', 'tblTempVendorCDR_20' ) start [2025-01-01 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152270', 'tblTempVendorCDR_20' ) end [2025-01-01 17:00:18] Production.INFO: ProcessCDR(1,14152270,1,1,2) [2025-01-01 17:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152270', 'tblTempUsageDetail_20' ) start [2025-01-01 17:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152270', 'tblTempUsageDetail_20' ) end [2025-01-01 17:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:00:21] Production.INFO: ==1566== Releasing lock... [2025-01-01 17:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:00:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:01:05 [end_date_ymd] => 2025-01-01 17:01:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:01:05' and `end` < '2025-01-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-01-01 17:01:18] Production.INFO: count ==1252 [2025-01-01 17:01:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:01:05 - End Time 2025-01-01 17:01:05 [2025-01-01 17:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152275', 'tblTempUsageDetail_20' ) start [2025-01-01 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152275', 'tblTempUsageDetail_20' ) end [2025-01-01 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152275', 'tblTempVendorCDR_20' ) start [2025-01-01 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152275', 'tblTempVendorCDR_20' ) end [2025-01-01 17:01:18] Production.INFO: ProcessCDR(1,14152275,1,1,2) [2025-01-01 17:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152275', 'tblTempUsageDetail_20' ) start [2025-01-01 17:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152275', 'tblTempUsageDetail_20' ) end [2025-01-01 17:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:01:23] Production.INFO: ==1663== Releasing lock... [2025-01-01 17:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:01:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:02:05 [end_date_ymd] => 2025-01-01 17:02:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:02:05' and `end` < '2025-01-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-01-01 17:02:18] Production.INFO: count ==1253 [2025-01-01 17:02:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:02:05 - End Time 2025-01-01 17:02:05 [2025-01-01 17:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152280', 'tblTempUsageDetail_20' ) start [2025-01-01 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152280', 'tblTempUsageDetail_20' ) end [2025-01-01 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152280', 'tblTempVendorCDR_20' ) start [2025-01-01 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152280', 'tblTempVendorCDR_20' ) end [2025-01-01 17:02:18] Production.INFO: ProcessCDR(1,14152280,1,1,2) [2025-01-01 17:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152280', 'tblTempUsageDetail_20' ) start [2025-01-01 17:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152280', 'tblTempUsageDetail_20' ) end [2025-01-01 17:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:02:23] Production.INFO: ==1742== Releasing lock... [2025-01-01 17:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:02:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:03:06 [end_date_ymd] => 2025-01-01 17:03:06 [RateCDR] => 1 ) [2025-01-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-01-01 14:03:06' and `end` < '2025-01-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-01-01 17:03:19] Production.INFO: count ==1248 [2025-01-01 17:03:19] Production.ERROR: pbx CDR StartTime 2025-01-01 14:03:06 - End Time 2025-01-01 17:03:06 [2025-01-01 17:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152285', 'tblTempUsageDetail_20' ) start [2025-01-01 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152285', 'tblTempUsageDetail_20' ) end [2025-01-01 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152285', 'tblTempVendorCDR_20' ) start [2025-01-01 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152285', 'tblTempVendorCDR_20' ) end [2025-01-01 17:03:19] Production.INFO: ProcessCDR(1,14152285,1,1,2) [2025-01-01 17:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152285', 'tblTempUsageDetail_20' ) start [2025-01-01 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152285', 'tblTempUsageDetail_20' ) end [2025-01-01 17:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:03:24] Production.INFO: ==1818== Releasing lock... [2025-01-01 17:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:03:24] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 17:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:04:04 [end_date_ymd] => 2025-01-01 17:04:04 [RateCDR] => 1 ) [2025-01-01 17:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 14:04:04' and `end` < '2025-01-01 17:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 17:04:17] Production.INFO: count ==1248 [2025-01-01 17:04:17] Production.ERROR: pbx CDR StartTime 2025-01-01 14:04:04 - End Time 2025-01-01 17:04:04 [2025-01-01 17:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152290', 'tblTempUsageDetail_20' ) start [2025-01-01 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152290', 'tblTempUsageDetail_20' ) end [2025-01-01 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152290', 'tblTempVendorCDR_20' ) start [2025-01-01 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152290', 'tblTempVendorCDR_20' ) end [2025-01-01 17:04:18] Production.INFO: ProcessCDR(1,14152290,1,1,2) [2025-01-01 17:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152290', 'tblTempUsageDetail_20' ) start [2025-01-01 17:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152290', 'tblTempUsageDetail_20' ) end [2025-01-01 17:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:04:22] Production.INFO: ==1894== Releasing lock... [2025-01-01 17:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:04:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:05:05 [end_date_ymd] => 2025-01-01 17:05:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:05:05' and `end` < '2025-01-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-01-01 17:05:18] Production.INFO: count ==1245 [2025-01-01 17:05:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:05:05 - End Time 2025-01-01 17:05:05 [2025-01-01 17:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152295', 'tblTempUsageDetail_20' ) start [2025-01-01 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152295', 'tblTempUsageDetail_20' ) end [2025-01-01 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152295', 'tblTempVendorCDR_20' ) start [2025-01-01 17:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152295', 'tblTempVendorCDR_20' ) end [2025-01-01 17:05:18] Production.INFO: ProcessCDR(1,14152295,1,1,2) [2025-01-01 17:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152295', 'tblTempUsageDetail_20' ) start [2025-01-01 17:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152295', 'tblTempUsageDetail_20' ) end [2025-01-01 17:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:05:21] Production.INFO: ==1968== Releasing lock... [2025-01-01 17:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:05:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 17:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:06:04 [end_date_ymd] => 2025-01-01 17:06:04 [RateCDR] => 1 ) [2025-01-01 17: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-01-01 14:06:04' and `end` < '2025-01-01 17: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-01-01 17:06:18] Production.INFO: count ==1249 [2025-01-01 17:06:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:06:04 - End Time 2025-01-01 17:06:04 [2025-01-01 17:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152300', 'tblTempUsageDetail_20' ) start [2025-01-01 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152300', 'tblTempUsageDetail_20' ) end [2025-01-01 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152300', 'tblTempVendorCDR_20' ) start [2025-01-01 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152300', 'tblTempVendorCDR_20' ) end [2025-01-01 17:06:18] Production.INFO: ProcessCDR(1,14152300,1,1,2) [2025-01-01 17:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152300', 'tblTempUsageDetail_20' ) start [2025-01-01 17:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152300', 'tblTempUsageDetail_20' ) end [2025-01-01 17:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:06:22] Production.INFO: ==2039== Releasing lock... [2025-01-01 17:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:06:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:07:05 [end_date_ymd] => 2025-01-01 17:07:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:07:05' and `end` < '2025-01-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-01-01 17:07:18] Production.INFO: count ==1252 [2025-01-01 17:07:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:07:05 - End Time 2025-01-01 17:07:05 [2025-01-01 17:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152305', 'tblTempUsageDetail_20' ) start [2025-01-01 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152305', 'tblTempUsageDetail_20' ) end [2025-01-01 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152305', 'tblTempVendorCDR_20' ) start [2025-01-01 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152305', 'tblTempVendorCDR_20' ) end [2025-01-01 17:07:18] Production.INFO: ProcessCDR(1,14152305,1,1,2) [2025-01-01 17:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152305', 'tblTempUsageDetail_20' ) start [2025-01-01 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152305', 'tblTempUsageDetail_20' ) end [2025-01-01 17:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:07:23] Production.INFO: ==2112== Releasing lock... [2025-01-01 17:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:07:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:08:05 [end_date_ymd] => 2025-01-01 17:08:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:08:05' and `end` < '2025-01-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-01-01 17:08:18] Production.INFO: count ==1257 [2025-01-01 17:08:19] Production.ERROR: pbx CDR StartTime 2025-01-01 14:08:05 - End Time 2025-01-01 17:08:05 [2025-01-01 17:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152310', 'tblTempUsageDetail_20' ) start [2025-01-01 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152310', 'tblTempUsageDetail_20' ) end [2025-01-01 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152310', 'tblTempVendorCDR_20' ) start [2025-01-01 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152310', 'tblTempVendorCDR_20' ) end [2025-01-01 17:08:19] Production.INFO: ProcessCDR(1,14152310,1,1,2) [2025-01-01 17:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152310', 'tblTempUsageDetail_20' ) start [2025-01-01 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152310', 'tblTempUsageDetail_20' ) end [2025-01-01 17:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:08:23] Production.INFO: ==2188== Releasing lock... [2025-01-01 17:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:08:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:09:05 [end_date_ymd] => 2025-01-01 17:09:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:09:05' and `end` < '2025-01-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-01-01 17:09:18] Production.INFO: count ==1255 [2025-01-01 17:09:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:09:05 - End Time 2025-01-01 17:09:05 [2025-01-01 17:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152315', 'tblTempUsageDetail_20' ) start [2025-01-01 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152315', 'tblTempUsageDetail_20' ) end [2025-01-01 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152315', 'tblTempVendorCDR_20' ) start [2025-01-01 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152315', 'tblTempVendorCDR_20' ) end [2025-01-01 17:09:18] Production.INFO: ProcessCDR(1,14152315,1,1,2) [2025-01-01 17:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152315', 'tblTempUsageDetail_20' ) start [2025-01-01 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152315', 'tblTempUsageDetail_20' ) end [2025-01-01 17:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:09:23] Production.INFO: ==2306== Releasing lock... [2025-01-01 17:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:09:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:10:06 [end_date_ymd] => 2025-01-01 17:10:06 [RateCDR] => 1 ) [2025-01-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-01-01 14:10:06' and `end` < '2025-01-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-01-01 17:10:19] Production.INFO: count ==1260 [2025-01-01 17:10:19] Production.ERROR: pbx CDR StartTime 2025-01-01 14:10:06 - End Time 2025-01-01 17:10:06 [2025-01-01 17:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152321', 'tblTempUsageDetail_20' ) start [2025-01-01 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152321', 'tblTempUsageDetail_20' ) end [2025-01-01 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152321', 'tblTempVendorCDR_20' ) start [2025-01-01 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152321', 'tblTempVendorCDR_20' ) end [2025-01-01 17:10:19] Production.INFO: ProcessCDR(1,14152321,1,1,2) [2025-01-01 17:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152321', 'tblTempUsageDetail_20' ) start [2025-01-01 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152321', 'tblTempUsageDetail_20' ) end [2025-01-01 17:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:10:23] Production.INFO: ==2379== Releasing lock... [2025-01-01 17:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:10:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-01 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:11:05 [end_date_ymd] => 2025-01-01 17:11:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:11:05' and `end` < '2025-01-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-01-01 17:11:18] Production.INFO: count ==1293 [2025-01-01 17:11:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:11:05 - End Time 2025-01-01 17:11:05 [2025-01-01 17:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152326', 'tblTempUsageDetail_20' ) start [2025-01-01 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152326', 'tblTempUsageDetail_20' ) end [2025-01-01 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152326', 'tblTempVendorCDR_20' ) start [2025-01-01 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152326', 'tblTempVendorCDR_20' ) end [2025-01-01 17:11:18] Production.INFO: ProcessCDR(1,14152326,1,1,2) [2025-01-01 17:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152326', 'tblTempUsageDetail_20' ) start [2025-01-01 17:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152326', 'tblTempUsageDetail_20' ) end [2025-01-01 17:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:11:21] Production.INFO: ==2460== Releasing lock... [2025-01-01 17:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:11:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:12:05 [end_date_ymd] => 2025-01-01 17:12:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:12:05' and `end` < '2025-01-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-01-01 17:12:19] Production.INFO: count ==1293 [2025-01-01 17:12:20] Production.ERROR: pbx CDR StartTime 2025-01-01 14:12:05 - End Time 2025-01-01 17:12:05 [2025-01-01 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152331', 'tblTempUsageDetail_20' ) start [2025-01-01 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152331', 'tblTempUsageDetail_20' ) end [2025-01-01 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152331', 'tblTempVendorCDR_20' ) start [2025-01-01 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152331', 'tblTempVendorCDR_20' ) end [2025-01-01 17:12:20] Production.INFO: ProcessCDR(1,14152331,1,1,2) [2025-01-01 17:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152331', 'tblTempUsageDetail_20' ) start [2025-01-01 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152331', 'tblTempUsageDetail_20' ) end [2025-01-01 17:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:12:24] Production.INFO: ==2540== Releasing lock... [2025-01-01 17:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:12:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-01 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:13:05 [end_date_ymd] => 2025-01-01 17:13:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:13:05' and `end` < '2025-01-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-01-01 17:13:19] Production.INFO: count ==1293 [2025-01-01 17:13:19] Production.ERROR: pbx CDR StartTime 2025-01-01 14:13:05 - End Time 2025-01-01 17:13:05 [2025-01-01 17:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152336', 'tblTempUsageDetail_20' ) start [2025-01-01 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152336', 'tblTempUsageDetail_20' ) end [2025-01-01 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152336', 'tblTempVendorCDR_20' ) start [2025-01-01 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152336', 'tblTempVendorCDR_20' ) end [2025-01-01 17:13:19] Production.INFO: ProcessCDR(1,14152336,1,1,2) [2025-01-01 17:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152336', 'tblTempUsageDetail_20' ) start [2025-01-01 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152336', 'tblTempUsageDetail_20' ) end [2025-01-01 17:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:13:22] Production.INFO: ==2618== Releasing lock... [2025-01-01 17:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:13:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:14:05 [end_date_ymd] => 2025-01-01 17:14:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:14:05' and `end` < '2025-01-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-01-01 17:14:18] Production.INFO: count ==1292 [2025-01-01 17:14:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:14:05 - End Time 2025-01-01 17:14:05 [2025-01-01 17:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152341', 'tblTempUsageDetail_20' ) start [2025-01-01 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152341', 'tblTempUsageDetail_20' ) end [2025-01-01 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152341', 'tblTempVendorCDR_20' ) start [2025-01-01 17:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152341', 'tblTempVendorCDR_20' ) end [2025-01-01 17:14:18] Production.INFO: ProcessCDR(1,14152341,1,1,2) [2025-01-01 17:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152341', 'tblTempUsageDetail_20' ) start [2025-01-01 17:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152341', 'tblTempUsageDetail_20' ) end [2025-01-01 17:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:14:21] Production.INFO: ==2693== Releasing lock... [2025-01-01 17:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:14:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-01 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:15:05 [end_date_ymd] => 2025-01-01 17:15:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:15:05' and `end` < '2025-01-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-01-01 17:15:19] Production.INFO: count ==1294 [2025-01-01 17:15:19] Production.ERROR: pbx CDR StartTime 2025-01-01 14:15:05 - End Time 2025-01-01 17:15:05 [2025-01-01 17:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152346', 'tblTempUsageDetail_20' ) start [2025-01-01 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152346', 'tblTempUsageDetail_20' ) end [2025-01-01 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152346', 'tblTempVendorCDR_20' ) start [2025-01-01 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152346', 'tblTempVendorCDR_20' ) end [2025-01-01 17:15:19] Production.INFO: ProcessCDR(1,14152346,1,1,2) [2025-01-01 17:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152346', 'tblTempUsageDetail_20' ) start [2025-01-01 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152346', 'tblTempUsageDetail_20' ) end [2025-01-01 17:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:15:24] Production.INFO: ==2765== Releasing lock... [2025-01-01 17:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:15:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-01 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:16:05 [end_date_ymd] => 2025-01-01 17:16:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:16:05' and `end` < '2025-01-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-01-01 17:16:18] Production.INFO: count ==1294 [2025-01-01 17:16:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:16:05 - End Time 2025-01-01 17:16:05 [2025-01-01 17:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152351', 'tblTempUsageDetail_20' ) start [2025-01-01 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152351', 'tblTempUsageDetail_20' ) end [2025-01-01 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152351', 'tblTempVendorCDR_20' ) start [2025-01-01 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152351', 'tblTempVendorCDR_20' ) end [2025-01-01 17:16:18] Production.INFO: ProcessCDR(1,14152351,1,1,2) [2025-01-01 17:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152351', 'tblTempUsageDetail_20' ) start [2025-01-01 17:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152351', 'tblTempUsageDetail_20' ) end [2025-01-01 17:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:16:23] Production.INFO: ==2840== Releasing lock... [2025-01-01 17:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:16:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-01 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:17:05 [end_date_ymd] => 2025-01-01 17:17:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:17:05' and `end` < '2025-01-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-01-01 17:17:18] Production.INFO: count ==1291 [2025-01-01 17:17:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:17:05 - End Time 2025-01-01 17:17:05 [2025-01-01 17:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152356', 'tblTempUsageDetail_20' ) start [2025-01-01 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152356', 'tblTempUsageDetail_20' ) end [2025-01-01 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152356', 'tblTempVendorCDR_20' ) start [2025-01-01 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152356', 'tblTempVendorCDR_20' ) end [2025-01-01 17:17:18] Production.INFO: ProcessCDR(1,14152356,1,1,2) [2025-01-01 17:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152356', 'tblTempUsageDetail_20' ) start [2025-01-01 17:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152356', 'tblTempUsageDetail_20' ) end [2025-01-01 17:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:17:21] Production.INFO: ==2913== Releasing lock... [2025-01-01 17:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:17:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:18:05 [end_date_ymd] => 2025-01-01 17:18:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:18:05' and `end` < '2025-01-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-01-01 17:18:19] Production.INFO: count ==1290 [2025-01-01 17:18:19] Production.ERROR: pbx CDR StartTime 2025-01-01 14:18:05 - End Time 2025-01-01 17:18:05 [2025-01-01 17:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152361', 'tblTempUsageDetail_20' ) start [2025-01-01 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152361', 'tblTempUsageDetail_20' ) end [2025-01-01 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152361', 'tblTempVendorCDR_20' ) start [2025-01-01 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152361', 'tblTempVendorCDR_20' ) end [2025-01-01 17:18:19] Production.INFO: ProcessCDR(1,14152361,1,1,2) [2025-01-01 17:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152361', 'tblTempUsageDetail_20' ) start [2025-01-01 17:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152361', 'tblTempUsageDetail_20' ) end [2025-01-01 17:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:18:22] Production.INFO: ==2987== Releasing lock... [2025-01-01 17:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:18:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:19:05 [end_date_ymd] => 2025-01-01 17:19:05 [RateCDR] => 1 ) [2025-01-01 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 14:19:05' and `end` < '2025-01-01 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 17:19:19] Production.INFO: count ==1289 [2025-01-01 17:19:20] Production.ERROR: pbx CDR StartTime 2025-01-01 14:19:05 - End Time 2025-01-01 17:19:05 [2025-01-01 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152366', 'tblTempUsageDetail_20' ) start [2025-01-01 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152366', 'tblTempUsageDetail_20' ) end [2025-01-01 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152366', 'tblTempVendorCDR_20' ) start [2025-01-01 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152366', 'tblTempVendorCDR_20' ) end [2025-01-01 17:19:20] Production.INFO: ProcessCDR(1,14152366,1,1,2) [2025-01-01 17:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152366', 'tblTempUsageDetail_20' ) start [2025-01-01 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152366', 'tblTempUsageDetail_20' ) end [2025-01-01 17:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:19:23] Production.INFO: ==3058== Releasing lock... [2025-01-01 17:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:19:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:20:05 [end_date_ymd] => 2025-01-01 17:20:05 [RateCDR] => 1 ) [2025-01-01 17:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 14:20:05' and `end` < '2025-01-01 17:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 17:20:20] Production.INFO: count ==1291 [2025-01-01 17:20:20] Production.ERROR: pbx CDR StartTime 2025-01-01 14:20:05 - End Time 2025-01-01 17:20:05 [2025-01-01 17:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152372', 'tblTempUsageDetail_20' ) start [2025-01-01 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152372', 'tblTempUsageDetail_20' ) end [2025-01-01 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152372', 'tblTempVendorCDR_20' ) start [2025-01-01 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152372', 'tblTempVendorCDR_20' ) end [2025-01-01 17:20:20] Production.INFO: ProcessCDR(1,14152372,1,1,2) [2025-01-01 17:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152372', 'tblTempUsageDetail_20' ) start [2025-01-01 17:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152372', 'tblTempUsageDetail_20' ) end [2025-01-01 17:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:20:23] Production.INFO: ==3131== Releasing lock... [2025-01-01 17:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:20:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:21:05 [end_date_ymd] => 2025-01-01 17:21:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:21:05' and `end` < '2025-01-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-01-01 17:21:18] Production.INFO: count ==1333 [2025-01-01 17:21:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:21:05 - End Time 2025-01-01 17:21:05 [2025-01-01 17:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152377', 'tblTempUsageDetail_20' ) start [2025-01-01 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152377', 'tblTempUsageDetail_20' ) end [2025-01-01 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152377', 'tblTempVendorCDR_20' ) start [2025-01-01 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152377', 'tblTempVendorCDR_20' ) end [2025-01-01 17:21:18] Production.INFO: ProcessCDR(1,14152377,1,1,2) [2025-01-01 17:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152377', 'tblTempUsageDetail_20' ) start [2025-01-01 17:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152377', 'tblTempUsageDetail_20' ) end [2025-01-01 17:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:21:21] Production.INFO: ==3203== Releasing lock... [2025-01-01 17:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:21:21] Production.INFO: 38 MB #Memory Used# [2025-01-01 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:22:05 [end_date_ymd] => 2025-01-01 17:22:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:22:05' and `end` < '2025-01-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-01-01 17:22:20] Production.INFO: count ==1332 [2025-01-01 17:22:20] Production.ERROR: pbx CDR StartTime 2025-01-01 14:22:05 - End Time 2025-01-01 17:22:05 [2025-01-01 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152382', 'tblTempUsageDetail_20' ) start [2025-01-01 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152382', 'tblTempUsageDetail_20' ) end [2025-01-01 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152382', 'tblTempVendorCDR_20' ) start [2025-01-01 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152382', 'tblTempVendorCDR_20' ) end [2025-01-01 17:22:20] Production.INFO: ProcessCDR(1,14152382,1,1,2) [2025-01-01 17:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152382', 'tblTempUsageDetail_20' ) start [2025-01-01 17:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152382', 'tblTempUsageDetail_20' ) end [2025-01-01 17:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:22:23] Production.INFO: ==3273== Releasing lock... [2025-01-01 17:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:22:23] Production.INFO: 38 MB #Memory Used# [2025-01-01 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:23:05 [end_date_ymd] => 2025-01-01 17:23:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:23:05' and `end` < '2025-01-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-01-01 17:23:18] Production.INFO: count ==1334 [2025-01-01 17:23:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:23:05 - End Time 2025-01-01 17:23:05 [2025-01-01 17:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152387', 'tblTempUsageDetail_20' ) start [2025-01-01 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152387', 'tblTempUsageDetail_20' ) end [2025-01-01 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152387', 'tblTempVendorCDR_20' ) start [2025-01-01 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152387', 'tblTempVendorCDR_20' ) end [2025-01-01 17:23:18] Production.INFO: ProcessCDR(1,14152387,1,1,2) [2025-01-01 17:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152387', 'tblTempUsageDetail_20' ) start [2025-01-01 17:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152387', 'tblTempUsageDetail_20' ) end [2025-01-01 17:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:23:23] Production.INFO: ==3352== Releasing lock... [2025-01-01 17:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:23:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-01 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:24:05 [end_date_ymd] => 2025-01-01 17:24:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:24:05' and `end` < '2025-01-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-01-01 17:24:18] Production.INFO: count ==1338 [2025-01-01 17:24:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:24:05 - End Time 2025-01-01 17:24:05 [2025-01-01 17:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152392', 'tblTempUsageDetail_20' ) start [2025-01-01 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152392', 'tblTempUsageDetail_20' ) end [2025-01-01 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152392', 'tblTempVendorCDR_20' ) start [2025-01-01 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152392', 'tblTempVendorCDR_20' ) end [2025-01-01 17:24:18] Production.INFO: ProcessCDR(1,14152392,1,1,2) [2025-01-01 17:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152392', 'tblTempUsageDetail_20' ) start [2025-01-01 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152392', 'tblTempUsageDetail_20' ) end [2025-01-01 17:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:24:23] Production.INFO: ==3423== Releasing lock... [2025-01-01 17:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:24:23] Production.INFO: 38 MB #Memory Used# [2025-01-01 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:25:05 [end_date_ymd] => 2025-01-01 17:25:05 [RateCDR] => 1 ) [2025-01-01 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 14:25:05' and `end` < '2025-01-01 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 17:25:18] Production.INFO: count ==1335 [2025-01-01 17:25:26] Production.ERROR: pbx CDR StartTime 2025-01-01 14:25:05 - End Time 2025-01-01 17:25:05 [2025-01-01 17:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152397', 'tblTempUsageDetail_20' ) start [2025-01-01 17:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152397', 'tblTempUsageDetail_20' ) end [2025-01-01 17:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152397', 'tblTempVendorCDR_20' ) start [2025-01-01 17:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152397', 'tblTempVendorCDR_20' ) end [2025-01-01 17:25:29] Production.INFO: ProcessCDR(1,14152397,1,1,2) [2025-01-01 17:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:25:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:25:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:25:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:25:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152397', 'tblTempUsageDetail_20' ) start [2025-01-01 17:25:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152397', 'tblTempUsageDetail_20' ) end [2025-01-01 17:25:45] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:25:46] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:25:50] Production.INFO: ==3536== Releasing lock... [2025-01-01 17:25:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:25:50] Production.INFO: 38 MB #Memory Used# [2025-01-01 17:26:22] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:26:22 [end_date_ymd] => 2025-01-01 17:26:22 [RateCDR] => 1 ) [2025-01-01 17:26:22] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 14:26:22' and `end` < '2025-01-01 17:26:22' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 17:26:36] Production.INFO: count ==1384 [2025-01-01 17:26:48] Production.ERROR: pbx CDR StartTime 2025-01-01 14:26:22 - End Time 2025-01-01 17:26:22 [2025-01-01 17:26:48] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:26:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152402', 'tblTempUsageDetail_20' ) start [2025-01-01 17:26:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152402', 'tblTempUsageDetail_20' ) end [2025-01-01 17:26:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152402', 'tblTempVendorCDR_20' ) start [2025-01-01 17:26:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152402', 'tblTempVendorCDR_20' ) end [2025-01-01 17:26:53] Production.INFO: ProcessCDR(1,14152402,1,1,2) [2025-01-01 17:26:53] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:27:15] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:27:15] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:27:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:27:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152402', 'tblTempUsageDetail_20' ) start [2025-01-01 17:27:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152402', 'tblTempUsageDetail_20' ) end [2025-01-01 17:27:49] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:27:49] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:27:53] Production.INFO: ==3610== Releasing lock... [2025-01-01 17:27:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:27:53] Production.INFO: 38.5 MB #Memory Used# [2025-01-01 17:28:14] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:28:14 [end_date_ymd] => 2025-01-01 17:28:14 [RateCDR] => 1 ) [2025-01-01 17:28:14] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc 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-01 14:28:14' and `end` < '2025-01-01 17:28:14' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 17:28:26] Production.INFO: count ==1453 [2025-01-01 17:28:36] Production.ERROR: pbx CDR StartTime 2025-01-01 14:28:14 - End Time 2025-01-01 17:28:14 [2025-01-01 17:28:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:28:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152409', 'tblTempUsageDetail_20' ) start [2025-01-01 17:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152409', 'tblTempUsageDetail_20' ) end [2025-01-01 17:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152409', 'tblTempVendorCDR_20' ) start [2025-01-01 17:28:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152409', 'tblTempVendorCDR_20' ) end [2025-01-01 17:28:40] Production.INFO: ProcessCDR(1,14152409,1,1,2) [2025-01-01 17:28:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:28:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:28:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:28:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:28:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152409', 'tblTempUsageDetail_20' ) start [2025-01-01 17:28:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152409', 'tblTempUsageDetail_20' ) end [2025-01-01 17:28:48] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:28:49] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:28:51] Production.INFO: ==3744== Releasing lock... [2025-01-01 17:28:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:28:51] Production.INFO: 38.75 MB #Memory Used# [2025-01-01 17:29:22] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:29:22 [end_date_ymd] => 2025-01-01 17:29:22 [RateCDR] => 1 ) [2025-01-01 17:29:22] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 14:29:22' and `end` < '2025-01-01 17:29:22' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 17:29:35] Production.INFO: count ==1499 [2025-01-01 17:29:40] Production.ERROR: pbx CDR StartTime 2025-01-01 14:29:22 - End Time 2025-01-01 17:29:22 [2025-01-01 17:29:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:29:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152414', 'tblTempUsageDetail_20' ) start [2025-01-01 17:29:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152414', 'tblTempUsageDetail_20' ) end [2025-01-01 17:29:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152414', 'tblTempVendorCDR_20' ) start [2025-01-01 17:29:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152414', 'tblTempVendorCDR_20' ) end [2025-01-01 17:29:40] Production.INFO: ProcessCDR(1,14152414,1,1,2) [2025-01-01 17:29:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:29:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:29:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152414', 'tblTempUsageDetail_20' ) start [2025-01-01 17:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152414', 'tblTempUsageDetail_20' ) end [2025-01-01 17:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:30:31] Production.INFO: ==3815== Releasing lock... [2025-01-01 17:30:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:30:31] Production.INFO: 39.25 MB #Memory Used# [2025-01-01 17:31:16] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:31:16 [end_date_ymd] => 2025-01-01 17:31:16 [RateCDR] => 1 ) [2025-01-01 17:31:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 14:31:16' and `end` < '2025-01-01 17:31:16' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 17:31:29] Production.INFO: count ==1590 [2025-01-01 17:31:35] Production.ERROR: pbx CDR StartTime 2025-01-01 14:31:16 - End Time 2025-01-01 17:31:16 [2025-01-01 17:31:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152423', 'tblTempUsageDetail_20' ) start [2025-01-01 17:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152423', 'tblTempUsageDetail_20' ) end [2025-01-01 17:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152423', 'tblTempVendorCDR_20' ) start [2025-01-01 17:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152423', 'tblTempVendorCDR_20' ) end [2025-01-01 17:31:35] Production.INFO: ProcessCDR(1,14152423,1,1,2) [2025-01-01 17:31:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:31:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:31:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:31:54] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:31:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152423', 'tblTempUsageDetail_20' ) start [2025-01-01 17:31:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152423', 'tblTempUsageDetail_20' ) end [2025-01-01 17:31:54] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:31:54] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:31:54] Production.INFO: ==3948== Releasing lock... [2025-01-01 17:31:54] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:31:54] Production.INFO: 40 MB #Memory Used# [2025-01-01 17:32:30] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:32:30 [end_date_ymd] => 2025-01-01 17:32:30 [RateCDR] => 1 ) [2025-01-01 17:32: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-01-01 14:32:30' and `end` < '2025-01-01 17:32: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-01-01 17:32:46] Production.INFO: count ==1632 [2025-01-01 17:32:49] Production.ERROR: pbx CDR StartTime 2025-01-01 14:32:30 - End Time 2025-01-01 17:32:30 [2025-01-01 17:32:49] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:32:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152427', 'tblTempUsageDetail_20' ) start [2025-01-01 17:32:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152427', 'tblTempUsageDetail_20' ) end [2025-01-01 17:32:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152427', 'tblTempVendorCDR_20' ) start [2025-01-01 17:32:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152427', 'tblTempVendorCDR_20' ) end [2025-01-01 17:32:49] Production.INFO: ProcessCDR(1,14152427,1,1,2) [2025-01-01 17:32:49] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:32:52] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:32:52] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:33:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:33:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152427', 'tblTempUsageDetail_20' ) start [2025-01-01 17:33:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152427', 'tblTempUsageDetail_20' ) end [2025-01-01 17:33:04] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:33:04] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:33:07] Production.INFO: ==4027== Releasing lock... [2025-01-01 17:33:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:33:07] Production.INFO: 40.25 MB #Memory Used# [2025-01-01 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:34:05 [end_date_ymd] => 2025-01-01 17:34:05 [RateCDR] => 1 ) [2025-01-01 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 14:34:05' and `end` < '2025-01-01 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 17:34:20] Production.INFO: count ==1917 [2025-01-01 17:34:20] Production.ERROR: pbx CDR StartTime 2025-01-01 14:34:05 - End Time 2025-01-01 17:34:05 [2025-01-01 17:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152436', 'tblTempUsageDetail_20' ) start [2025-01-01 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152436', 'tblTempUsageDetail_20' ) end [2025-01-01 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152436', 'tblTempVendorCDR_20' ) start [2025-01-01 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152436', 'tblTempVendorCDR_20' ) end [2025-01-01 17:34:20] Production.INFO: ProcessCDR(1,14152436,1,1,2) [2025-01-01 17:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152436', 'tblTempUsageDetail_20' ) start [2025-01-01 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152436', 'tblTempUsageDetail_20' ) end [2025-01-01 17:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:34:26] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:34:26] Production.INFO: ==4162== Releasing lock... [2025-01-01 17:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:34:26] Production.INFO: 42.5 MB #Memory Used# [2025-01-01 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:35:05 [end_date_ymd] => 2025-01-01 17:35:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:35:05' and `end` < '2025-01-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-01-01 17:35:23] Production.INFO: count ==1924 [2025-01-01 17:35:23] Production.ERROR: pbx CDR StartTime 2025-01-01 14:35:05 - End Time 2025-01-01 17:35:05 [2025-01-01 17:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152441', 'tblTempUsageDetail_20' ) start [2025-01-01 17:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152441', 'tblTempUsageDetail_20' ) end [2025-01-01 17:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152441', 'tblTempVendorCDR_20' ) start [2025-01-01 17:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152441', 'tblTempVendorCDR_20' ) end [2025-01-01 17:35:24] Production.INFO: ProcessCDR(1,14152441,1,1,2) [2025-01-01 17:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152441', 'tblTempUsageDetail_20' ) start [2025-01-01 17:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152441', 'tblTempUsageDetail_20' ) end [2025-01-01 17:35:28] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:35:28] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:35:28] Production.INFO: ==4234== Releasing lock... [2025-01-01 17:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:35:28] Production.INFO: 42.5 MB #Memory Used# [2025-01-01 17:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:36:04 [end_date_ymd] => 2025-01-01 17:36:04 [RateCDR] => 1 ) [2025-01-01 17:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 14:36:04' and `end` < '2025-01-01 17:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 17:36:18] Production.INFO: count ==1925 [2025-01-01 17:36:19] Production.ERROR: pbx CDR StartTime 2025-01-01 14:36:04 - End Time 2025-01-01 17:36:04 [2025-01-01 17:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152446', 'tblTempUsageDetail_20' ) start [2025-01-01 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152446', 'tblTempUsageDetail_20' ) end [2025-01-01 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152446', 'tblTempVendorCDR_20' ) start [2025-01-01 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152446', 'tblTempVendorCDR_20' ) end [2025-01-01 17:36:19] Production.INFO: ProcessCDR(1,14152446,1,1,2) [2025-01-01 17:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152446', 'tblTempUsageDetail_20' ) start [2025-01-01 17:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152446', 'tblTempUsageDetail_20' ) end [2025-01-01 17:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:36:22] Production.INFO: ==4306== Releasing lock... [2025-01-01 17:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:36:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-01 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:37:05 [end_date_ymd] => 2025-01-01 17:37:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:37:05' and `end` < '2025-01-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-01-01 17:37:18] Production.INFO: count ==1913 [2025-01-01 17:37:19] Production.ERROR: pbx CDR StartTime 2025-01-01 14:37:05 - End Time 2025-01-01 17:37:05 [2025-01-01 17:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152451', 'tblTempUsageDetail_20' ) start [2025-01-01 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152451', 'tblTempUsageDetail_20' ) end [2025-01-01 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152451', 'tblTempVendorCDR_20' ) start [2025-01-01 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152451', 'tblTempVendorCDR_20' ) end [2025-01-01 17:37:19] Production.INFO: ProcessCDR(1,14152451,1,1,2) [2025-01-01 17:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152451', 'tblTempUsageDetail_20' ) start [2025-01-01 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152451', 'tblTempUsageDetail_20' ) end [2025-01-01 17:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:37:24] Production.INFO: ==4380== Releasing lock... [2025-01-01 17:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:37:24] Production.INFO: 42.75 MB #Memory Used# [2025-01-01 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:38:05 [end_date_ymd] => 2025-01-01 17:38:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:38:05' and `end` < '2025-01-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-01-01 17:38:18] Production.INFO: count ==1916 [2025-01-01 17:38:19] Production.ERROR: pbx CDR StartTime 2025-01-01 14:38:05 - End Time 2025-01-01 17:38:05 [2025-01-01 17:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152456', 'tblTempUsageDetail_20' ) start [2025-01-01 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152456', 'tblTempUsageDetail_20' ) end [2025-01-01 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152456', 'tblTempVendorCDR_20' ) start [2025-01-01 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152456', 'tblTempVendorCDR_20' ) end [2025-01-01 17:38:19] Production.INFO: ProcessCDR(1,14152456,1,1,2) [2025-01-01 17:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152456', 'tblTempUsageDetail_20' ) start [2025-01-01 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152456', 'tblTempUsageDetail_20' ) end [2025-01-01 17:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:38:23] Production.INFO: ==4449== Releasing lock... [2025-01-01 17:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:38:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-01 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:39:05 [end_date_ymd] => 2025-01-01 17:39:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:39:05' and `end` < '2025-01-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-01-01 17:39:18] Production.INFO: count ==1939 [2025-01-01 17:39:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:39:05 - End Time 2025-01-01 17:39:05 [2025-01-01 17:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152461', 'tblTempUsageDetail_20' ) start [2025-01-01 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152461', 'tblTempUsageDetail_20' ) end [2025-01-01 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152461', 'tblTempVendorCDR_20' ) start [2025-01-01 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152461', 'tblTempVendorCDR_20' ) end [2025-01-01 17:39:18] Production.INFO: ProcessCDR(1,14152461,1,1,2) [2025-01-01 17:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152461', 'tblTempUsageDetail_20' ) start [2025-01-01 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152461', 'tblTempUsageDetail_20' ) end [2025-01-01 17:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:39:23] Production.INFO: ==4519== Releasing lock... [2025-01-01 17:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:39:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-01 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:40:05 [end_date_ymd] => 2025-01-01 17:40:05 [RateCDR] => 1 ) [2025-01-01 17:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 14:40:05' and `end` < '2025-01-01 17:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 17:40:18] Production.INFO: count ==1937 [2025-01-01 17:40:19] Production.ERROR: pbx CDR StartTime 2025-01-01 14:40:05 - End Time 2025-01-01 17:40:05 [2025-01-01 17:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152467', 'tblTempUsageDetail_20' ) start [2025-01-01 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152467', 'tblTempUsageDetail_20' ) end [2025-01-01 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152467', 'tblTempVendorCDR_20' ) start [2025-01-01 17:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152467', 'tblTempVendorCDR_20' ) end [2025-01-01 17:40:19] Production.INFO: ProcessCDR(1,14152467,1,1,2) [2025-01-01 17:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152467', 'tblTempUsageDetail_20' ) start [2025-01-01 17:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152467', 'tblTempUsageDetail_20' ) end [2025-01-01 17:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:40:22] Production.INFO: ==4599== Releasing lock... [2025-01-01 17:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:40:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-01 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:41:05 [end_date_ymd] => 2025-01-01 17:41:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:41:05' and `end` < '2025-01-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-01-01 17:41:19] Production.INFO: count ==1978 [2025-01-01 17:41:20] Production.ERROR: pbx CDR StartTime 2025-01-01 14:41:05 - End Time 2025-01-01 17:41:05 [2025-01-01 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152472', 'tblTempUsageDetail_20' ) start [2025-01-01 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152472', 'tblTempUsageDetail_20' ) end [2025-01-01 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152472', 'tblTempVendorCDR_20' ) start [2025-01-01 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152472', 'tblTempVendorCDR_20' ) end [2025-01-01 17:41:20] Production.INFO: ProcessCDR(1,14152472,1,1,2) [2025-01-01 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152472', 'tblTempUsageDetail_20' ) start [2025-01-01 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152472', 'tblTempUsageDetail_20' ) end [2025-01-01 17:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:41:23] Production.INFO: ==4711== Releasing lock... [2025-01-01 17:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:41:23] Production.INFO: 43 MB #Memory Used# [2025-01-01 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:42:05 [end_date_ymd] => 2025-01-01 17:42:05 [RateCDR] => 1 ) [2025-01-01 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 14:42:05' and `end` < '2025-01-01 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 17:42:18] Production.INFO: count ==1992 [2025-01-01 17:42:19] Production.ERROR: pbx CDR StartTime 2025-01-01 14:42:05 - End Time 2025-01-01 17:42:05 [2025-01-01 17:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152477', 'tblTempUsageDetail_20' ) start [2025-01-01 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152477', 'tblTempUsageDetail_20' ) end [2025-01-01 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152477', 'tblTempVendorCDR_20' ) start [2025-01-01 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152477', 'tblTempVendorCDR_20' ) end [2025-01-01 17:42:19] Production.INFO: ProcessCDR(1,14152477,1,1,2) [2025-01-01 17:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152477', 'tblTempUsageDetail_20' ) start [2025-01-01 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152477', 'tblTempUsageDetail_20' ) end [2025-01-01 17:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:42:23] Production.INFO: ==4782== Releasing lock... [2025-01-01 17:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:42:23] Production.INFO: 43 MB #Memory Used# [2025-01-01 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:43:05 [end_date_ymd] => 2025-01-01 17:43:05 [RateCDR] => 1 ) [2025-01-01 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 14:43:05' and `end` < '2025-01-01 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 17:43:19] Production.INFO: count ==1992 [2025-01-01 17:43:20] Production.ERROR: pbx CDR StartTime 2025-01-01 14:43:05 - End Time 2025-01-01 17:43:05 [2025-01-01 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152482', 'tblTempUsageDetail_20' ) start [2025-01-01 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152482', 'tblTempUsageDetail_20' ) end [2025-01-01 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152482', 'tblTempVendorCDR_20' ) start [2025-01-01 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152482', 'tblTempVendorCDR_20' ) end [2025-01-01 17:43:20] Production.INFO: ProcessCDR(1,14152482,1,1,2) [2025-01-01 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152482', 'tblTempUsageDetail_20' ) start [2025-01-01 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152482', 'tblTempUsageDetail_20' ) end [2025-01-01 17:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:43:23] Production.INFO: ==4853== Releasing lock... [2025-01-01 17:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:43:23] Production.INFO: 43 MB #Memory Used# [2025-01-01 17:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:44:04 [end_date_ymd] => 2025-01-01 17:44:04 [RateCDR] => 1 ) [2025-01-01 17: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-01 14:44:04' and `end` < '2025-01-01 17: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-01-01 17:44:17] Production.INFO: count ==1994 [2025-01-01 17:44:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:44:04 - End Time 2025-01-01 17:44:04 [2025-01-01 17:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152487', 'tblTempUsageDetail_20' ) start [2025-01-01 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152487', 'tblTempUsageDetail_20' ) end [2025-01-01 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152487', 'tblTempVendorCDR_20' ) start [2025-01-01 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152487', 'tblTempVendorCDR_20' ) end [2025-01-01 17:44:18] Production.INFO: ProcessCDR(1,14152487,1,1,2) [2025-01-01 17:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152487', 'tblTempUsageDetail_20' ) start [2025-01-01 17:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152487', 'tblTempUsageDetail_20' ) end [2025-01-01 17:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:44:21] Production.INFO: ==4923== Releasing lock... [2025-01-01 17:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:44:21] Production.INFO: 43 MB #Memory Used# [2025-01-01 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:45:05 [end_date_ymd] => 2025-01-01 17:45:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:45:05' and `end` < '2025-01-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-01-01 17:45:17] Production.INFO: count ==1997 [2025-01-01 17:45:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:45:05 - End Time 2025-01-01 17:45:05 [2025-01-01 17:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152492', 'tblTempUsageDetail_20' ) start [2025-01-01 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152492', 'tblTempUsageDetail_20' ) end [2025-01-01 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152492', 'tblTempVendorCDR_20' ) start [2025-01-01 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152492', 'tblTempVendorCDR_20' ) end [2025-01-01 17:45:18] Production.INFO: ProcessCDR(1,14152492,1,1,2) [2025-01-01 17:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152492', 'tblTempUsageDetail_20' ) start [2025-01-01 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152492', 'tblTempUsageDetail_20' ) end [2025-01-01 17:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:45:22] Production.INFO: ==4994== Releasing lock... [2025-01-01 17:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:45:22] Production.INFO: 43 MB #Memory Used# [2025-01-01 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:46:05 [end_date_ymd] => 2025-01-01 17:46:05 [RateCDR] => 1 ) [2025-01-01 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 14:46:05' and `end` < '2025-01-01 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 17:46:18] Production.INFO: count ==1998 [2025-01-01 17:46:19] Production.ERROR: pbx CDR StartTime 2025-01-01 14:46:05 - End Time 2025-01-01 17:46:05 [2025-01-01 17:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152497', 'tblTempUsageDetail_20' ) start [2025-01-01 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152497', 'tblTempUsageDetail_20' ) end [2025-01-01 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152497', 'tblTempVendorCDR_20' ) start [2025-01-01 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152497', 'tblTempVendorCDR_20' ) end [2025-01-01 17:46:19] Production.INFO: ProcessCDR(1,14152497,1,1,2) [2025-01-01 17:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152497', 'tblTempUsageDetail_20' ) start [2025-01-01 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152497', 'tblTempUsageDetail_20' ) end [2025-01-01 17:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:46:23] Production.INFO: ==5064== Releasing lock... [2025-01-01 17:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:46:23] Production.INFO: 43 MB #Memory Used# [2025-01-01 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:47:05 [end_date_ymd] => 2025-01-01 17:47:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:47:05' and `end` < '2025-01-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-01-01 17:47:18] Production.INFO: count ==2000 [2025-01-01 17:47:19] Production.ERROR: pbx CDR StartTime 2025-01-01 14:47:05 - End Time 2025-01-01 17:47:05 [2025-01-01 17:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152502', 'tblTempUsageDetail_20' ) start [2025-01-01 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152502', 'tblTempUsageDetail_20' ) end [2025-01-01 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152502', 'tblTempVendorCDR_20' ) start [2025-01-01 17:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152502', 'tblTempVendorCDR_20' ) end [2025-01-01 17:47:19] Production.INFO: ProcessCDR(1,14152502,1,1,2) [2025-01-01 17:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152502', 'tblTempUsageDetail_20' ) start [2025-01-01 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152502', 'tblTempUsageDetail_20' ) end [2025-01-01 17:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:47:23] Production.INFO: ==5135== Releasing lock... [2025-01-01 17:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:47:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:48:05 [end_date_ymd] => 2025-01-01 17:48:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:48:05' and `end` < '2025-01-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-01-01 17:48:20] Production.INFO: count ==2000 [2025-01-01 17:48:20] Production.ERROR: pbx CDR StartTime 2025-01-01 14:48:05 - End Time 2025-01-01 17:48:05 [2025-01-01 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152507', 'tblTempUsageDetail_20' ) start [2025-01-01 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152507', 'tblTempUsageDetail_20' ) end [2025-01-01 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152507', 'tblTempVendorCDR_20' ) start [2025-01-01 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152507', 'tblTempVendorCDR_20' ) end [2025-01-01 17:48:20] Production.INFO: ProcessCDR(1,14152507,1,1,2) [2025-01-01 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152507', 'tblTempUsageDetail_20' ) start [2025-01-01 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152507', 'tblTempUsageDetail_20' ) end [2025-01-01 17:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:48:23] Production.INFO: ==5207== Releasing lock... [2025-01-01 17:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:48:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 17:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:49:04 [end_date_ymd] => 2025-01-01 17:49:04 [RateCDR] => 1 ) [2025-01-01 17: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-01-01 14:49:04' and `end` < '2025-01-01 17: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-01-01 17:49:17] Production.INFO: count ==2000 [2025-01-01 17:49:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:49:04 - End Time 2025-01-01 17:49:04 [2025-01-01 17:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152512', 'tblTempUsageDetail_20' ) start [2025-01-01 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152512', 'tblTempUsageDetail_20' ) end [2025-01-01 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152512', 'tblTempVendorCDR_20' ) start [2025-01-01 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152512', 'tblTempVendorCDR_20' ) end [2025-01-01 17:49:18] Production.INFO: ProcessCDR(1,14152512,1,1,2) [2025-01-01 17:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152512', 'tblTempUsageDetail_20' ) start [2025-01-01 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152512', 'tblTempUsageDetail_20' ) end [2025-01-01 17:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:49:22] Production.INFO: ==5276== Releasing lock... [2025-01-01 17:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:49:22] Production.INFO: 43 MB #Memory Used# [2025-01-01 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:50:06 [end_date_ymd] => 2025-01-01 17:50:06 [RateCDR] => 1 ) [2025-01-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-01-01 14:50:06' and `end` < '2025-01-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-01-01 17:50:20] Production.INFO: count ==2000 [2025-01-01 17:50:21] Production.ERROR: pbx CDR StartTime 2025-01-01 14:50:06 - End Time 2025-01-01 17:50:06 [2025-01-01 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152518', 'tblTempUsageDetail_20' ) start [2025-01-01 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152518', 'tblTempUsageDetail_20' ) end [2025-01-01 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152518', 'tblTempVendorCDR_20' ) start [2025-01-01 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152518', 'tblTempVendorCDR_20' ) end [2025-01-01 17:50:21] Production.INFO: ProcessCDR(1,14152518,1,1,2) [2025-01-01 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152518', 'tblTempUsageDetail_20' ) start [2025-01-01 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152518', 'tblTempUsageDetail_20' ) end [2025-01-01 17:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:50:24] Production.INFO: ==5351== Releasing lock... [2025-01-01 17:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:50:24] Production.INFO: 43 MB #Memory Used# [2025-01-01 17:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:51:04 [end_date_ymd] => 2025-01-01 17:51:04 [RateCDR] => 1 ) [2025-01-01 17: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-01-01 14:51:04' and `end` < '2025-01-01 17: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-01-01 17:51:17] Production.INFO: count ==1996 [2025-01-01 17:51:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:51:04 - End Time 2025-01-01 17:51:04 [2025-01-01 17:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152523', 'tblTempUsageDetail_20' ) start [2025-01-01 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152523', 'tblTempUsageDetail_20' ) end [2025-01-01 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152523', 'tblTempVendorCDR_20' ) start [2025-01-01 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152523', 'tblTempVendorCDR_20' ) end [2025-01-01 17:51:18] Production.INFO: ProcessCDR(1,14152523,1,1,2) [2025-01-01 17:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152523', 'tblTempUsageDetail_20' ) start [2025-01-01 17:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152523', 'tblTempUsageDetail_20' ) end [2025-01-01 17:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:51:21] Production.INFO: ==5423== Releasing lock... [2025-01-01 17:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:51:21] Production.INFO: 43 MB #Memory Used# [2025-01-01 17:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:52:04 [end_date_ymd] => 2025-01-01 17:52:04 [RateCDR] => 1 ) [2025-01-01 17:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 14:52:04' and `end` < '2025-01-01 17:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 17:52:17] Production.INFO: count ==1996 [2025-01-01 17:52:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:52:04 - End Time 2025-01-01 17:52:04 [2025-01-01 17:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152528', 'tblTempUsageDetail_20' ) start [2025-01-01 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152528', 'tblTempUsageDetail_20' ) end [2025-01-01 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152528', 'tblTempVendorCDR_20' ) start [2025-01-01 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152528', 'tblTempVendorCDR_20' ) end [2025-01-01 17:52:18] Production.INFO: ProcessCDR(1,14152528,1,1,2) [2025-01-01 17:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152528', 'tblTempUsageDetail_20' ) start [2025-01-01 17:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152528', 'tblTempUsageDetail_20' ) end [2025-01-01 17:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:52:21] Production.INFO: ==5493== Releasing lock... [2025-01-01 17:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:52:21] Production.INFO: 43 MB #Memory Used# [2025-01-01 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:53:05 [end_date_ymd] => 2025-01-01 17:53:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:53:05' and `end` < '2025-01-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-01-01 17:53:18] Production.INFO: count ==1997 [2025-01-01 17:53:19] Production.ERROR: pbx CDR StartTime 2025-01-01 14:53:05 - End Time 2025-01-01 17:53:05 [2025-01-01 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152533', 'tblTempUsageDetail_20' ) start [2025-01-01 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152533', 'tblTempUsageDetail_20' ) end [2025-01-01 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152533', 'tblTempVendorCDR_20' ) start [2025-01-01 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152533', 'tblTempVendorCDR_20' ) end [2025-01-01 17:53:19] Production.INFO: ProcessCDR(1,14152533,1,1,2) [2025-01-01 17:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152533', 'tblTempUsageDetail_20' ) start [2025-01-01 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152533', 'tblTempUsageDetail_20' ) end [2025-01-01 17:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:53:23] Production.INFO: ==5563== Releasing lock... [2025-01-01 17:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:53:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:54:05 [end_date_ymd] => 2025-01-01 17:54:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:54:05' and `end` < '2025-01-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-01-01 17:54:18] Production.INFO: count ==1997 [2025-01-01 17:54:19] Production.ERROR: pbx CDR StartTime 2025-01-01 14:54:05 - End Time 2025-01-01 17:54:05 [2025-01-01 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152538', 'tblTempUsageDetail_20' ) start [2025-01-01 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152538', 'tblTempUsageDetail_20' ) end [2025-01-01 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152538', 'tblTempVendorCDR_20' ) start [2025-01-01 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152538', 'tblTempVendorCDR_20' ) end [2025-01-01 17:54:19] Production.INFO: ProcessCDR(1,14152538,1,1,2) [2025-01-01 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152538', 'tblTempUsageDetail_20' ) start [2025-01-01 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152538', 'tblTempUsageDetail_20' ) end [2025-01-01 17:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:54:22] Production.INFO: ==5639== Releasing lock... [2025-01-01 17:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:54:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:55:05 [end_date_ymd] => 2025-01-01 17:55:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:55:05' and `end` < '2025-01-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-01-01 17:55:18] Production.INFO: count ==1997 [2025-01-01 17:55:19] Production.ERROR: pbx CDR StartTime 2025-01-01 14:55:05 - End Time 2025-01-01 17:55:05 [2025-01-01 17:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152543', 'tblTempUsageDetail_20' ) start [2025-01-01 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152543', 'tblTempUsageDetail_20' ) end [2025-01-01 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152543', 'tblTempVendorCDR_20' ) start [2025-01-01 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152543', 'tblTempVendorCDR_20' ) end [2025-01-01 17:55:19] Production.INFO: ProcessCDR(1,14152543,1,1,2) [2025-01-01 17:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152543', 'tblTempUsageDetail_20' ) start [2025-01-01 17:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152543', 'tblTempUsageDetail_20' ) end [2025-01-01 17:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:55:22] Production.INFO: ==5712== Releasing lock... [2025-01-01 17:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:55:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 17:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:56:04 [end_date_ymd] => 2025-01-01 17:56:04 [RateCDR] => 1 ) [2025-01-01 17: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-01-01 14:56:04' and `end` < '2025-01-01 17: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-01-01 17:56:18] Production.INFO: count ==1998 [2025-01-01 17:56:19] Production.ERROR: pbx CDR StartTime 2025-01-01 14:56:04 - End Time 2025-01-01 17:56:04 [2025-01-01 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152548', 'tblTempUsageDetail_20' ) start [2025-01-01 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152548', 'tblTempUsageDetail_20' ) end [2025-01-01 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152548', 'tblTempVendorCDR_20' ) start [2025-01-01 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152548', 'tblTempVendorCDR_20' ) end [2025-01-01 17:56:19] Production.INFO: ProcessCDR(1,14152548,1,1,2) [2025-01-01 17:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152548', 'tblTempUsageDetail_20' ) start [2025-01-01 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152548', 'tblTempUsageDetail_20' ) end [2025-01-01 17:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:56:22] Production.INFO: ==5822== Releasing lock... [2025-01-01 17:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:56:22] Production.INFO: 43 MB #Memory Used# [2025-01-01 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:57:05 [end_date_ymd] => 2025-01-01 17:57:05 [RateCDR] => 1 ) [2025-01-01 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 14:57:05' and `end` < '2025-01-01 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 17:57:18] Production.INFO: count ==2002 [2025-01-01 17:57:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:57:05 - End Time 2025-01-01 17:57:05 [2025-01-01 17:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152553', 'tblTempUsageDetail_20' ) start [2025-01-01 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152553', 'tblTempUsageDetail_20' ) end [2025-01-01 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152553', 'tblTempVendorCDR_20' ) start [2025-01-01 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152553', 'tblTempVendorCDR_20' ) end [2025-01-01 17:57:18] Production.INFO: ProcessCDR(1,14152553,1,1,2) [2025-01-01 17:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152553', 'tblTempUsageDetail_20' ) start [2025-01-01 17:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152553', 'tblTempUsageDetail_20' ) end [2025-01-01 17:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:57:21] Production.INFO: ==5894== Releasing lock... [2025-01-01 17:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:57:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:58:05 [end_date_ymd] => 2025-01-01 17:58:05 [RateCDR] => 1 ) [2025-01-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-01-01 14:58:05' and `end` < '2025-01-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-01-01 17:58:18] Production.INFO: count ==2003 [2025-01-01 17:58:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:58:05 - End Time 2025-01-01 17:58:05 [2025-01-01 17:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152558', 'tblTempUsageDetail_20' ) start [2025-01-01 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152558', 'tblTempUsageDetail_20' ) end [2025-01-01 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152558', 'tblTempVendorCDR_20' ) start [2025-01-01 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152558', 'tblTempVendorCDR_20' ) end [2025-01-01 17:58:19] Production.INFO: ProcessCDR(1,14152558,1,1,2) [2025-01-01 17:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152558', 'tblTempUsageDetail_20' ) start [2025-01-01 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152558', 'tblTempUsageDetail_20' ) end [2025-01-01 17:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:58:22] Production.INFO: ==5964== Releasing lock... [2025-01-01 17:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:58:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 17:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 14:59:04 [end_date_ymd] => 2025-01-01 17:59:04 [RateCDR] => 1 ) [2025-01-01 17: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-01-01 14:59:04' and `end` < '2025-01-01 17: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-01-01 17:59:18] Production.INFO: count ==2006 [2025-01-01 17:59:18] Production.ERROR: pbx CDR StartTime 2025-01-01 14:59:04 - End Time 2025-01-01 17:59:04 [2025-01-01 17:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152563', 'tblTempUsageDetail_20' ) start [2025-01-01 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152563', 'tblTempUsageDetail_20' ) end [2025-01-01 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152563', 'tblTempVendorCDR_20' ) start [2025-01-01 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152563', 'tblTempVendorCDR_20' ) end [2025-01-01 17:59:18] Production.INFO: ProcessCDR(1,14152563,1,1,2) [2025-01-01 17:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 17:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152563', 'tblTempUsageDetail_20' ) start [2025-01-01 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152563', 'tblTempUsageDetail_20' ) end [2025-01-01 17:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 17:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 17:59:22] Production.INFO: ==6033== Releasing lock... [2025-01-01 17:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 17:59:22] Production.INFO: 43 MB #Memory Used# [2025-01-01 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:00:06 [end_date_ymd] => 2025-01-01 18:00:06 [RateCDR] => 1 ) [2025-01-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-01-01 15:00:06' and `end` < '2025-01-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-01-01 18:00:19] Production.INFO: count ==2006 [2025-01-01 18:00:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:00:06 - End Time 2025-01-01 18:00:06 [2025-01-01 18:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152568', 'tblTempUsageDetail_20' ) start [2025-01-01 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152568', 'tblTempUsageDetail_20' ) end [2025-01-01 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152568', 'tblTempVendorCDR_20' ) start [2025-01-01 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152568', 'tblTempVendorCDR_20' ) end [2025-01-01 18:00:19] Production.INFO: ProcessCDR(1,14152568,1,1,2) [2025-01-01 18:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152568', 'tblTempUsageDetail_20' ) start [2025-01-01 18:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152568', 'tblTempUsageDetail_20' ) end [2025-01-01 18:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:00:22] Production.INFO: ==6105== Releasing lock... [2025-01-01 18:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:00:22] Production.INFO: 43 MB #Memory Used# [2025-01-01 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:01:05 [end_date_ymd] => 2025-01-01 18:01:05 [RateCDR] => 1 ) [2025-01-01 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 15:01:05' and `end` < '2025-01-01 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 18:01:19] Production.INFO: count ==2026 [2025-01-01 18:01:20] Production.ERROR: pbx CDR StartTime 2025-01-01 15:01:05 - End Time 2025-01-01 18:01:05 [2025-01-01 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152574', 'tblTempUsageDetail_20' ) start [2025-01-01 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152574', 'tblTempUsageDetail_20' ) end [2025-01-01 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152574', 'tblTempVendorCDR_20' ) start [2025-01-01 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152574', 'tblTempVendorCDR_20' ) end [2025-01-01 18:01:20] Production.INFO: ProcessCDR(1,14152574,1,1,2) [2025-01-01 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152574', 'tblTempUsageDetail_20' ) start [2025-01-01 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152574', 'tblTempUsageDetail_20' ) end [2025-01-01 18:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:01:23] Production.INFO: ==6192== Releasing lock... [2025-01-01 18:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:01:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:02:06 [end_date_ymd] => 2025-01-01 18:02:06 [RateCDR] => 1 ) [2025-01-01 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 15:02:06' and `end` < '2025-01-01 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 18:02:19] Production.INFO: count ==2026 [2025-01-01 18:02:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:02:06 - End Time 2025-01-01 18:02:06 [2025-01-01 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152579', 'tblTempUsageDetail_20' ) start [2025-01-01 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152579', 'tblTempUsageDetail_20' ) end [2025-01-01 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152579', 'tblTempVendorCDR_20' ) start [2025-01-01 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152579', 'tblTempVendorCDR_20' ) end [2025-01-01 18:02:19] Production.INFO: ProcessCDR(1,14152579,1,1,2) [2025-01-01 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152579', 'tblTempUsageDetail_20' ) start [2025-01-01 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152579', 'tblTempUsageDetail_20' ) end [2025-01-01 18:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:02:22] Production.INFO: ==6264== Releasing lock... [2025-01-01 18:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:02:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:03:05 [end_date_ymd] => 2025-01-01 18:03:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:03:05' and `end` < '2025-01-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-01-01 18:03:18] Production.INFO: count ==2027 [2025-01-01 18:03:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:03:05 - End Time 2025-01-01 18:03:05 [2025-01-01 18:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152584', 'tblTempUsageDetail_20' ) start [2025-01-01 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152584', 'tblTempUsageDetail_20' ) end [2025-01-01 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152584', 'tblTempVendorCDR_20' ) start [2025-01-01 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152584', 'tblTempVendorCDR_20' ) end [2025-01-01 18:03:18] Production.INFO: ProcessCDR(1,14152584,1,1,2) [2025-01-01 18:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152584', 'tblTempUsageDetail_20' ) start [2025-01-01 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152584', 'tblTempUsageDetail_20' ) end [2025-01-01 18:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:03:23] Production.INFO: ==6339== Releasing lock... [2025-01-01 18:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:03:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:04:05 [end_date_ymd] => 2025-01-01 18:04:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:04:05' and `end` < '2025-01-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-01-01 18:04:17] Production.INFO: count ==2030 [2025-01-01 18:04:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:04:05 - End Time 2025-01-01 18:04:05 [2025-01-01 18:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152589', 'tblTempUsageDetail_20' ) start [2025-01-01 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152589', 'tblTempUsageDetail_20' ) end [2025-01-01 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152589', 'tblTempVendorCDR_20' ) start [2025-01-01 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152589', 'tblTempVendorCDR_20' ) end [2025-01-01 18:04:18] Production.INFO: ProcessCDR(1,14152589,1,1,2) [2025-01-01 18:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152589', 'tblTempUsageDetail_20' ) start [2025-01-01 18:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152589', 'tblTempUsageDetail_20' ) end [2025-01-01 18:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:04:21] Production.INFO: ==6411== Releasing lock... [2025-01-01 18:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:04:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:05:05 [end_date_ymd] => 2025-01-01 18:05:05 [RateCDR] => 1 ) [2025-01-01 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 15:05:05' and `end` < '2025-01-01 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 18:05:19] Production.INFO: count ==2034 [2025-01-01 18:05:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:05:05 - End Time 2025-01-01 18:05:05 [2025-01-01 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152594', 'tblTempUsageDetail_20' ) start [2025-01-01 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152594', 'tblTempUsageDetail_20' ) end [2025-01-01 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152594', 'tblTempVendorCDR_20' ) start [2025-01-01 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152594', 'tblTempVendorCDR_20' ) end [2025-01-01 18:05:19] Production.INFO: ProcessCDR(1,14152594,1,1,2) [2025-01-01 18:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152594', 'tblTempUsageDetail_20' ) start [2025-01-01 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152594', 'tblTempUsageDetail_20' ) end [2025-01-01 18:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:05:23] Production.INFO: ==6482== Releasing lock... [2025-01-01 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:05:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:06:04 [end_date_ymd] => 2025-01-01 18:06:04 [RateCDR] => 1 ) [2025-01-01 18:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 15:06:04' and `end` < '2025-01-01 18:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 18:06:17] Production.INFO: count ==2033 [2025-01-01 18:06:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:06:04 - End Time 2025-01-01 18:06:04 [2025-01-01 18:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152599', 'tblTempUsageDetail_20' ) start [2025-01-01 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152599', 'tblTempUsageDetail_20' ) end [2025-01-01 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152599', 'tblTempVendorCDR_20' ) start [2025-01-01 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152599', 'tblTempVendorCDR_20' ) end [2025-01-01 18:06:18] Production.INFO: ProcessCDR(1,14152599,1,1,2) [2025-01-01 18:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152599', 'tblTempUsageDetail_20' ) start [2025-01-01 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152599', 'tblTempUsageDetail_20' ) end [2025-01-01 18:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:06:23] Production.INFO: ==6552== Releasing lock... [2025-01-01 18:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:06:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:07:05 [end_date_ymd] => 2025-01-01 18:07:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:07:05' and `end` < '2025-01-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-01-01 18:07:18] Production.INFO: count ==2036 [2025-01-01 18:07:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:07:05 - End Time 2025-01-01 18:07:05 [2025-01-01 18:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152604', 'tblTempUsageDetail_20' ) start [2025-01-01 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152604', 'tblTempUsageDetail_20' ) end [2025-01-01 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152604', 'tblTempVendorCDR_20' ) start [2025-01-01 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152604', 'tblTempVendorCDR_20' ) end [2025-01-01 18:07:19] Production.INFO: ProcessCDR(1,14152604,1,1,2) [2025-01-01 18:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152604', 'tblTempUsageDetail_20' ) start [2025-01-01 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152604', 'tblTempUsageDetail_20' ) end [2025-01-01 18:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:07:23] Production.INFO: ==6624== Releasing lock... [2025-01-01 18:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:07:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:08:05 [end_date_ymd] => 2025-01-01 18:08:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:08:05' and `end` < '2025-01-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-01-01 18:08:19] Production.INFO: count ==2035 [2025-01-01 18:08:20] Production.ERROR: pbx CDR StartTime 2025-01-01 15:08:05 - End Time 2025-01-01 18:08:05 [2025-01-01 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152609', 'tblTempUsageDetail_20' ) start [2025-01-01 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152609', 'tblTempUsageDetail_20' ) end [2025-01-01 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152609', 'tblTempVendorCDR_20' ) start [2025-01-01 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152609', 'tblTempVendorCDR_20' ) end [2025-01-01 18:08:20] Production.INFO: ProcessCDR(1,14152609,1,1,2) [2025-01-01 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152609', 'tblTempUsageDetail_20' ) start [2025-01-01 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152609', 'tblTempUsageDetail_20' ) end [2025-01-01 18:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:08:23] Production.INFO: ==6701== Releasing lock... [2025-01-01 18:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:08:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:09:05 [end_date_ymd] => 2025-01-01 18:09:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:09:05' and `end` < '2025-01-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-01-01 18:09:18] Production.INFO: count ==2034 [2025-01-01 18:09:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:09:05 - End Time 2025-01-01 18:09:05 [2025-01-01 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152614', 'tblTempUsageDetail_20' ) start [2025-01-01 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152614', 'tblTempUsageDetail_20' ) end [2025-01-01 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152614', 'tblTempVendorCDR_20' ) start [2025-01-01 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152614', 'tblTempVendorCDR_20' ) end [2025-01-01 18:09:19] Production.INFO: ProcessCDR(1,14152614,1,1,2) [2025-01-01 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152614', 'tblTempUsageDetail_20' ) start [2025-01-01 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152614', 'tblTempUsageDetail_20' ) end [2025-01-01 18:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:09:22] Production.INFO: ==6775== Releasing lock... [2025-01-01 18:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:09:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:10:06 [end_date_ymd] => 2025-01-01 18:10:06 [RateCDR] => 1 ) [2025-01-01 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 15:10:06' and `end` < '2025-01-01 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 18:10:19] Production.INFO: count ==2034 [2025-01-01 18:10:20] Production.ERROR: pbx CDR StartTime 2025-01-01 15:10:06 - End Time 2025-01-01 18:10:06 [2025-01-01 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152620', 'tblTempUsageDetail_20' ) start [2025-01-01 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152620', 'tblTempUsageDetail_20' ) end [2025-01-01 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152620', 'tblTempVendorCDR_20' ) start [2025-01-01 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152620', 'tblTempVendorCDR_20' ) end [2025-01-01 18:10:20] Production.INFO: ProcessCDR(1,14152620,1,1,2) [2025-01-01 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152620', 'tblTempUsageDetail_20' ) start [2025-01-01 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152620', 'tblTempUsageDetail_20' ) end [2025-01-01 18:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:10:23] Production.INFO: ==6847== Releasing lock... [2025-01-01 18:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:10:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:11:04 [end_date_ymd] => 2025-01-01 18:11:04 [RateCDR] => 1 ) [2025-01-01 18:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 15:11:04' and `end` < '2025-01-01 18:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 18:11:17] Production.INFO: count ==2066 [2025-01-01 18:11:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:11:04 - End Time 2025-01-01 18:11:04 [2025-01-01 18:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152625', 'tblTempUsageDetail_20' ) start [2025-01-01 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152625', 'tblTempUsageDetail_20' ) end [2025-01-01 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152625', 'tblTempVendorCDR_20' ) start [2025-01-01 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152625', 'tblTempVendorCDR_20' ) end [2025-01-01 18:11:18] Production.INFO: ProcessCDR(1,14152625,1,1,2) [2025-01-01 18:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152625', 'tblTempUsageDetail_20' ) start [2025-01-01 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152625', 'tblTempUsageDetail_20' ) end [2025-01-01 18:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:11:23] Production.INFO: ==6920== Releasing lock... [2025-01-01 18:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:11:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:12:05 [end_date_ymd] => 2025-01-01 18:12:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:12:05' and `end` < '2025-01-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-01-01 18:12:19] Production.INFO: count ==2064 [2025-01-01 18:12:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:12:05 - End Time 2025-01-01 18:12:05 [2025-01-01 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152630', 'tblTempUsageDetail_20' ) start [2025-01-01 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152630', 'tblTempUsageDetail_20' ) end [2025-01-01 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152630', 'tblTempVendorCDR_20' ) start [2025-01-01 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152630', 'tblTempVendorCDR_20' ) end [2025-01-01 18:12:19] Production.INFO: ProcessCDR(1,14152630,1,1,2) [2025-01-01 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152630', 'tblTempUsageDetail_20' ) start [2025-01-01 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152630', 'tblTempUsageDetail_20' ) end [2025-01-01 18:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:12:23] Production.INFO: ==7033== Releasing lock... [2025-01-01 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:12:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 18:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:13:04 [end_date_ymd] => 2025-01-01 18:13:04 [RateCDR] => 1 ) [2025-01-01 18: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-01-01 15:13:04' and `end` < '2025-01-01 18: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-01-01 18:13:17] Production.INFO: count ==2064 [2025-01-01 18:13:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:13:04 - End Time 2025-01-01 18:13:04 [2025-01-01 18:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152635', 'tblTempUsageDetail_20' ) start [2025-01-01 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152635', 'tblTempUsageDetail_20' ) end [2025-01-01 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152635', 'tblTempVendorCDR_20' ) start [2025-01-01 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152635', 'tblTempVendorCDR_20' ) end [2025-01-01 18:13:18] Production.INFO: ProcessCDR(1,14152635,1,1,2) [2025-01-01 18:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152635', 'tblTempUsageDetail_20' ) start [2025-01-01 18:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152635', 'tblTempUsageDetail_20' ) end [2025-01-01 18:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:13:21] Production.INFO: ==7107== Releasing lock... [2025-01-01 18:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:13:21] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:14:06 [end_date_ymd] => 2025-01-01 18:14:06 [RateCDR] => 1 ) [2025-01-01 18: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-01-01 15:14:06' and `end` < '2025-01-01 18: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-01-01 18:14:20] Production.INFO: count ==2057 [2025-01-01 18:14:20] Production.ERROR: pbx CDR StartTime 2025-01-01 15:14:06 - End Time 2025-01-01 18:14:06 [2025-01-01 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152640', 'tblTempUsageDetail_20' ) start [2025-01-01 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152640', 'tblTempUsageDetail_20' ) end [2025-01-01 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152640', 'tblTempVendorCDR_20' ) start [2025-01-01 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152640', 'tblTempVendorCDR_20' ) end [2025-01-01 18:14:21] Production.INFO: ProcessCDR(1,14152640,1,1,2) [2025-01-01 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152640', 'tblTempUsageDetail_20' ) start [2025-01-01 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152640', 'tblTempUsageDetail_20' ) end [2025-01-01 18:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:14:24] Production.INFO: ==7185== Releasing lock... [2025-01-01 18:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:14:24] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 18:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:15:04 [end_date_ymd] => 2025-01-01 18:15:04 [RateCDR] => 1 ) [2025-01-01 18:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 15:15:04' and `end` < '2025-01-01 18:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 18:15:17] Production.INFO: count ==2051 [2025-01-01 18:15:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:15:04 - End Time 2025-01-01 18:15:04 [2025-01-01 18:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152645', 'tblTempUsageDetail_20' ) start [2025-01-01 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152645', 'tblTempUsageDetail_20' ) end [2025-01-01 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152645', 'tblTempVendorCDR_20' ) start [2025-01-01 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152645', 'tblTempVendorCDR_20' ) end [2025-01-01 18:15:18] Production.INFO: ProcessCDR(1,14152645,1,1,2) [2025-01-01 18:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152645', 'tblTempUsageDetail_20' ) start [2025-01-01 18:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152645', 'tblTempUsageDetail_20' ) end [2025-01-01 18:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:15:21] Production.INFO: ==7274== Releasing lock... [2025-01-01 18:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:15:21] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:16:05 [end_date_ymd] => 2025-01-01 18:16:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:16:05' and `end` < '2025-01-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-01-01 18:16:18] Production.INFO: count ==2043 [2025-01-01 18:16:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:16:05 - End Time 2025-01-01 18:16:05 [2025-01-01 18:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152650', 'tblTempUsageDetail_20' ) start [2025-01-01 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152650', 'tblTempUsageDetail_20' ) end [2025-01-01 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152650', 'tblTempVendorCDR_20' ) start [2025-01-01 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152650', 'tblTempVendorCDR_20' ) end [2025-01-01 18:16:18] Production.INFO: ProcessCDR(1,14152650,1,1,2) [2025-01-01 18:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152650', 'tblTempUsageDetail_20' ) start [2025-01-01 18:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152650', 'tblTempUsageDetail_20' ) end [2025-01-01 18:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:16:21] Production.INFO: ==7366== Releasing lock... [2025-01-01 18:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:16:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:17:06 [end_date_ymd] => 2025-01-01 18:17:06 [RateCDR] => 1 ) [2025-01-01 18:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 15:17:06' and `end` < '2025-01-01 18:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 18:17:20] Production.INFO: count ==2034 [2025-01-01 18:17:20] Production.ERROR: pbx CDR StartTime 2025-01-01 15:17:06 - End Time 2025-01-01 18:17:06 [2025-01-01 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152655', 'tblTempUsageDetail_20' ) start [2025-01-01 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152655', 'tblTempUsageDetail_20' ) end [2025-01-01 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152655', 'tblTempVendorCDR_20' ) start [2025-01-01 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152655', 'tblTempVendorCDR_20' ) end [2025-01-01 18:17:20] Production.INFO: ProcessCDR(1,14152655,1,1,2) [2025-01-01 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152655', 'tblTempUsageDetail_20' ) start [2025-01-01 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152655', 'tblTempUsageDetail_20' ) end [2025-01-01 18:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:17:23] Production.INFO: ==7474== Releasing lock... [2025-01-01 18:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:17:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:18:05 [end_date_ymd] => 2025-01-01 18:18:05 [RateCDR] => 1 ) [2025-01-01 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 15:18:05' and `end` < '2025-01-01 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 18:18:18] Production.INFO: count ==2025 [2025-01-01 18:18:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:18:05 - End Time 2025-01-01 18:18:05 [2025-01-01 18:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152660', 'tblTempUsageDetail_20' ) start [2025-01-01 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152660', 'tblTempUsageDetail_20' ) end [2025-01-01 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152660', 'tblTempVendorCDR_20' ) start [2025-01-01 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152660', 'tblTempVendorCDR_20' ) end [2025-01-01 18:18:19] Production.INFO: ProcessCDR(1,14152660,1,1,2) [2025-01-01 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152660', 'tblTempUsageDetail_20' ) start [2025-01-01 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152660', 'tblTempUsageDetail_20' ) end [2025-01-01 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:18:24] Production.INFO: ==7596== Releasing lock... [2025-01-01 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:18:24] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:19:05 [end_date_ymd] => 2025-01-01 18:19:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:19:05' and `end` < '2025-01-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-01-01 18:19:18] Production.INFO: count ==2016 [2025-01-01 18:19:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:19:05 - End Time 2025-01-01 18:19:05 [2025-01-01 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152665', 'tblTempUsageDetail_20' ) start [2025-01-01 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152665', 'tblTempUsageDetail_20' ) end [2025-01-01 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152665', 'tblTempVendorCDR_20' ) start [2025-01-01 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152665', 'tblTempVendorCDR_20' ) end [2025-01-01 18:19:19] Production.INFO: ProcessCDR(1,14152665,1,1,2) [2025-01-01 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152665', 'tblTempUsageDetail_20' ) start [2025-01-01 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152665', 'tblTempUsageDetail_20' ) end [2025-01-01 18:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:19:22] Production.INFO: ==7669== Releasing lock... [2025-01-01 18:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:19:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:20:05 [end_date_ymd] => 2025-01-01 18:20:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:20:05' and `end` < '2025-01-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-01-01 18:20:18] Production.INFO: count ==2020 [2025-01-01 18:20:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:20:05 - End Time 2025-01-01 18:20:05 [2025-01-01 18:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152671', 'tblTempUsageDetail_20' ) start [2025-01-01 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152671', 'tblTempUsageDetail_20' ) end [2025-01-01 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152671', 'tblTempVendorCDR_20' ) start [2025-01-01 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152671', 'tblTempVendorCDR_20' ) end [2025-01-01 18:20:19] Production.INFO: ProcessCDR(1,14152671,1,1,2) [2025-01-01 18:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152671', 'tblTempUsageDetail_20' ) start [2025-01-01 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152671', 'tblTempUsageDetail_20' ) end [2025-01-01 18:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:20:22] Production.INFO: ==7745== Releasing lock... [2025-01-01 18:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:20:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:21:05 [end_date_ymd] => 2025-01-01 18:21:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:21:05' and `end` < '2025-01-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-01-01 18:21:17] Production.INFO: count ==2035 [2025-01-01 18:21:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:21:05 - End Time 2025-01-01 18:21:05 [2025-01-01 18:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152676', 'tblTempUsageDetail_20' ) start [2025-01-01 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152676', 'tblTempUsageDetail_20' ) end [2025-01-01 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152676', 'tblTempVendorCDR_20' ) start [2025-01-01 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152676', 'tblTempVendorCDR_20' ) end [2025-01-01 18:21:18] Production.INFO: ProcessCDR(1,14152676,1,1,2) [2025-01-01 18:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152676', 'tblTempUsageDetail_20' ) start [2025-01-01 18:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152676', 'tblTempUsageDetail_20' ) end [2025-01-01 18:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:21:21] Production.INFO: ==7819== Releasing lock... [2025-01-01 18:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:21:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:22:05 [end_date_ymd] => 2025-01-01 18:22:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:22:05' and `end` < '2025-01-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-01-01 18:22:18] Production.INFO: count ==2034 [2025-01-01 18:22:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:22:05 - End Time 2025-01-01 18:22:05 [2025-01-01 18:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152681', 'tblTempUsageDetail_20' ) start [2025-01-01 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152681', 'tblTempUsageDetail_20' ) end [2025-01-01 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152681', 'tblTempVendorCDR_20' ) start [2025-01-01 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152681', 'tblTempVendorCDR_20' ) end [2025-01-01 18:22:18] Production.INFO: ProcessCDR(1,14152681,1,1,2) [2025-01-01 18:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152681', 'tblTempUsageDetail_20' ) start [2025-01-01 18:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152681', 'tblTempUsageDetail_20' ) end [2025-01-01 18:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:22:21] Production.INFO: ==7892== Releasing lock... [2025-01-01 18:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:22:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:23:05 [end_date_ymd] => 2025-01-01 18:23:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:23:05' and `end` < '2025-01-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-01-01 18:23:18] Production.INFO: count ==2028 [2025-01-01 18:23:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:23:05 - End Time 2025-01-01 18:23:05 [2025-01-01 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152686', 'tblTempUsageDetail_20' ) start [2025-01-01 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152686', 'tblTempUsageDetail_20' ) end [2025-01-01 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152686', 'tblTempVendorCDR_20' ) start [2025-01-01 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152686', 'tblTempVendorCDR_20' ) end [2025-01-01 18:23:19] Production.INFO: ProcessCDR(1,14152686,1,1,2) [2025-01-01 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152686', 'tblTempUsageDetail_20' ) start [2025-01-01 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152686', 'tblTempUsageDetail_20' ) end [2025-01-01 18:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:23:24] Production.INFO: ==7986== Releasing lock... [2025-01-01 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:23:24] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:24:05 [end_date_ymd] => 2025-01-01 18:24:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:24:05' and `end` < '2025-01-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-01-01 18:24:18] Production.INFO: count ==2029 [2025-01-01 18:24:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:24:05 - End Time 2025-01-01 18:24:05 [2025-01-01 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152691', 'tblTempUsageDetail_20' ) start [2025-01-01 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152691', 'tblTempUsageDetail_20' ) end [2025-01-01 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152691', 'tblTempVendorCDR_20' ) start [2025-01-01 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152691', 'tblTempVendorCDR_20' ) end [2025-01-01 18:24:19] Production.INFO: ProcessCDR(1,14152691,1,1,2) [2025-01-01 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152691', 'tblTempUsageDetail_20' ) start [2025-01-01 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152691', 'tblTempUsageDetail_20' ) end [2025-01-01 18:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:24:24] Production.INFO: ==8061== Releasing lock... [2025-01-01 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:24:24] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:25:06 [end_date_ymd] => 2025-01-01 18:25:06 [RateCDR] => 1 ) [2025-01-01 18: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-01-01 15:25:06' and `end` < '2025-01-01 18: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-01-01 18:25:19] Production.INFO: count ==2019 [2025-01-01 18:25:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:25:06 - End Time 2025-01-01 18:25:06 [2025-01-01 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152696', 'tblTempUsageDetail_20' ) start [2025-01-01 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152696', 'tblTempUsageDetail_20' ) end [2025-01-01 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152696', 'tblTempVendorCDR_20' ) start [2025-01-01 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152696', 'tblTempVendorCDR_20' ) end [2025-01-01 18:25:19] Production.INFO: ProcessCDR(1,14152696,1,1,2) [2025-01-01 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152696', 'tblTempUsageDetail_20' ) start [2025-01-01 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152696', 'tblTempUsageDetail_20' ) end [2025-01-01 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:25:24] Production.INFO: ==8135== Releasing lock... [2025-01-01 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:25:24] Production.INFO: 43 MB #Memory Used# [2025-01-01 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:26:05 [end_date_ymd] => 2025-01-01 18:26:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:26:05' and `end` < '2025-01-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-01-01 18:26:18] Production.INFO: count ==2017 [2025-01-01 18:26:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:26:05 - End Time 2025-01-01 18:26:05 [2025-01-01 18:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152701', 'tblTempUsageDetail_20' ) start [2025-01-01 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152701', 'tblTempUsageDetail_20' ) end [2025-01-01 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152701', 'tblTempVendorCDR_20' ) start [2025-01-01 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152701', 'tblTempVendorCDR_20' ) end [2025-01-01 18:26:18] Production.INFO: ProcessCDR(1,14152701,1,1,2) [2025-01-01 18:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152701', 'tblTempUsageDetail_20' ) start [2025-01-01 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152701', 'tblTempUsageDetail_20' ) end [2025-01-01 18:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:26:22] Production.INFO: ==8226== Releasing lock... [2025-01-01 18:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:26:22] Production.INFO: 43 MB #Memory Used# [2025-01-01 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:27:05 [end_date_ymd] => 2025-01-01 18:27:05 [RateCDR] => 1 ) [2025-01-01 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 15:27:05' and `end` < '2025-01-01 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 18:27:19] Production.INFO: count ==2009 [2025-01-01 18:27:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:27:05 - End Time 2025-01-01 18:27:05 [2025-01-01 18:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152706', 'tblTempUsageDetail_20' ) start [2025-01-01 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152706', 'tblTempUsageDetail_20' ) end [2025-01-01 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152706', 'tblTempVendorCDR_20' ) start [2025-01-01 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152706', 'tblTempVendorCDR_20' ) end [2025-01-01 18:27:19] Production.INFO: ProcessCDR(1,14152706,1,1,2) [2025-01-01 18:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152706', 'tblTempUsageDetail_20' ) start [2025-01-01 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152706', 'tblTempUsageDetail_20' ) end [2025-01-01 18:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:27:23] Production.INFO: ==8300== Releasing lock... [2025-01-01 18:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:27:23] Production.INFO: 43 MB #Memory Used# [2025-01-01 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:28:05 [end_date_ymd] => 2025-01-01 18:28:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:28:05' and `end` < '2025-01-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-01-01 18:28:18] Production.INFO: count ==2002 [2025-01-01 18:28:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:28:05 - End Time 2025-01-01 18:28:05 [2025-01-01 18:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152711', 'tblTempUsageDetail_20' ) start [2025-01-01 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152711', 'tblTempUsageDetail_20' ) end [2025-01-01 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152711', 'tblTempVendorCDR_20' ) start [2025-01-01 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152711', 'tblTempVendorCDR_20' ) end [2025-01-01 18:28:18] Production.INFO: ProcessCDR(1,14152711,1,1,2) [2025-01-01 18:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152711', 'tblTempUsageDetail_20' ) start [2025-01-01 18:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152711', 'tblTempUsageDetail_20' ) end [2025-01-01 18:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:28:21] Production.INFO: ==8411== Releasing lock... [2025-01-01 18:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:28:21] Production.INFO: 43 MB #Memory Used# [2025-01-01 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:29:05 [end_date_ymd] => 2025-01-01 18:29:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:29:05' and `end` < '2025-01-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-01-01 18:29:18] Production.INFO: count ==1983 [2025-01-01 18:29:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:29:05 - End Time 2025-01-01 18:29:05 [2025-01-01 18:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152716', 'tblTempUsageDetail_20' ) start [2025-01-01 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152716', 'tblTempUsageDetail_20' ) end [2025-01-01 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152716', 'tblTempVendorCDR_20' ) start [2025-01-01 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152716', 'tblTempVendorCDR_20' ) end [2025-01-01 18:29:18] Production.INFO: ProcessCDR(1,14152716,1,1,2) [2025-01-01 18:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152716', 'tblTempUsageDetail_20' ) start [2025-01-01 18:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152716', 'tblTempUsageDetail_20' ) end [2025-01-01 18:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:29:21] Production.INFO: ==8484== Releasing lock... [2025-01-01 18:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:29:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:30:05 [end_date_ymd] => 2025-01-01 18:30:05 [RateCDR] => 1 ) [2025-01-01 18: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-01-01 15:30:05' and `end` < '2025-01-01 18: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-01-01 18:30:18] Production.INFO: count ==1986 [2025-01-01 18:30:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:30:05 - End Time 2025-01-01 18:30:05 [2025-01-01 18:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152721', 'tblTempUsageDetail_20' ) start [2025-01-01 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152721', 'tblTempUsageDetail_20' ) end [2025-01-01 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152721', 'tblTempVendorCDR_20' ) start [2025-01-01 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152721', 'tblTempVendorCDR_20' ) end [2025-01-01 18:30:19] Production.INFO: ProcessCDR(1,14152721,1,1,2) [2025-01-01 18:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152721', 'tblTempUsageDetail_20' ) start [2025-01-01 18:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152721', 'tblTempUsageDetail_20' ) end [2025-01-01 18:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:30:23] Production.INFO: ==8563== Releasing lock... [2025-01-01 18:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:30:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:31:05 [end_date_ymd] => 2025-01-01 18:31:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:31:05' and `end` < '2025-01-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-01-01 18:31:19] Production.INFO: count ==1998 [2025-01-01 18:31:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:31:05 - End Time 2025-01-01 18:31:05 [2025-01-01 18:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152727', 'tblTempUsageDetail_20' ) start [2025-01-01 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152727', 'tblTempUsageDetail_20' ) end [2025-01-01 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152727', 'tblTempVendorCDR_20' ) start [2025-01-01 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152727', 'tblTempVendorCDR_20' ) end [2025-01-01 18:31:19] Production.INFO: ProcessCDR(1,14152727,1,1,2) [2025-01-01 18:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152727', 'tblTempUsageDetail_20' ) start [2025-01-01 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152727', 'tblTempUsageDetail_20' ) end [2025-01-01 18:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:31:22] Production.INFO: ==8637== Releasing lock... [2025-01-01 18:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:31:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:32:05 [end_date_ymd] => 2025-01-01 18:32:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:32:05' and `end` < '2025-01-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-01-01 18:32:18] Production.INFO: count ==1997 [2025-01-01 18:32:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:32:05 - End Time 2025-01-01 18:32:05 [2025-01-01 18:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152732', 'tblTempUsageDetail_20' ) start [2025-01-01 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152732', 'tblTempUsageDetail_20' ) end [2025-01-01 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152732', 'tblTempVendorCDR_20' ) start [2025-01-01 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152732', 'tblTempVendorCDR_20' ) end [2025-01-01 18:32:18] Production.INFO: ProcessCDR(1,14152732,1,1,2) [2025-01-01 18:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152732', 'tblTempUsageDetail_20' ) start [2025-01-01 18:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152732', 'tblTempUsageDetail_20' ) end [2025-01-01 18:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:32:21] Production.INFO: ==8726== Releasing lock... [2025-01-01 18:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:32:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:33:05 [end_date_ymd] => 2025-01-01 18:33:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:33:05' and `end` < '2025-01-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-01-01 18:33:18] Production.INFO: count ==1997 [2025-01-01 18:33:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:33:05 - End Time 2025-01-01 18:33:05 [2025-01-01 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152737', 'tblTempUsageDetail_20' ) start [2025-01-01 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152737', 'tblTempUsageDetail_20' ) end [2025-01-01 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152737', 'tblTempVendorCDR_20' ) start [2025-01-01 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152737', 'tblTempVendorCDR_20' ) end [2025-01-01 18:33:19] Production.INFO: ProcessCDR(1,14152737,1,1,2) [2025-01-01 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152737', 'tblTempUsageDetail_20' ) start [2025-01-01 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152737', 'tblTempUsageDetail_20' ) end [2025-01-01 18:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:33:22] Production.INFO: ==8838== Releasing lock... [2025-01-01 18:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:33:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:34:05 [end_date_ymd] => 2025-01-01 18:34:05 [RateCDR] => 1 ) [2025-01-01 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 15:34:05' and `end` < '2025-01-01 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 18:34:18] Production.INFO: count ==1997 [2025-01-01 18:34:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:34:05 - End Time 2025-01-01 18:34:05 [2025-01-01 18:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152742', 'tblTempUsageDetail_20' ) start [2025-01-01 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152742', 'tblTempUsageDetail_20' ) end [2025-01-01 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152742', 'tblTempVendorCDR_20' ) start [2025-01-01 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152742', 'tblTempVendorCDR_20' ) end [2025-01-01 18:34:18] Production.INFO: ProcessCDR(1,14152742,1,1,2) [2025-01-01 18:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152742', 'tblTempUsageDetail_20' ) start [2025-01-01 18:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152742', 'tblTempUsageDetail_20' ) end [2025-01-01 18:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:34:21] Production.INFO: ==8938== Releasing lock... [2025-01-01 18:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:34:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:35:05 [end_date_ymd] => 2025-01-01 18:35:05 [RateCDR] => 1 ) [2025-01-01 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 15:35:05' and `end` < '2025-01-01 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 18:35:19] Production.INFO: count ==1997 [2025-01-01 18:35:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:35:05 - End Time 2025-01-01 18:35:05 [2025-01-01 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152747', 'tblTempUsageDetail_20' ) start [2025-01-01 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152747', 'tblTempUsageDetail_20' ) end [2025-01-01 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152747', 'tblTempVendorCDR_20' ) start [2025-01-01 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152747', 'tblTempVendorCDR_20' ) end [2025-01-01 18:35:19] Production.INFO: ProcessCDR(1,14152747,1,1,2) [2025-01-01 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152747', 'tblTempUsageDetail_20' ) start [2025-01-01 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152747', 'tblTempUsageDetail_20' ) end [2025-01-01 18:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:35:22] Production.INFO: ==9012== Releasing lock... [2025-01-01 18:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:35:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:36:04 [end_date_ymd] => 2025-01-01 18:36:04 [RateCDR] => 1 ) [2025-01-01 18:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 15:36:04' and `end` < '2025-01-01 18:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 18:36:18] Production.INFO: count ==1987 [2025-01-01 18:36:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:36:04 - End Time 2025-01-01 18:36:04 [2025-01-01 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152752', 'tblTempUsageDetail_20' ) start [2025-01-01 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152752', 'tblTempUsageDetail_20' ) end [2025-01-01 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152752', 'tblTempVendorCDR_20' ) start [2025-01-01 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152752', 'tblTempVendorCDR_20' ) end [2025-01-01 18:36:19] Production.INFO: ProcessCDR(1,14152752,1,1,2) [2025-01-01 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152752', 'tblTempUsageDetail_20' ) start [2025-01-01 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152752', 'tblTempUsageDetail_20' ) end [2025-01-01 18:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:36:23] Production.INFO: ==9082== Releasing lock... [2025-01-01 18:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:36:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:37:05 [end_date_ymd] => 2025-01-01 18:37:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:37:05' and `end` < '2025-01-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-01-01 18:37:18] Production.INFO: count ==1979 [2025-01-01 18:37:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:37:05 - End Time 2025-01-01 18:37:05 [2025-01-01 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152757', 'tblTempUsageDetail_20' ) start [2025-01-01 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152757', 'tblTempUsageDetail_20' ) end [2025-01-01 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152757', 'tblTempVendorCDR_20' ) start [2025-01-01 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152757', 'tblTempVendorCDR_20' ) end [2025-01-01 18:37:19] Production.INFO: ProcessCDR(1,14152757,1,1,2) [2025-01-01 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152757', 'tblTempUsageDetail_20' ) start [2025-01-01 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152757', 'tblTempUsageDetail_20' ) end [2025-01-01 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:37:24] Production.INFO: ==9156== Releasing lock... [2025-01-01 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:37:24] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:38:05 [end_date_ymd] => 2025-01-01 18:38:05 [RateCDR] => 1 ) [2025-01-01 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 15:38:05' and `end` < '2025-01-01 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 18:38:18] Production.INFO: count ==1980 [2025-01-01 18:38:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:38:05 - End Time 2025-01-01 18:38:05 [2025-01-01 18:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152762', 'tblTempUsageDetail_20' ) start [2025-01-01 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152762', 'tblTempUsageDetail_20' ) end [2025-01-01 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152762', 'tblTempVendorCDR_20' ) start [2025-01-01 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152762', 'tblTempVendorCDR_20' ) end [2025-01-01 18:38:18] Production.INFO: ProcessCDR(1,14152762,1,1,2) [2025-01-01 18:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152762', 'tblTempUsageDetail_20' ) start [2025-01-01 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152762', 'tblTempUsageDetail_20' ) end [2025-01-01 18:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:38:22] Production.INFO: ==9227== Releasing lock... [2025-01-01 18:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:38:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:39:05 [end_date_ymd] => 2025-01-01 18:39:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:39:05' and `end` < '2025-01-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-01-01 18:39:18] Production.INFO: count ==1980 [2025-01-01 18:39:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:39:05 - End Time 2025-01-01 18:39:05 [2025-01-01 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152767', 'tblTempUsageDetail_20' ) start [2025-01-01 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152767', 'tblTempUsageDetail_20' ) end [2025-01-01 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152767', 'tblTempVendorCDR_20' ) start [2025-01-01 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152767', 'tblTempVendorCDR_20' ) end [2025-01-01 18:39:19] Production.INFO: ProcessCDR(1,14152767,1,1,2) [2025-01-01 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152767', 'tblTempUsageDetail_20' ) start [2025-01-01 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152767', 'tblTempUsageDetail_20' ) end [2025-01-01 18:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:39:22] Production.INFO: ==9301== Releasing lock... [2025-01-01 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:39:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:40:06 [end_date_ymd] => 2025-01-01 18:40:06 [RateCDR] => 1 ) [2025-01-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-01-01 15:40:06' and `end` < '2025-01-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-01-01 18:40:21] Production.INFO: count ==1980 [2025-01-01 18:40:21] Production.ERROR: pbx CDR StartTime 2025-01-01 15:40:06 - End Time 2025-01-01 18:40:06 [2025-01-01 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152773', 'tblTempUsageDetail_20' ) start [2025-01-01 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152773', 'tblTempUsageDetail_20' ) end [2025-01-01 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152773', 'tblTempVendorCDR_20' ) start [2025-01-01 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152773', 'tblTempVendorCDR_20' ) end [2025-01-01 18:40:21] Production.INFO: ProcessCDR(1,14152773,1,1,2) [2025-01-01 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152773', 'tblTempUsageDetail_20' ) start [2025-01-01 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152773', 'tblTempUsageDetail_20' ) end [2025-01-01 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:40:25] Production.INFO: ==9375== Releasing lock... [2025-01-01 18:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:40:25] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:41:05 [end_date_ymd] => 2025-01-01 18:41:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:41:05' and `end` < '2025-01-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-01-01 18:41:18] Production.INFO: count ==2010 [2025-01-01 18:41:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:41:05 - End Time 2025-01-01 18:41:05 [2025-01-01 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152778', 'tblTempUsageDetail_20' ) start [2025-01-01 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152778', 'tblTempUsageDetail_20' ) end [2025-01-01 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152778', 'tblTempVendorCDR_20' ) start [2025-01-01 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152778', 'tblTempVendorCDR_20' ) end [2025-01-01 18:41:19] Production.INFO: ProcessCDR(1,14152778,1,1,2) [2025-01-01 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152778', 'tblTempUsageDetail_20' ) start [2025-01-01 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152778', 'tblTempUsageDetail_20' ) end [2025-01-01 18:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:41:22] Production.INFO: ==9449== Releasing lock... [2025-01-01 18:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:41:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:42:04 [end_date_ymd] => 2025-01-01 18:42:04 [RateCDR] => 1 ) [2025-01-01 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 15:42:04' and `end` < '2025-01-01 18: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-01-01 18:42:18] Production.INFO: count ==2012 [2025-01-01 18:42:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:42:04 - End Time 2025-01-01 18:42:04 [2025-01-01 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152783', 'tblTempUsageDetail_20' ) start [2025-01-01 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152783', 'tblTempUsageDetail_20' ) end [2025-01-01 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152783', 'tblTempVendorCDR_20' ) start [2025-01-01 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152783', 'tblTempVendorCDR_20' ) end [2025-01-01 18:42:19] Production.INFO: ProcessCDR(1,14152783,1,1,2) [2025-01-01 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152783', 'tblTempUsageDetail_20' ) start [2025-01-01 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152783', 'tblTempUsageDetail_20' ) end [2025-01-01 18:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:42:22] Production.INFO: ==9518== Releasing lock... [2025-01-01 18:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:42:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:43:05 [end_date_ymd] => 2025-01-01 18:43:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:43:05' and `end` < '2025-01-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-01-01 18:43:18] Production.INFO: count ==2013 [2025-01-01 18:43:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:43:05 - End Time 2025-01-01 18:43:05 [2025-01-01 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152788', 'tblTempUsageDetail_20' ) start [2025-01-01 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152788', 'tblTempUsageDetail_20' ) end [2025-01-01 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152788', 'tblTempVendorCDR_20' ) start [2025-01-01 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152788', 'tblTempVendorCDR_20' ) end [2025-01-01 18:43:19] Production.INFO: ProcessCDR(1,14152788,1,1,2) [2025-01-01 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152788', 'tblTempUsageDetail_20' ) start [2025-01-01 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152788', 'tblTempUsageDetail_20' ) end [2025-01-01 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:43:23] Production.INFO: ==9590== Releasing lock... [2025-01-01 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:43:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:44:05 [end_date_ymd] => 2025-01-01 18:44:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:44:05' and `end` < '2025-01-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-01-01 18:44:18] Production.INFO: count ==2014 [2025-01-01 18:44:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:44:05 - End Time 2025-01-01 18:44:05 [2025-01-01 18:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152791', 'tblTempUsageDetail_20' ) start [2025-01-01 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152791', 'tblTempUsageDetail_20' ) end [2025-01-01 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152791', 'tblTempVendorCDR_20' ) start [2025-01-01 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152791', 'tblTempVendorCDR_20' ) end [2025-01-01 18:44:18] Production.INFO: ProcessCDR(1,14152791,1,1,2) [2025-01-01 18:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152791', 'tblTempUsageDetail_20' ) start [2025-01-01 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152791', 'tblTempUsageDetail_20' ) end [2025-01-01 18:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:44:23] Production.INFO: ==9702== Releasing lock... [2025-01-01 18:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:44:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:45:05 [end_date_ymd] => 2025-01-01 18:45:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:45:05' and `end` < '2025-01-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-01-01 18:45:18] Production.INFO: count ==2014 [2025-01-01 18:45:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:45:05 - End Time 2025-01-01 18:45:05 [2025-01-01 18:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152798', 'tblTempUsageDetail_20' ) start [2025-01-01 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152798', 'tblTempUsageDetail_20' ) end [2025-01-01 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152798', 'tblTempVendorCDR_20' ) start [2025-01-01 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152798', 'tblTempVendorCDR_20' ) end [2025-01-01 18:45:18] Production.INFO: ProcessCDR(1,14152798,1,1,2) [2025-01-01 18:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152798', 'tblTempUsageDetail_20' ) start [2025-01-01 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152798', 'tblTempUsageDetail_20' ) end [2025-01-01 18:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:45:22] Production.INFO: ==9776== Releasing lock... [2025-01-01 18:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:45:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 18:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:46:06 [end_date_ymd] => 2025-01-01 18:46:06 [RateCDR] => 1 ) [2025-01-01 18: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-01-01 15:46:06' and `end` < '2025-01-01 18: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-01-01 18:46:19] Production.INFO: count ==2014 [2025-01-01 18:46:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:46:06 - End Time 2025-01-01 18:46:06 [2025-01-01 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152803', 'tblTempUsageDetail_20' ) start [2025-01-01 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152803', 'tblTempUsageDetail_20' ) end [2025-01-01 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152803', 'tblTempVendorCDR_20' ) start [2025-01-01 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152803', 'tblTempVendorCDR_20' ) end [2025-01-01 18:46:19] Production.INFO: ProcessCDR(1,14152803,1,1,2) [2025-01-01 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152803', 'tblTempUsageDetail_20' ) start [2025-01-01 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152803', 'tblTempUsageDetail_20' ) end [2025-01-01 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:46:23] Production.INFO: ==9846== Releasing lock... [2025-01-01 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:46:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-01 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:47:05 [end_date_ymd] => 2025-01-01 18:47:05 [RateCDR] => 1 ) [2025-01-01 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 15:47:05' and `end` < '2025-01-01 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 18:47:18] Production.INFO: count ==2014 [2025-01-01 18:47:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:47:05 - End Time 2025-01-01 18:47:05 [2025-01-01 18:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152808', 'tblTempUsageDetail_20' ) start [2025-01-01 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152808', 'tblTempUsageDetail_20' ) end [2025-01-01 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152808', 'tblTempVendorCDR_20' ) start [2025-01-01 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152808', 'tblTempVendorCDR_20' ) end [2025-01-01 18:47:18] Production.INFO: ProcessCDR(1,14152808,1,1,2) [2025-01-01 18:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152808', 'tblTempUsageDetail_20' ) start [2025-01-01 18:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152808', 'tblTempUsageDetail_20' ) end [2025-01-01 18:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:47:21] Production.INFO: ==9916== Releasing lock... [2025-01-01 18:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:47:21] Production.INFO: 43.75 MB #Memory Used# [2025-01-01 18:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:48:06 [end_date_ymd] => 2025-01-01 18:48:06 [RateCDR] => 1 ) [2025-01-01 18:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 15:48:06' and `end` < '2025-01-01 18:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 18:48:18] Production.INFO: count ==2017 [2025-01-01 18:48:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:48:06 - End Time 2025-01-01 18:48:06 [2025-01-01 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152813', 'tblTempUsageDetail_20' ) start [2025-01-01 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152813', 'tblTempUsageDetail_20' ) end [2025-01-01 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152813', 'tblTempVendorCDR_20' ) start [2025-01-01 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152813', 'tblTempVendorCDR_20' ) end [2025-01-01 18:48:19] Production.INFO: ProcessCDR(1,14152813,1,1,2) [2025-01-01 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152813', 'tblTempUsageDetail_20' ) start [2025-01-01 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152813', 'tblTempUsageDetail_20' ) end [2025-01-01 18:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:48:22] Production.INFO: ==9986== Releasing lock... [2025-01-01 18:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:48:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 18:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:49:04 [end_date_ymd] => 2025-01-01 18:49:04 [RateCDR] => 1 ) [2025-01-01 18: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-01-01 15:49:04' and `end` < '2025-01-01 18: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-01-01 18:49:18] Production.INFO: count ==2015 [2025-01-01 18:49:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:49:04 - End Time 2025-01-01 18:49:04 [2025-01-01 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152818', 'tblTempUsageDetail_20' ) start [2025-01-01 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152818', 'tblTempUsageDetail_20' ) end [2025-01-01 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152818', 'tblTempVendorCDR_20' ) start [2025-01-01 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152818', 'tblTempVendorCDR_20' ) end [2025-01-01 18:49:19] Production.INFO: ProcessCDR(1,14152818,1,1,2) [2025-01-01 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152818', 'tblTempUsageDetail_20' ) start [2025-01-01 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152818', 'tblTempUsageDetail_20' ) end [2025-01-01 18:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:49:22] Production.INFO: ==10057== Releasing lock... [2025-01-01 18:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:49:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-01 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:50:06 [end_date_ymd] => 2025-01-01 18:50:06 [RateCDR] => 1 ) [2025-01-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-01-01 15:50:06' and `end` < '2025-01-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-01-01 18:50:19] Production.INFO: count ==2002 [2025-01-01 18:50:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:50:06 - End Time 2025-01-01 18:50:06 [2025-01-01 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152824', 'tblTempUsageDetail_20' ) start [2025-01-01 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152824', 'tblTempUsageDetail_20' ) end [2025-01-01 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152824', 'tblTempVendorCDR_20' ) start [2025-01-01 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152824', 'tblTempVendorCDR_20' ) end [2025-01-01 18:50:19] Production.INFO: ProcessCDR(1,14152824,1,1,2) [2025-01-01 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152824', 'tblTempUsageDetail_20' ) start [2025-01-01 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152824', 'tblTempUsageDetail_20' ) end [2025-01-01 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:50:24] Production.INFO: ==10130== Releasing lock... [2025-01-01 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:50:24] Production.INFO: 43.75 MB #Memory Used# [2025-01-01 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:51:05 [end_date_ymd] => 2025-01-01 18:51:05 [RateCDR] => 1 ) [2025-01-01 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 15:51:05' and `end` < '2025-01-01 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 18:51:17] Production.INFO: count ==2012 [2025-01-01 18:51:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:51:05 - End Time 2025-01-01 18:51:05 [2025-01-01 18:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152829', 'tblTempUsageDetail_20' ) start [2025-01-01 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152829', 'tblTempUsageDetail_20' ) end [2025-01-01 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152829', 'tblTempVendorCDR_20' ) start [2025-01-01 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152829', 'tblTempVendorCDR_20' ) end [2025-01-01 18:51:18] Production.INFO: ProcessCDR(1,14152829,1,1,2) [2025-01-01 18:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152829', 'tblTempUsageDetail_20' ) start [2025-01-01 18:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152829', 'tblTempUsageDetail_20' ) end [2025-01-01 18:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:51:21] Production.INFO: ==10207== Releasing lock... [2025-01-01 18:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:51:21] Production.INFO: 43.75 MB #Memory Used# [2025-01-01 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:52:05 [end_date_ymd] => 2025-01-01 18:52:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:52:05' and `end` < '2025-01-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-01-01 18:52:19] Production.INFO: count ==2009 [2025-01-01 18:52:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:52:05 - End Time 2025-01-01 18:52:05 [2025-01-01 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152834', 'tblTempUsageDetail_20' ) start [2025-01-01 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152834', 'tblTempUsageDetail_20' ) end [2025-01-01 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152834', 'tblTempVendorCDR_20' ) start [2025-01-01 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152834', 'tblTempVendorCDR_20' ) end [2025-01-01 18:52:19] Production.INFO: ProcessCDR(1,14152834,1,1,2) [2025-01-01 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152834', 'tblTempUsageDetail_20' ) start [2025-01-01 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152834', 'tblTempUsageDetail_20' ) end [2025-01-01 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:52:24] Production.INFO: ==10283== Releasing lock... [2025-01-01 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:52:24] Production.INFO: 43.75 MB #Memory Used# [2025-01-01 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:53:05 [end_date_ymd] => 2025-01-01 18:53:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:53:05' and `end` < '2025-01-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-01-01 18:53:17] Production.INFO: count ==2006 [2025-01-01 18:53:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:53:05 - End Time 2025-01-01 18:53:05 [2025-01-01 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152839', 'tblTempUsageDetail_20' ) start [2025-01-01 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152839', 'tblTempUsageDetail_20' ) end [2025-01-01 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152839', 'tblTempVendorCDR_20' ) start [2025-01-01 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152839', 'tblTempVendorCDR_20' ) end [2025-01-01 18:53:18] Production.INFO: ProcessCDR(1,14152839,1,1,2) [2025-01-01 18:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152839', 'tblTempUsageDetail_20' ) start [2025-01-01 18:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152839', 'tblTempUsageDetail_20' ) end [2025-01-01 18:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:53:21] Production.INFO: ==10352== Releasing lock... [2025-01-01 18:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:53:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:54:05 [end_date_ymd] => 2025-01-01 18:54:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:54:05' and `end` < '2025-01-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-01-01 18:54:20] Production.INFO: count ==2011 [2025-01-01 18:54:21] Production.ERROR: pbx CDR StartTime 2025-01-01 15:54:05 - End Time 2025-01-01 18:54:05 [2025-01-01 18:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152844', 'tblTempUsageDetail_20' ) start [2025-01-01 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152844', 'tblTempUsageDetail_20' ) end [2025-01-01 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152844', 'tblTempVendorCDR_20' ) start [2025-01-01 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152844', 'tblTempVendorCDR_20' ) end [2025-01-01 18:54:21] Production.INFO: ProcessCDR(1,14152844,1,1,2) [2025-01-01 18:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152844', 'tblTempUsageDetail_20' ) start [2025-01-01 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152844', 'tblTempUsageDetail_20' ) end [2025-01-01 18:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:54:24] Production.INFO: ==10423== Releasing lock... [2025-01-01 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:54:24] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:55:05 [end_date_ymd] => 2025-01-01 18:55:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:55:05' and `end` < '2025-01-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-01-01 18:55:18] Production.INFO: count ==2008 [2025-01-01 18:55:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:55:05 - End Time 2025-01-01 18:55:05 [2025-01-01 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152849', 'tblTempUsageDetail_20' ) start [2025-01-01 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152849', 'tblTempUsageDetail_20' ) end [2025-01-01 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152849', 'tblTempVendorCDR_20' ) start [2025-01-01 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152849', 'tblTempVendorCDR_20' ) end [2025-01-01 18:55:19] Production.INFO: ProcessCDR(1,14152849,1,1,2) [2025-01-01 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152849', 'tblTempUsageDetail_20' ) start [2025-01-01 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152849', 'tblTempUsageDetail_20' ) end [2025-01-01 18:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:55:22] Production.INFO: ==10495== Releasing lock... [2025-01-01 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:55:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-01 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:56:05 [end_date_ymd] => 2025-01-01 18:56:05 [RateCDR] => 1 ) [2025-01-01 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 15:56:05' and `end` < '2025-01-01 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 18:56:19] Production.INFO: count ==2010 [2025-01-01 18:56:19] Production.ERROR: pbx CDR StartTime 2025-01-01 15:56:05 - End Time 2025-01-01 18:56:05 [2025-01-01 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152854', 'tblTempUsageDetail_20' ) start [2025-01-01 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152854', 'tblTempUsageDetail_20' ) end [2025-01-01 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152854', 'tblTempVendorCDR_20' ) start [2025-01-01 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152854', 'tblTempVendorCDR_20' ) end [2025-01-01 18:56:19] Production.INFO: ProcessCDR(1,14152854,1,1,2) [2025-01-01 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152854', 'tblTempUsageDetail_20' ) start [2025-01-01 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152854', 'tblTempUsageDetail_20' ) end [2025-01-01 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:56:23] Production.INFO: ==10573== Releasing lock... [2025-01-01 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:56:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:57:05 [end_date_ymd] => 2025-01-01 18:57:05 [RateCDR] => 1 ) [2025-01-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-01-01 15:57:05' and `end` < '2025-01-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-01-01 18:57:18] Production.INFO: count ==2015 [2025-01-01 18:57:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:57:05 - End Time 2025-01-01 18:57:05 [2025-01-01 18:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152859', 'tblTempUsageDetail_20' ) start [2025-01-01 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152859', 'tblTempUsageDetail_20' ) end [2025-01-01 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152859', 'tblTempVendorCDR_20' ) start [2025-01-01 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152859', 'tblTempVendorCDR_20' ) end [2025-01-01 18:57:18] Production.INFO: ProcessCDR(1,14152859,1,1,2) [2025-01-01 18:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152859', 'tblTempUsageDetail_20' ) start [2025-01-01 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152859', 'tblTempUsageDetail_20' ) end [2025-01-01 18:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:57:22] Production.INFO: ==10645== Releasing lock... [2025-01-01 18:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:57:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:58:05 [end_date_ymd] => 2025-01-01 18:58:05 [RateCDR] => 1 ) [2025-01-01 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 15:58:05' and `end` < '2025-01-01 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 18:58:18] Production.INFO: count ==2015 [2025-01-01 18:58:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:58:05 - End Time 2025-01-01 18:58:05 [2025-01-01 18:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152864', 'tblTempUsageDetail_20' ) start [2025-01-01 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152864', 'tblTempUsageDetail_20' ) end [2025-01-01 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152864', 'tblTempVendorCDR_20' ) start [2025-01-01 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152864', 'tblTempVendorCDR_20' ) end [2025-01-01 18:58:18] Production.INFO: ProcessCDR(1,14152864,1,1,2) [2025-01-01 18:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152864', 'tblTempUsageDetail_20' ) start [2025-01-01 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152864', 'tblTempUsageDetail_20' ) end [2025-01-01 18:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:58:23] Production.INFO: ==10719== Releasing lock... [2025-01-01 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:58:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 18:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 15:59:04 [end_date_ymd] => 2025-01-01 18:59:04 [RateCDR] => 1 ) [2025-01-01 18: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-01-01 15:59:04' and `end` < '2025-01-01 18: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-01-01 18:59:18] Production.INFO: count ==2011 [2025-01-01 18:59:18] Production.ERROR: pbx CDR StartTime 2025-01-01 15:59:04 - End Time 2025-01-01 18:59:04 [2025-01-01 18:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152869', 'tblTempUsageDetail_20' ) start [2025-01-01 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152869', 'tblTempUsageDetail_20' ) end [2025-01-01 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152869', 'tblTempVendorCDR_20' ) start [2025-01-01 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152869', 'tblTempVendorCDR_20' ) end [2025-01-01 18:59:18] Production.INFO: ProcessCDR(1,14152869,1,1,2) [2025-01-01 18:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152869', 'tblTempUsageDetail_20' ) start [2025-01-01 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152869', 'tblTempUsageDetail_20' ) end [2025-01-01 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 18:59:23] Production.INFO: ==10829== Releasing lock... [2025-01-01 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 18:59:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:00:06 [end_date_ymd] => 2025-01-01 19:00:06 [RateCDR] => 1 ) [2025-01-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-01-01 16:00:06' and `end` < '2025-01-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-01-01 19:00:19] Production.INFO: count ==2011 [2025-01-01 19:00:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:00:06 - End Time 2025-01-01 19:00:06 [2025-01-01 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152875', 'tblTempUsageDetail_20' ) start [2025-01-01 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152875', 'tblTempUsageDetail_20' ) end [2025-01-01 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152875', 'tblTempVendorCDR_20' ) start [2025-01-01 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152875', 'tblTempVendorCDR_20' ) end [2025-01-01 19:00:19] Production.INFO: ProcessCDR(1,14152875,1,1,2) [2025-01-01 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152875', 'tblTempUsageDetail_20' ) start [2025-01-01 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152875', 'tblTempUsageDetail_20' ) end [2025-01-01 19:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:00:22] Production.INFO: ==10900== Releasing lock... [2025-01-01 19:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:00:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:01:05 [end_date_ymd] => 2025-01-01 19:01:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:01:05' and `end` < '2025-01-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-01-01 19:01:18] Production.INFO: count ==1991 [2025-01-01 19:01:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:01:05 - End Time 2025-01-01 19:01:05 [2025-01-01 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152880', 'tblTempUsageDetail_20' ) start [2025-01-01 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152880', 'tblTempUsageDetail_20' ) end [2025-01-01 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152880', 'tblTempVendorCDR_20' ) start [2025-01-01 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152880', 'tblTempVendorCDR_20' ) end [2025-01-01 19:01:19] Production.INFO: ProcessCDR(1,14152880,1,1,2) [2025-01-01 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152880', 'tblTempUsageDetail_20' ) start [2025-01-01 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152880', 'tblTempUsageDetail_20' ) end [2025-01-01 19:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:01:22] Production.INFO: ==11064== Releasing lock... [2025-01-01 19:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:01:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-01 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:02:05 [end_date_ymd] => 2025-01-01 19:02:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:02:05' and `end` < '2025-01-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-01-01 19:02:18] Production.INFO: count ==1992 [2025-01-01 19:02:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:02:05 - End Time 2025-01-01 19:02:05 [2025-01-01 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152885', 'tblTempUsageDetail_20' ) start [2025-01-01 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152885', 'tblTempUsageDetail_20' ) end [2025-01-01 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152885', 'tblTempVendorCDR_20' ) start [2025-01-01 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152885', 'tblTempVendorCDR_20' ) end [2025-01-01 19:02:19] Production.INFO: ProcessCDR(1,14152885,1,1,2) [2025-01-01 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152885', 'tblTempUsageDetail_20' ) start [2025-01-01 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152885', 'tblTempUsageDetail_20' ) end [2025-01-01 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:02:24] Production.INFO: ==11135== Releasing lock... [2025-01-01 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:02:24] Production.INFO: 44 MB #Memory Used# [2025-01-01 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:03:05 [end_date_ymd] => 2025-01-01 19:03:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:03:05' and `end` < '2025-01-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-01-01 19:03:18] Production.INFO: count ==1991 [2025-01-01 19:03:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:03:05 - End Time 2025-01-01 19:03:05 [2025-01-01 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152890', 'tblTempUsageDetail_20' ) start [2025-01-01 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152890', 'tblTempUsageDetail_20' ) end [2025-01-01 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152890', 'tblTempVendorCDR_20' ) start [2025-01-01 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152890', 'tblTempVendorCDR_20' ) end [2025-01-01 19:03:18] Production.INFO: ProcessCDR(1,14152890,1,1,2) [2025-01-01 19:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152890', 'tblTempUsageDetail_20' ) start [2025-01-01 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152890', 'tblTempUsageDetail_20' ) end [2025-01-01 19:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:03:22] Production.INFO: ==11206== Releasing lock... [2025-01-01 19:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:03:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-01 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:04:05 [end_date_ymd] => 2025-01-01 19:04:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:04:05' and `end` < '2025-01-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-01-01 19:04:18] Production.INFO: count ==1981 [2025-01-01 19:04:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:04:05 - End Time 2025-01-01 19:04:05 [2025-01-01 19:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152895', 'tblTempUsageDetail_20' ) start [2025-01-01 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152895', 'tblTempUsageDetail_20' ) end [2025-01-01 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152895', 'tblTempVendorCDR_20' ) start [2025-01-01 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152895', 'tblTempVendorCDR_20' ) end [2025-01-01 19:04:18] Production.INFO: ProcessCDR(1,14152895,1,1,2) [2025-01-01 19:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152895', 'tblTempUsageDetail_20' ) start [2025-01-01 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152895', 'tblTempUsageDetail_20' ) end [2025-01-01 19:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:04:23] Production.INFO: ==11278== Releasing lock... [2025-01-01 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:04:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:05:05 [end_date_ymd] => 2025-01-01 19:05:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:05:05' and `end` < '2025-01-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-01-01 19:05:18] Production.INFO: count ==1978 [2025-01-01 19:05:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:05:05 - End Time 2025-01-01 19:05:05 [2025-01-01 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152900', 'tblTempUsageDetail_20' ) start [2025-01-01 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152900', 'tblTempUsageDetail_20' ) end [2025-01-01 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152900', 'tblTempVendorCDR_20' ) start [2025-01-01 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152900', 'tblTempVendorCDR_20' ) end [2025-01-01 19:05:19] Production.INFO: ProcessCDR(1,14152900,1,1,2) [2025-01-01 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152900', 'tblTempUsageDetail_20' ) start [2025-01-01 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152900', 'tblTempUsageDetail_20' ) end [2025-01-01 19:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:05:22] Production.INFO: ==11426== Releasing lock... [2025-01-01 19:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:05:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:06:05 [end_date_ymd] => 2025-01-01 19:06:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:06:05' and `end` < '2025-01-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-01-01 19:06:18] Production.INFO: count ==1979 [2025-01-01 19:06:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:06:05 - End Time 2025-01-01 19:06:05 [2025-01-01 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152905', 'tblTempUsageDetail_20' ) start [2025-01-01 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152905', 'tblTempUsageDetail_20' ) end [2025-01-01 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152905', 'tblTempVendorCDR_20' ) start [2025-01-01 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152905', 'tblTempVendorCDR_20' ) end [2025-01-01 19:06:19] Production.INFO: ProcessCDR(1,14152905,1,1,2) [2025-01-01 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152905', 'tblTempUsageDetail_20' ) start [2025-01-01 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152905', 'tblTempUsageDetail_20' ) end [2025-01-01 19:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:06:22] Production.INFO: ==11501== Releasing lock... [2025-01-01 19:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:06:22] Production.INFO: 43 MB #Memory Used# [2025-01-01 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:07:05 [end_date_ymd] => 2025-01-01 19:07:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:07:05' and `end` < '2025-01-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-01-01 19:07:18] Production.INFO: count ==1978 [2025-01-01 19:07:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:07:05 - End Time 2025-01-01 19:07:05 [2025-01-01 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152910', 'tblTempUsageDetail_20' ) start [2025-01-01 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152910', 'tblTempUsageDetail_20' ) end [2025-01-01 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152910', 'tblTempVendorCDR_20' ) start [2025-01-01 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152910', 'tblTempVendorCDR_20' ) end [2025-01-01 19:07:19] Production.INFO: ProcessCDR(1,14152910,1,1,2) [2025-01-01 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152910', 'tblTempUsageDetail_20' ) start [2025-01-01 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152910', 'tblTempUsageDetail_20' ) end [2025-01-01 19:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:07:22] Production.INFO: ==11574== Releasing lock... [2025-01-01 19:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:07:22] Production.INFO: 43 MB #Memory Used# [2025-01-01 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:08:05 [end_date_ymd] => 2025-01-01 19:08:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:08:05' and `end` < '2025-01-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-01-01 19:08:18] Production.INFO: count ==1977 [2025-01-01 19:08:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:08:05 - End Time 2025-01-01 19:08:05 [2025-01-01 19:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152915', 'tblTempUsageDetail_20' ) start [2025-01-01 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152915', 'tblTempUsageDetail_20' ) end [2025-01-01 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152915', 'tblTempVendorCDR_20' ) start [2025-01-01 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152915', 'tblTempVendorCDR_20' ) end [2025-01-01 19:08:18] Production.INFO: ProcessCDR(1,14152915,1,1,2) [2025-01-01 19:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152915', 'tblTempUsageDetail_20' ) start [2025-01-01 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152915', 'tblTempUsageDetail_20' ) end [2025-01-01 19:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:08:21] Production.INFO: ==11723== Releasing lock... [2025-01-01 19:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:08:21] Production.INFO: 43 MB #Memory Used# [2025-01-01 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:09:05 [end_date_ymd] => 2025-01-01 19:09:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:09:05' and `end` < '2025-01-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-01-01 19:09:18] Production.INFO: count ==1977 [2025-01-01 19:09:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:09:05 - End Time 2025-01-01 19:09:05 [2025-01-01 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152920', 'tblTempUsageDetail_20' ) start [2025-01-01 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152920', 'tblTempUsageDetail_20' ) end [2025-01-01 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152920', 'tblTempVendorCDR_20' ) start [2025-01-01 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152920', 'tblTempVendorCDR_20' ) end [2025-01-01 19:09:18] Production.INFO: ProcessCDR(1,14152920,1,1,2) [2025-01-01 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152920', 'tblTempUsageDetail_20' ) start [2025-01-01 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152920', 'tblTempUsageDetail_20' ) end [2025-01-01 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:09:23] Production.INFO: ==11796== Releasing lock... [2025-01-01 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:09:23] Production.INFO: 43 MB #Memory Used# [2025-01-01 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:10:06 [end_date_ymd] => 2025-01-01 19:10:06 [RateCDR] => 1 ) [2025-01-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-01-01 16:10:06' and `end` < '2025-01-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-01-01 19:10:18] Production.INFO: count ==1975 [2025-01-01 19:10:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:10:06 - End Time 2025-01-01 19:10:06 [2025-01-01 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152926', 'tblTempUsageDetail_20' ) start [2025-01-01 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152926', 'tblTempUsageDetail_20' ) end [2025-01-01 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152926', 'tblTempVendorCDR_20' ) start [2025-01-01 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152926', 'tblTempVendorCDR_20' ) end [2025-01-01 19:10:19] Production.INFO: ProcessCDR(1,14152926,1,1,2) [2025-01-01 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152926', 'tblTempUsageDetail_20' ) start [2025-01-01 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152926', 'tblTempUsageDetail_20' ) end [2025-01-01 19:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:10:22] Production.INFO: ==11869== Releasing lock... [2025-01-01 19:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:10:22] Production.INFO: 43 MB #Memory Used# [2025-01-01 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:11:05 [end_date_ymd] => 2025-01-01 19:11:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:11:05' and `end` < '2025-01-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-01-01 19:11:18] Production.INFO: count ==1990 [2025-01-01 19:11:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:11:05 - End Time 2025-01-01 19:11:05 [2025-01-01 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152931', 'tblTempUsageDetail_20' ) start [2025-01-01 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152931', 'tblTempUsageDetail_20' ) end [2025-01-01 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152931', 'tblTempVendorCDR_20' ) start [2025-01-01 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152931', 'tblTempVendorCDR_20' ) end [2025-01-01 19:11:18] Production.INFO: ProcessCDR(1,14152931,1,1,2) [2025-01-01 19:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152931', 'tblTempUsageDetail_20' ) start [2025-01-01 19:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152931', 'tblTempUsageDetail_20' ) end [2025-01-01 19:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:11:21] Production.INFO: ==11942== Releasing lock... [2025-01-01 19:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:11:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:12:05 [end_date_ymd] => 2025-01-01 19:12:05 [RateCDR] => 1 ) [2025-01-01 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 16:12:05' and `end` < '2025-01-01 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 19:12:18] Production.INFO: count ==1990 [2025-01-01 19:12:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:12:05 - End Time 2025-01-01 19:12:05 [2025-01-01 19:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152936', 'tblTempUsageDetail_20' ) start [2025-01-01 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152936', 'tblTempUsageDetail_20' ) end [2025-01-01 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152936', 'tblTempVendorCDR_20' ) start [2025-01-01 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152936', 'tblTempVendorCDR_20' ) end [2025-01-01 19:12:18] Production.INFO: ProcessCDR(1,14152936,1,1,2) [2025-01-01 19:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152936', 'tblTempUsageDetail_20' ) start [2025-01-01 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152936', 'tblTempUsageDetail_20' ) end [2025-01-01 19:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:12:21] Production.INFO: ==12090== Releasing lock... [2025-01-01 19:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:12:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:13:05 [end_date_ymd] => 2025-01-01 19:13:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:13:05' and `end` < '2025-01-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-01-01 19:13:17] Production.INFO: count ==1991 [2025-01-01 19:13:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:13:05 - End Time 2025-01-01 19:13:05 [2025-01-01 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152941', 'tblTempUsageDetail_20' ) start [2025-01-01 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152941', 'tblTempUsageDetail_20' ) end [2025-01-01 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152941', 'tblTempVendorCDR_20' ) start [2025-01-01 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152941', 'tblTempVendorCDR_20' ) end [2025-01-01 19:13:18] Production.INFO: ProcessCDR(1,14152941,1,1,2) [2025-01-01 19:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152941', 'tblTempUsageDetail_20' ) start [2025-01-01 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152941', 'tblTempUsageDetail_20' ) end [2025-01-01 19:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:13:21] Production.INFO: ==12160== Releasing lock... [2025-01-01 19:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:13:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:14:06 [end_date_ymd] => 2025-01-01 19:14:06 [RateCDR] => 1 ) [2025-01-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-01-01 16:14:06' and `end` < '2025-01-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-01-01 19:14:18] Production.INFO: count ==1989 [2025-01-01 19:14:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:14:06 - End Time 2025-01-01 19:14:06 [2025-01-01 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152946', 'tblTempUsageDetail_20' ) start [2025-01-01 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152946', 'tblTempUsageDetail_20' ) end [2025-01-01 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152946', 'tblTempVendorCDR_20' ) start [2025-01-01 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152946', 'tblTempVendorCDR_20' ) end [2025-01-01 19:14:19] Production.INFO: ProcessCDR(1,14152946,1,1,2) [2025-01-01 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152946', 'tblTempUsageDetail_20' ) start [2025-01-01 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152946', 'tblTempUsageDetail_20' ) end [2025-01-01 19:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:14:22] Production.INFO: ==12231== Releasing lock... [2025-01-01 19:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:14:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:15:05 [end_date_ymd] => 2025-01-01 19:15:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:15:05' and `end` < '2025-01-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-01-01 19:15:18] Production.INFO: count ==1988 [2025-01-01 19:15:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:15:05 - End Time 2025-01-01 19:15:05 [2025-01-01 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152951', 'tblTempUsageDetail_20' ) start [2025-01-01 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152951', 'tblTempUsageDetail_20' ) end [2025-01-01 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152951', 'tblTempVendorCDR_20' ) start [2025-01-01 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152951', 'tblTempVendorCDR_20' ) end [2025-01-01 19:15:18] Production.INFO: ProcessCDR(1,14152951,1,1,2) [2025-01-01 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152951', 'tblTempUsageDetail_20' ) start [2025-01-01 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152951', 'tblTempUsageDetail_20' ) end [2025-01-01 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:15:22] Production.INFO: ==12419== Releasing lock... [2025-01-01 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:15:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:16:05 [end_date_ymd] => 2025-01-01 19:16:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:16:05' and `end` < '2025-01-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-01-01 19:16:18] Production.INFO: count ==1984 [2025-01-01 19:16:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:16:05 - End Time 2025-01-01 19:16:05 [2025-01-01 19:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152956', 'tblTempUsageDetail_20' ) start [2025-01-01 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152956', 'tblTempUsageDetail_20' ) end [2025-01-01 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152956', 'tblTempVendorCDR_20' ) start [2025-01-01 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152956', 'tblTempVendorCDR_20' ) end [2025-01-01 19:16:19] Production.INFO: ProcessCDR(1,14152956,1,1,2) [2025-01-01 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152956', 'tblTempUsageDetail_20' ) start [2025-01-01 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152956', 'tblTempUsageDetail_20' ) end [2025-01-01 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:16:23] Production.INFO: ==12489== Releasing lock... [2025-01-01 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:16:23] Production.INFO: 43 MB #Memory Used# [2025-01-01 19:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:17:04 [end_date_ymd] => 2025-01-01 19:17:04 [RateCDR] => 1 ) [2025-01-01 19: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-01 16:17:04' and `end` < '2025-01-01 19: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-01-01 19:17:18] Production.INFO: count ==1981 [2025-01-01 19:17:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:17:04 - End Time 2025-01-01 19:17:04 [2025-01-01 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152961', 'tblTempUsageDetail_20' ) start [2025-01-01 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152961', 'tblTempUsageDetail_20' ) end [2025-01-01 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152961', 'tblTempVendorCDR_20' ) start [2025-01-01 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152961', 'tblTempVendorCDR_20' ) end [2025-01-01 19:17:18] Production.INFO: ProcessCDR(1,14152961,1,1,2) [2025-01-01 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152961', 'tblTempUsageDetail_20' ) start [2025-01-01 19:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152961', 'tblTempUsageDetail_20' ) end [2025-01-01 19:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:17:21] Production.INFO: ==12560== Releasing lock... [2025-01-01 19:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:17:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:18:05 [end_date_ymd] => 2025-01-01 19:18:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:18:05' and `end` < '2025-01-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-01-01 19:18:18] Production.INFO: count ==1974 [2025-01-01 19:18:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:18:05 - End Time 2025-01-01 19:18:05 [2025-01-01 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152966', 'tblTempUsageDetail_20' ) start [2025-01-01 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152966', 'tblTempUsageDetail_20' ) end [2025-01-01 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152966', 'tblTempVendorCDR_20' ) start [2025-01-01 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152966', 'tblTempVendorCDR_20' ) end [2025-01-01 19:18:19] Production.INFO: ProcessCDR(1,14152966,1,1,2) [2025-01-01 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152966', 'tblTempUsageDetail_20' ) start [2025-01-01 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152966', 'tblTempUsageDetail_20' ) end [2025-01-01 19:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:18:22] Production.INFO: ==12630== Releasing lock... [2025-01-01 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:18:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:19:05 [end_date_ymd] => 2025-01-01 19:19:05 [RateCDR] => 1 ) [2025-01-01 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 16:19:05' and `end` < '2025-01-01 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 19:19:18] Production.INFO: count ==1969 [2025-01-01 19:19:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:19:05 - End Time 2025-01-01 19:19:05 [2025-01-01 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152971', 'tblTempUsageDetail_20' ) start [2025-01-01 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152971', 'tblTempUsageDetail_20' ) end [2025-01-01 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152971', 'tblTempVendorCDR_20' ) start [2025-01-01 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152971', 'tblTempVendorCDR_20' ) end [2025-01-01 19:19:18] Production.INFO: ProcessCDR(1,14152971,1,1,2) [2025-01-01 19:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152971', 'tblTempUsageDetail_20' ) start [2025-01-01 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152971', 'tblTempUsageDetail_20' ) end [2025-01-01 19:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:19:21] Production.INFO: ==12701== Releasing lock... [2025-01-01 19:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:19:21] Production.INFO: 43 MB #Memory Used# [2025-01-01 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:20:06 [end_date_ymd] => 2025-01-01 19:20:06 [RateCDR] => 1 ) [2025-01-01 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 16:20:06' and `end` < '2025-01-01 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 19:20:19] Production.INFO: count ==1971 [2025-01-01 19:20:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:20:06 - End Time 2025-01-01 19:20:06 [2025-01-01 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152976', 'tblTempUsageDetail_20' ) start [2025-01-01 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152976', 'tblTempUsageDetail_20' ) end [2025-01-01 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152976', 'tblTempVendorCDR_20' ) start [2025-01-01 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152976', 'tblTempVendorCDR_20' ) end [2025-01-01 19:20:19] Production.INFO: ProcessCDR(1,14152976,1,1,2) [2025-01-01 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152976', 'tblTempUsageDetail_20' ) start [2025-01-01 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152976', 'tblTempUsageDetail_20' ) end [2025-01-01 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:20:24] Production.INFO: ==12778== Releasing lock... [2025-01-01 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:20:24] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:21:05 [end_date_ymd] => 2025-01-01 19:21:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:21:05' and `end` < '2025-01-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-01-01 19:21:19] Production.INFO: count ==1993 [2025-01-01 19:21:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:21:05 - End Time 2025-01-01 19:21:05 [2025-01-01 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152982', 'tblTempUsageDetail_20' ) start [2025-01-01 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152982', 'tblTempUsageDetail_20' ) end [2025-01-01 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152982', 'tblTempVendorCDR_20' ) start [2025-01-01 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152982', 'tblTempVendorCDR_20' ) end [2025-01-01 19:21:19] Production.INFO: ProcessCDR(1,14152982,1,1,2) [2025-01-01 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152982', 'tblTempUsageDetail_20' ) start [2025-01-01 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152982', 'tblTempUsageDetail_20' ) end [2025-01-01 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:21:24] Production.INFO: ==12857== Releasing lock... [2025-01-01 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:21:24] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:22:05 [end_date_ymd] => 2025-01-01 19:22:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:22:05' and `end` < '2025-01-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-01-01 19:22:17] Production.INFO: count ==1994 [2025-01-01 19:22:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:22:05 - End Time 2025-01-01 19:22:05 [2025-01-01 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152987', 'tblTempUsageDetail_20' ) start [2025-01-01 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152987', 'tblTempUsageDetail_20' ) end [2025-01-01 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152987', 'tblTempVendorCDR_20' ) start [2025-01-01 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152987', 'tblTempVendorCDR_20' ) end [2025-01-01 19:22:18] Production.INFO: ProcessCDR(1,14152987,1,1,2) [2025-01-01 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152987', 'tblTempUsageDetail_20' ) start [2025-01-01 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152987', 'tblTempUsageDetail_20' ) end [2025-01-01 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:22:23] Production.INFO: ==12929== Releasing lock... [2025-01-01 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:22:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:23:05 [end_date_ymd] => 2025-01-01 19:23:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:23:05' and `end` < '2025-01-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-01-01 19:23:18] Production.INFO: count ==1992 [2025-01-01 19:23:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:23:05 - End Time 2025-01-01 19:23:05 [2025-01-01 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152992', 'tblTempUsageDetail_20' ) start [2025-01-01 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152992', 'tblTempUsageDetail_20' ) end [2025-01-01 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152992', 'tblTempVendorCDR_20' ) start [2025-01-01 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152992', 'tblTempVendorCDR_20' ) end [2025-01-01 19:23:18] Production.INFO: ProcessCDR(1,14152992,1,1,2) [2025-01-01 19:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152992', 'tblTempUsageDetail_20' ) start [2025-01-01 19:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152992', 'tblTempUsageDetail_20' ) end [2025-01-01 19:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:23:21] Production.INFO: ==12999== Releasing lock... [2025-01-01 19:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:23:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:24:05 [end_date_ymd] => 2025-01-01 19:24:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:24:05' and `end` < '2025-01-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-01-01 19:24:19] Production.INFO: count ==1985 [2025-01-01 19:24:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:24:05 - End Time 2025-01-01 19:24:05 [2025-01-01 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152997', 'tblTempUsageDetail_20' ) start [2025-01-01 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14152997', 'tblTempUsageDetail_20' ) end [2025-01-01 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152997', 'tblTempVendorCDR_20' ) start [2025-01-01 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14152997', 'tblTempVendorCDR_20' ) end [2025-01-01 19:24:19] Production.INFO: ProcessCDR(1,14152997,1,1,2) [2025-01-01 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14152997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14152997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14152997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14152997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152997', 'tblTempUsageDetail_20' ) start [2025-01-01 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14152997', 'tblTempUsageDetail_20' ) end [2025-01-01 19:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:24:22] Production.INFO: ==13070== Releasing lock... [2025-01-01 19:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:24:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:25:05 [end_date_ymd] => 2025-01-01 19:25:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:25:05' and `end` < '2025-01-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-01-01 19:25:18] Production.INFO: count ==1986 [2025-01-01 19:25:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:25:05 - End Time 2025-01-01 19:25:05 [2025-01-01 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153002', 'tblTempUsageDetail_20' ) start [2025-01-01 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153002', 'tblTempUsageDetail_20' ) end [2025-01-01 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153002', 'tblTempVendorCDR_20' ) start [2025-01-01 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153002', 'tblTempVendorCDR_20' ) end [2025-01-01 19:25:18] Production.INFO: ProcessCDR(1,14153002,1,1,2) [2025-01-01 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153002', 'tblTempUsageDetail_20' ) start [2025-01-01 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153002', 'tblTempUsageDetail_20' ) end [2025-01-01 19:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:25:22] Production.INFO: ==13142== Releasing lock... [2025-01-01 19:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:25:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-01 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:26:05 [end_date_ymd] => 2025-01-01 19:26:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:26:05' and `end` < '2025-01-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-01-01 19:26:18] Production.INFO: count ==1984 [2025-01-01 19:26:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:26:05 - End Time 2025-01-01 19:26:05 [2025-01-01 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153007', 'tblTempUsageDetail_20' ) start [2025-01-01 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153007', 'tblTempUsageDetail_20' ) end [2025-01-01 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153007', 'tblTempVendorCDR_20' ) start [2025-01-01 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153007', 'tblTempVendorCDR_20' ) end [2025-01-01 19:26:18] Production.INFO: ProcessCDR(1,14153007,1,1,2) [2025-01-01 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153007', 'tblTempUsageDetail_20' ) start [2025-01-01 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153007', 'tblTempUsageDetail_20' ) end [2025-01-01 19:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:26:21] Production.INFO: ==13213== Releasing lock... [2025-01-01 19:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:26:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:27:05 [end_date_ymd] => 2025-01-01 19:27:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:27:05' and `end` < '2025-01-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-01-01 19:27:18] Production.INFO: count ==1977 [2025-01-01 19:27:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:27:05 - End Time 2025-01-01 19:27:05 [2025-01-01 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153012', 'tblTempUsageDetail_20' ) start [2025-01-01 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153012', 'tblTempUsageDetail_20' ) end [2025-01-01 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153012', 'tblTempVendorCDR_20' ) start [2025-01-01 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153012', 'tblTempVendorCDR_20' ) end [2025-01-01 19:27:19] Production.INFO: ProcessCDR(1,14153012,1,1,2) [2025-01-01 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153012', 'tblTempUsageDetail_20' ) start [2025-01-01 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153012', 'tblTempUsageDetail_20' ) end [2025-01-01 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:27:22] Production.INFO: ==13283== Releasing lock... [2025-01-01 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:27:22] Production.INFO: 43 MB #Memory Used# [2025-01-01 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:28:05 [end_date_ymd] => 2025-01-01 19:28:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:28:05' and `end` < '2025-01-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-01-01 19:28:17] Production.INFO: count ==1973 [2025-01-01 19:28:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:28:05 - End Time 2025-01-01 19:28:05 [2025-01-01 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153017', 'tblTempUsageDetail_20' ) start [2025-01-01 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153017', 'tblTempUsageDetail_20' ) end [2025-01-01 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153017', 'tblTempVendorCDR_20' ) start [2025-01-01 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153017', 'tblTempVendorCDR_20' ) end [2025-01-01 19:28:18] Production.INFO: ProcessCDR(1,14153017,1,1,2) [2025-01-01 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153017', 'tblTempUsageDetail_20' ) start [2025-01-01 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153017', 'tblTempUsageDetail_20' ) end [2025-01-01 19:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:28:21] Production.INFO: ==13352== Releasing lock... [2025-01-01 19:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:28:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:29:05 [end_date_ymd] => 2025-01-01 19:29:05 [RateCDR] => 1 ) [2025-01-01 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 16:29:05' and `end` < '2025-01-01 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 19:29:17] Production.INFO: count ==1976 [2025-01-01 19:29:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:29:05 - End Time 2025-01-01 19:29:05 [2025-01-01 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153022', 'tblTempUsageDetail_20' ) start [2025-01-01 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153022', 'tblTempUsageDetail_20' ) end [2025-01-01 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153022', 'tblTempVendorCDR_20' ) start [2025-01-01 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153022', 'tblTempVendorCDR_20' ) end [2025-01-01 19:29:18] Production.INFO: ProcessCDR(1,14153022,1,1,2) [2025-01-01 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153022', 'tblTempUsageDetail_20' ) start [2025-01-01 19:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153022', 'tblTempUsageDetail_20' ) end [2025-01-01 19:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:29:21] Production.INFO: ==13425== Releasing lock... [2025-01-01 19:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:29:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-01 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:30:06 [end_date_ymd] => 2025-01-01 19:30:06 [RateCDR] => 1 ) [2025-01-01 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 16:30:06' and `end` < '2025-01-01 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 19:30:19] Production.INFO: count ==1973 [2025-01-01 19:30:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:30:06 - End Time 2025-01-01 19:30:06 [2025-01-01 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153028', 'tblTempUsageDetail_20' ) start [2025-01-01 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153028', 'tblTempUsageDetail_20' ) end [2025-01-01 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153028', 'tblTempVendorCDR_20' ) start [2025-01-01 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153028', 'tblTempVendorCDR_20' ) end [2025-01-01 19:30:19] Production.INFO: ProcessCDR(1,14153028,1,1,2) [2025-01-01 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153028', 'tblTempUsageDetail_20' ) start [2025-01-01 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153028', 'tblTempUsageDetail_20' ) end [2025-01-01 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:30:23] Production.INFO: ==13499== Releasing lock... [2025-01-01 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:30:23] Production.INFO: 43 MB #Memory Used# [2025-01-01 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:31:05 [end_date_ymd] => 2025-01-01 19:31:05 [RateCDR] => 1 ) [2025-01-01 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 16:31:05' and `end` < '2025-01-01 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 19:31:19] Production.INFO: count ==1995 [2025-01-01 19:31:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:31:05 - End Time 2025-01-01 19:31:05 [2025-01-01 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153033', 'tblTempUsageDetail_20' ) start [2025-01-01 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153033', 'tblTempUsageDetail_20' ) end [2025-01-01 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153033', 'tblTempVendorCDR_20' ) start [2025-01-01 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153033', 'tblTempVendorCDR_20' ) end [2025-01-01 19:31:19] Production.INFO: ProcessCDR(1,14153033,1,1,2) [2025-01-01 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153033', 'tblTempUsageDetail_20' ) start [2025-01-01 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153033', 'tblTempUsageDetail_20' ) end [2025-01-01 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:31:22] Production.INFO: ==13610== Releasing lock... [2025-01-01 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:31:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:32:06 [end_date_ymd] => 2025-01-01 19:32:06 [RateCDR] => 1 ) [2025-01-01 19: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-01 16:32:06' and `end` < '2025-01-01 19: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-01-01 19:32:19] Production.INFO: count ==1988 [2025-01-01 19:32:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:32:06 - End Time 2025-01-01 19:32:06 [2025-01-01 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153038', 'tblTempUsageDetail_20' ) start [2025-01-01 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153038', 'tblTempUsageDetail_20' ) end [2025-01-01 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153038', 'tblTempVendorCDR_20' ) start [2025-01-01 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153038', 'tblTempVendorCDR_20' ) end [2025-01-01 19:32:19] Production.INFO: ProcessCDR(1,14153038,1,1,2) [2025-01-01 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153038', 'tblTempUsageDetail_20' ) start [2025-01-01 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153038', 'tblTempUsageDetail_20' ) end [2025-01-01 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:32:24] Production.INFO: ==13686== Releasing lock... [2025-01-01 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:32:24] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:33:05 [end_date_ymd] => 2025-01-01 19:33:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:33:05' and `end` < '2025-01-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-01-01 19:33:18] Production.INFO: count ==1988 [2025-01-01 19:33:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:33:05 - End Time 2025-01-01 19:33:05 [2025-01-01 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153043', 'tblTempUsageDetail_20' ) start [2025-01-01 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153043', 'tblTempUsageDetail_20' ) end [2025-01-01 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153043', 'tblTempVendorCDR_20' ) start [2025-01-01 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153043', 'tblTempVendorCDR_20' ) end [2025-01-01 19:33:18] Production.INFO: ProcessCDR(1,14153043,1,1,2) [2025-01-01 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153043', 'tblTempUsageDetail_20' ) start [2025-01-01 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153043', 'tblTempUsageDetail_20' ) end [2025-01-01 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:33:23] Production.INFO: ==13757== Releasing lock... [2025-01-01 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:33:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:34:05 [end_date_ymd] => 2025-01-01 19:34:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:34:05' and `end` < '2025-01-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-01-01 19:34:19] Production.INFO: count ==1988 [2025-01-01 19:34:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:34:05 - End Time 2025-01-01 19:34:05 [2025-01-01 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153048', 'tblTempUsageDetail_20' ) start [2025-01-01 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153048', 'tblTempUsageDetail_20' ) end [2025-01-01 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153048', 'tblTempVendorCDR_20' ) start [2025-01-01 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153048', 'tblTempVendorCDR_20' ) end [2025-01-01 19:34:19] Production.INFO: ProcessCDR(1,14153048,1,1,2) [2025-01-01 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153048', 'tblTempUsageDetail_20' ) start [2025-01-01 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153048', 'tblTempUsageDetail_20' ) end [2025-01-01 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:34:22] Production.INFO: ==13833== Releasing lock... [2025-01-01 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:34:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:35:05 [end_date_ymd] => 2025-01-01 19:35:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:35:05' and `end` < '2025-01-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-01-01 19:35:18] Production.INFO: count ==1973 [2025-01-01 19:35:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:35:05 - End Time 2025-01-01 19:35:05 [2025-01-01 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153053', 'tblTempUsageDetail_20' ) start [2025-01-01 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153053', 'tblTempUsageDetail_20' ) end [2025-01-01 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153053', 'tblTempVendorCDR_20' ) start [2025-01-01 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153053', 'tblTempVendorCDR_20' ) end [2025-01-01 19:35:18] Production.INFO: ProcessCDR(1,14153053,1,1,2) [2025-01-01 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153053', 'tblTempUsageDetail_20' ) start [2025-01-01 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153053', 'tblTempUsageDetail_20' ) end [2025-01-01 19:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:35:21] Production.INFO: ==13916== Releasing lock... [2025-01-01 19:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:35:21] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:36:05 [end_date_ymd] => 2025-01-01 19:36:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:36:05' and `end` < '2025-01-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-01-01 19:36:19] Production.INFO: count ==1964 [2025-01-01 19:36:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:36:05 - End Time 2025-01-01 19:36:05 [2025-01-01 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153058', 'tblTempUsageDetail_20' ) start [2025-01-01 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153058', 'tblTempUsageDetail_20' ) end [2025-01-01 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153058', 'tblTempVendorCDR_20' ) start [2025-01-01 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153058', 'tblTempVendorCDR_20' ) end [2025-01-01 19:36:19] Production.INFO: ProcessCDR(1,14153058,1,1,2) [2025-01-01 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153058', 'tblTempUsageDetail_20' ) start [2025-01-01 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153058', 'tblTempUsageDetail_20' ) end [2025-01-01 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:36:22] Production.INFO: ==13989== Releasing lock... [2025-01-01 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:36:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:37:05 [end_date_ymd] => 2025-01-01 19:37:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:37:05' and `end` < '2025-01-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-01-01 19:37:17] Production.INFO: count ==1961 [2025-01-01 19:37:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:37:05 - End Time 2025-01-01 19:37:05 [2025-01-01 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153063', 'tblTempUsageDetail_20' ) start [2025-01-01 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153063', 'tblTempUsageDetail_20' ) end [2025-01-01 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153063', 'tblTempVendorCDR_20' ) start [2025-01-01 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153063', 'tblTempVendorCDR_20' ) end [2025-01-01 19:37:18] Production.INFO: ProcessCDR(1,14153063,1,1,2) [2025-01-01 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153063', 'tblTempUsageDetail_20' ) start [2025-01-01 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153063', 'tblTempUsageDetail_20' ) end [2025-01-01 19:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:37:21] Production.INFO: ==14060== Releasing lock... [2025-01-01 19:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:37:21] Production.INFO: 43 MB #Memory Used# [2025-01-01 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:38:05 [end_date_ymd] => 2025-01-01 19:38:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:38:05' and `end` < '2025-01-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-01-01 19:38:19] Production.INFO: count ==1960 [2025-01-01 19:38:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:38:05 - End Time 2025-01-01 19:38:05 [2025-01-01 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153068', 'tblTempUsageDetail_20' ) start [2025-01-01 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153068', 'tblTempUsageDetail_20' ) end [2025-01-01 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153068', 'tblTempVendorCDR_20' ) start [2025-01-01 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153068', 'tblTempVendorCDR_20' ) end [2025-01-01 19:38:19] Production.INFO: ProcessCDR(1,14153068,1,1,2) [2025-01-01 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153068', 'tblTempUsageDetail_20' ) start [2025-01-01 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153068', 'tblTempUsageDetail_20' ) end [2025-01-01 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:38:22] Production.INFO: ==14134== Releasing lock... [2025-01-01 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:38:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:39:05 [end_date_ymd] => 2025-01-01 19:39:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:39:05' and `end` < '2025-01-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-01-01 19:39:18] Production.INFO: count ==1959 [2025-01-01 19:39:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:39:05 - End Time 2025-01-01 19:39:05 [2025-01-01 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153073', 'tblTempUsageDetail_20' ) start [2025-01-01 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153073', 'tblTempUsageDetail_20' ) end [2025-01-01 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153073', 'tblTempVendorCDR_20' ) start [2025-01-01 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153073', 'tblTempVendorCDR_20' ) end [2025-01-01 19:39:19] Production.INFO: ProcessCDR(1,14153073,1,1,2) [2025-01-01 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153073', 'tblTempUsageDetail_20' ) start [2025-01-01 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153073', 'tblTempUsageDetail_20' ) end [2025-01-01 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:39:22] Production.INFO: ==14204== Releasing lock... [2025-01-01 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:39:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-01 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:40:05 [end_date_ymd] => 2025-01-01 19:40:05 [RateCDR] => 1 ) [2025-01-01 19:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 16:40:05' and `end` < '2025-01-01 19:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 19:40:18] Production.INFO: count ==1956 [2025-01-01 19:40:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:40:05 - End Time 2025-01-01 19:40:05 [2025-01-01 19:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153079', 'tblTempUsageDetail_20' ) start [2025-01-01 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153079', 'tblTempUsageDetail_20' ) end [2025-01-01 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153079', 'tblTempVendorCDR_20' ) start [2025-01-01 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153079', 'tblTempVendorCDR_20' ) end [2025-01-01 19:40:18] Production.INFO: ProcessCDR(1,14153079,1,1,2) [2025-01-01 19:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153079', 'tblTempUsageDetail_20' ) start [2025-01-01 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153079', 'tblTempUsageDetail_20' ) end [2025-01-01 19:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:40:22] Production.INFO: ==14278== Releasing lock... [2025-01-01 19:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:40:22] Production.INFO: 43 MB #Memory Used# [2025-01-01 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:41:05 [end_date_ymd] => 2025-01-01 19:41:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:41:05' and `end` < '2025-01-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-01-01 19:41:18] Production.INFO: count ==1931 [2025-01-01 19:41:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:41:05 - End Time 2025-01-01 19:41:05 [2025-01-01 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153084', 'tblTempUsageDetail_20' ) start [2025-01-01 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153084', 'tblTempUsageDetail_20' ) end [2025-01-01 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153084', 'tblTempVendorCDR_20' ) start [2025-01-01 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153084', 'tblTempVendorCDR_20' ) end [2025-01-01 19:41:18] Production.INFO: ProcessCDR(1,14153084,1,1,2) [2025-01-01 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153084', 'tblTempUsageDetail_20' ) start [2025-01-01 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153084', 'tblTempUsageDetail_20' ) end [2025-01-01 19:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:41:21] Production.INFO: ==14349== Releasing lock... [2025-01-01 19:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:41:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-01 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:42:05 [end_date_ymd] => 2025-01-01 19:42:05 [RateCDR] => 1 ) [2025-01-01 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 16:42:05' and `end` < '2025-01-01 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 19:42:18] Production.INFO: count ==1931 [2025-01-01 19:42:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:42:05 - End Time 2025-01-01 19:42:05 [2025-01-01 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153089', 'tblTempUsageDetail_20' ) start [2025-01-01 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153089', 'tblTempUsageDetail_20' ) end [2025-01-01 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153089', 'tblTempVendorCDR_20' ) start [2025-01-01 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153089', 'tblTempVendorCDR_20' ) end [2025-01-01 19:42:18] Production.INFO: ProcessCDR(1,14153089,1,1,2) [2025-01-01 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153089', 'tblTempUsageDetail_20' ) start [2025-01-01 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153089', 'tblTempUsageDetail_20' ) end [2025-01-01 19:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:42:21] Production.INFO: ==14420== Releasing lock... [2025-01-01 19:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:42:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-01 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:43:05 [end_date_ymd] => 2025-01-01 19:43:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:43:05' and `end` < '2025-01-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-01-01 19:43:19] Production.INFO: count ==1931 [2025-01-01 19:43:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:43:05 - End Time 2025-01-01 19:43:05 [2025-01-01 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153094', 'tblTempUsageDetail_20' ) start [2025-01-01 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153094', 'tblTempUsageDetail_20' ) end [2025-01-01 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153094', 'tblTempVendorCDR_20' ) start [2025-01-01 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153094', 'tblTempVendorCDR_20' ) end [2025-01-01 19:43:19] Production.INFO: ProcessCDR(1,14153094,1,1,2) [2025-01-01 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153094', 'tblTempUsageDetail_20' ) start [2025-01-01 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153094', 'tblTempUsageDetail_20' ) end [2025-01-01 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:43:22] Production.INFO: ==14491== Releasing lock... [2025-01-01 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:43:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-01 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:44:05 [end_date_ymd] => 2025-01-01 19:44:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:44:05' and `end` < '2025-01-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-01-01 19:44:18] Production.INFO: count ==1930 [2025-01-01 19:44:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:44:05 - End Time 2025-01-01 19:44:05 [2025-01-01 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153099', 'tblTempUsageDetail_20' ) start [2025-01-01 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153099', 'tblTempUsageDetail_20' ) end [2025-01-01 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153099', 'tblTempVendorCDR_20' ) start [2025-01-01 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153099', 'tblTempVendorCDR_20' ) end [2025-01-01 19:44:19] Production.INFO: ProcessCDR(1,14153099,1,1,2) [2025-01-01 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153099', 'tblTempUsageDetail_20' ) start [2025-01-01 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153099', 'tblTempUsageDetail_20' ) end [2025-01-01 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:44:22] Production.INFO: ==14561== Releasing lock... [2025-01-01 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:44:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-01 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:45:05 [end_date_ymd] => 2025-01-01 19:45:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:45:05' and `end` < '2025-01-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-01-01 19:45:18] Production.INFO: count ==1929 [2025-01-01 19:45:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:45:05 - End Time 2025-01-01 19:45:05 [2025-01-01 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153104', 'tblTempUsageDetail_20' ) start [2025-01-01 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153104', 'tblTempUsageDetail_20' ) end [2025-01-01 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153104', 'tblTempVendorCDR_20' ) start [2025-01-01 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153104', 'tblTempVendorCDR_20' ) end [2025-01-01 19:45:19] Production.INFO: ProcessCDR(1,14153104,1,1,2) [2025-01-01 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153104', 'tblTempUsageDetail_20' ) start [2025-01-01 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153104', 'tblTempUsageDetail_20' ) end [2025-01-01 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:45:22] Production.INFO: ==14632== Releasing lock... [2025-01-01 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:45:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-01 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:46:05 [end_date_ymd] => 2025-01-01 19:46:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:46:05' and `end` < '2025-01-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-01-01 19:46:18] Production.INFO: count ==1928 [2025-01-01 19:46:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:46:05 - End Time 2025-01-01 19:46:05 [2025-01-01 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153109', 'tblTempUsageDetail_20' ) start [2025-01-01 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153109', 'tblTempUsageDetail_20' ) end [2025-01-01 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153109', 'tblTempVendorCDR_20' ) start [2025-01-01 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153109', 'tblTempVendorCDR_20' ) end [2025-01-01 19:46:18] Production.INFO: ProcessCDR(1,14153109,1,1,2) [2025-01-01 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153109', 'tblTempUsageDetail_20' ) start [2025-01-01 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153109', 'tblTempUsageDetail_20' ) end [2025-01-01 19:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:46:21] Production.INFO: ==14742== Releasing lock... [2025-01-01 19:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:46:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-01 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:47:06 [end_date_ymd] => 2025-01-01 19:47:06 [RateCDR] => 1 ) [2025-01-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-01-01 16:47:06' and `end` < '2025-01-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-01-01 19:47:18] Production.INFO: count ==1928 [2025-01-01 19:47:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:47:06 - End Time 2025-01-01 19:47:06 [2025-01-01 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153114', 'tblTempUsageDetail_20' ) start [2025-01-01 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153114', 'tblTempUsageDetail_20' ) end [2025-01-01 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153114', 'tblTempVendorCDR_20' ) start [2025-01-01 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153114', 'tblTempVendorCDR_20' ) end [2025-01-01 19:47:19] Production.INFO: ProcessCDR(1,14153114,1,1,2) [2025-01-01 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153114', 'tblTempUsageDetail_20' ) start [2025-01-01 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153114', 'tblTempUsageDetail_20' ) end [2025-01-01 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:47:22] Production.INFO: ==14815== Releasing lock... [2025-01-01 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:47:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-01 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:48:05 [end_date_ymd] => 2025-01-01 19:48:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:48:05' and `end` < '2025-01-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-01-01 19:48:18] Production.INFO: count ==1927 [2025-01-01 19:48:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:48:05 - End Time 2025-01-01 19:48:05 [2025-01-01 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153119', 'tblTempUsageDetail_20' ) start [2025-01-01 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153119', 'tblTempUsageDetail_20' ) end [2025-01-01 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153119', 'tblTempVendorCDR_20' ) start [2025-01-01 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153119', 'tblTempVendorCDR_20' ) end [2025-01-01 19:48:19] Production.INFO: ProcessCDR(1,14153119,1,1,2) [2025-01-01 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153119', 'tblTempUsageDetail_20' ) start [2025-01-01 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153119', 'tblTempUsageDetail_20' ) end [2025-01-01 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:48:22] Production.INFO: ==14890== Releasing lock... [2025-01-01 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:48:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-01 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:49:05 [end_date_ymd] => 2025-01-01 19:49:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:49:05' and `end` < '2025-01-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-01-01 19:49:18] Production.INFO: count ==1929 [2025-01-01 19:49:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:49:05 - End Time 2025-01-01 19:49:05 [2025-01-01 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153124', 'tblTempUsageDetail_20' ) start [2025-01-01 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153124', 'tblTempUsageDetail_20' ) end [2025-01-01 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153124', 'tblTempVendorCDR_20' ) start [2025-01-01 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153124', 'tblTempVendorCDR_20' ) end [2025-01-01 19:49:18] Production.INFO: ProcessCDR(1,14153124,1,1,2) [2025-01-01 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153124', 'tblTempUsageDetail_20' ) start [2025-01-01 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153124', 'tblTempUsageDetail_20' ) end [2025-01-01 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:49:22] Production.INFO: ==14965== Releasing lock... [2025-01-01 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:49:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-01 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:50:05 [end_date_ymd] => 2025-01-01 19:50:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:50:05' and `end` < '2025-01-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-01-01 19:50:18] Production.INFO: count ==1932 [2025-01-01 19:50:19] Production.ERROR: pbx CDR StartTime 2025-01-01 16:50:05 - End Time 2025-01-01 19:50:05 [2025-01-01 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153130', 'tblTempUsageDetail_20' ) start [2025-01-01 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153130', 'tblTempUsageDetail_20' ) end [2025-01-01 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153130', 'tblTempVendorCDR_20' ) start [2025-01-01 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153130', 'tblTempVendorCDR_20' ) end [2025-01-01 19:50:19] Production.INFO: ProcessCDR(1,14153130,1,1,2) [2025-01-01 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153130', 'tblTempUsageDetail_20' ) start [2025-01-01 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153130', 'tblTempUsageDetail_20' ) end [2025-01-01 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:50:24] Production.INFO: ==15038== Releasing lock... [2025-01-01 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:50:24] Production.INFO: 43 MB #Memory Used# [2025-01-01 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:51:05 [end_date_ymd] => 2025-01-01 19:51:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:51:05' and `end` < '2025-01-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-01-01 19:51:19] Production.INFO: count ==1922 [2025-01-01 19:51:20] Production.ERROR: pbx CDR StartTime 2025-01-01 16:51:05 - End Time 2025-01-01 19:51:05 [2025-01-01 19:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153135', 'tblTempUsageDetail_20' ) start [2025-01-01 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153135', 'tblTempUsageDetail_20' ) end [2025-01-01 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153135', 'tblTempVendorCDR_20' ) start [2025-01-01 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153135', 'tblTempVendorCDR_20' ) end [2025-01-01 19:51:20] Production.INFO: ProcessCDR(1,14153135,1,1,2) [2025-01-01 19:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153135', 'tblTempUsageDetail_20' ) start [2025-01-01 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153135', 'tblTempUsageDetail_20' ) end [2025-01-01 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:51:23] Production.INFO: ==15112== Releasing lock... [2025-01-01 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:51:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-01 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:52:05 [end_date_ymd] => 2025-01-01 19:52:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:52:05' and `end` < '2025-01-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-01-01 19:52:17] Production.INFO: count ==1923 [2025-01-01 19:52:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:52:05 - End Time 2025-01-01 19:52:05 [2025-01-01 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153140', 'tblTempUsageDetail_20' ) start [2025-01-01 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153140', 'tblTempUsageDetail_20' ) end [2025-01-01 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153140', 'tblTempVendorCDR_20' ) start [2025-01-01 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153140', 'tblTempVendorCDR_20' ) end [2025-01-01 19:52:18] Production.INFO: ProcessCDR(1,14153140,1,1,2) [2025-01-01 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153140', 'tblTempUsageDetail_20' ) start [2025-01-01 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153140', 'tblTempUsageDetail_20' ) end [2025-01-01 19:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:52:21] Production.INFO: ==15182== Releasing lock... [2025-01-01 19:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:52:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-01 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:53:05 [end_date_ymd] => 2025-01-01 19:53:05 [RateCDR] => 1 ) [2025-01-01 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 16:53:05' and `end` < '2025-01-01 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 19:53:17] Production.INFO: count ==1916 [2025-01-01 19:53:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:53:05 - End Time 2025-01-01 19:53:05 [2025-01-01 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153145', 'tblTempUsageDetail_20' ) start [2025-01-01 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153145', 'tblTempUsageDetail_20' ) end [2025-01-01 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153145', 'tblTempVendorCDR_20' ) start [2025-01-01 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153145', 'tblTempVendorCDR_20' ) end [2025-01-01 19:53:18] Production.INFO: ProcessCDR(1,14153145,1,1,2) [2025-01-01 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153145', 'tblTempUsageDetail_20' ) start [2025-01-01 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153145', 'tblTempUsageDetail_20' ) end [2025-01-01 19:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:53:21] Production.INFO: ==15253== Releasing lock... [2025-01-01 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:53:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-01 19:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:54:04 [end_date_ymd] => 2025-01-01 19:54:04 [RateCDR] => 1 ) [2025-01-01 19:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 16:54:04' and `end` < '2025-01-01 19:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 19:54:17] Production.INFO: count ==1915 [2025-01-01 19:54:17] Production.ERROR: pbx CDR StartTime 2025-01-01 16:54:04 - End Time 2025-01-01 19:54:04 [2025-01-01 19:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153150', 'tblTempUsageDetail_20' ) start [2025-01-01 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153150', 'tblTempUsageDetail_20' ) end [2025-01-01 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153150', 'tblTempVendorCDR_20' ) start [2025-01-01 19:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153150', 'tblTempVendorCDR_20' ) end [2025-01-01 19:54:17] Production.INFO: ProcessCDR(1,14153150,1,1,2) [2025-01-01 19:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153150', 'tblTempUsageDetail_20' ) start [2025-01-01 19:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153150', 'tblTempUsageDetail_20' ) end [2025-01-01 19:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:54:21] Production.INFO: ==15323== Releasing lock... [2025-01-01 19:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:54:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-01 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:55:05 [end_date_ymd] => 2025-01-01 19:55:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:55:05' and `end` < '2025-01-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-01-01 19:55:18] Production.INFO: count ==1922 [2025-01-01 19:55:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:55:05 - End Time 2025-01-01 19:55:05 [2025-01-01 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153155', 'tblTempUsageDetail_20' ) start [2025-01-01 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153155', 'tblTempUsageDetail_20' ) end [2025-01-01 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153155', 'tblTempVendorCDR_20' ) start [2025-01-01 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153155', 'tblTempVendorCDR_20' ) end [2025-01-01 19:55:18] Production.INFO: ProcessCDR(1,14153155,1,1,2) [2025-01-01 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153155', 'tblTempUsageDetail_20' ) start [2025-01-01 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153155', 'tblTempUsageDetail_20' ) end [2025-01-01 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:55:23] Production.INFO: ==15396== Releasing lock... [2025-01-01 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:55:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-01 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:56:05 [end_date_ymd] => 2025-01-01 19:56:05 [RateCDR] => 1 ) [2025-01-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-01-01 16:56:05' and `end` < '2025-01-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-01-01 19:56:18] Production.INFO: count ==1921 [2025-01-01 19:56:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:56:05 - End Time 2025-01-01 19:56:05 [2025-01-01 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153160', 'tblTempUsageDetail_20' ) start [2025-01-01 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153160', 'tblTempUsageDetail_20' ) end [2025-01-01 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153160', 'tblTempVendorCDR_20' ) start [2025-01-01 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153160', 'tblTempVendorCDR_20' ) end [2025-01-01 19:56:18] Production.INFO: ProcessCDR(1,14153160,1,1,2) [2025-01-01 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153160', 'tblTempUsageDetail_20' ) start [2025-01-01 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153160', 'tblTempUsageDetail_20' ) end [2025-01-01 19:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:56:21] Production.INFO: ==15465== Releasing lock... [2025-01-01 19:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:56:21] Production.INFO: 43 MB #Memory Used# [2025-01-01 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:57:05 [end_date_ymd] => 2025-01-01 19:57:05 [RateCDR] => 1 ) [2025-01-01 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 16:57:05' and `end` < '2025-01-01 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 19:57:17] Production.INFO: count ==1920 [2025-01-01 19:57:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:57:05 - End Time 2025-01-01 19:57:05 [2025-01-01 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153165', 'tblTempUsageDetail_20' ) start [2025-01-01 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153165', 'tblTempUsageDetail_20' ) end [2025-01-01 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153165', 'tblTempVendorCDR_20' ) start [2025-01-01 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153165', 'tblTempVendorCDR_20' ) end [2025-01-01 19:57:18] Production.INFO: ProcessCDR(1,14153165,1,1,2) [2025-01-01 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153165', 'tblTempUsageDetail_20' ) start [2025-01-01 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153165', 'tblTempUsageDetail_20' ) end [2025-01-01 19:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:57:21] Production.INFO: ==15536== Releasing lock... [2025-01-01 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:57:21] Production.INFO: 43 MB #Memory Used# [2025-01-01 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:58:05 [end_date_ymd] => 2025-01-01 19:58:05 [RateCDR] => 1 ) [2025-01-01 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 16:58:05' and `end` < '2025-01-01 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 19:58:17] Production.INFO: count ==1918 [2025-01-01 19:58:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:58:05 - End Time 2025-01-01 19:58:05 [2025-01-01 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153170', 'tblTempUsageDetail_20' ) start [2025-01-01 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153170', 'tblTempUsageDetail_20' ) end [2025-01-01 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153170', 'tblTempVendorCDR_20' ) start [2025-01-01 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153170', 'tblTempVendorCDR_20' ) end [2025-01-01 19:58:18] Production.INFO: ProcessCDR(1,14153170,1,1,2) [2025-01-01 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153170', 'tblTempUsageDetail_20' ) start [2025-01-01 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153170', 'tblTempUsageDetail_20' ) end [2025-01-01 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:58:22] Production.INFO: ==15607== Releasing lock... [2025-01-01 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:58:22] Production.INFO: 43 MB #Memory Used# [2025-01-01 19:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 16:59:04 [end_date_ymd] => 2025-01-01 19:59:04 [RateCDR] => 1 ) [2025-01-01 19: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-01-01 16:59:04' and `end` < '2025-01-01 19: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-01-01 19:59:18] Production.INFO: count ==1920 [2025-01-01 19:59:18] Production.ERROR: pbx CDR StartTime 2025-01-01 16:59:04 - End Time 2025-01-01 19:59:04 [2025-01-01 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153175', 'tblTempUsageDetail_20' ) start [2025-01-01 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153175', 'tblTempUsageDetail_20' ) end [2025-01-01 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153175', 'tblTempVendorCDR_20' ) start [2025-01-01 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153175', 'tblTempVendorCDR_20' ) end [2025-01-01 19:59:18] Production.INFO: ProcessCDR(1,14153175,1,1,2) [2025-01-01 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153175', 'tblTempUsageDetail_20' ) start [2025-01-01 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153175', 'tblTempUsageDetail_20' ) end [2025-01-01 19:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 19:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 19:59:23] Production.INFO: ==15677== Releasing lock... [2025-01-01 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 19:59:23] Production.INFO: 43 MB #Memory Used# [2025-01-01 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:00:06 [end_date_ymd] => 2025-01-01 20:00:06 [RateCDR] => 1 ) [2025-01-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-01-01 17:00:06' and `end` < '2025-01-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-01-01 20:00:19] Production.INFO: count ==1916 [2025-01-01 20:00:20] Production.ERROR: pbx CDR StartTime 2025-01-01 17:00:06 - End Time 2025-01-01 20:00:06 [2025-01-01 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153181', 'tblTempUsageDetail_20' ) start [2025-01-01 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153181', 'tblTempUsageDetail_20' ) end [2025-01-01 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153181', 'tblTempVendorCDR_20' ) start [2025-01-01 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153181', 'tblTempVendorCDR_20' ) end [2025-01-01 20:00:20] Production.INFO: ProcessCDR(1,14153181,1,1,2) [2025-01-01 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153181', 'tblTempUsageDetail_20' ) start [2025-01-01 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153181', 'tblTempUsageDetail_20' ) end [2025-01-01 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:00:23] Production.INFO: ==15772== Releasing lock... [2025-01-01 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:00:23] Production.INFO: 42.75 MB #Memory Used# [2025-01-01 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:01:05 [end_date_ymd] => 2025-01-01 20:01:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:01:05' and `end` < '2025-01-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-01-01 20:01:18] Production.INFO: count ==1905 [2025-01-01 20:01:19] Production.ERROR: pbx CDR StartTime 2025-01-01 17:01:05 - End Time 2025-01-01 20:01:05 [2025-01-01 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153186', 'tblTempUsageDetail_20' ) start [2025-01-01 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153186', 'tblTempUsageDetail_20' ) end [2025-01-01 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153186', 'tblTempVendorCDR_20' ) start [2025-01-01 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153186', 'tblTempVendorCDR_20' ) end [2025-01-01 20:01:19] Production.INFO: ProcessCDR(1,14153186,1,1,2) [2025-01-01 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153186', 'tblTempUsageDetail_20' ) start [2025-01-01 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153186', 'tblTempUsageDetail_20' ) end [2025-01-01 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:01:22] Production.INFO: ==15876== Releasing lock... [2025-01-01 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:01:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-01 20:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:02:04 [end_date_ymd] => 2025-01-01 20:02:04 [RateCDR] => 1 ) [2025-01-01 20:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 17:02:04' and `end` < '2025-01-01 20:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 20:02:18] Production.INFO: count ==1904 [2025-01-01 20:02:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:02:04 - End Time 2025-01-01 20:02:04 [2025-01-01 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153191', 'tblTempUsageDetail_20' ) start [2025-01-01 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153191', 'tblTempUsageDetail_20' ) end [2025-01-01 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153191', 'tblTempVendorCDR_20' ) start [2025-01-01 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153191', 'tblTempVendorCDR_20' ) end [2025-01-01 20:02:18] Production.INFO: ProcessCDR(1,14153191,1,1,2) [2025-01-01 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153191', 'tblTempUsageDetail_20' ) start [2025-01-01 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153191', 'tblTempUsageDetail_20' ) end [2025-01-01 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:02:22] Production.INFO: ==15986== Releasing lock... [2025-01-01 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:02:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-01 20:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:03:04 [end_date_ymd] => 2025-01-01 20:03:04 [RateCDR] => 1 ) [2025-01-01 20: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-01 17:03:04' and `end` < '2025-01-01 20: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-01-01 20:03:18] Production.INFO: count ==1907 [2025-01-01 20:03:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:03:04 - End Time 2025-01-01 20:03:04 [2025-01-01 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153196', 'tblTempUsageDetail_20' ) start [2025-01-01 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153196', 'tblTempUsageDetail_20' ) end [2025-01-01 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153196', 'tblTempVendorCDR_20' ) start [2025-01-01 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153196', 'tblTempVendorCDR_20' ) end [2025-01-01 20:03:18] Production.INFO: ProcessCDR(1,14153196,1,1,2) [2025-01-01 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153196', 'tblTempUsageDetail_20' ) start [2025-01-01 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153196', 'tblTempUsageDetail_20' ) end [2025-01-01 20:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:03:22] Production.INFO: ==16062== Releasing lock... [2025-01-01 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:03:22] Production.INFO: 42 MB #Memory Used# [2025-01-01 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:04:05 [end_date_ymd] => 2025-01-01 20:04:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:04:05' and `end` < '2025-01-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-01-01 20:04:18] Production.INFO: count ==1916 [2025-01-01 20:04:19] Production.ERROR: pbx CDR StartTime 2025-01-01 17:04:05 - End Time 2025-01-01 20:04:05 [2025-01-01 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153201', 'tblTempUsageDetail_20' ) start [2025-01-01 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153201', 'tblTempUsageDetail_20' ) end [2025-01-01 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153201', 'tblTempVendorCDR_20' ) start [2025-01-01 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153201', 'tblTempVendorCDR_20' ) end [2025-01-01 20:04:19] Production.INFO: ProcessCDR(1,14153201,1,1,2) [2025-01-01 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153201', 'tblTempUsageDetail_20' ) start [2025-01-01 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153201', 'tblTempUsageDetail_20' ) end [2025-01-01 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:04:22] Production.INFO: ==16134== Releasing lock... [2025-01-01 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:04:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-01 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:05:05 [end_date_ymd] => 2025-01-01 20:05:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:05:05' and `end` < '2025-01-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-01-01 20:05:17] Production.INFO: count ==1916 [2025-01-01 20:05:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:05:05 - End Time 2025-01-01 20:05:05 [2025-01-01 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153206', 'tblTempUsageDetail_20' ) start [2025-01-01 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153206', 'tblTempUsageDetail_20' ) end [2025-01-01 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153206', 'tblTempVendorCDR_20' ) start [2025-01-01 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153206', 'tblTempVendorCDR_20' ) end [2025-01-01 20:05:18] Production.INFO: ProcessCDR(1,14153206,1,1,2) [2025-01-01 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153206', 'tblTempUsageDetail_20' ) start [2025-01-01 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153206', 'tblTempUsageDetail_20' ) end [2025-01-01 20:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:05:21] Production.INFO: ==16204== Releasing lock... [2025-01-01 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:05:21] Production.INFO: 42.5 MB #Memory Used# [2025-01-01 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:06:05 [end_date_ymd] => 2025-01-01 20:06:05 [RateCDR] => 1 ) [2025-01-01 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 17:06:05' and `end` < '2025-01-01 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 20:06:18] Production.INFO: count ==1915 [2025-01-01 20:06:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:06:05 - End Time 2025-01-01 20:06:05 [2025-01-01 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153211', 'tblTempUsageDetail_20' ) start [2025-01-01 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153211', 'tblTempUsageDetail_20' ) end [2025-01-01 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153211', 'tblTempVendorCDR_20' ) start [2025-01-01 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153211', 'tblTempVendorCDR_20' ) end [2025-01-01 20:06:18] Production.INFO: ProcessCDR(1,14153211,1,1,2) [2025-01-01 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153211', 'tblTempUsageDetail_20' ) start [2025-01-01 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153211', 'tblTempUsageDetail_20' ) end [2025-01-01 20:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:06:21] Production.INFO: ==16276== Releasing lock... [2025-01-01 20:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:06:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-01 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:07:05 [end_date_ymd] => 2025-01-01 20:07:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:07:05' and `end` < '2025-01-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-01-01 20:07:18] Production.INFO: count ==1919 [2025-01-01 20:07:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:07:05 - End Time 2025-01-01 20:07:05 [2025-01-01 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153216', 'tblTempUsageDetail_20' ) start [2025-01-01 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153216', 'tblTempUsageDetail_20' ) end [2025-01-01 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153216', 'tblTempVendorCDR_20' ) start [2025-01-01 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153216', 'tblTempVendorCDR_20' ) end [2025-01-01 20:07:18] Production.INFO: ProcessCDR(1,14153216,1,1,2) [2025-01-01 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153216', 'tblTempUsageDetail_20' ) start [2025-01-01 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153216', 'tblTempUsageDetail_20' ) end [2025-01-01 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:07:23] Production.INFO: ==16348== Releasing lock... [2025-01-01 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:07:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-01 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:08:05 [end_date_ymd] => 2025-01-01 20:08:05 [RateCDR] => 1 ) [2025-01-01 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 17:08:05' and `end` < '2025-01-01 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 20:08:18] Production.INFO: count ==1919 [2025-01-01 20:08:19] Production.ERROR: pbx CDR StartTime 2025-01-01 17:08:05 - End Time 2025-01-01 20:08:05 [2025-01-01 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153221', 'tblTempUsageDetail_20' ) start [2025-01-01 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153221', 'tblTempUsageDetail_20' ) end [2025-01-01 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153221', 'tblTempVendorCDR_20' ) start [2025-01-01 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153221', 'tblTempVendorCDR_20' ) end [2025-01-01 20:08:19] Production.INFO: ProcessCDR(1,14153221,1,1,2) [2025-01-01 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153221', 'tblTempUsageDetail_20' ) start [2025-01-01 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153221', 'tblTempUsageDetail_20' ) end [2025-01-01 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:08:22] Production.INFO: ==16418== Releasing lock... [2025-01-01 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:08:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-01 20:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:09:04 [end_date_ymd] => 2025-01-01 20:09:04 [RateCDR] => 1 ) [2025-01-01 20: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-01-01 17:09:04' and `end` < '2025-01-01 20: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-01-01 20:09:18] Production.INFO: count ==1918 [2025-01-01 20:09:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:09:04 - End Time 2025-01-01 20:09:04 [2025-01-01 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153225', 'tblTempUsageDetail_20' ) start [2025-01-01 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153225', 'tblTempUsageDetail_20' ) end [2025-01-01 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153225', 'tblTempVendorCDR_20' ) start [2025-01-01 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153225', 'tblTempVendorCDR_20' ) end [2025-01-01 20:09:18] Production.INFO: ProcessCDR(1,14153225,1,1,2) [2025-01-01 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153225', 'tblTempUsageDetail_20' ) start [2025-01-01 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153225', 'tblTempUsageDetail_20' ) end [2025-01-01 20:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:09:21] Production.INFO: ==16487== Releasing lock... [2025-01-01 20:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:09:21] Production.INFO: 42.5 MB #Memory Used# [2025-01-01 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:10:05 [end_date_ymd] => 2025-01-01 20:10:05 [RateCDR] => 1 ) [2025-01-01 20:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 17:10:05' and `end` < '2025-01-01 20:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 20:10:18] Production.INFO: count ==1914 [2025-01-01 20:10:19] Production.ERROR: pbx CDR StartTime 2025-01-01 17:10:05 - End Time 2025-01-01 20:10:05 [2025-01-01 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153231', 'tblTempUsageDetail_20' ) start [2025-01-01 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153231', 'tblTempUsageDetail_20' ) end [2025-01-01 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153231', 'tblTempVendorCDR_20' ) start [2025-01-01 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153231', 'tblTempVendorCDR_20' ) end [2025-01-01 20:10:19] Production.INFO: ProcessCDR(1,14153231,1,1,2) [2025-01-01 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153231', 'tblTempUsageDetail_20' ) start [2025-01-01 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153231', 'tblTempUsageDetail_20' ) end [2025-01-01 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:10:22] Production.INFO: ==16559== Releasing lock... [2025-01-01 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:10:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-01 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:11:05 [end_date_ymd] => 2025-01-01 20:11:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:11:05' and `end` < '2025-01-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-01-01 20:11:17] Production.INFO: count ==1878 [2025-01-01 20:11:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:11:05 - End Time 2025-01-01 20:11:05 [2025-01-01 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153237', 'tblTempUsageDetail_20' ) start [2025-01-01 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153237', 'tblTempUsageDetail_20' ) end [2025-01-01 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153237', 'tblTempVendorCDR_20' ) start [2025-01-01 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153237', 'tblTempVendorCDR_20' ) end [2025-01-01 20:11:18] Production.INFO: ProcessCDR(1,14153237,1,1,2) [2025-01-01 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153237', 'tblTempUsageDetail_20' ) start [2025-01-01 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153237', 'tblTempUsageDetail_20' ) end [2025-01-01 20:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:11:21] Production.INFO: ==16633== Releasing lock... [2025-01-01 20:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:11:21] Production.INFO: 42 MB #Memory Used# [2025-01-01 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:12:05 [end_date_ymd] => 2025-01-01 20:12:05 [RateCDR] => 1 ) [2025-01-01 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 17:12:05' and `end` < '2025-01-01 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 20:12:18] Production.INFO: count ==1876 [2025-01-01 20:12:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:12:05 - End Time 2025-01-01 20:12:05 [2025-01-01 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153242', 'tblTempUsageDetail_20' ) start [2025-01-01 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153242', 'tblTempUsageDetail_20' ) end [2025-01-01 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153242', 'tblTempVendorCDR_20' ) start [2025-01-01 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153242', 'tblTempVendorCDR_20' ) end [2025-01-01 20:12:18] Production.INFO: ProcessCDR(1,14153242,1,1,2) [2025-01-01 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153242', 'tblTempUsageDetail_20' ) start [2025-01-01 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153242', 'tblTempUsageDetail_20' ) end [2025-01-01 20:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:12:21] Production.INFO: ==16703== Releasing lock... [2025-01-01 20:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:12:21] Production.INFO: 42 MB #Memory Used# [2025-01-01 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:13:05 [end_date_ymd] => 2025-01-01 20:13:05 [RateCDR] => 1 ) [2025-01-01 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 17:13:05' and `end` < '2025-01-01 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 20:13:18] Production.INFO: count ==1875 [2025-01-01 20:13:19] Production.ERROR: pbx CDR StartTime 2025-01-01 17:13:05 - End Time 2025-01-01 20:13:05 [2025-01-01 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153247', 'tblTempUsageDetail_20' ) start [2025-01-01 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153247', 'tblTempUsageDetail_20' ) end [2025-01-01 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153247', 'tblTempVendorCDR_20' ) start [2025-01-01 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153247', 'tblTempVendorCDR_20' ) end [2025-01-01 20:13:19] Production.INFO: ProcessCDR(1,14153247,1,1,2) [2025-01-01 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153247', 'tblTempUsageDetail_20' ) start [2025-01-01 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153247', 'tblTempUsageDetail_20' ) end [2025-01-01 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:13:22] Production.INFO: ==16777== Releasing lock... [2025-01-01 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:13:22] Production.INFO: 42 MB #Memory Used# [2025-01-01 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:14:05 [end_date_ymd] => 2025-01-01 20:14:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:14:05' and `end` < '2025-01-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-01-01 20:14:18] Production.INFO: count ==1874 [2025-01-01 20:14:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:14:05 - End Time 2025-01-01 20:14:05 [2025-01-01 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153252', 'tblTempUsageDetail_20' ) start [2025-01-01 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153252', 'tblTempUsageDetail_20' ) end [2025-01-01 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153252', 'tblTempVendorCDR_20' ) start [2025-01-01 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153252', 'tblTempVendorCDR_20' ) end [2025-01-01 20:14:18] Production.INFO: ProcessCDR(1,14153252,1,1,2) [2025-01-01 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153252', 'tblTempUsageDetail_20' ) start [2025-01-01 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153252', 'tblTempUsageDetail_20' ) end [2025-01-01 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:14:22] Production.INFO: ==16850== Releasing lock... [2025-01-01 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:14:22] Production.INFO: 42 MB #Memory Used# [2025-01-01 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:15:05 [end_date_ymd] => 2025-01-01 20:15:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:15:05' and `end` < '2025-01-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-01-01 20:15:18] Production.INFO: count ==1871 [2025-01-01 20:15:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:15:05 - End Time 2025-01-01 20:15:05 [2025-01-01 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153257', 'tblTempUsageDetail_20' ) start [2025-01-01 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153257', 'tblTempUsageDetail_20' ) end [2025-01-01 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153257', 'tblTempVendorCDR_20' ) start [2025-01-01 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153257', 'tblTempVendorCDR_20' ) end [2025-01-01 20:15:18] Production.INFO: ProcessCDR(1,14153257,1,1,2) [2025-01-01 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153257', 'tblTempUsageDetail_20' ) start [2025-01-01 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153257', 'tblTempUsageDetail_20' ) end [2025-01-01 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:15:22] Production.INFO: ==16920== Releasing lock... [2025-01-01 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:15:22] Production.INFO: 42 MB #Memory Used# [2025-01-01 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:16:05 [end_date_ymd] => 2025-01-01 20:16:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:16:05' and `end` < '2025-01-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-01-01 20:16:18] Production.INFO: count ==1870 [2025-01-01 20:16:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:16:05 - End Time 2025-01-01 20:16:05 [2025-01-01 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153262', 'tblTempUsageDetail_20' ) start [2025-01-01 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153262', 'tblTempUsageDetail_20' ) end [2025-01-01 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153262', 'tblTempVendorCDR_20' ) start [2025-01-01 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153262', 'tblTempVendorCDR_20' ) end [2025-01-01 20:16:18] Production.INFO: ProcessCDR(1,14153262,1,1,2) [2025-01-01 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153262', 'tblTempUsageDetail_20' ) start [2025-01-01 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153262', 'tblTempUsageDetail_20' ) end [2025-01-01 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:16:22] Production.INFO: ==16991== Releasing lock... [2025-01-01 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:16:22] Production.INFO: 42 MB #Memory Used# [2025-01-01 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:17:05 [end_date_ymd] => 2025-01-01 20:17:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:17:05' and `end` < '2025-01-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-01-01 20:17:18] Production.INFO: count ==1872 [2025-01-01 20:17:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:17:05 - End Time 2025-01-01 20:17:05 [2025-01-01 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153267', 'tblTempUsageDetail_20' ) start [2025-01-01 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153267', 'tblTempUsageDetail_20' ) end [2025-01-01 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153267', 'tblTempVendorCDR_20' ) start [2025-01-01 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153267', 'tblTempVendorCDR_20' ) end [2025-01-01 20:17:18] Production.INFO: ProcessCDR(1,14153267,1,1,2) [2025-01-01 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153267', 'tblTempUsageDetail_20' ) start [2025-01-01 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153267', 'tblTempUsageDetail_20' ) end [2025-01-01 20:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:17:21] Production.INFO: ==17077== Releasing lock... [2025-01-01 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:17:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-01 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:18:05 [end_date_ymd] => 2025-01-01 20:18:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:18:05' and `end` < '2025-01-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-01-01 20:18:18] Production.INFO: count ==1869 [2025-01-01 20:18:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:18:05 - End Time 2025-01-01 20:18:05 [2025-01-01 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153272', 'tblTempUsageDetail_20' ) start [2025-01-01 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153272', 'tblTempUsageDetail_20' ) end [2025-01-01 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153272', 'tblTempVendorCDR_20' ) start [2025-01-01 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153272', 'tblTempVendorCDR_20' ) end [2025-01-01 20:18:18] Production.INFO: ProcessCDR(1,14153272,1,1,2) [2025-01-01 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153272', 'tblTempUsageDetail_20' ) start [2025-01-01 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153272', 'tblTempUsageDetail_20' ) end [2025-01-01 20:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:18:21] Production.INFO: ==17189== Releasing lock... [2025-01-01 20:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:18:21] Production.INFO: 42 MB #Memory Used# [2025-01-01 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:19:06 [end_date_ymd] => 2025-01-01 20:19:06 [RateCDR] => 1 ) [2025-01-01 20:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 17:19:06' and `end` < '2025-01-01 20:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 20:19:19] Production.INFO: count ==1867 [2025-01-01 20:19:19] Production.ERROR: pbx CDR StartTime 2025-01-01 17:19:06 - End Time 2025-01-01 20:19:06 [2025-01-01 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153277', 'tblTempUsageDetail_20' ) start [2025-01-01 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153277', 'tblTempUsageDetail_20' ) end [2025-01-01 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153277', 'tblTempVendorCDR_20' ) start [2025-01-01 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153277', 'tblTempVendorCDR_20' ) end [2025-01-01 20:19:19] Production.INFO: ProcessCDR(1,14153277,1,1,2) [2025-01-01 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153277', 'tblTempUsageDetail_20' ) start [2025-01-01 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153277', 'tblTempUsageDetail_20' ) end [2025-01-01 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:19:23] Production.INFO: ==17259== Releasing lock... [2025-01-01 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:19:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-01 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:20:05 [end_date_ymd] => 2025-01-01 20:20:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:20:05' and `end` < '2025-01-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-01-01 20:20:18] Production.INFO: count ==1865 [2025-01-01 20:20:19] Production.ERROR: pbx CDR StartTime 2025-01-01 17:20:05 - End Time 2025-01-01 20:20:05 [2025-01-01 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153283', 'tblTempUsageDetail_20' ) start [2025-01-01 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153283', 'tblTempUsageDetail_20' ) end [2025-01-01 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153283', 'tblTempVendorCDR_20' ) start [2025-01-01 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153283', 'tblTempVendorCDR_20' ) end [2025-01-01 20:20:19] Production.INFO: ProcessCDR(1,14153283,1,1,2) [2025-01-01 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153283', 'tblTempUsageDetail_20' ) start [2025-01-01 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153283', 'tblTempUsageDetail_20' ) end [2025-01-01 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:20:22] Production.INFO: ==17332== Releasing lock... [2025-01-01 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:20:22] Production.INFO: 42 MB #Memory Used# [2025-01-01 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:21:05 [end_date_ymd] => 2025-01-01 20:21:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:21:05' and `end` < '2025-01-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-01-01 20:21:17] Production.INFO: count ==1814 [2025-01-01 20:21:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:21:05 - End Time 2025-01-01 20:21:05 [2025-01-01 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153288', 'tblTempUsageDetail_20' ) start [2025-01-01 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153288', 'tblTempUsageDetail_20' ) end [2025-01-01 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153288', 'tblTempVendorCDR_20' ) start [2025-01-01 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153288', 'tblTempVendorCDR_20' ) end [2025-01-01 20:21:18] Production.INFO: ProcessCDR(1,14153288,1,1,2) [2025-01-01 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153288', 'tblTempUsageDetail_20' ) start [2025-01-01 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153288', 'tblTempUsageDetail_20' ) end [2025-01-01 20:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:21:21] Production.INFO: ==17406== Releasing lock... [2025-01-01 20:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:21:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:22:05 [end_date_ymd] => 2025-01-01 20:22:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:22:05' and `end` < '2025-01-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-01-01 20:22:18] Production.INFO: count ==1814 [2025-01-01 20:22:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:22:05 - End Time 2025-01-01 20:22:05 [2025-01-01 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153293', 'tblTempUsageDetail_20' ) start [2025-01-01 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153293', 'tblTempUsageDetail_20' ) end [2025-01-01 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153293', 'tblTempVendorCDR_20' ) start [2025-01-01 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153293', 'tblTempVendorCDR_20' ) end [2025-01-01 20:22:18] Production.INFO: ProcessCDR(1,14153293,1,1,2) [2025-01-01 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153293', 'tblTempUsageDetail_20' ) start [2025-01-01 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153293', 'tblTempUsageDetail_20' ) end [2025-01-01 20:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:22:21] Production.INFO: ==17476== Releasing lock... [2025-01-01 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:22:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:23:05 [end_date_ymd] => 2025-01-01 20:23:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:23:05' and `end` < '2025-01-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-01-01 20:23:18] Production.INFO: count ==1811 [2025-01-01 20:23:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:23:05 - End Time 2025-01-01 20:23:05 [2025-01-01 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153298', 'tblTempUsageDetail_20' ) start [2025-01-01 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153298', 'tblTempUsageDetail_20' ) end [2025-01-01 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153298', 'tblTempVendorCDR_20' ) start [2025-01-01 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153298', 'tblTempVendorCDR_20' ) end [2025-01-01 20:23:19] Production.INFO: ProcessCDR(1,14153298,1,1,2) [2025-01-01 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153298', 'tblTempUsageDetail_20' ) start [2025-01-01 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153298', 'tblTempUsageDetail_20' ) end [2025-01-01 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:23:22] Production.INFO: ==17564== Releasing lock... [2025-01-01 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:23:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:24:05 [end_date_ymd] => 2025-01-01 20:24:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:24:05' and `end` < '2025-01-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-01-01 20:24:18] Production.INFO: count ==1809 [2025-01-01 20:24:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:24:05 - End Time 2025-01-01 20:24:05 [2025-01-01 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153303', 'tblTempUsageDetail_20' ) start [2025-01-01 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153303', 'tblTempUsageDetail_20' ) end [2025-01-01 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153303', 'tblTempVendorCDR_20' ) start [2025-01-01 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153303', 'tblTempVendorCDR_20' ) end [2025-01-01 20:24:18] Production.INFO: ProcessCDR(1,14153303,1,1,2) [2025-01-01 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153303', 'tblTempUsageDetail_20' ) start [2025-01-01 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153303', 'tblTempUsageDetail_20' ) end [2025-01-01 20:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:24:21] Production.INFO: ==17635== Releasing lock... [2025-01-01 20:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:24:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:25:05 [end_date_ymd] => 2025-01-01 20:25:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:25:05' and `end` < '2025-01-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-01-01 20:25:17] Production.INFO: count ==1807 [2025-01-01 20:25:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:25:05 - End Time 2025-01-01 20:25:05 [2025-01-01 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153308', 'tblTempUsageDetail_20' ) start [2025-01-01 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153308', 'tblTempUsageDetail_20' ) end [2025-01-01 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153308', 'tblTempVendorCDR_20' ) start [2025-01-01 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153308', 'tblTempVendorCDR_20' ) end [2025-01-01 20:25:18] Production.INFO: ProcessCDR(1,14153308,1,1,2) [2025-01-01 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153308', 'tblTempUsageDetail_20' ) start [2025-01-01 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153308', 'tblTempUsageDetail_20' ) end [2025-01-01 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:25:21] Production.INFO: ==17707== Releasing lock... [2025-01-01 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:25:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:26:05 [end_date_ymd] => 2025-01-01 20:26:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:26:05' and `end` < '2025-01-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-01-01 20:26:17] Production.INFO: count ==1734 [2025-01-01 20:26:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:26:05 - End Time 2025-01-01 20:26:05 [2025-01-01 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153313', 'tblTempUsageDetail_20' ) start [2025-01-01 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153313', 'tblTempUsageDetail_20' ) end [2025-01-01 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153313', 'tblTempVendorCDR_20' ) start [2025-01-01 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153313', 'tblTempVendorCDR_20' ) end [2025-01-01 20:26:18] Production.INFO: ProcessCDR(1,14153313,1,1,2) [2025-01-01 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153313', 'tblTempUsageDetail_20' ) start [2025-01-01 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153313', 'tblTempUsageDetail_20' ) end [2025-01-01 20:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:26:21] Production.INFO: ==17782== Releasing lock... [2025-01-01 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:26:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-01 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:27:05 [end_date_ymd] => 2025-01-01 20:27:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:27:05' and `end` < '2025-01-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-01-01 20:27:18] Production.INFO: count ==1655 [2025-01-01 20:27:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:27:05 - End Time 2025-01-01 20:27:05 [2025-01-01 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153318', 'tblTempUsageDetail_20' ) start [2025-01-01 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153318', 'tblTempUsageDetail_20' ) end [2025-01-01 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153318', 'tblTempVendorCDR_20' ) start [2025-01-01 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153318', 'tblTempVendorCDR_20' ) end [2025-01-01 20:27:18] Production.INFO: ProcessCDR(1,14153318,1,1,2) [2025-01-01 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153318', 'tblTempUsageDetail_20' ) start [2025-01-01 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153318', 'tblTempUsageDetail_20' ) end [2025-01-01 20:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:27:21] Production.INFO: ==17857== Releasing lock... [2025-01-01 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:27:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-01 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:28:05 [end_date_ymd] => 2025-01-01 20:28:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:28:05' and `end` < '2025-01-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-01-01 20:28:19] Production.INFO: count ==1577 [2025-01-01 20:28:19] Production.ERROR: pbx CDR StartTime 2025-01-01 17:28:05 - End Time 2025-01-01 20:28:05 [2025-01-01 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153323', 'tblTempUsageDetail_20' ) start [2025-01-01 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153323', 'tblTempUsageDetail_20' ) end [2025-01-01 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153323', 'tblTempVendorCDR_20' ) start [2025-01-01 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153323', 'tblTempVendorCDR_20' ) end [2025-01-01 20:28:20] Production.INFO: ProcessCDR(1,14153323,1,1,2) [2025-01-01 20:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153323', 'tblTempUsageDetail_20' ) start [2025-01-01 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153323', 'tblTempUsageDetail_20' ) end [2025-01-01 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:28:23] Production.INFO: ==17930== Releasing lock... [2025-01-01 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:28:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-01 20:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:29:04 [end_date_ymd] => 2025-01-01 20:29:04 [RateCDR] => 1 ) [2025-01-01 20: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-01-01 17:29:04' and `end` < '2025-01-01 20: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-01-01 20:29:17] Production.INFO: count ==1500 [2025-01-01 20:29:17] Production.ERROR: pbx CDR StartTime 2025-01-01 17:29:04 - End Time 2025-01-01 20:29:04 [2025-01-01 20:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153328', 'tblTempUsageDetail_20' ) start [2025-01-01 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153328', 'tblTempUsageDetail_20' ) end [2025-01-01 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153328', 'tblTempVendorCDR_20' ) start [2025-01-01 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153328', 'tblTempVendorCDR_20' ) end [2025-01-01 20:29:18] Production.INFO: ProcessCDR(1,14153328,1,1,2) [2025-01-01 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153328', 'tblTempUsageDetail_20' ) start [2025-01-01 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153328', 'tblTempUsageDetail_20' ) end [2025-01-01 20:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:29:21] Production.INFO: ==18017== Releasing lock... [2025-01-01 20:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:29:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-01 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:30:06 [end_date_ymd] => 2025-01-01 20:30:06 [RateCDR] => 1 ) [2025-01-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-01-01 17:30:06' and `end` < '2025-01-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-01-01 20:30:19] Production.INFO: count ==1424 [2025-01-01 20:30:19] Production.ERROR: pbx CDR StartTime 2025-01-01 17:30:06 - End Time 2025-01-01 20:30:06 [2025-01-01 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153333', 'tblTempUsageDetail_20' ) start [2025-01-01 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153333', 'tblTempUsageDetail_20' ) end [2025-01-01 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153333', 'tblTempVendorCDR_20' ) start [2025-01-01 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153333', 'tblTempVendorCDR_20' ) end [2025-01-01 20:30:19] Production.INFO: ProcessCDR(1,14153333,1,1,2) [2025-01-01 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153333', 'tblTempUsageDetail_20' ) start [2025-01-01 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153333', 'tblTempUsageDetail_20' ) end [2025-01-01 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:30:22] Production.INFO: ==18094== Releasing lock... [2025-01-01 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:30:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-01 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:31:05 [end_date_ymd] => 2025-01-01 20:31:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:31:05' and `end` < '2025-01-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-01-01 20:31:18] Production.INFO: count ==1336 [2025-01-01 20:31:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:31:05 - End Time 2025-01-01 20:31:05 [2025-01-01 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153339', 'tblTempUsageDetail_20' ) start [2025-01-01 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153339', 'tblTempUsageDetail_20' ) end [2025-01-01 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153339', 'tblTempVendorCDR_20' ) start [2025-01-01 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153339', 'tblTempVendorCDR_20' ) end [2025-01-01 20:31:18] Production.INFO: ProcessCDR(1,14153339,1,1,2) [2025-01-01 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153339', 'tblTempUsageDetail_20' ) start [2025-01-01 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153339', 'tblTempUsageDetail_20' ) end [2025-01-01 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:31:22] Production.INFO: ==18215== Releasing lock... [2025-01-01 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:31:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-01 20:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:32:04 [end_date_ymd] => 2025-01-01 20:32:04 [RateCDR] => 1 ) [2025-01-01 20:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 17:32:04' and `end` < '2025-01-01 20:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 20:32:17] Production.INFO: count ==1260 [2025-01-01 20:32:17] Production.ERROR: pbx CDR StartTime 2025-01-01 17:32:04 - End Time 2025-01-01 20:32:04 [2025-01-01 20:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153344', 'tblTempUsageDetail_20' ) start [2025-01-01 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153344', 'tblTempUsageDetail_20' ) end [2025-01-01 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153344', 'tblTempVendorCDR_20' ) start [2025-01-01 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153344', 'tblTempVendorCDR_20' ) end [2025-01-01 20:32:17] Production.INFO: ProcessCDR(1,14153344,1,1,2) [2025-01-01 20:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153344', 'tblTempUsageDetail_20' ) start [2025-01-01 20:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153344', 'tblTempUsageDetail_20' ) end [2025-01-01 20:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:32:20] Production.INFO: ==18314== Releasing lock... [2025-01-01 20:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:32:20] Production.INFO: 37 MB #Memory Used# [2025-01-01 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:33:05 [end_date_ymd] => 2025-01-01 20:33:05 [RateCDR] => 1 ) [2025-01-01 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 17:33:05' and `end` < '2025-01-01 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 20:33:18] Production.INFO: count ==1221 [2025-01-01 20:33:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:33:05 - End Time 2025-01-01 20:33:05 [2025-01-01 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153349', 'tblTempUsageDetail_20' ) start [2025-01-01 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153349', 'tblTempUsageDetail_20' ) end [2025-01-01 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153349', 'tblTempVendorCDR_20' ) start [2025-01-01 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153349', 'tblTempVendorCDR_20' ) end [2025-01-01 20:33:18] Production.INFO: ProcessCDR(1,14153349,1,1,2) [2025-01-01 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153349', 'tblTempUsageDetail_20' ) start [2025-01-01 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153349', 'tblTempUsageDetail_20' ) end [2025-01-01 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:33:23] Production.INFO: ==18452== Releasing lock... [2025-01-01 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:33:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-01 20:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:34:04 [end_date_ymd] => 2025-01-01 20:34:04 [RateCDR] => 1 ) [2025-01-01 20: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-01-01 17:34:04' and `end` < '2025-01-01 20: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-01-01 20:34:18] Production.INFO: count ==1211 [2025-01-01 20:34:19] Production.ERROR: pbx CDR StartTime 2025-01-01 17:34:04 - End Time 2025-01-01 20:34:04 [2025-01-01 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153354', 'tblTempUsageDetail_20' ) start [2025-01-01 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153354', 'tblTempUsageDetail_20' ) end [2025-01-01 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153354', 'tblTempVendorCDR_20' ) start [2025-01-01 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153354', 'tblTempVendorCDR_20' ) end [2025-01-01 20:34:19] Production.INFO: ProcessCDR(1,14153354,1,1,2) [2025-01-01 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153354', 'tblTempUsageDetail_20' ) start [2025-01-01 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153354', 'tblTempUsageDetail_20' ) end [2025-01-01 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:34:22] Production.INFO: ==18544== Releasing lock... [2025-01-01 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:34:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-01 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:35:05 [end_date_ymd] => 2025-01-01 20:35:05 [RateCDR] => 1 ) [2025-01-01 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 17:35:05' and `end` < '2025-01-01 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 20:35:19] Production.INFO: count ==1209 [2025-01-01 20:35:19] Production.ERROR: pbx CDR StartTime 2025-01-01 17:35:05 - End Time 2025-01-01 20:35:05 [2025-01-01 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153359', 'tblTempUsageDetail_20' ) start [2025-01-01 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153359', 'tblTempUsageDetail_20' ) end [2025-01-01 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153359', 'tblTempVendorCDR_20' ) start [2025-01-01 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153359', 'tblTempVendorCDR_20' ) end [2025-01-01 20:35:19] Production.INFO: ProcessCDR(1,14153359,1,1,2) [2025-01-01 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153359', 'tblTempUsageDetail_20' ) start [2025-01-01 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153359', 'tblTempUsageDetail_20' ) end [2025-01-01 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:35:23] Production.INFO: ==18638== Releasing lock... [2025-01-01 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:35:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-01 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:36:05 [end_date_ymd] => 2025-01-01 20:36:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:36:05' and `end` < '2025-01-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-01-01 20:36:19] Production.INFO: count ==1194 [2025-01-01 20:36:19] Production.ERROR: pbx CDR StartTime 2025-01-01 17:36:05 - End Time 2025-01-01 20:36:05 [2025-01-01 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153364', 'tblTempUsageDetail_20' ) start [2025-01-01 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153364', 'tblTempUsageDetail_20' ) end [2025-01-01 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153364', 'tblTempVendorCDR_20' ) start [2025-01-01 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153364', 'tblTempVendorCDR_20' ) end [2025-01-01 20:36:19] Production.INFO: ProcessCDR(1,14153364,1,1,2) [2025-01-01 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153364', 'tblTempUsageDetail_20' ) start [2025-01-01 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153364', 'tblTempUsageDetail_20' ) end [2025-01-01 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:36:23] Production.INFO: ==18730== Releasing lock... [2025-01-01 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:36:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-01 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:37:05 [end_date_ymd] => 2025-01-01 20:37:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:37:05' and `end` < '2025-01-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-01-01 20:37:18] Production.INFO: count ==1185 [2025-01-01 20:37:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:37:05 - End Time 2025-01-01 20:37:05 [2025-01-01 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153369', 'tblTempUsageDetail_20' ) start [2025-01-01 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153369', 'tblTempUsageDetail_20' ) end [2025-01-01 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153369', 'tblTempVendorCDR_20' ) start [2025-01-01 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153369', 'tblTempVendorCDR_20' ) end [2025-01-01 20:37:18] Production.INFO: ProcessCDR(1,14153369,1,1,2) [2025-01-01 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153369', 'tblTempUsageDetail_20' ) start [2025-01-01 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153369', 'tblTempUsageDetail_20' ) end [2025-01-01 20:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:37:21] Production.INFO: ==18826== Releasing lock... [2025-01-01 20:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:37:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-01 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:38:05 [end_date_ymd] => 2025-01-01 20:38:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:38:05' and `end` < '2025-01-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-01-01 20:38:18] Production.INFO: count ==1178 [2025-01-01 20:38:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:38:05 - End Time 2025-01-01 20:38:05 [2025-01-01 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153374', 'tblTempUsageDetail_20' ) start [2025-01-01 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153374', 'tblTempUsageDetail_20' ) end [2025-01-01 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153374', 'tblTempVendorCDR_20' ) start [2025-01-01 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153374', 'tblTempVendorCDR_20' ) end [2025-01-01 20:38:18] Production.INFO: ProcessCDR(1,14153374,1,1,2) [2025-01-01 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153374', 'tblTempUsageDetail_20' ) start [2025-01-01 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153374', 'tblTempUsageDetail_20' ) end [2025-01-01 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:38:23] Production.INFO: ==18924== Releasing lock... [2025-01-01 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:38:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-01 20:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:39:04 [end_date_ymd] => 2025-01-01 20:39:04 [RateCDR] => 1 ) [2025-01-01 20: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-01-01 17:39:04' and `end` < '2025-01-01 20: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-01-01 20:39:17] Production.INFO: count ==1178 [2025-01-01 20:39:17] Production.ERROR: pbx CDR StartTime 2025-01-01 17:39:04 - End Time 2025-01-01 20:39:04 [2025-01-01 20:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153379', 'tblTempUsageDetail_20' ) start [2025-01-01 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153379', 'tblTempUsageDetail_20' ) end [2025-01-01 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153379', 'tblTempVendorCDR_20' ) start [2025-01-01 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153379', 'tblTempVendorCDR_20' ) end [2025-01-01 20:39:17] Production.INFO: ProcessCDR(1,14153379,1,1,2) [2025-01-01 20:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153379', 'tblTempUsageDetail_20' ) start [2025-01-01 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153379', 'tblTempUsageDetail_20' ) end [2025-01-01 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:39:22] Production.INFO: ==19023== Releasing lock... [2025-01-01 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:39:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-01 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:40:06 [end_date_ymd] => 2025-01-01 20:40:06 [RateCDR] => 1 ) [2025-01-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-01-01 17:40:06' and `end` < '2025-01-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-01-01 20:40:19] Production.INFO: count ==1166 [2025-01-01 20:40:19] Production.ERROR: pbx CDR StartTime 2025-01-01 17:40:06 - End Time 2025-01-01 20:40:06 [2025-01-01 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153385', 'tblTempUsageDetail_20' ) start [2025-01-01 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153385', 'tblTempUsageDetail_20' ) end [2025-01-01 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153385', 'tblTempVendorCDR_20' ) start [2025-01-01 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153385', 'tblTempVendorCDR_20' ) end [2025-01-01 20:40:19] Production.INFO: ProcessCDR(1,14153385,1,1,2) [2025-01-01 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153385', 'tblTempUsageDetail_20' ) start [2025-01-01 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153385', 'tblTempUsageDetail_20' ) end [2025-01-01 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:40:23] Production.INFO: ==19123== Releasing lock... [2025-01-01 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:40:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-01 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:41:05 [end_date_ymd] => 2025-01-01 20:41:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:41:05' and `end` < '2025-01-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-01-01 20:41:18] Production.INFO: count ==1136 [2025-01-01 20:41:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:41:05 - End Time 2025-01-01 20:41:05 [2025-01-01 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153390', 'tblTempUsageDetail_20' ) start [2025-01-01 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153390', 'tblTempUsageDetail_20' ) end [2025-01-01 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153390', 'tblTempVendorCDR_20' ) start [2025-01-01 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153390', 'tblTempVendorCDR_20' ) end [2025-01-01 20:41:18] Production.INFO: ProcessCDR(1,14153390,1,1,2) [2025-01-01 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153390', 'tblTempUsageDetail_20' ) start [2025-01-01 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153390', 'tblTempUsageDetail_20' ) end [2025-01-01 20:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:41:21] Production.INFO: ==19219== Releasing lock... [2025-01-01 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:41:21] Production.INFO: 36 MB #Memory Used# [2025-01-01 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:42:05 [end_date_ymd] => 2025-01-01 20:42:05 [RateCDR] => 1 ) [2025-01-01 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 17:42:05' and `end` < '2025-01-01 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 20:42:18] Production.INFO: count ==1134 [2025-01-01 20:42:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:42:05 - End Time 2025-01-01 20:42:05 [2025-01-01 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153395', 'tblTempUsageDetail_20' ) start [2025-01-01 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153395', 'tblTempUsageDetail_20' ) end [2025-01-01 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153395', 'tblTempVendorCDR_20' ) start [2025-01-01 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153395', 'tblTempVendorCDR_20' ) end [2025-01-01 20:42:18] Production.INFO: ProcessCDR(1,14153395,1,1,2) [2025-01-01 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153395', 'tblTempUsageDetail_20' ) start [2025-01-01 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153395', 'tblTempUsageDetail_20' ) end [2025-01-01 20:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:42:21] Production.INFO: ==19315== Releasing lock... [2025-01-01 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:42:21] Production.INFO: 36 MB #Memory Used# [2025-01-01 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:43:05 [end_date_ymd] => 2025-01-01 20:43:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:43:05' and `end` < '2025-01-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-01-01 20:43:19] Production.INFO: count ==1134 [2025-01-01 20:43:19] Production.ERROR: pbx CDR StartTime 2025-01-01 17:43:05 - End Time 2025-01-01 20:43:05 [2025-01-01 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153400', 'tblTempUsageDetail_20' ) start [2025-01-01 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153400', 'tblTempUsageDetail_20' ) end [2025-01-01 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153400', 'tblTempVendorCDR_20' ) start [2025-01-01 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153400', 'tblTempVendorCDR_20' ) end [2025-01-01 20:43:19] Production.INFO: ProcessCDR(1,14153400,1,1,2) [2025-01-01 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153400', 'tblTempUsageDetail_20' ) start [2025-01-01 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153400', 'tblTempUsageDetail_20' ) end [2025-01-01 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:43:22] Production.INFO: ==19405== Releasing lock... [2025-01-01 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:43:22] Production.INFO: 36 MB #Memory Used# [2025-01-01 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:44:05 [end_date_ymd] => 2025-01-01 20:44:05 [RateCDR] => 1 ) [2025-01-01 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 17:44:05' and `end` < '2025-01-01 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 20:44:19] Production.INFO: count ==1132 [2025-01-01 20:44:19] Production.ERROR: pbx CDR StartTime 2025-01-01 17:44:05 - End Time 2025-01-01 20:44:05 [2025-01-01 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153405', 'tblTempUsageDetail_20' ) start [2025-01-01 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153405', 'tblTempUsageDetail_20' ) end [2025-01-01 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153405', 'tblTempVendorCDR_20' ) start [2025-01-01 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153405', 'tblTempVendorCDR_20' ) end [2025-01-01 20:44:19] Production.INFO: ProcessCDR(1,14153405,1,1,2) [2025-01-01 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153405', 'tblTempUsageDetail_20' ) start [2025-01-01 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153405', 'tblTempUsageDetail_20' ) end [2025-01-01 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:44:22] Production.INFO: ==19504== Releasing lock... [2025-01-01 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:44:22] Production.INFO: 36 MB #Memory Used# [2025-01-01 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:45:05 [end_date_ymd] => 2025-01-01 20:45:05 [RateCDR] => 1 ) [2025-01-01 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 17:45:05' and `end` < '2025-01-01 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 20:45:18] Production.INFO: count ==1131 [2025-01-01 20:45:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:45:05 - End Time 2025-01-01 20:45:05 [2025-01-01 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153410', 'tblTempUsageDetail_20' ) start [2025-01-01 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153410', 'tblTempUsageDetail_20' ) end [2025-01-01 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153410', 'tblTempVendorCDR_20' ) start [2025-01-01 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153410', 'tblTempVendorCDR_20' ) end [2025-01-01 20:45:18] Production.INFO: ProcessCDR(1,14153410,1,1,2) [2025-01-01 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153410', 'tblTempUsageDetail_20' ) start [2025-01-01 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153410', 'tblTempUsageDetail_20' ) end [2025-01-01 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:45:21] Production.INFO: ==19602== Releasing lock... [2025-01-01 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:45:21] Production.INFO: 36 MB #Memory Used# [2025-01-01 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:46:05 [end_date_ymd] => 2025-01-01 20:46:05 [RateCDR] => 1 ) [2025-01-01 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 17:46:05' and `end` < '2025-01-01 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 20:46:18] Production.INFO: count ==1130 [2025-01-01 20:46:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:46:05 - End Time 2025-01-01 20:46:05 [2025-01-01 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153415', 'tblTempUsageDetail_20' ) start [2025-01-01 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153415', 'tblTempUsageDetail_20' ) end [2025-01-01 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153415', 'tblTempVendorCDR_20' ) start [2025-01-01 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153415', 'tblTempVendorCDR_20' ) end [2025-01-01 20:46:18] Production.INFO: ProcessCDR(1,14153415,1,1,2) [2025-01-01 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153415', 'tblTempUsageDetail_20' ) start [2025-01-01 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153415', 'tblTempUsageDetail_20' ) end [2025-01-01 20:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:46:21] Production.INFO: ==19700== Releasing lock... [2025-01-01 20:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:46:21] Production.INFO: 36 MB #Memory Used# [2025-01-01 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:47:06 [end_date_ymd] => 2025-01-01 20:47:06 [RateCDR] => 1 ) [2025-01-01 20:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 17:47:06' and `end` < '2025-01-01 20:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 20:47:19] Production.INFO: count ==1132 [2025-01-01 20:47:19] Production.ERROR: pbx CDR StartTime 2025-01-01 17:47:06 - End Time 2025-01-01 20:47:06 [2025-01-01 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153420', 'tblTempUsageDetail_20' ) start [2025-01-01 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153420', 'tblTempUsageDetail_20' ) end [2025-01-01 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153420', 'tblTempVendorCDR_20' ) start [2025-01-01 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153420', 'tblTempVendorCDR_20' ) end [2025-01-01 20:47:19] Production.INFO: ProcessCDR(1,14153420,1,1,2) [2025-01-01 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153420', 'tblTempUsageDetail_20' ) start [2025-01-01 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153420', 'tblTempUsageDetail_20' ) end [2025-01-01 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:47:22] Production.INFO: ==19795== Releasing lock... [2025-01-01 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:47:22] Production.INFO: 36 MB #Memory Used# [2025-01-01 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:48:05 [end_date_ymd] => 2025-01-01 20:48:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:48:05' and `end` < '2025-01-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-01-01 20:48:18] Production.INFO: count ==1132 [2025-01-01 20:48:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:48:05 - End Time 2025-01-01 20:48:05 [2025-01-01 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153425', 'tblTempUsageDetail_20' ) start [2025-01-01 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153425', 'tblTempUsageDetail_20' ) end [2025-01-01 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153425', 'tblTempVendorCDR_20' ) start [2025-01-01 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153425', 'tblTempVendorCDR_20' ) end [2025-01-01 20:48:18] Production.INFO: ProcessCDR(1,14153425,1,1,2) [2025-01-01 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153425', 'tblTempUsageDetail_20' ) start [2025-01-01 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153425', 'tblTempUsageDetail_20' ) end [2025-01-01 20:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:48:21] Production.INFO: ==19892== Releasing lock... [2025-01-01 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:48:21] Production.INFO: 36 MB #Memory Used# [2025-01-01 20:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:49:04 [end_date_ymd] => 2025-01-01 20:49:04 [RateCDR] => 1 ) [2025-01-01 20:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 17:49:04' and `end` < '2025-01-01 20:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 20:49:17] Production.INFO: count ==1129 [2025-01-01 20:49:17] Production.ERROR: pbx CDR StartTime 2025-01-01 17:49:04 - End Time 2025-01-01 20:49:04 [2025-01-01 20:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153430', 'tblTempUsageDetail_20' ) start [2025-01-01 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153430', 'tblTempUsageDetail_20' ) end [2025-01-01 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153430', 'tblTempVendorCDR_20' ) start [2025-01-01 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153430', 'tblTempVendorCDR_20' ) end [2025-01-01 20:49:17] Production.INFO: ProcessCDR(1,14153430,1,1,2) [2025-01-01 20:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153430', 'tblTempUsageDetail_20' ) start [2025-01-01 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153430', 'tblTempUsageDetail_20' ) end [2025-01-01 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:49:22] Production.INFO: ==20026== Releasing lock... [2025-01-01 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:49:22] Production.INFO: 36 MB #Memory Used# [2025-01-01 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:50:05 [end_date_ymd] => 2025-01-01 20:50:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:50:05' and `end` < '2025-01-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-01-01 20:50:18] Production.INFO: count ==1129 [2025-01-01 20:50:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:50:05 - End Time 2025-01-01 20:50:05 [2025-01-01 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153436', 'tblTempUsageDetail_20' ) start [2025-01-01 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153436', 'tblTempUsageDetail_20' ) end [2025-01-01 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153436', 'tblTempVendorCDR_20' ) start [2025-01-01 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153436', 'tblTempVendorCDR_20' ) end [2025-01-01 20:50:18] Production.INFO: ProcessCDR(1,14153436,1,1,2) [2025-01-01 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153436', 'tblTempUsageDetail_20' ) start [2025-01-01 20:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153436', 'tblTempUsageDetail_20' ) end [2025-01-01 20:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:50:21] Production.INFO: ==20114== Releasing lock... [2025-01-01 20:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:50:21] Production.INFO: 36 MB #Memory Used# [2025-01-01 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:51:05 [end_date_ymd] => 2025-01-01 20:51:05 [RateCDR] => 1 ) [2025-01-01 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 17:51:05' and `end` < '2025-01-01 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 20:51:18] Production.INFO: count ==1173 [2025-01-01 20:51:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:51:05 - End Time 2025-01-01 20:51:05 [2025-01-01 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153441', 'tblTempUsageDetail_20' ) start [2025-01-01 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153441', 'tblTempUsageDetail_20' ) end [2025-01-01 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153441', 'tblTempVendorCDR_20' ) start [2025-01-01 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153441', 'tblTempVendorCDR_20' ) end [2025-01-01 20:51:18] Production.INFO: ProcessCDR(1,14153441,1,1,2) [2025-01-01 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153441', 'tblTempUsageDetail_20' ) start [2025-01-01 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153441', 'tblTempUsageDetail_20' ) end [2025-01-01 20:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:51:21] Production.INFO: ==20198== Releasing lock... [2025-01-01 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:51:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-01 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:52:05 [end_date_ymd] => 2025-01-01 20:52:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:52:05' and `end` < '2025-01-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-01-01 20:52:18] Production.INFO: count ==1179 [2025-01-01 20:52:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:52:05 - End Time 2025-01-01 20:52:05 [2025-01-01 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153446', 'tblTempUsageDetail_20' ) start [2025-01-01 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153446', 'tblTempUsageDetail_20' ) end [2025-01-01 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153446', 'tblTempVendorCDR_20' ) start [2025-01-01 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153446', 'tblTempVendorCDR_20' ) end [2025-01-01 20:52:18] Production.INFO: ProcessCDR(1,14153446,1,1,2) [2025-01-01 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153446', 'tblTempUsageDetail_20' ) start [2025-01-01 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153446', 'tblTempUsageDetail_20' ) end [2025-01-01 20:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:52:21] Production.INFO: ==20289== Releasing lock... [2025-01-01 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:52:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-01 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:53:05 [end_date_ymd] => 2025-01-01 20:53:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:53:05' and `end` < '2025-01-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-01-01 20:53:18] Production.INFO: count ==1179 [2025-01-01 20:53:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:53:05 - End Time 2025-01-01 20:53:05 [2025-01-01 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153451', 'tblTempUsageDetail_20' ) start [2025-01-01 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153451', 'tblTempUsageDetail_20' ) end [2025-01-01 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153451', 'tblTempVendorCDR_20' ) start [2025-01-01 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153451', 'tblTempVendorCDR_20' ) end [2025-01-01 20:53:18] Production.INFO: ProcessCDR(1,14153451,1,1,2) [2025-01-01 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153451', 'tblTempUsageDetail_20' ) start [2025-01-01 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153451', 'tblTempUsageDetail_20' ) end [2025-01-01 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:53:22] Production.INFO: ==20380== Releasing lock... [2025-01-01 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:53:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-01 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:54:05 [end_date_ymd] => 2025-01-01 20:54:05 [RateCDR] => 1 ) [2025-01-01 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 17:54:05' and `end` < '2025-01-01 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 20:54:19] Production.INFO: count ==1179 [2025-01-01 20:54:19] Production.ERROR: pbx CDR StartTime 2025-01-01 17:54:05 - End Time 2025-01-01 20:54:05 [2025-01-01 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153456', 'tblTempUsageDetail_20' ) start [2025-01-01 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153456', 'tblTempUsageDetail_20' ) end [2025-01-01 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153456', 'tblTempVendorCDR_20' ) start [2025-01-01 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153456', 'tblTempVendorCDR_20' ) end [2025-01-01 20:54:19] Production.INFO: ProcessCDR(1,14153456,1,1,2) [2025-01-01 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153456', 'tblTempUsageDetail_20' ) start [2025-01-01 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153456', 'tblTempUsageDetail_20' ) end [2025-01-01 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:54:22] Production.INFO: ==20467== Releasing lock... [2025-01-01 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:54:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-01 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:55:05 [end_date_ymd] => 2025-01-01 20:55:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:55:05' and `end` < '2025-01-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-01-01 20:55:18] Production.INFO: count ==1175 [2025-01-01 20:55:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:55:05 - End Time 2025-01-01 20:55:05 [2025-01-01 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153461', 'tblTempUsageDetail_20' ) start [2025-01-01 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153461', 'tblTempUsageDetail_20' ) end [2025-01-01 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153461', 'tblTempVendorCDR_20' ) start [2025-01-01 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153461', 'tblTempVendorCDR_20' ) end [2025-01-01 20:55:18] Production.INFO: ProcessCDR(1,14153461,1,1,2) [2025-01-01 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153461', 'tblTempUsageDetail_20' ) start [2025-01-01 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153461', 'tblTempUsageDetail_20' ) end [2025-01-01 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:55:21] Production.INFO: ==20556== Releasing lock... [2025-01-01 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:55:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-01 20:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:56:04 [end_date_ymd] => 2025-01-01 20:56:04 [RateCDR] => 1 ) [2025-01-01 20: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-01-01 17:56:04' and `end` < '2025-01-01 20: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-01-01 20:56:17] Production.INFO: count ==1174 [2025-01-01 20:56:17] Production.ERROR: pbx CDR StartTime 2025-01-01 17:56:04 - End Time 2025-01-01 20:56:04 [2025-01-01 20:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153466', 'tblTempUsageDetail_20' ) start [2025-01-01 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153466', 'tblTempUsageDetail_20' ) end [2025-01-01 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153466', 'tblTempVendorCDR_20' ) start [2025-01-01 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153466', 'tblTempVendorCDR_20' ) end [2025-01-01 20:56:17] Production.INFO: ProcessCDR(1,14153466,1,1,2) [2025-01-01 20:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153466', 'tblTempUsageDetail_20' ) start [2025-01-01 20:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153466', 'tblTempUsageDetail_20' ) end [2025-01-01 20:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:56:20] Production.INFO: ==20649== Releasing lock... [2025-01-01 20:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:56:20] Production.INFO: 36.25 MB #Memory Used# [2025-01-01 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:57:05 [end_date_ymd] => 2025-01-01 20:57:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:57:05' and `end` < '2025-01-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-01-01 20:57:19] Production.INFO: count ==1174 [2025-01-01 20:57:19] Production.ERROR: pbx CDR StartTime 2025-01-01 17:57:05 - End Time 2025-01-01 20:57:05 [2025-01-01 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153471', 'tblTempUsageDetail_20' ) start [2025-01-01 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153471', 'tblTempUsageDetail_20' ) end [2025-01-01 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153471', 'tblTempVendorCDR_20' ) start [2025-01-01 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153471', 'tblTempVendorCDR_20' ) end [2025-01-01 20:57:19] Production.INFO: ProcessCDR(1,14153471,1,1,2) [2025-01-01 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153471', 'tblTempUsageDetail_20' ) start [2025-01-01 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153471', 'tblTempUsageDetail_20' ) end [2025-01-01 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:57:22] Production.INFO: ==20736== Releasing lock... [2025-01-01 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:57:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-01 20:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:58:06 [end_date_ymd] => 2025-01-01 20:58:06 [RateCDR] => 1 ) [2025-01-01 20: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-01-01 17:58:06' and `end` < '2025-01-01 20: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-01-01 20:58:18] Production.INFO: count ==1172 [2025-01-01 20:58:18] Production.ERROR: pbx CDR StartTime 2025-01-01 17:58:06 - End Time 2025-01-01 20:58:06 [2025-01-01 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153476', 'tblTempUsageDetail_20' ) start [2025-01-01 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153476', 'tblTempUsageDetail_20' ) end [2025-01-01 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153476', 'tblTempVendorCDR_20' ) start [2025-01-01 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153476', 'tblTempVendorCDR_20' ) end [2025-01-01 20:58:18] Production.INFO: ProcessCDR(1,14153476,1,1,2) [2025-01-01 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153476', 'tblTempUsageDetail_20' ) start [2025-01-01 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153476', 'tblTempUsageDetail_20' ) end [2025-01-01 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:58:22] Production.INFO: ==20828== Releasing lock... [2025-01-01 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:58:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-01 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 17:59:05 [end_date_ymd] => 2025-01-01 20:59:05 [RateCDR] => 1 ) [2025-01-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-01-01 17:59:05' and `end` < '2025-01-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-01-01 20:59:17] Production.INFO: count ==1169 [2025-01-01 20:59:17] Production.ERROR: pbx CDR StartTime 2025-01-01 17:59:05 - End Time 2025-01-01 20:59:05 [2025-01-01 20:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153481', 'tblTempUsageDetail_20' ) start [2025-01-01 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153481', 'tblTempUsageDetail_20' ) end [2025-01-01 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153481', 'tblTempVendorCDR_20' ) start [2025-01-01 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153481', 'tblTempVendorCDR_20' ) end [2025-01-01 20:59:17] Production.INFO: ProcessCDR(1,14153481,1,1,2) [2025-01-01 20:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 20:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153481', 'tblTempUsageDetail_20' ) start [2025-01-01 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153481', 'tblTempUsageDetail_20' ) end [2025-01-01 20:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 20:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 20:59:21] Production.INFO: ==20916== Releasing lock... [2025-01-01 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 20:59:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-01 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:00:06 [end_date_ymd] => 2025-01-01 21:00:06 [RateCDR] => 1 ) [2025-01-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-01-01 18:00:06' and `end` < '2025-01-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-01-01 21:00:19] Production.INFO: count ==1169 [2025-01-01 21:00:19] Production.ERROR: pbx CDR StartTime 2025-01-01 18:00:06 - End Time 2025-01-01 21:00:06 [2025-01-01 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153487', 'tblTempUsageDetail_20' ) start [2025-01-01 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153487', 'tblTempUsageDetail_20' ) end [2025-01-01 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153487', 'tblTempVendorCDR_20' ) start [2025-01-01 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153487', 'tblTempVendorCDR_20' ) end [2025-01-01 21:00:19] Production.INFO: ProcessCDR(1,14153487,1,1,2) [2025-01-01 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153487', 'tblTempUsageDetail_20' ) start [2025-01-01 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153487', 'tblTempUsageDetail_20' ) end [2025-01-01 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:00:22] Production.INFO: ==21018== Releasing lock... [2025-01-01 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:00:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-01 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:01:05 [end_date_ymd] => 2025-01-01 21:01:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:01:05' and `end` < '2025-01-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-01-01 21:01:19] Production.INFO: count ==1135 [2025-01-01 21:01:19] Production.ERROR: pbx CDR StartTime 2025-01-01 18:01:05 - End Time 2025-01-01 21:01:05 [2025-01-01 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153492', 'tblTempUsageDetail_20' ) start [2025-01-01 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153492', 'tblTempUsageDetail_20' ) end [2025-01-01 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153492', 'tblTempVendorCDR_20' ) start [2025-01-01 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153492', 'tblTempVendorCDR_20' ) end [2025-01-01 21:01:19] Production.INFO: ProcessCDR(1,14153492,1,1,2) [2025-01-01 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153492', 'tblTempUsageDetail_20' ) start [2025-01-01 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153492', 'tblTempUsageDetail_20' ) end [2025-01-01 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:01:22] Production.INFO: ==21132== Releasing lock... [2025-01-01 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:01:22] Production.INFO: 36 MB #Memory Used# [2025-01-01 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:02:05 [end_date_ymd] => 2025-01-01 21:02:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:02:05' and `end` < '2025-01-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-01-01 21:02:18] Production.INFO: count ==1133 [2025-01-01 21:02:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:02:05 - End Time 2025-01-01 21:02:05 [2025-01-01 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153497', 'tblTempUsageDetail_20' ) start [2025-01-01 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153497', 'tblTempUsageDetail_20' ) end [2025-01-01 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153497', 'tblTempVendorCDR_20' ) start [2025-01-01 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153497', 'tblTempVendorCDR_20' ) end [2025-01-01 21:02:18] Production.INFO: ProcessCDR(1,14153497,1,1,2) [2025-01-01 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153497', 'tblTempUsageDetail_20' ) start [2025-01-01 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153497', 'tblTempUsageDetail_20' ) end [2025-01-01 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:02:22] Production.INFO: ==21231== Releasing lock... [2025-01-01 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:02:22] Production.INFO: 36 MB #Memory Used# [2025-01-01 21:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:03:04 [end_date_ymd] => 2025-01-01 21:03:04 [RateCDR] => 1 ) [2025-01-01 21: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-01 18:03:04' and `end` < '2025-01-01 21: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-01-01 21:03:17] Production.INFO: count ==1129 [2025-01-01 21:03:17] Production.ERROR: pbx CDR StartTime 2025-01-01 18:03:04 - End Time 2025-01-01 21:03:04 [2025-01-01 21:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153502', 'tblTempUsageDetail_20' ) start [2025-01-01 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153502', 'tblTempUsageDetail_20' ) end [2025-01-01 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153502', 'tblTempVendorCDR_20' ) start [2025-01-01 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153502', 'tblTempVendorCDR_20' ) end [2025-01-01 21:03:17] Production.INFO: ProcessCDR(1,14153502,1,1,2) [2025-01-01 21:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153502', 'tblTempUsageDetail_20' ) start [2025-01-01 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153502', 'tblTempUsageDetail_20' ) end [2025-01-01 21:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:03:20] Production.INFO: ==21327== Releasing lock... [2025-01-01 21:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:03:20] Production.INFO: 36 MB #Memory Used# [2025-01-01 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:04:05 [end_date_ymd] => 2025-01-01 21:04:05 [RateCDR] => 1 ) [2025-01-01 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 18:04:05' and `end` < '2025-01-01 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 21:04:18] Production.INFO: count ==1128 [2025-01-01 21:04:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:04:05 - End Time 2025-01-01 21:04:05 [2025-01-01 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153507', 'tblTempUsageDetail_20' ) start [2025-01-01 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153507', 'tblTempUsageDetail_20' ) end [2025-01-01 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153507', 'tblTempVendorCDR_20' ) start [2025-01-01 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153507', 'tblTempVendorCDR_20' ) end [2025-01-01 21:04:18] Production.INFO: ProcessCDR(1,14153507,1,1,2) [2025-01-01 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153507', 'tblTempUsageDetail_20' ) start [2025-01-01 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153507', 'tblTempUsageDetail_20' ) end [2025-01-01 21:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:04:21] Production.INFO: ==21429== Releasing lock... [2025-01-01 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:04:21] Production.INFO: 36 MB #Memory Used# [2025-01-01 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:05:05 [end_date_ymd] => 2025-01-01 21:05:05 [RateCDR] => 1 ) [2025-01-01 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 18:05:05' and `end` < '2025-01-01 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 21:05:18] Production.INFO: count ==1125 [2025-01-01 21:05:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:05:05 - End Time 2025-01-01 21:05:05 [2025-01-01 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153512', 'tblTempUsageDetail_20' ) start [2025-01-01 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153512', 'tblTempUsageDetail_20' ) end [2025-01-01 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153512', 'tblTempVendorCDR_20' ) start [2025-01-01 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153512', 'tblTempVendorCDR_20' ) end [2025-01-01 21:05:18] Production.INFO: ProcessCDR(1,14153512,1,1,2) [2025-01-01 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153512', 'tblTempUsageDetail_20' ) start [2025-01-01 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153512', 'tblTempUsageDetail_20' ) end [2025-01-01 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:05:21] Production.INFO: ==21571== Releasing lock... [2025-01-01 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:05:21] Production.INFO: 36 MB #Memory Used# [2025-01-01 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:06:05 [end_date_ymd] => 2025-01-01 21:06:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:06:05' and `end` < '2025-01-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-01-01 21:06:19] Production.INFO: count ==1127 [2025-01-01 21:06:19] Production.ERROR: pbx CDR StartTime 2025-01-01 18:06:05 - End Time 2025-01-01 21:06:05 [2025-01-01 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153517', 'tblTempUsageDetail_20' ) start [2025-01-01 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153517', 'tblTempUsageDetail_20' ) end [2025-01-01 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153517', 'tblTempVendorCDR_20' ) start [2025-01-01 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153517', 'tblTempVendorCDR_20' ) end [2025-01-01 21:06:19] Production.INFO: ProcessCDR(1,14153517,1,1,2) [2025-01-01 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153517', 'tblTempUsageDetail_20' ) start [2025-01-01 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153517', 'tblTempUsageDetail_20' ) end [2025-01-01 21:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:06:24] Production.INFO: ==21670== Releasing lock... [2025-01-01 21:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:06:24] Production.INFO: 36 MB #Memory Used# [2025-01-01 21:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:07:04 [end_date_ymd] => 2025-01-01 21:07:04 [RateCDR] => 1 ) [2025-01-01 21: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-01-01 18:07:04' and `end` < '2025-01-01 21: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-01-01 21:07:17] Production.INFO: count ==1144 [2025-01-01 21:07:17] Production.ERROR: pbx CDR StartTime 2025-01-01 18:07:04 - End Time 2025-01-01 21:07:04 [2025-01-01 21:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153522', 'tblTempUsageDetail_20' ) start [2025-01-01 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153522', 'tblTempUsageDetail_20' ) end [2025-01-01 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153522', 'tblTempVendorCDR_20' ) start [2025-01-01 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153522', 'tblTempVendorCDR_20' ) end [2025-01-01 21:07:18] Production.INFO: ProcessCDR(1,14153522,1,1,2) [2025-01-01 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153522', 'tblTempUsageDetail_20' ) start [2025-01-01 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153522', 'tblTempUsageDetail_20' ) end [2025-01-01 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:07:22] Production.INFO: ==21759== Releasing lock... [2025-01-01 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:07:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-01 21:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:08:06 [end_date_ymd] => 2025-01-01 21:08:06 [RateCDR] => 1 ) [2025-01-01 21: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-01 18:08:06' and `end` < '2025-01-01 21: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-01-01 21:08:18] Production.INFO: count ==1144 [2025-01-01 21:08:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:08:06 - End Time 2025-01-01 21:08:06 [2025-01-01 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153527', 'tblTempUsageDetail_20' ) start [2025-01-01 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153527', 'tblTempUsageDetail_20' ) end [2025-01-01 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153527', 'tblTempVendorCDR_20' ) start [2025-01-01 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153527', 'tblTempVendorCDR_20' ) end [2025-01-01 21:08:18] Production.INFO: ProcessCDR(1,14153527,1,1,2) [2025-01-01 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153527', 'tblTempUsageDetail_20' ) start [2025-01-01 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153527', 'tblTempUsageDetail_20' ) end [2025-01-01 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:08:21] Production.INFO: ==21847== Releasing lock... [2025-01-01 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:08:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-01 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:09:05 [end_date_ymd] => 2025-01-01 21:09:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:09:05' and `end` < '2025-01-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-01-01 21:09:20] Production.INFO: count ==1145 [2025-01-01 21:09:20] Production.ERROR: pbx CDR StartTime 2025-01-01 18:09:05 - End Time 2025-01-01 21:09:05 [2025-01-01 21:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153532', 'tblTempUsageDetail_20' ) start [2025-01-01 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153532', 'tblTempUsageDetail_20' ) end [2025-01-01 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153532', 'tblTempVendorCDR_20' ) start [2025-01-01 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153532', 'tblTempVendorCDR_20' ) end [2025-01-01 21:09:20] Production.INFO: ProcessCDR(1,14153532,1,1,2) [2025-01-01 21:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153532', 'tblTempUsageDetail_20' ) start [2025-01-01 21:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153532', 'tblTempUsageDetail_20' ) end [2025-01-01 21:09:25] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:09:25] Production.INFO: ==21935== Releasing lock... [2025-01-01 21:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:09:25] Production.INFO: 36.25 MB #Memory Used# [2025-01-01 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:10:06 [end_date_ymd] => 2025-01-01 21:10:06 [RateCDR] => 1 ) [2025-01-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-01-01 18:10:06' and `end` < '2025-01-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-01-01 21:10:19] Production.INFO: count ==1147 [2025-01-01 21:10:19] Production.ERROR: pbx CDR StartTime 2025-01-01 18:10:06 - End Time 2025-01-01 21:10:06 [2025-01-01 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153538', 'tblTempUsageDetail_20' ) start [2025-01-01 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153538', 'tblTempUsageDetail_20' ) end [2025-01-01 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153538', 'tblTempVendorCDR_20' ) start [2025-01-01 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153538', 'tblTempVendorCDR_20' ) end [2025-01-01 21:10:19] Production.INFO: ProcessCDR(1,14153538,1,1,2) [2025-01-01 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153538', 'tblTempUsageDetail_20' ) start [2025-01-01 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153538', 'tblTempUsageDetail_20' ) end [2025-01-01 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:10:23] Production.INFO: ==22016== Releasing lock... [2025-01-01 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:10:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-01 21:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:11:06 [end_date_ymd] => 2025-01-01 21:11:06 [RateCDR] => 1 ) [2025-01-01 21: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-01-01 18:11:06' and `end` < '2025-01-01 21: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-01-01 21:11:18] Production.INFO: count ==1135 [2025-01-01 21:11:19] Production.ERROR: pbx CDR StartTime 2025-01-01 18:11:06 - End Time 2025-01-01 21:11:06 [2025-01-01 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153543', 'tblTempUsageDetail_20' ) start [2025-01-01 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153543', 'tblTempUsageDetail_20' ) end [2025-01-01 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153543', 'tblTempVendorCDR_20' ) start [2025-01-01 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153543', 'tblTempVendorCDR_20' ) end [2025-01-01 21:11:19] Production.INFO: ProcessCDR(1,14153543,1,1,2) [2025-01-01 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153543', 'tblTempUsageDetail_20' ) start [2025-01-01 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153543', 'tblTempUsageDetail_20' ) end [2025-01-01 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:11:22] Production.INFO: ==22093== Releasing lock... [2025-01-01 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:11:22] Production.INFO: 36 MB #Memory Used# [2025-01-01 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:12:05 [end_date_ymd] => 2025-01-01 21:12:05 [RateCDR] => 1 ) [2025-01-01 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 18:12:05' and `end` < '2025-01-01 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 21:12:19] Production.INFO: count ==1136 [2025-01-01 21:12:19] Production.ERROR: pbx CDR StartTime 2025-01-01 18:12:05 - End Time 2025-01-01 21:12:05 [2025-01-01 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153548', 'tblTempUsageDetail_20' ) start [2025-01-01 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153548', 'tblTempUsageDetail_20' ) end [2025-01-01 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153548', 'tblTempVendorCDR_20' ) start [2025-01-01 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153548', 'tblTempVendorCDR_20' ) end [2025-01-01 21:12:19] Production.INFO: ProcessCDR(1,14153548,1,1,2) [2025-01-01 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153548', 'tblTempUsageDetail_20' ) start [2025-01-01 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153548', 'tblTempUsageDetail_20' ) end [2025-01-01 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:12:22] Production.INFO: ==22165== Releasing lock... [2025-01-01 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:12:22] Production.INFO: 36 MB #Memory Used# [2025-01-01 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:13:05 [end_date_ymd] => 2025-01-01 21:13:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:13:05' and `end` < '2025-01-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-01-01 21:13:18] Production.INFO: count ==1136 [2025-01-01 21:13:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:13:05 - End Time 2025-01-01 21:13:05 [2025-01-01 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153553', 'tblTempUsageDetail_20' ) start [2025-01-01 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153553', 'tblTempUsageDetail_20' ) end [2025-01-01 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153553', 'tblTempVendorCDR_20' ) start [2025-01-01 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153553', 'tblTempVendorCDR_20' ) end [2025-01-01 21:13:18] Production.INFO: ProcessCDR(1,14153553,1,1,2) [2025-01-01 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153553', 'tblTempUsageDetail_20' ) start [2025-01-01 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153553', 'tblTempUsageDetail_20' ) end [2025-01-01 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:13:22] Production.INFO: ==22242== Releasing lock... [2025-01-01 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:13:22] Production.INFO: 36 MB #Memory Used# [2025-01-01 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:14:05 [end_date_ymd] => 2025-01-01 21:14:05 [RateCDR] => 1 ) [2025-01-01 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 18:14:05' and `end` < '2025-01-01 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 21:14:18] Production.INFO: count ==1136 [2025-01-01 21:14:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:14:05 - End Time 2025-01-01 21:14:05 [2025-01-01 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153558', 'tblTempUsageDetail_20' ) start [2025-01-01 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153558', 'tblTempUsageDetail_20' ) end [2025-01-01 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153558', 'tblTempVendorCDR_20' ) start [2025-01-01 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153558', 'tblTempVendorCDR_20' ) end [2025-01-01 21:14:18] Production.INFO: ProcessCDR(1,14153558,1,1,2) [2025-01-01 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153558', 'tblTempUsageDetail_20' ) start [2025-01-01 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153558', 'tblTempUsageDetail_20' ) end [2025-01-01 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:14:21] Production.INFO: ==22320== Releasing lock... [2025-01-01 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:14:21] Production.INFO: 36 MB #Memory Used# [2025-01-01 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:15:05 [end_date_ymd] => 2025-01-01 21:15:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:15:05' and `end` < '2025-01-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-01-01 21:15:18] Production.INFO: count ==1139 [2025-01-01 21:15:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:15:05 - End Time 2025-01-01 21:15:05 [2025-01-01 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153563', 'tblTempUsageDetail_20' ) start [2025-01-01 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153563', 'tblTempUsageDetail_20' ) end [2025-01-01 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153563', 'tblTempVendorCDR_20' ) start [2025-01-01 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153563', 'tblTempVendorCDR_20' ) end [2025-01-01 21:15:18] Production.INFO: ProcessCDR(1,14153563,1,1,2) [2025-01-01 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153563', 'tblTempUsageDetail_20' ) start [2025-01-01 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153563', 'tblTempUsageDetail_20' ) end [2025-01-01 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:15:21] Production.INFO: ==22395== Releasing lock... [2025-01-01 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:15:21] Production.INFO: 36 MB #Memory Used# [2025-01-01 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:16:05 [end_date_ymd] => 2025-01-01 21:16:05 [RateCDR] => 1 ) [2025-01-01 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 18:16:05' and `end` < '2025-01-01 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 21:16:18] Production.INFO: count ==1139 [2025-01-01 21:16:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:16:05 - End Time 2025-01-01 21:16:05 [2025-01-01 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153568', 'tblTempUsageDetail_20' ) start [2025-01-01 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153568', 'tblTempUsageDetail_20' ) end [2025-01-01 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153568', 'tblTempVendorCDR_20' ) start [2025-01-01 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153568', 'tblTempVendorCDR_20' ) end [2025-01-01 21:16:18] Production.INFO: ProcessCDR(1,14153568,1,1,2) [2025-01-01 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153568', 'tblTempUsageDetail_20' ) start [2025-01-01 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153568', 'tblTempUsageDetail_20' ) end [2025-01-01 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:16:21] Production.INFO: ==22466== Releasing lock... [2025-01-01 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:16:21] Production.INFO: 36 MB #Memory Used# [2025-01-01 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:17:05 [end_date_ymd] => 2025-01-01 21:17:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:17:05' and `end` < '2025-01-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-01-01 21:17:19] Production.INFO: count ==1139 [2025-01-01 21:17:19] Production.ERROR: pbx CDR StartTime 2025-01-01 18:17:05 - End Time 2025-01-01 21:17:05 [2025-01-01 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153573', 'tblTempUsageDetail_20' ) start [2025-01-01 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153573', 'tblTempUsageDetail_20' ) end [2025-01-01 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153573', 'tblTempVendorCDR_20' ) start [2025-01-01 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153573', 'tblTempVendorCDR_20' ) end [2025-01-01 21:17:19] Production.INFO: ProcessCDR(1,14153573,1,1,2) [2025-01-01 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153573', 'tblTempUsageDetail_20' ) start [2025-01-01 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153573', 'tblTempUsageDetail_20' ) end [2025-01-01 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:17:22] Production.INFO: ==22538== Releasing lock... [2025-01-01 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:17:22] Production.INFO: 36 MB #Memory Used# [2025-01-01 21:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:18:04 [end_date_ymd] => 2025-01-01 21:18:04 [RateCDR] => 1 ) [2025-01-01 21: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-01-01 18:18:04' and `end` < '2025-01-01 21: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-01-01 21:18:18] Production.INFO: count ==1141 [2025-01-01 21:18:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:18:04 - End Time 2025-01-01 21:18:04 [2025-01-01 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153578', 'tblTempUsageDetail_20' ) start [2025-01-01 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153578', 'tblTempUsageDetail_20' ) end [2025-01-01 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153578', 'tblTempVendorCDR_20' ) start [2025-01-01 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153578', 'tblTempVendorCDR_20' ) end [2025-01-01 21:18:18] Production.INFO: ProcessCDR(1,14153578,1,1,2) [2025-01-01 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153578', 'tblTempUsageDetail_20' ) start [2025-01-01 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153578', 'tblTempUsageDetail_20' ) end [2025-01-01 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:18:22] Production.INFO: ==22607== Releasing lock... [2025-01-01 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:18:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-01 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:19:05 [end_date_ymd] => 2025-01-01 21:19:05 [RateCDR] => 1 ) [2025-01-01 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 18:19:05' and `end` < '2025-01-01 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 21:19:17] Production.INFO: count ==1140 [2025-01-01 21:19:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:19:05 - End Time 2025-01-01 21:19:05 [2025-01-01 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153583', 'tblTempUsageDetail_20' ) start [2025-01-01 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153583', 'tblTempUsageDetail_20' ) end [2025-01-01 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153583', 'tblTempVendorCDR_20' ) start [2025-01-01 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153583', 'tblTempVendorCDR_20' ) end [2025-01-01 21:19:18] Production.INFO: ProcessCDR(1,14153583,1,1,2) [2025-01-01 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153583', 'tblTempUsageDetail_20' ) start [2025-01-01 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153583', 'tblTempUsageDetail_20' ) end [2025-01-01 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:19:21] Production.INFO: ==22681== Releasing lock... [2025-01-01 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:19:21] Production.INFO: 36 MB #Memory Used# [2025-01-01 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:20:06 [end_date_ymd] => 2025-01-01 21:20:06 [RateCDR] => 1 ) [2025-01-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-01-01 18:20:06' and `end` < '2025-01-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-01-01 21:20:19] Production.INFO: count ==1139 [2025-01-01 21:20:19] Production.ERROR: pbx CDR StartTime 2025-01-01 18:20:06 - End Time 2025-01-01 21:20:06 [2025-01-01 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153589', 'tblTempUsageDetail_20' ) start [2025-01-01 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153589', 'tblTempUsageDetail_20' ) end [2025-01-01 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153589', 'tblTempVendorCDR_20' ) start [2025-01-01 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153589', 'tblTempVendorCDR_20' ) end [2025-01-01 21:20:19] Production.INFO: ProcessCDR(1,14153589,1,1,2) [2025-01-01 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153589', 'tblTempUsageDetail_20' ) start [2025-01-01 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153589', 'tblTempUsageDetail_20' ) end [2025-01-01 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:20:22] Production.INFO: ==22792== Releasing lock... [2025-01-01 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:20:22] Production.INFO: 36 MB #Memory Used# [2025-01-01 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:21:05 [end_date_ymd] => 2025-01-01 21:21:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:21:05' and `end` < '2025-01-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-01-01 21:21:19] Production.INFO: count ==1123 [2025-01-01 21:21:19] Production.ERROR: pbx CDR StartTime 2025-01-01 18:21:05 - End Time 2025-01-01 21:21:05 [2025-01-01 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153594', 'tblTempUsageDetail_20' ) start [2025-01-01 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153594', 'tblTempUsageDetail_20' ) end [2025-01-01 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153594', 'tblTempVendorCDR_20' ) start [2025-01-01 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153594', 'tblTempVendorCDR_20' ) end [2025-01-01 21:21:19] Production.INFO: ProcessCDR(1,14153594,1,1,2) [2025-01-01 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153594', 'tblTempUsageDetail_20' ) start [2025-01-01 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153594', 'tblTempUsageDetail_20' ) end [2025-01-01 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:21:22] Production.INFO: ==22865== Releasing lock... [2025-01-01 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:21:22] Production.INFO: 36 MB #Memory Used# [2025-01-01 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:22:05 [end_date_ymd] => 2025-01-01 21:22:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:22:05' and `end` < '2025-01-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-01-01 21:22:18] Production.INFO: count ==1114 [2025-01-01 21:22:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:22:05 - End Time 2025-01-01 21:22:05 [2025-01-01 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153599', 'tblTempUsageDetail_20' ) start [2025-01-01 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153599', 'tblTempUsageDetail_20' ) end [2025-01-01 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153599', 'tblTempVendorCDR_20' ) start [2025-01-01 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153599', 'tblTempVendorCDR_20' ) end [2025-01-01 21:22:18] Production.INFO: ProcessCDR(1,14153599,1,1,2) [2025-01-01 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153599', 'tblTempUsageDetail_20' ) start [2025-01-01 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153599', 'tblTempUsageDetail_20' ) end [2025-01-01 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:22:21] Production.INFO: ==22937== Releasing lock... [2025-01-01 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:22:21] Production.INFO: 36 MB #Memory Used# [2025-01-01 21:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:23:04 [end_date_ymd] => 2025-01-01 21:23:04 [RateCDR] => 1 ) [2025-01-01 21:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 18:23:04' and `end` < '2025-01-01 21:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 21:23:17] Production.INFO: count ==1111 [2025-01-01 21:23:17] Production.ERROR: pbx CDR StartTime 2025-01-01 18:23:04 - End Time 2025-01-01 21:23:04 [2025-01-01 21:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153604', 'tblTempUsageDetail_20' ) start [2025-01-01 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153604', 'tblTempUsageDetail_20' ) end [2025-01-01 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153604', 'tblTempVendorCDR_20' ) start [2025-01-01 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153604', 'tblTempVendorCDR_20' ) end [2025-01-01 21:23:17] Production.INFO: ProcessCDR(1,14153604,1,1,2) [2025-01-01 21:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153604', 'tblTempUsageDetail_20' ) start [2025-01-01 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153604', 'tblTempUsageDetail_20' ) end [2025-01-01 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:23:21] Production.INFO: ==23009== Releasing lock... [2025-01-01 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:23:21] Production.INFO: 36 MB #Memory Used# [2025-01-01 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:24:05 [end_date_ymd] => 2025-01-01 21:24:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:24:05' and `end` < '2025-01-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-01-01 21:24:18] Production.INFO: count ==1109 [2025-01-01 21:24:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:24:05 - End Time 2025-01-01 21:24:05 [2025-01-01 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153609', 'tblTempUsageDetail_20' ) start [2025-01-01 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153609', 'tblTempUsageDetail_20' ) end [2025-01-01 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153609', 'tblTempVendorCDR_20' ) start [2025-01-01 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153609', 'tblTempVendorCDR_20' ) end [2025-01-01 21:24:18] Production.INFO: ProcessCDR(1,14153609,1,1,2) [2025-01-01 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153609', 'tblTempUsageDetail_20' ) start [2025-01-01 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153609', 'tblTempUsageDetail_20' ) end [2025-01-01 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:24:22] Production.INFO: ==23079== Releasing lock... [2025-01-01 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:24:22] Production.INFO: 36 MB #Memory Used# [2025-01-01 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:25:04 [end_date_ymd] => 2025-01-01 21:25:04 [RateCDR] => 1 ) [2025-01-01 21: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-01 18:25:04' and `end` < '2025-01-01 21: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-01-01 21:25:17] Production.INFO: count ==1108 [2025-01-01 21:25:17] Production.ERROR: pbx CDR StartTime 2025-01-01 18:25:04 - End Time 2025-01-01 21:25:04 [2025-01-01 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153614', 'tblTempUsageDetail_20' ) start [2025-01-01 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153614', 'tblTempUsageDetail_20' ) end [2025-01-01 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153614', 'tblTempVendorCDR_20' ) start [2025-01-01 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153614', 'tblTempVendorCDR_20' ) end [2025-01-01 21:25:17] Production.INFO: ProcessCDR(1,14153614,1,1,2) [2025-01-01 21:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153614', 'tblTempUsageDetail_20' ) start [2025-01-01 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153614', 'tblTempUsageDetail_20' ) end [2025-01-01 21:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:25:20] Production.INFO: ==23151== Releasing lock... [2025-01-01 21:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:25:20] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:26:05 [end_date_ymd] => 2025-01-01 21:26:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:26:05' and `end` < '2025-01-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-01-01 21:26:19] Production.INFO: count ==1104 [2025-01-01 21:26:19] Production.ERROR: pbx CDR StartTime 2025-01-01 18:26:05 - End Time 2025-01-01 21:26:05 [2025-01-01 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153619', 'tblTempUsageDetail_20' ) start [2025-01-01 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153619', 'tblTempUsageDetail_20' ) end [2025-01-01 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153619', 'tblTempVendorCDR_20' ) start [2025-01-01 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153619', 'tblTempVendorCDR_20' ) end [2025-01-01 21:26:19] Production.INFO: ProcessCDR(1,14153619,1,1,2) [2025-01-01 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153619', 'tblTempUsageDetail_20' ) start [2025-01-01 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153619', 'tblTempUsageDetail_20' ) end [2025-01-01 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:26:22] Production.INFO: ==23222== Releasing lock... [2025-01-01 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:26:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:27:04 [end_date_ymd] => 2025-01-01 21:27:04 [RateCDR] => 1 ) [2025-01-01 21:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 18:27:04' and `end` < '2025-01-01 21:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 21:27:18] Production.INFO: count ==1104 [2025-01-01 21:27:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:27:04 - End Time 2025-01-01 21:27:04 [2025-01-01 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153624', 'tblTempUsageDetail_20' ) start [2025-01-01 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153624', 'tblTempUsageDetail_20' ) end [2025-01-01 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153624', 'tblTempVendorCDR_20' ) start [2025-01-01 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153624', 'tblTempVendorCDR_20' ) end [2025-01-01 21:27:18] Production.INFO: ProcessCDR(1,14153624,1,1,2) [2025-01-01 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153624', 'tblTempUsageDetail_20' ) start [2025-01-01 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153624', 'tblTempUsageDetail_20' ) end [2025-01-01 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:27:21] Production.INFO: ==23292== Releasing lock... [2025-01-01 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:27:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:28:05 [end_date_ymd] => 2025-01-01 21:28:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:28:05' and `end` < '2025-01-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-01-01 21:28:19] Production.INFO: count ==1104 [2025-01-01 21:28:19] Production.ERROR: pbx CDR StartTime 2025-01-01 18:28:05 - End Time 2025-01-01 21:28:05 [2025-01-01 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153629', 'tblTempUsageDetail_20' ) start [2025-01-01 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153629', 'tblTempUsageDetail_20' ) end [2025-01-01 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153629', 'tblTempVendorCDR_20' ) start [2025-01-01 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153629', 'tblTempVendorCDR_20' ) end [2025-01-01 21:28:19] Production.INFO: ProcessCDR(1,14153629,1,1,2) [2025-01-01 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153629', 'tblTempUsageDetail_20' ) start [2025-01-01 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153629', 'tblTempUsageDetail_20' ) end [2025-01-01 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:28:22] Production.INFO: ==23368== Releasing lock... [2025-01-01 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:28:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:29:05 [end_date_ymd] => 2025-01-01 21:29:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:29:05' and `end` < '2025-01-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-01-01 21:29:19] Production.INFO: count ==1104 [2025-01-01 21:29:19] Production.ERROR: pbx CDR StartTime 2025-01-01 18:29:05 - End Time 2025-01-01 21:29:05 [2025-01-01 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153634', 'tblTempUsageDetail_20' ) start [2025-01-01 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153634', 'tblTempUsageDetail_20' ) end [2025-01-01 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153634', 'tblTempVendorCDR_20' ) start [2025-01-01 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153634', 'tblTempVendorCDR_20' ) end [2025-01-01 21:29:19] Production.INFO: ProcessCDR(1,14153634,1,1,2) [2025-01-01 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153634', 'tblTempUsageDetail_20' ) start [2025-01-01 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153634', 'tblTempUsageDetail_20' ) end [2025-01-01 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:29:22] Production.INFO: ==23437== Releasing lock... [2025-01-01 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:29:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:30:06 [end_date_ymd] => 2025-01-01 21:30:06 [RateCDR] => 1 ) [2025-01-01 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 18:30:06' and `end` < '2025-01-01 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 21:30:18] Production.INFO: count ==1103 [2025-01-01 21:30:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:30:06 - End Time 2025-01-01 21:30:06 [2025-01-01 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153640', 'tblTempUsageDetail_20' ) start [2025-01-01 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153640', 'tblTempUsageDetail_20' ) end [2025-01-01 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153640', 'tblTempVendorCDR_20' ) start [2025-01-01 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153640', 'tblTempVendorCDR_20' ) end [2025-01-01 21:30:19] Production.INFO: ProcessCDR(1,14153640,1,1,2) [2025-01-01 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153640', 'tblTempUsageDetail_20' ) start [2025-01-01 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153640', 'tblTempUsageDetail_20' ) end [2025-01-01 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:30:22] Production.INFO: ==23511== Releasing lock... [2025-01-01 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:30:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:31:05 [end_date_ymd] => 2025-01-01 21:31:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:31:05' and `end` < '2025-01-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-01-01 21:31:18] Production.INFO: count ==1083 [2025-01-01 21:31:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:31:05 - End Time 2025-01-01 21:31:05 [2025-01-01 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153645', 'tblTempUsageDetail_20' ) start [2025-01-01 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153645', 'tblTempUsageDetail_20' ) end [2025-01-01 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153645', 'tblTempVendorCDR_20' ) start [2025-01-01 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153645', 'tblTempVendorCDR_20' ) end [2025-01-01 21:31:18] Production.INFO: ProcessCDR(1,14153645,1,1,2) [2025-01-01 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153645', 'tblTempUsageDetail_20' ) start [2025-01-01 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153645', 'tblTempUsageDetail_20' ) end [2025-01-01 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:31:22] Production.INFO: ==23586== Releasing lock... [2025-01-01 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:31:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:32:05 [end_date_ymd] => 2025-01-01 21:32:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:32:05' and `end` < '2025-01-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-01-01 21:32:17] Production.INFO: count ==1083 [2025-01-01 21:32:17] Production.ERROR: pbx CDR StartTime 2025-01-01 18:32:05 - End Time 2025-01-01 21:32:05 [2025-01-01 21:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153650', 'tblTempUsageDetail_20' ) start [2025-01-01 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153650', 'tblTempUsageDetail_20' ) end [2025-01-01 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153650', 'tblTempVendorCDR_20' ) start [2025-01-01 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153650', 'tblTempVendorCDR_20' ) end [2025-01-01 21:32:17] Production.INFO: ProcessCDR(1,14153650,1,1,2) [2025-01-01 21:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153650', 'tblTempUsageDetail_20' ) start [2025-01-01 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153650', 'tblTempUsageDetail_20' ) end [2025-01-01 21:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:32:21] Production.INFO: ==23657== Releasing lock... [2025-01-01 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:32:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:33:05 [end_date_ymd] => 2025-01-01 21:33:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:33:05' and `end` < '2025-01-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-01-01 21:33:17] Production.INFO: count ==1084 [2025-01-01 21:33:17] Production.ERROR: pbx CDR StartTime 2025-01-01 18:33:05 - End Time 2025-01-01 21:33:05 [2025-01-01 21:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153653', 'tblTempUsageDetail_20' ) start [2025-01-01 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153653', 'tblTempUsageDetail_20' ) end [2025-01-01 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153653', 'tblTempVendorCDR_20' ) start [2025-01-01 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153653', 'tblTempVendorCDR_20' ) end [2025-01-01 21:33:17] Production.INFO: ProcessCDR(1,14153653,1,1,2) [2025-01-01 21:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153653', 'tblTempUsageDetail_20' ) start [2025-01-01 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153653', 'tblTempUsageDetail_20' ) end [2025-01-01 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:33:22] Production.INFO: ==23729== Releasing lock... [2025-01-01 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:33:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:34:05 [end_date_ymd] => 2025-01-01 21:34:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:34:05' and `end` < '2025-01-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-01-01 21:34:17] Production.INFO: count ==1084 [2025-01-01 21:34:17] Production.ERROR: pbx CDR StartTime 2025-01-01 18:34:05 - End Time 2025-01-01 21:34:05 [2025-01-01 21:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153660', 'tblTempUsageDetail_20' ) start [2025-01-01 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153660', 'tblTempUsageDetail_20' ) end [2025-01-01 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153660', 'tblTempVendorCDR_20' ) start [2025-01-01 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153660', 'tblTempVendorCDR_20' ) end [2025-01-01 21:34:17] Production.INFO: ProcessCDR(1,14153660,1,1,2) [2025-01-01 21:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153660', 'tblTempUsageDetail_20' ) start [2025-01-01 21:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153660', 'tblTempUsageDetail_20' ) end [2025-01-01 21:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:34:21] Production.INFO: ==23799== Releasing lock... [2025-01-01 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:34:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:35:05 [end_date_ymd] => 2025-01-01 21:35:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:35:05' and `end` < '2025-01-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-01-01 21:35:19] Production.INFO: count ==1084 [2025-01-01 21:35:19] Production.ERROR: pbx CDR StartTime 2025-01-01 18:35:05 - End Time 2025-01-01 21:35:05 [2025-01-01 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153665', 'tblTempUsageDetail_20' ) start [2025-01-01 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153665', 'tblTempUsageDetail_20' ) end [2025-01-01 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153665', 'tblTempVendorCDR_20' ) start [2025-01-01 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153665', 'tblTempVendorCDR_20' ) end [2025-01-01 21:35:19] Production.INFO: ProcessCDR(1,14153665,1,1,2) [2025-01-01 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153665', 'tblTempUsageDetail_20' ) start [2025-01-01 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153665', 'tblTempUsageDetail_20' ) end [2025-01-01 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:35:22] Production.INFO: ==23870== Releasing lock... [2025-01-01 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:35:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 21:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:36:04 [end_date_ymd] => 2025-01-01 21:36:04 [RateCDR] => 1 ) [2025-01-01 21:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 18:36:04' and `end` < '2025-01-01 21:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 21:36:18] Production.INFO: count ==1081 [2025-01-01 21:36:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:36:04 - End Time 2025-01-01 21:36:04 [2025-01-01 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153670', 'tblTempUsageDetail_20' ) start [2025-01-01 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153670', 'tblTempUsageDetail_20' ) end [2025-01-01 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153670', 'tblTempVendorCDR_20' ) start [2025-01-01 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153670', 'tblTempVendorCDR_20' ) end [2025-01-01 21:36:18] Production.INFO: ProcessCDR(1,14153670,1,1,2) [2025-01-01 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153670', 'tblTempUsageDetail_20' ) start [2025-01-01 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153670', 'tblTempUsageDetail_20' ) end [2025-01-01 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:36:21] Production.INFO: ==23997== Releasing lock... [2025-01-01 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:36:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:37:05 [end_date_ymd] => 2025-01-01 21:37:05 [RateCDR] => 1 ) [2025-01-01 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 18:37:05' and `end` < '2025-01-01 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 21:37:18] Production.INFO: count ==1078 [2025-01-01 21:37:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:37:05 - End Time 2025-01-01 21:37:05 [2025-01-01 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153675', 'tblTempUsageDetail_20' ) start [2025-01-01 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153675', 'tblTempUsageDetail_20' ) end [2025-01-01 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153675', 'tblTempVendorCDR_20' ) start [2025-01-01 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153675', 'tblTempVendorCDR_20' ) end [2025-01-01 21:37:18] Production.INFO: ProcessCDR(1,14153675,1,1,2) [2025-01-01 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153675', 'tblTempUsageDetail_20' ) start [2025-01-01 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153675', 'tblTempUsageDetail_20' ) end [2025-01-01 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:37:21] Production.INFO: ==24074== Releasing lock... [2025-01-01 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:37:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:38:05 [end_date_ymd] => 2025-01-01 21:38:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:38:05' and `end` < '2025-01-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-01-01 21:38:20] Production.INFO: count ==1077 [2025-01-01 21:38:20] Production.ERROR: pbx CDR StartTime 2025-01-01 18:38:05 - End Time 2025-01-01 21:38:05 [2025-01-01 21:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153680', 'tblTempUsageDetail_20' ) start [2025-01-01 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153680', 'tblTempUsageDetail_20' ) end [2025-01-01 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153680', 'tblTempVendorCDR_20' ) start [2025-01-01 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153680', 'tblTempVendorCDR_20' ) end [2025-01-01 21:38:20] Production.INFO: ProcessCDR(1,14153680,1,1,2) [2025-01-01 21:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153680', 'tblTempUsageDetail_20' ) start [2025-01-01 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153680', 'tblTempUsageDetail_20' ) end [2025-01-01 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:38:23] Production.INFO: ==24162== Releasing lock... [2025-01-01 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:38:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:39:05 [end_date_ymd] => 2025-01-01 21:39:05 [RateCDR] => 1 ) [2025-01-01 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 18:39:05' and `end` < '2025-01-01 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 21:39:18] Production.INFO: count ==1080 [2025-01-01 21:39:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:39:05 - End Time 2025-01-01 21:39:05 [2025-01-01 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153685', 'tblTempUsageDetail_20' ) start [2025-01-01 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153685', 'tblTempUsageDetail_20' ) end [2025-01-01 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153685', 'tblTempVendorCDR_20' ) start [2025-01-01 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153685', 'tblTempVendorCDR_20' ) end [2025-01-01 21:39:18] Production.INFO: ProcessCDR(1,14153685,1,1,2) [2025-01-01 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153685', 'tblTempUsageDetail_20' ) start [2025-01-01 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153685', 'tblTempUsageDetail_20' ) end [2025-01-01 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:39:21] Production.INFO: ==24243== Releasing lock... [2025-01-01 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:39:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:40:06 [end_date_ymd] => 2025-01-01 21:40:06 [RateCDR] => 1 ) [2025-01-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-01-01 18:40:06' and `end` < '2025-01-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-01-01 21:40:19] Production.INFO: count ==1078 [2025-01-01 21:40:19] Production.ERROR: pbx CDR StartTime 2025-01-01 18:40:06 - End Time 2025-01-01 21:40:06 [2025-01-01 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153691', 'tblTempUsageDetail_20' ) start [2025-01-01 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153691', 'tblTempUsageDetail_20' ) end [2025-01-01 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153691', 'tblTempVendorCDR_20' ) start [2025-01-01 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153691', 'tblTempVendorCDR_20' ) end [2025-01-01 21:40:19] Production.INFO: ProcessCDR(1,14153691,1,1,2) [2025-01-01 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153691', 'tblTempUsageDetail_20' ) start [2025-01-01 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153691', 'tblTempUsageDetail_20' ) end [2025-01-01 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:40:22] Production.INFO: ==24324== Releasing lock... [2025-01-01 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:40:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-01 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:41:05 [end_date_ymd] => 2025-01-01 21:41:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:41:05' and `end` < '2025-01-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-01-01 21:41:18] Production.INFO: count ==1034 [2025-01-01 21:41:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:41:05 - End Time 2025-01-01 21:41:05 [2025-01-01 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153696', 'tblTempUsageDetail_20' ) start [2025-01-01 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153696', 'tblTempUsageDetail_20' ) end [2025-01-01 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153696', 'tblTempVendorCDR_20' ) start [2025-01-01 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153696', 'tblTempVendorCDR_20' ) end [2025-01-01 21:41:18] Production.INFO: ProcessCDR(1,14153696,1,1,2) [2025-01-01 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153696', 'tblTempUsageDetail_20' ) start [2025-01-01 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153696', 'tblTempUsageDetail_20' ) end [2025-01-01 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:41:21] Production.INFO: ==24407== Releasing lock... [2025-01-01 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:41:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:42:05 [end_date_ymd] => 2025-01-01 21:42:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:42:05' and `end` < '2025-01-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-01-01 21:42:19] Production.INFO: count ==1033 [2025-01-01 21:42:19] Production.ERROR: pbx CDR StartTime 2025-01-01 18:42:05 - End Time 2025-01-01 21:42:05 [2025-01-01 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153701', 'tblTempUsageDetail_20' ) start [2025-01-01 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153701', 'tblTempUsageDetail_20' ) end [2025-01-01 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153701', 'tblTempVendorCDR_20' ) start [2025-01-01 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153701', 'tblTempVendorCDR_20' ) end [2025-01-01 21:42:19] Production.INFO: ProcessCDR(1,14153701,1,1,2) [2025-01-01 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153701', 'tblTempUsageDetail_20' ) start [2025-01-01 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153701', 'tblTempUsageDetail_20' ) end [2025-01-01 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:42:22] Production.INFO: ==24495== Releasing lock... [2025-01-01 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:42:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:43:06 [end_date_ymd] => 2025-01-01 21:43:06 [RateCDR] => 1 ) [2025-01-01 21: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-01-01 18:43:06' and `end` < '2025-01-01 21: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-01-01 21:43:21] Production.INFO: count ==1032 [2025-01-01 21:43:21] Production.ERROR: pbx CDR StartTime 2025-01-01 18:43:06 - End Time 2025-01-01 21:43:06 [2025-01-01 21:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153706', 'tblTempUsageDetail_20' ) start [2025-01-01 21:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153706', 'tblTempUsageDetail_20' ) end [2025-01-01 21:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153706', 'tblTempVendorCDR_20' ) start [2025-01-01 21:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153706', 'tblTempVendorCDR_20' ) end [2025-01-01 21:43:21] Production.INFO: ProcessCDR(1,14153706,1,1,2) [2025-01-01 21:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153706', 'tblTempUsageDetail_20' ) start [2025-01-01 21:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153706', 'tblTempUsageDetail_20' ) end [2025-01-01 21:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:43:24] Production.INFO: ==24582== Releasing lock... [2025-01-01 21:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:43:24] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:44:05 [end_date_ymd] => 2025-01-01 21:44:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:44:05' and `end` < '2025-01-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-01-01 21:44:17] Production.INFO: count ==1032 [2025-01-01 21:44:17] Production.ERROR: pbx CDR StartTime 2025-01-01 18:44:05 - End Time 2025-01-01 21:44:05 [2025-01-01 21:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153711', 'tblTempUsageDetail_20' ) start [2025-01-01 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153711', 'tblTempUsageDetail_20' ) end [2025-01-01 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153711', 'tblTempVendorCDR_20' ) start [2025-01-01 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153711', 'tblTempVendorCDR_20' ) end [2025-01-01 21:44:17] Production.INFO: ProcessCDR(1,14153711,1,1,2) [2025-01-01 21:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153711', 'tblTempUsageDetail_20' ) start [2025-01-01 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153711', 'tblTempUsageDetail_20' ) end [2025-01-01 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:44:22] Production.INFO: ==24672== Releasing lock... [2025-01-01 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:44:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:45:05 [end_date_ymd] => 2025-01-01 21:45:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:45:05' and `end` < '2025-01-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-01-01 21:45:18] Production.INFO: count ==1029 [2025-01-01 21:45:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:45:05 - End Time 2025-01-01 21:45:05 [2025-01-01 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153716', 'tblTempUsageDetail_20' ) start [2025-01-01 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153716', 'tblTempUsageDetail_20' ) end [2025-01-01 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153716', 'tblTempVendorCDR_20' ) start [2025-01-01 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153716', 'tblTempVendorCDR_20' ) end [2025-01-01 21:45:18] Production.INFO: ProcessCDR(1,14153716,1,1,2) [2025-01-01 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153716', 'tblTempUsageDetail_20' ) start [2025-01-01 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153716', 'tblTempUsageDetail_20' ) end [2025-01-01 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:45:21] Production.INFO: ==24770== Releasing lock... [2025-01-01 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:45:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:46:05 [end_date_ymd] => 2025-01-01 21:46:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:46:05' and `end` < '2025-01-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-01-01 21:46:17] Production.INFO: count ==1030 [2025-01-01 21:46:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:46:05 - End Time 2025-01-01 21:46:05 [2025-01-01 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153721', 'tblTempUsageDetail_20' ) start [2025-01-01 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153721', 'tblTempUsageDetail_20' ) end [2025-01-01 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153721', 'tblTempVendorCDR_20' ) start [2025-01-01 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153721', 'tblTempVendorCDR_20' ) end [2025-01-01 21:46:18] Production.INFO: ProcessCDR(1,14153721,1,1,2) [2025-01-01 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153721', 'tblTempUsageDetail_20' ) start [2025-01-01 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153721', 'tblTempUsageDetail_20' ) end [2025-01-01 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:46:22] Production.INFO: ==24882== Releasing lock... [2025-01-01 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:46:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:47:05 [end_date_ymd] => 2025-01-01 21:47:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:47:05' and `end` < '2025-01-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-01-01 21:47:18] Production.INFO: count ==1031 [2025-01-01 21:47:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:47:05 - End Time 2025-01-01 21:47:05 [2025-01-01 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153726', 'tblTempUsageDetail_20' ) start [2025-01-01 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153726', 'tblTempUsageDetail_20' ) end [2025-01-01 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153726', 'tblTempVendorCDR_20' ) start [2025-01-01 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153726', 'tblTempVendorCDR_20' ) end [2025-01-01 21:47:18] Production.INFO: ProcessCDR(1,14153726,1,1,2) [2025-01-01 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153726', 'tblTempUsageDetail_20' ) start [2025-01-01 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153726', 'tblTempUsageDetail_20' ) end [2025-01-01 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:47:21] Production.INFO: ==24995== Releasing lock... [2025-01-01 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:47:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 21:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:48:04 [end_date_ymd] => 2025-01-01 21:48:04 [RateCDR] => 1 ) [2025-01-01 21:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 18:48:04' and `end` < '2025-01-01 21:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 21:48:17] Production.INFO: count ==1037 [2025-01-01 21:48:17] Production.ERROR: pbx CDR StartTime 2025-01-01 18:48:04 - End Time 2025-01-01 21:48:04 [2025-01-01 21:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153731', 'tblTempUsageDetail_20' ) start [2025-01-01 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153731', 'tblTempUsageDetail_20' ) end [2025-01-01 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153731', 'tblTempVendorCDR_20' ) start [2025-01-01 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153731', 'tblTempVendorCDR_20' ) end [2025-01-01 21:48:17] Production.INFO: ProcessCDR(1,14153731,1,1,2) [2025-01-01 21:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153731', 'tblTempUsageDetail_20' ) start [2025-01-01 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153731', 'tblTempUsageDetail_20' ) end [2025-01-01 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:48:21] Production.INFO: ==25100== Releasing lock... [2025-01-01 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:48:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:49:05 [end_date_ymd] => 2025-01-01 21:49:05 [RateCDR] => 1 ) [2025-01-01 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 18:49:05' and `end` < '2025-01-01 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 21:49:18] Production.INFO: count ==1037 [2025-01-01 21:49:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:49:05 - End Time 2025-01-01 21:49:05 [2025-01-01 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153736', 'tblTempUsageDetail_20' ) start [2025-01-01 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153736', 'tblTempUsageDetail_20' ) end [2025-01-01 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153736', 'tblTempVendorCDR_20' ) start [2025-01-01 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153736', 'tblTempVendorCDR_20' ) end [2025-01-01 21:49:18] Production.INFO: ProcessCDR(1,14153736,1,1,2) [2025-01-01 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153736', 'tblTempUsageDetail_20' ) start [2025-01-01 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153736', 'tblTempUsageDetail_20' ) end [2025-01-01 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:49:21] Production.INFO: ==25215== Releasing lock... [2025-01-01 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:49:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:50:05 [end_date_ymd] => 2025-01-01 21:50:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:50:05' and `end` < '2025-01-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-01-01 21:50:18] Production.INFO: count ==1036 [2025-01-01 21:50:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:50:05 - End Time 2025-01-01 21:50:05 [2025-01-01 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153742', 'tblTempUsageDetail_20' ) start [2025-01-01 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153742', 'tblTempUsageDetail_20' ) end [2025-01-01 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153742', 'tblTempVendorCDR_20' ) start [2025-01-01 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153742', 'tblTempVendorCDR_20' ) end [2025-01-01 21:50:18] Production.INFO: ProcessCDR(1,14153742,1,1,2) [2025-01-01 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153742', 'tblTempUsageDetail_20' ) start [2025-01-01 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153742', 'tblTempUsageDetail_20' ) end [2025-01-01 21:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:50:21] Production.INFO: ==25326== Releasing lock... [2025-01-01 21:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:50:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:51:05 [end_date_ymd] => 2025-01-01 21:51:05 [RateCDR] => 1 ) [2025-01-01 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 18:51:05' and `end` < '2025-01-01 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 21:51:18] Production.INFO: count ==1016 [2025-01-01 21:51:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:51:05 - End Time 2025-01-01 21:51:05 [2025-01-01 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153747', 'tblTempUsageDetail_20' ) start [2025-01-01 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153747', 'tblTempUsageDetail_20' ) end [2025-01-01 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153747', 'tblTempVendorCDR_20' ) start [2025-01-01 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153747', 'tblTempVendorCDR_20' ) end [2025-01-01 21:51:18] Production.INFO: ProcessCDR(1,14153747,1,1,2) [2025-01-01 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153747', 'tblTempUsageDetail_20' ) start [2025-01-01 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153747', 'tblTempUsageDetail_20' ) end [2025-01-01 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:51:21] Production.INFO: ==25438== Releasing lock... [2025-01-01 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:51:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:52:06 [end_date_ymd] => 2025-01-01 21:52:06 [RateCDR] => 1 ) [2025-01-01 21:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 18:52:06' and `end` < '2025-01-01 21:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 21:52:18] Production.INFO: count ==1014 [2025-01-01 21:52:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:52:06 - End Time 2025-01-01 21:52:06 [2025-01-01 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153752', 'tblTempUsageDetail_20' ) start [2025-01-01 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153752', 'tblTempUsageDetail_20' ) end [2025-01-01 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153752', 'tblTempVendorCDR_20' ) start [2025-01-01 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153752', 'tblTempVendorCDR_20' ) end [2025-01-01 21:52:18] Production.INFO: ProcessCDR(1,14153752,1,1,2) [2025-01-01 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153752', 'tblTempUsageDetail_20' ) start [2025-01-01 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153752', 'tblTempUsageDetail_20' ) end [2025-01-01 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:52:22] Production.INFO: ==25591== Releasing lock... [2025-01-01 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:52:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:53:05 [end_date_ymd] => 2025-01-01 21:53:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:53:05' and `end` < '2025-01-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-01-01 21:53:17] Production.INFO: count ==1012 [2025-01-01 21:53:17] Production.ERROR: pbx CDR StartTime 2025-01-01 18:53:05 - End Time 2025-01-01 21:53:05 [2025-01-01 21:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153757', 'tblTempUsageDetail_20' ) start [2025-01-01 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153757', 'tblTempUsageDetail_20' ) end [2025-01-01 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153757', 'tblTempVendorCDR_20' ) start [2025-01-01 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153757', 'tblTempVendorCDR_20' ) end [2025-01-01 21:53:17] Production.INFO: ProcessCDR(1,14153757,1,1,2) [2025-01-01 21:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153757', 'tblTempUsageDetail_20' ) start [2025-01-01 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153757', 'tblTempUsageDetail_20' ) end [2025-01-01 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:53:21] Production.INFO: ==25707== Releasing lock... [2025-01-01 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:53:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:54:05 [end_date_ymd] => 2025-01-01 21:54:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:54:05' and `end` < '2025-01-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-01-01 21:54:18] Production.INFO: count ==1010 [2025-01-01 21:54:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:54:05 - End Time 2025-01-01 21:54:05 [2025-01-01 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153762', 'tblTempUsageDetail_20' ) start [2025-01-01 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153762', 'tblTempUsageDetail_20' ) end [2025-01-01 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153762', 'tblTempVendorCDR_20' ) start [2025-01-01 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153762', 'tblTempVendorCDR_20' ) end [2025-01-01 21:54:18] Production.INFO: ProcessCDR(1,14153762,1,1,2) [2025-01-01 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153762', 'tblTempUsageDetail_20' ) start [2025-01-01 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153762', 'tblTempUsageDetail_20' ) end [2025-01-01 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:54:21] Production.INFO: ==25821== Releasing lock... [2025-01-01 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:54:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 21:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:55:04 [end_date_ymd] => 2025-01-01 21:55:04 [RateCDR] => 1 ) [2025-01-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-01-01 18:55:04' and `end` < '2025-01-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-01-01 21:55:17] Production.INFO: count ==1008 [2025-01-01 21:55:17] Production.ERROR: pbx CDR StartTime 2025-01-01 18:55:04 - End Time 2025-01-01 21:55:04 [2025-01-01 21:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153767', 'tblTempUsageDetail_20' ) start [2025-01-01 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153767', 'tblTempUsageDetail_20' ) end [2025-01-01 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153767', 'tblTempVendorCDR_20' ) start [2025-01-01 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153767', 'tblTempVendorCDR_20' ) end [2025-01-01 21:55:17] Production.INFO: ProcessCDR(1,14153767,1,1,2) [2025-01-01 21:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153767', 'tblTempUsageDetail_20' ) start [2025-01-01 21:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153767', 'tblTempUsageDetail_20' ) end [2025-01-01 21:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:55:21] Production.INFO: ==25929== Releasing lock... [2025-01-01 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:55:21] Production.INFO: 35 MB #Memory Used# [2025-01-01 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:56:05 [end_date_ymd] => 2025-01-01 21:56:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:56:05' and `end` < '2025-01-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-01-01 21:56:18] Production.INFO: count ==1013 [2025-01-01 21:56:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:56:05 - End Time 2025-01-01 21:56:05 [2025-01-01 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153772', 'tblTempUsageDetail_20' ) start [2025-01-01 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153772', 'tblTempUsageDetail_20' ) end [2025-01-01 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153772', 'tblTempVendorCDR_20' ) start [2025-01-01 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153772', 'tblTempVendorCDR_20' ) end [2025-01-01 21:56:18] Production.INFO: ProcessCDR(1,14153772,1,1,2) [2025-01-01 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153772', 'tblTempUsageDetail_20' ) start [2025-01-01 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153772', 'tblTempUsageDetail_20' ) end [2025-01-01 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:56:21] Production.INFO: ==26037== Releasing lock... [2025-01-01 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:56:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 21:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:57:04 [end_date_ymd] => 2025-01-01 21:57:04 [RateCDR] => 1 ) [2025-01-01 21: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-01-01 18:57:04' and `end` < '2025-01-01 21: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-01-01 21:57:18] Production.INFO: count ==1007 [2025-01-01 21:57:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:57:04 - End Time 2025-01-01 21:57:04 [2025-01-01 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153777', 'tblTempUsageDetail_20' ) start [2025-01-01 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153777', 'tblTempUsageDetail_20' ) end [2025-01-01 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153777', 'tblTempVendorCDR_20' ) start [2025-01-01 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153777', 'tblTempVendorCDR_20' ) end [2025-01-01 21:57:18] Production.INFO: ProcessCDR(1,14153777,1,1,2) [2025-01-01 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153777', 'tblTempUsageDetail_20' ) start [2025-01-01 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153777', 'tblTempUsageDetail_20' ) end [2025-01-01 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:57:22] Production.INFO: ==26147== Releasing lock... [2025-01-01 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:57:22] Production.INFO: 35 MB #Memory Used# [2025-01-01 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:58:05 [end_date_ymd] => 2025-01-01 21:58:05 [RateCDR] => 1 ) [2025-01-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-01-01 18:58:05' and `end` < '2025-01-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-01-01 21:58:19] Production.INFO: count ==1005 [2025-01-01 21:58:19] Production.ERROR: pbx CDR StartTime 2025-01-01 18:58:05 - End Time 2025-01-01 21:58:05 [2025-01-01 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153782', 'tblTempUsageDetail_20' ) start [2025-01-01 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153782', 'tblTempUsageDetail_20' ) end [2025-01-01 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153782', 'tblTempVendorCDR_20' ) start [2025-01-01 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153782', 'tblTempVendorCDR_20' ) end [2025-01-01 21:58:19] Production.INFO: ProcessCDR(1,14153782,1,1,2) [2025-01-01 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153782', 'tblTempUsageDetail_20' ) start [2025-01-01 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153782', 'tblTempUsageDetail_20' ) end [2025-01-01 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:58:22] Production.INFO: ==26251== Releasing lock... [2025-01-01 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:58:22] Production.INFO: 35 MB #Memory Used# [2025-01-01 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 18:59:05 [end_date_ymd] => 2025-01-01 21:59:05 [RateCDR] => 1 ) [2025-01-01 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 18:59:05' and `end` < '2025-01-01 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 21:59:18] Production.INFO: count ==1005 [2025-01-01 21:59:18] Production.ERROR: pbx CDR StartTime 2025-01-01 18:59:05 - End Time 2025-01-01 21:59:05 [2025-01-01 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153787', 'tblTempUsageDetail_20' ) start [2025-01-01 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153787', 'tblTempUsageDetail_20' ) end [2025-01-01 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153787', 'tblTempVendorCDR_20' ) start [2025-01-01 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153787', 'tblTempVendorCDR_20' ) end [2025-01-01 21:59:18] Production.INFO: ProcessCDR(1,14153787,1,1,2) [2025-01-01 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153787', 'tblTempUsageDetail_20' ) start [2025-01-01 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153787', 'tblTempUsageDetail_20' ) end [2025-01-01 21:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 21:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 21:59:23] Production.INFO: ==26361== Releasing lock... [2025-01-01 21:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 21:59:23] Production.INFO: 35 MB #Memory Used# [2025-01-01 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:00:06 [end_date_ymd] => 2025-01-01 22:00:06 [RateCDR] => 1 ) [2025-01-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-01-01 19:00:06' and `end` < '2025-01-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-01-01 22:00:18] Production.INFO: count ==1010 [2025-01-01 22:00:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:00:06 - End Time 2025-01-01 22:00:06 [2025-01-01 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153793', 'tblTempUsageDetail_20' ) start [2025-01-01 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153793', 'tblTempUsageDetail_20' ) end [2025-01-01 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153793', 'tblTempVendorCDR_20' ) start [2025-01-01 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153793', 'tblTempVendorCDR_20' ) end [2025-01-01 22:00:18] Production.INFO: ProcessCDR(1,14153793,1,1,2) [2025-01-01 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153793', 'tblTempUsageDetail_20' ) start [2025-01-01 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153793', 'tblTempUsageDetail_20' ) end [2025-01-01 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:00:23] Production.INFO: ==26467== Releasing lock... [2025-01-01 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:00:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-01 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:01:05 [end_date_ymd] => 2025-01-01 22:01:05 [RateCDR] => 1 ) [2025-01-01 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 19:01:05' and `end` < '2025-01-01 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 22:01:18] Production.INFO: count ==1007 [2025-01-01 22:01:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:01:05 - End Time 2025-01-01 22:01:05 [2025-01-01 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153798', 'tblTempUsageDetail_20' ) start [2025-01-01 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153798', 'tblTempUsageDetail_20' ) end [2025-01-01 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153798', 'tblTempVendorCDR_20' ) start [2025-01-01 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153798', 'tblTempVendorCDR_20' ) end [2025-01-01 22:01:18] Production.INFO: ProcessCDR(1,14153798,1,1,2) [2025-01-01 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153798', 'tblTempUsageDetail_20' ) start [2025-01-01 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153798', 'tblTempUsageDetail_20' ) end [2025-01-01 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:01:21] Production.INFO: ==26583== Releasing lock... [2025-01-01 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:01:21] Production.INFO: 35 MB #Memory Used# [2025-01-01 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:02:05 [end_date_ymd] => 2025-01-01 22:02:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:02:05' and `end` < '2025-01-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-01-01 22:02:17] Production.INFO: count ==1006 [2025-01-01 22:02:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:02:05 - End Time 2025-01-01 22:02:05 [2025-01-01 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153803', 'tblTempUsageDetail_20' ) start [2025-01-01 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153803', 'tblTempUsageDetail_20' ) end [2025-01-01 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153803', 'tblTempVendorCDR_20' ) start [2025-01-01 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153803', 'tblTempVendorCDR_20' ) end [2025-01-01 22:02:18] Production.INFO: ProcessCDR(1,14153803,1,1,2) [2025-01-01 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153803', 'tblTempUsageDetail_20' ) start [2025-01-01 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153803', 'tblTempUsageDetail_20' ) end [2025-01-01 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:02:21] Production.INFO: ==26684== Releasing lock... [2025-01-01 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:02:21] Production.INFO: 35 MB #Memory Used# [2025-01-01 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:03:05 [end_date_ymd] => 2025-01-01 22:03:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:03:05' and `end` < '2025-01-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-01-01 22:03:18] Production.INFO: count ==1007 [2025-01-01 22:03:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:03:05 - End Time 2025-01-01 22:03:05 [2025-01-01 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153808', 'tblTempUsageDetail_20' ) start [2025-01-01 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153808', 'tblTempUsageDetail_20' ) end [2025-01-01 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153808', 'tblTempVendorCDR_20' ) start [2025-01-01 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153808', 'tblTempVendorCDR_20' ) end [2025-01-01 22:03:18] Production.INFO: ProcessCDR(1,14153808,1,1,2) [2025-01-01 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153808', 'tblTempUsageDetail_20' ) start [2025-01-01 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153808', 'tblTempUsageDetail_20' ) end [2025-01-01 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:03:21] Production.INFO: ==26788== Releasing lock... [2025-01-01 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:03:21] Production.INFO: 35 MB #Memory Used# [2025-01-01 22:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:04:04 [end_date_ymd] => 2025-01-01 22:04:04 [RateCDR] => 1 ) [2025-01-01 22:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 19:04:04' and `end` < '2025-01-01 22:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 22:04:17] Production.INFO: count ==1006 [2025-01-01 22:04:17] Production.ERROR: pbx CDR StartTime 2025-01-01 19:04:04 - End Time 2025-01-01 22:04:04 [2025-01-01 22:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153813', 'tblTempUsageDetail_20' ) start [2025-01-01 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153813', 'tblTempUsageDetail_20' ) end [2025-01-01 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153813', 'tblTempVendorCDR_20' ) start [2025-01-01 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153813', 'tblTempVendorCDR_20' ) end [2025-01-01 22:04:17] Production.INFO: ProcessCDR(1,14153813,1,1,2) [2025-01-01 22:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153813', 'tblTempUsageDetail_20' ) start [2025-01-01 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153813', 'tblTempUsageDetail_20' ) end [2025-01-01 22:04:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:04:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:04:20] Production.INFO: ==26886== Releasing lock... [2025-01-01 22:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:04:20] Production.INFO: 35 MB #Memory Used# [2025-01-01 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:05:05 [end_date_ymd] => 2025-01-01 22:05:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:05:05' and `end` < '2025-01-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-01-01 22:05:18] Production.INFO: count ==1007 [2025-01-01 22:05:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:05:05 - End Time 2025-01-01 22:05:05 [2025-01-01 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153818', 'tblTempUsageDetail_20' ) start [2025-01-01 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153818', 'tblTempUsageDetail_20' ) end [2025-01-01 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153818', 'tblTempVendorCDR_20' ) start [2025-01-01 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153818', 'tblTempVendorCDR_20' ) end [2025-01-01 22:05:18] Production.INFO: ProcessCDR(1,14153818,1,1,2) [2025-01-01 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153818', 'tblTempUsageDetail_20' ) start [2025-01-01 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153818', 'tblTempUsageDetail_20' ) end [2025-01-01 22:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:05:23] Production.INFO: ==26995== Releasing lock... [2025-01-01 22:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:05:23] Production.INFO: 35 MB #Memory Used# [2025-01-01 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:06:05 [end_date_ymd] => 2025-01-01 22:06:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:06:05' and `end` < '2025-01-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-01-01 22:06:17] Production.INFO: count ==1007 [2025-01-01 22:06:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:06:05 - End Time 2025-01-01 22:06:05 [2025-01-01 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153823', 'tblTempUsageDetail_20' ) start [2025-01-01 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153823', 'tblTempUsageDetail_20' ) end [2025-01-01 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153823', 'tblTempVendorCDR_20' ) start [2025-01-01 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153823', 'tblTempVendorCDR_20' ) end [2025-01-01 22:06:18] Production.INFO: ProcessCDR(1,14153823,1,1,2) [2025-01-01 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153823', 'tblTempUsageDetail_20' ) start [2025-01-01 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153823', 'tblTempUsageDetail_20' ) end [2025-01-01 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:06:21] Production.INFO: ==27095== Releasing lock... [2025-01-01 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:06:21] Production.INFO: 35 MB #Memory Used# [2025-01-01 22:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:07:04 [end_date_ymd] => 2025-01-01 22:07:04 [RateCDR] => 1 ) [2025-01-01 22: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-01-01 19:07:04' and `end` < '2025-01-01 22: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-01-01 22:07:18] Production.INFO: count ==1007 [2025-01-01 22:07:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:07:04 - End Time 2025-01-01 22:07:04 [2025-01-01 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153828', 'tblTempUsageDetail_20' ) start [2025-01-01 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153828', 'tblTempUsageDetail_20' ) end [2025-01-01 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153828', 'tblTempVendorCDR_20' ) start [2025-01-01 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153828', 'tblTempVendorCDR_20' ) end [2025-01-01 22:07:18] Production.INFO: ProcessCDR(1,14153828,1,1,2) [2025-01-01 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153828', 'tblTempUsageDetail_20' ) start [2025-01-01 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153828', 'tblTempUsageDetail_20' ) end [2025-01-01 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:07:21] Production.INFO: ==27200== Releasing lock... [2025-01-01 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:07:21] Production.INFO: 35 MB #Memory Used# [2025-01-01 22:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:08:04 [end_date_ymd] => 2025-01-01 22:08:04 [RateCDR] => 1 ) [2025-01-01 22: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-01 19:08:04' and `end` < '2025-01-01 22: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-01-01 22:08:18] Production.INFO: count ==1004 [2025-01-01 22:08:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:08:04 - End Time 2025-01-01 22:08:04 [2025-01-01 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153833', 'tblTempUsageDetail_20' ) start [2025-01-01 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153833', 'tblTempUsageDetail_20' ) end [2025-01-01 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153833', 'tblTempVendorCDR_20' ) start [2025-01-01 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153833', 'tblTempVendorCDR_20' ) end [2025-01-01 22:08:18] Production.INFO: ProcessCDR(1,14153833,1,1,2) [2025-01-01 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153833', 'tblTempUsageDetail_20' ) start [2025-01-01 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153833', 'tblTempUsageDetail_20' ) end [2025-01-01 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:08:21] Production.INFO: ==27338== Releasing lock... [2025-01-01 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:08:21] Production.INFO: 35 MB #Memory Used# [2025-01-01 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:09:05 [end_date_ymd] => 2025-01-01 22:09:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:09:05' and `end` < '2025-01-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-01-01 22:09:18] Production.INFO: count ==1003 [2025-01-01 22:09:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:09:05 - End Time 2025-01-01 22:09:05 [2025-01-01 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153838', 'tblTempUsageDetail_20' ) start [2025-01-01 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153838', 'tblTempUsageDetail_20' ) end [2025-01-01 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153838', 'tblTempVendorCDR_20' ) start [2025-01-01 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153838', 'tblTempVendorCDR_20' ) end [2025-01-01 22:09:18] Production.INFO: ProcessCDR(1,14153838,1,1,2) [2025-01-01 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153838', 'tblTempUsageDetail_20' ) start [2025-01-01 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153838', 'tblTempUsageDetail_20' ) end [2025-01-01 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:09:21] Production.INFO: ==27440== Releasing lock... [2025-01-01 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:09:21] Production.INFO: 35 MB #Memory Used# [2025-01-01 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:10:06 [end_date_ymd] => 2025-01-01 22:10:06 [RateCDR] => 1 ) [2025-01-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-01-01 19:10:06' and `end` < '2025-01-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-01-01 22:10:19] Production.INFO: count ==1003 [2025-01-01 22:10:19] Production.ERROR: pbx CDR StartTime 2025-01-01 19:10:06 - End Time 2025-01-01 22:10:06 [2025-01-01 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153844', 'tblTempUsageDetail_20' ) start [2025-01-01 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153844', 'tblTempUsageDetail_20' ) end [2025-01-01 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153844', 'tblTempVendorCDR_20' ) start [2025-01-01 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153844', 'tblTempVendorCDR_20' ) end [2025-01-01 22:10:19] Production.INFO: ProcessCDR(1,14153844,1,1,2) [2025-01-01 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153844', 'tblTempUsageDetail_20' ) start [2025-01-01 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153844', 'tblTempUsageDetail_20' ) end [2025-01-01 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:10:22] Production.INFO: ==27542== Releasing lock... [2025-01-01 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:10:22] Production.INFO: 35 MB #Memory Used# [2025-01-01 22:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:11:04 [end_date_ymd] => 2025-01-01 22:11:04 [RateCDR] => 1 ) [2025-01-01 22:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 19:11:04' and `end` < '2025-01-01 22:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 22:11:17] Production.INFO: count ==976 [2025-01-01 22:11:17] Production.ERROR: pbx CDR StartTime 2025-01-01 19:11:04 - End Time 2025-01-01 22:11:04 [2025-01-01 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153849', 'tblTempUsageDetail_20' ) start [2025-01-01 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153849', 'tblTempUsageDetail_20' ) end [2025-01-01 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153849', 'tblTempVendorCDR_20' ) start [2025-01-01 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153849', 'tblTempVendorCDR_20' ) end [2025-01-01 22:11:17] Production.INFO: ProcessCDR(1,14153849,1,1,2) [2025-01-01 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153849', 'tblTempUsageDetail_20' ) start [2025-01-01 22:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153849', 'tblTempUsageDetail_20' ) end [2025-01-01 22:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:11:20] Production.INFO: ==27641== Releasing lock... [2025-01-01 22:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:11:20] Production.INFO: 35 MB #Memory Used# [2025-01-01 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:12:05 [end_date_ymd] => 2025-01-01 22:12:05 [RateCDR] => 1 ) [2025-01-01 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 19:12:05' and `end` < '2025-01-01 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 22:12:19] Production.INFO: count ==971 [2025-01-01 22:12:19] Production.ERROR: pbx CDR StartTime 2025-01-01 19:12:05 - End Time 2025-01-01 22:12:05 [2025-01-01 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153854', 'tblTempUsageDetail_20' ) start [2025-01-01 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153854', 'tblTempUsageDetail_20' ) end [2025-01-01 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153854', 'tblTempVendorCDR_20' ) start [2025-01-01 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153854', 'tblTempVendorCDR_20' ) end [2025-01-01 22:12:19] Production.INFO: ProcessCDR(1,14153854,1,1,2) [2025-01-01 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153854', 'tblTempUsageDetail_20' ) start [2025-01-01 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153854', 'tblTempUsageDetail_20' ) end [2025-01-01 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:12:22] Production.INFO: ==27743== Releasing lock... [2025-01-01 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:12:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-01 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:13:05 [end_date_ymd] => 2025-01-01 22:13:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:13:05' and `end` < '2025-01-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-01-01 22:13:19] Production.INFO: count ==970 [2025-01-01 22:13:19] Production.ERROR: pbx CDR StartTime 2025-01-01 19:13:05 - End Time 2025-01-01 22:13:05 [2025-01-01 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153859', 'tblTempUsageDetail_20' ) start [2025-01-01 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153859', 'tblTempUsageDetail_20' ) end [2025-01-01 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153859', 'tblTempVendorCDR_20' ) start [2025-01-01 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153859', 'tblTempVendorCDR_20' ) end [2025-01-01 22:13:19] Production.INFO: ProcessCDR(1,14153859,1,1,2) [2025-01-01 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153859', 'tblTempUsageDetail_20' ) start [2025-01-01 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153859', 'tblTempUsageDetail_20' ) end [2025-01-01 22:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:13:23] Production.INFO: ==27843== Releasing lock... [2025-01-01 22:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:13:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-01 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:14:05 [end_date_ymd] => 2025-01-01 22:14:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:14:05' and `end` < '2025-01-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-01-01 22:14:18] Production.INFO: count ==970 [2025-01-01 22:14:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:14:05 - End Time 2025-01-01 22:14:05 [2025-01-01 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153864', 'tblTempUsageDetail_20' ) start [2025-01-01 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153864', 'tblTempUsageDetail_20' ) end [2025-01-01 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153864', 'tblTempVendorCDR_20' ) start [2025-01-01 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153864', 'tblTempVendorCDR_20' ) end [2025-01-01 22:14:18] Production.INFO: ProcessCDR(1,14153864,1,1,2) [2025-01-01 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153864', 'tblTempUsageDetail_20' ) start [2025-01-01 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153864', 'tblTempUsageDetail_20' ) end [2025-01-01 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:14:21] Production.INFO: ==27943== Releasing lock... [2025-01-01 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:14:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-01 22:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:15:06 [end_date_ymd] => 2025-01-01 22:15:06 [RateCDR] => 1 ) [2025-01-01 22:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 19:15:06' and `end` < '2025-01-01 22:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 22:15:18] Production.INFO: count ==968 [2025-01-01 22:15:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:15:06 - End Time 2025-01-01 22:15:06 [2025-01-01 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153869', 'tblTempUsageDetail_20' ) start [2025-01-01 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153869', 'tblTempUsageDetail_20' ) end [2025-01-01 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153869', 'tblTempVendorCDR_20' ) start [2025-01-01 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153869', 'tblTempVendorCDR_20' ) end [2025-01-01 22:15:18] Production.INFO: ProcessCDR(1,14153869,1,1,2) [2025-01-01 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153869', 'tblTempUsageDetail_20' ) start [2025-01-01 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153869', 'tblTempUsageDetail_20' ) end [2025-01-01 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:15:21] Production.INFO: ==28068== Releasing lock... [2025-01-01 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:15:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-01 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:16:05 [end_date_ymd] => 2025-01-01 22:16:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:16:05' and `end` < '2025-01-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-01-01 22:16:17] Production.INFO: count ==968 [2025-01-01 22:16:17] Production.ERROR: pbx CDR StartTime 2025-01-01 19:16:05 - End Time 2025-01-01 22:16:05 [2025-01-01 22:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153874', 'tblTempUsageDetail_20' ) start [2025-01-01 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153874', 'tblTempUsageDetail_20' ) end [2025-01-01 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153874', 'tblTempVendorCDR_20' ) start [2025-01-01 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153874', 'tblTempVendorCDR_20' ) end [2025-01-01 22:16:17] Production.INFO: ProcessCDR(1,14153874,1,1,2) [2025-01-01 22:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153874', 'tblTempUsageDetail_20' ) start [2025-01-01 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153874', 'tblTempUsageDetail_20' ) end [2025-01-01 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:16:22] Production.INFO: ==28198== Releasing lock... [2025-01-01 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:16:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-01 22:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:17:06 [end_date_ymd] => 2025-01-01 22:17:06 [RateCDR] => 1 ) [2025-01-01 22:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 19:17:06' and `end` < '2025-01-01 22:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 22:17:18] Production.INFO: count ==968 [2025-01-01 22:17:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:17:06 - End Time 2025-01-01 22:17:06 [2025-01-01 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153879', 'tblTempUsageDetail_20' ) start [2025-01-01 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153879', 'tblTempUsageDetail_20' ) end [2025-01-01 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153879', 'tblTempVendorCDR_20' ) start [2025-01-01 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153879', 'tblTempVendorCDR_20' ) end [2025-01-01 22:17:18] Production.INFO: ProcessCDR(1,14153879,1,1,2) [2025-01-01 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153879', 'tblTempUsageDetail_20' ) start [2025-01-01 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153879', 'tblTempUsageDetail_20' ) end [2025-01-01 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:17:21] Production.INFO: ==28300== Releasing lock... [2025-01-01 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:17:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-01 22:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:18:04 [end_date_ymd] => 2025-01-01 22:18:04 [RateCDR] => 1 ) [2025-01-01 22: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-01-01 19:18:04' and `end` < '2025-01-01 22: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-01-01 22:18:17] Production.INFO: count ==967 [2025-01-01 22:18:17] Production.ERROR: pbx CDR StartTime 2025-01-01 19:18:04 - End Time 2025-01-01 22:18:04 [2025-01-01 22:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153884', 'tblTempUsageDetail_20' ) start [2025-01-01 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153884', 'tblTempUsageDetail_20' ) end [2025-01-01 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153884', 'tblTempVendorCDR_20' ) start [2025-01-01 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153884', 'tblTempVendorCDR_20' ) end [2025-01-01 22:18:17] Production.INFO: ProcessCDR(1,14153884,1,1,2) [2025-01-01 22:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153884', 'tblTempUsageDetail_20' ) start [2025-01-01 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153884', 'tblTempUsageDetail_20' ) end [2025-01-01 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:18:21] Production.INFO: ==28372== Releasing lock... [2025-01-01 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:18:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-01 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:19:05 [end_date_ymd] => 2025-01-01 22:19:05 [RateCDR] => 1 ) [2025-01-01 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 19:19:05' and `end` < '2025-01-01 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 22:19:19] Production.INFO: count ==970 [2025-01-01 22:19:19] Production.ERROR: pbx CDR StartTime 2025-01-01 19:19:05 - End Time 2025-01-01 22:19:05 [2025-01-01 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153889', 'tblTempUsageDetail_20' ) start [2025-01-01 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153889', 'tblTempUsageDetail_20' ) end [2025-01-01 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153889', 'tblTempVendorCDR_20' ) start [2025-01-01 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153889', 'tblTempVendorCDR_20' ) end [2025-01-01 22:19:19] Production.INFO: ProcessCDR(1,14153889,1,1,2) [2025-01-01 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153889', 'tblTempUsageDetail_20' ) start [2025-01-01 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153889', 'tblTempUsageDetail_20' ) end [2025-01-01 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:19:22] Production.INFO: ==28442== Releasing lock... [2025-01-01 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:19:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-01 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:20:05 [end_date_ymd] => 2025-01-01 22:20:05 [RateCDR] => 1 ) [2025-01-01 22:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 19:20:05' and `end` < '2025-01-01 22:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 22:20:18] Production.INFO: count ==962 [2025-01-01 22:20:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:20:05 - End Time 2025-01-01 22:20:05 [2025-01-01 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153895', 'tblTempUsageDetail_20' ) start [2025-01-01 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153895', 'tblTempUsageDetail_20' ) end [2025-01-01 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153895', 'tblTempVendorCDR_20' ) start [2025-01-01 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153895', 'tblTempVendorCDR_20' ) end [2025-01-01 22:20:18] Production.INFO: ProcessCDR(1,14153895,1,1,2) [2025-01-01 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153895', 'tblTempUsageDetail_20' ) start [2025-01-01 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153895', 'tblTempUsageDetail_20' ) end [2025-01-01 22:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:20:21] Production.INFO: ==28516== Releasing lock... [2025-01-01 22:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:20:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-01 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:21:05 [end_date_ymd] => 2025-01-01 22:21:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:21:05' and `end` < '2025-01-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-01-01 22:21:17] Production.INFO: count ==936 [2025-01-01 22:21:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:21:05 - End Time 2025-01-01 22:21:05 [2025-01-01 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153900', 'tblTempUsageDetail_20' ) start [2025-01-01 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153900', 'tblTempUsageDetail_20' ) end [2025-01-01 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153900', 'tblTempVendorCDR_20' ) start [2025-01-01 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153900', 'tblTempVendorCDR_20' ) end [2025-01-01 22:21:18] Production.INFO: ProcessCDR(1,14153900,1,1,2) [2025-01-01 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153900', 'tblTempUsageDetail_20' ) start [2025-01-01 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153900', 'tblTempUsageDetail_20' ) end [2025-01-01 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:21:21] Production.INFO: ==28592== Releasing lock... [2025-01-01 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:21:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-01 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:22:05 [end_date_ymd] => 2025-01-01 22:22:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:22:05' and `end` < '2025-01-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-01-01 22:22:19] Production.INFO: count ==937 [2025-01-01 22:22:19] Production.ERROR: pbx CDR StartTime 2025-01-01 19:22:05 - End Time 2025-01-01 22:22:05 [2025-01-01 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153905', 'tblTempUsageDetail_20' ) start [2025-01-01 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153905', 'tblTempUsageDetail_20' ) end [2025-01-01 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153905', 'tblTempVendorCDR_20' ) start [2025-01-01 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153905', 'tblTempVendorCDR_20' ) end [2025-01-01 22:22:19] Production.INFO: ProcessCDR(1,14153905,1,1,2) [2025-01-01 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153905', 'tblTempUsageDetail_20' ) start [2025-01-01 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153905', 'tblTempUsageDetail_20' ) end [2025-01-01 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:22:22] Production.INFO: ==28663== Releasing lock... [2025-01-01 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:22:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-01 22:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:23:04 [end_date_ymd] => 2025-01-01 22:23:04 [RateCDR] => 1 ) [2025-01-01 22:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 19:23:04' and `end` < '2025-01-01 22:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 22:23:19] Production.INFO: count ==937 [2025-01-01 22:23:19] Production.ERROR: pbx CDR StartTime 2025-01-01 19:23:04 - End Time 2025-01-01 22:23:04 [2025-01-01 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153910', 'tblTempUsageDetail_20' ) start [2025-01-01 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153910', 'tblTempUsageDetail_20' ) end [2025-01-01 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153910', 'tblTempVendorCDR_20' ) start [2025-01-01 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153910', 'tblTempVendorCDR_20' ) end [2025-01-01 22:23:19] Production.INFO: ProcessCDR(1,14153910,1,1,2) [2025-01-01 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153910', 'tblTempUsageDetail_20' ) start [2025-01-01 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153910', 'tblTempUsageDetail_20' ) end [2025-01-01 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:23:22] Production.INFO: ==28773== Releasing lock... [2025-01-01 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:23:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-01 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:24:05 [end_date_ymd] => 2025-01-01 22:24:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:24:05' and `end` < '2025-01-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-01-01 22:24:19] Production.INFO: count ==937 [2025-01-01 22:24:19] Production.ERROR: pbx CDR StartTime 2025-01-01 19:24:05 - End Time 2025-01-01 22:24:05 [2025-01-01 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153915', 'tblTempUsageDetail_20' ) start [2025-01-01 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153915', 'tblTempUsageDetail_20' ) end [2025-01-01 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153915', 'tblTempVendorCDR_20' ) start [2025-01-01 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153915', 'tblTempVendorCDR_20' ) end [2025-01-01 22:24:19] Production.INFO: ProcessCDR(1,14153915,1,1,2) [2025-01-01 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153915', 'tblTempUsageDetail_20' ) start [2025-01-01 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153915', 'tblTempUsageDetail_20' ) end [2025-01-01 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:24:22] Production.INFO: ==28844== Releasing lock... [2025-01-01 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:24:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-01 22:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:25:04 [end_date_ymd] => 2025-01-01 22:25:04 [RateCDR] => 1 ) [2025-01-01 22: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-01 19:25:04' and `end` < '2025-01-01 22: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-01-01 22:25:17] Production.INFO: count ==934 [2025-01-01 22:25:17] Production.ERROR: pbx CDR StartTime 2025-01-01 19:25:04 - End Time 2025-01-01 22:25:04 [2025-01-01 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153920', 'tblTempUsageDetail_20' ) start [2025-01-01 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153920', 'tblTempUsageDetail_20' ) end [2025-01-01 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153920', 'tblTempVendorCDR_20' ) start [2025-01-01 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153920', 'tblTempVendorCDR_20' ) end [2025-01-01 22:25:17] Production.INFO: ProcessCDR(1,14153920,1,1,2) [2025-01-01 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153920', 'tblTempUsageDetail_20' ) start [2025-01-01 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153920', 'tblTempUsageDetail_20' ) end [2025-01-01 22:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:25:20] Production.INFO: ==28914== Releasing lock... [2025-01-01 22:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:25:20] Production.INFO: 34.5 MB #Memory Used# [2025-01-01 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:26:05 [end_date_ymd] => 2025-01-01 22:26:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:26:05' and `end` < '2025-01-01 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 22:26:18] Production.INFO: count ==941 [2025-01-01 22:26:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:26:05 - End Time 2025-01-01 22:26:05 [2025-01-01 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153925', 'tblTempUsageDetail_20' ) start [2025-01-01 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153925', 'tblTempUsageDetail_20' ) end [2025-01-01 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153925', 'tblTempVendorCDR_20' ) start [2025-01-01 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153925', 'tblTempVendorCDR_20' ) end [2025-01-01 22:26:18] Production.INFO: ProcessCDR(1,14153925,1,1,2) [2025-01-01 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153925', 'tblTempUsageDetail_20' ) start [2025-01-01 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153925', 'tblTempUsageDetail_20' ) end [2025-01-01 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:26:21] Production.INFO: ==28989== Releasing lock... [2025-01-01 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:26:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-01 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:27:05 [end_date_ymd] => 2025-01-01 22:27:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:27:05' and `end` < '2025-01-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-01-01 22:27:18] Production.INFO: count ==939 [2025-01-01 22:27:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:27:05 - End Time 2025-01-01 22:27:05 [2025-01-01 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153930', 'tblTempUsageDetail_20' ) start [2025-01-01 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153930', 'tblTempUsageDetail_20' ) end [2025-01-01 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153930', 'tblTempVendorCDR_20' ) start [2025-01-01 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153930', 'tblTempVendorCDR_20' ) end [2025-01-01 22:27:18] Production.INFO: ProcessCDR(1,14153930,1,1,2) [2025-01-01 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153930', 'tblTempUsageDetail_20' ) start [2025-01-01 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153930', 'tblTempUsageDetail_20' ) end [2025-01-01 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:27:21] Production.INFO: ==29065== Releasing lock... [2025-01-01 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:27:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-01 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:28:05 [end_date_ymd] => 2025-01-01 22:28:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:28:05' and `end` < '2025-01-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-01-01 22:28:19] Production.INFO: count ==939 [2025-01-01 22:28:20] Production.ERROR: pbx CDR StartTime 2025-01-01 19:28:05 - End Time 2025-01-01 22:28:05 [2025-01-01 22:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153935', 'tblTempUsageDetail_20' ) start [2025-01-01 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153935', 'tblTempUsageDetail_20' ) end [2025-01-01 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153935', 'tblTempVendorCDR_20' ) start [2025-01-01 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153935', 'tblTempVendorCDR_20' ) end [2025-01-01 22:28:20] Production.INFO: ProcessCDR(1,14153935,1,1,2) [2025-01-01 22:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153935', 'tblTempUsageDetail_20' ) start [2025-01-01 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153935', 'tblTempUsageDetail_20' ) end [2025-01-01 22:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:28:23] Production.INFO: ==29137== Releasing lock... [2025-01-01 22:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:28:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-01 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:29:05 [end_date_ymd] => 2025-01-01 22:29:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:29:05' and `end` < '2025-01-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-01-01 22:29:18] Production.INFO: count ==937 [2025-01-01 22:29:19] Production.ERROR: pbx CDR StartTime 2025-01-01 19:29:05 - End Time 2025-01-01 22:29:05 [2025-01-01 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153940', 'tblTempUsageDetail_20' ) start [2025-01-01 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153940', 'tblTempUsageDetail_20' ) end [2025-01-01 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153940', 'tblTempVendorCDR_20' ) start [2025-01-01 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153940', 'tblTempVendorCDR_20' ) end [2025-01-01 22:29:19] Production.INFO: ProcessCDR(1,14153940,1,1,2) [2025-01-01 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153940', 'tblTempUsageDetail_20' ) start [2025-01-01 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153940', 'tblTempUsageDetail_20' ) end [2025-01-01 22:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:29:23] Production.INFO: ==29210== Releasing lock... [2025-01-01 22:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:29:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-01 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:30:06 [end_date_ymd] => 2025-01-01 22:30:06 [RateCDR] => 1 ) [2025-01-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-01-01 19:30:06' and `end` < '2025-01-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-01-01 22:30:19] Production.INFO: count ==936 [2025-01-01 22:30:19] Production.ERROR: pbx CDR StartTime 2025-01-01 19:30:06 - End Time 2025-01-01 22:30:06 [2025-01-01 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153945', 'tblTempUsageDetail_20' ) start [2025-01-01 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153945', 'tblTempUsageDetail_20' ) end [2025-01-01 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153945', 'tblTempVendorCDR_20' ) start [2025-01-01 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153945', 'tblTempVendorCDR_20' ) end [2025-01-01 22:30:19] Production.INFO: ProcessCDR(1,14153945,1,1,2) [2025-01-01 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153945', 'tblTempUsageDetail_20' ) start [2025-01-01 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153945', 'tblTempUsageDetail_20' ) end [2025-01-01 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:30:22] Production.INFO: ==29284== Releasing lock... [2025-01-01 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:30:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-01 22:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:31:04 [end_date_ymd] => 2025-01-01 22:31:04 [RateCDR] => 1 ) [2025-01-01 22:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 19:31:04' and `end` < '2025-01-01 22:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 22:31:17] Production.INFO: count ==906 [2025-01-01 22:31:17] Production.ERROR: pbx CDR StartTime 2025-01-01 19:31:04 - End Time 2025-01-01 22:31:04 [2025-01-01 22:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153951', 'tblTempUsageDetail_20' ) start [2025-01-01 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153951', 'tblTempUsageDetail_20' ) end [2025-01-01 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153951', 'tblTempVendorCDR_20' ) start [2025-01-01 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153951', 'tblTempVendorCDR_20' ) end [2025-01-01 22:31:17] Production.INFO: ProcessCDR(1,14153951,1,1,2) [2025-01-01 22:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153951', 'tblTempUsageDetail_20' ) start [2025-01-01 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153951', 'tblTempUsageDetail_20' ) end [2025-01-01 22:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:31:20] Production.INFO: ==29358== Releasing lock... [2025-01-01 22:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:31:20] Production.INFO: 34 MB #Memory Used# [2025-01-01 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:32:05 [end_date_ymd] => 2025-01-01 22:32:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:32:05' and `end` < '2025-01-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-01-01 22:32:18] Production.INFO: count ==903 [2025-01-01 22:32:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:32:05 - End Time 2025-01-01 22:32:05 [2025-01-01 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153956', 'tblTempUsageDetail_20' ) start [2025-01-01 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153956', 'tblTempUsageDetail_20' ) end [2025-01-01 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153956', 'tblTempVendorCDR_20' ) start [2025-01-01 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153956', 'tblTempVendorCDR_20' ) end [2025-01-01 22:32:18] Production.INFO: ProcessCDR(1,14153956,1,1,2) [2025-01-01 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153956', 'tblTempUsageDetail_20' ) start [2025-01-01 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153956', 'tblTempUsageDetail_20' ) end [2025-01-01 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:32:21] Production.INFO: ==29428== Releasing lock... [2025-01-01 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:32:21] Production.INFO: 34 MB #Memory Used# [2025-01-01 22:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:33:04 [end_date_ymd] => 2025-01-01 22:33:04 [RateCDR] => 1 ) [2025-01-01 22: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-01-01 19:33:04' and `end` < '2025-01-01 22: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-01-01 22:33:18] Production.INFO: count ==901 [2025-01-01 22:33:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:33:04 - End Time 2025-01-01 22:33:04 [2025-01-01 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153961', 'tblTempUsageDetail_20' ) start [2025-01-01 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153961', 'tblTempUsageDetail_20' ) end [2025-01-01 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153961', 'tblTempVendorCDR_20' ) start [2025-01-01 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153961', 'tblTempVendorCDR_20' ) end [2025-01-01 22:33:18] Production.INFO: ProcessCDR(1,14153961,1,1,2) [2025-01-01 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153961', 'tblTempUsageDetail_20' ) start [2025-01-01 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153961', 'tblTempUsageDetail_20' ) end [2025-01-01 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:33:21] Production.INFO: ==29500== Releasing lock... [2025-01-01 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:33:21] Production.INFO: 34 MB #Memory Used# [2025-01-01 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:34:04 [end_date_ymd] => 2025-01-01 22:34:04 [RateCDR] => 1 ) [2025-01-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-01-01 19:34:04' and `end` < '2025-01-01 22: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-01-01 22:34:17] Production.INFO: count ==901 [2025-01-01 22:34:17] Production.ERROR: pbx CDR StartTime 2025-01-01 19:34:04 - End Time 2025-01-01 22:34:04 [2025-01-01 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153966', 'tblTempUsageDetail_20' ) start [2025-01-01 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153966', 'tblTempUsageDetail_20' ) end [2025-01-01 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153966', 'tblTempVendorCDR_20' ) start [2025-01-01 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153966', 'tblTempVendorCDR_20' ) end [2025-01-01 22:34:17] Production.INFO: ProcessCDR(1,14153966,1,1,2) [2025-01-01 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153966', 'tblTempUsageDetail_20' ) start [2025-01-01 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153966', 'tblTempUsageDetail_20' ) end [2025-01-01 22:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:34:20] Production.INFO: ==29570== Releasing lock... [2025-01-01 22:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:34:20] Production.INFO: 34 MB #Memory Used# [2025-01-01 22:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:35:04 [end_date_ymd] => 2025-01-01 22:35:04 [RateCDR] => 1 ) [2025-01-01 22: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-01-01 19:35:04' and `end` < '2025-01-01 22: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-01-01 22:35:17] Production.INFO: count ==901 [2025-01-01 22:35:17] Production.ERROR: pbx CDR StartTime 2025-01-01 19:35:04 - End Time 2025-01-01 22:35:04 [2025-01-01 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153971', 'tblTempUsageDetail_20' ) start [2025-01-01 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153971', 'tblTempUsageDetail_20' ) end [2025-01-01 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153971', 'tblTempVendorCDR_20' ) start [2025-01-01 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153971', 'tblTempVendorCDR_20' ) end [2025-01-01 22:35:17] Production.INFO: ProcessCDR(1,14153971,1,1,2) [2025-01-01 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153971', 'tblTempUsageDetail_20' ) start [2025-01-01 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153971', 'tblTempUsageDetail_20' ) end [2025-01-01 22:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:35:20] Production.INFO: ==29639== Releasing lock... [2025-01-01 22:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:35:20] Production.INFO: 34 MB #Memory Used# [2025-01-01 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:36:05 [end_date_ymd] => 2025-01-01 22:36:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:36:05' and `end` < '2025-01-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-01-01 22:36:19] Production.INFO: count ==901 [2025-01-01 22:36:19] Production.ERROR: pbx CDR StartTime 2025-01-01 19:36:05 - End Time 2025-01-01 22:36:05 [2025-01-01 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153976', 'tblTempUsageDetail_20' ) start [2025-01-01 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153976', 'tblTempUsageDetail_20' ) end [2025-01-01 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153976', 'tblTempVendorCDR_20' ) start [2025-01-01 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153976', 'tblTempVendorCDR_20' ) end [2025-01-01 22:36:19] Production.INFO: ProcessCDR(1,14153976,1,1,2) [2025-01-01 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153976', 'tblTempUsageDetail_20' ) start [2025-01-01 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153976', 'tblTempUsageDetail_20' ) end [2025-01-01 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:36:22] Production.INFO: ==29715== Releasing lock... [2025-01-01 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:36:22] Production.INFO: 34 MB #Memory Used# [2025-01-01 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:37:05 [end_date_ymd] => 2025-01-01 22:37:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:37:05' and `end` < '2025-01-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-01-01 22:37:19] Production.INFO: count ==901 [2025-01-01 22:37:20] Production.ERROR: pbx CDR StartTime 2025-01-01 19:37:05 - End Time 2025-01-01 22:37:05 [2025-01-01 22:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153981', 'tblTempUsageDetail_20' ) start [2025-01-01 22:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153981', 'tblTempUsageDetail_20' ) end [2025-01-01 22:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153981', 'tblTempVendorCDR_20' ) start [2025-01-01 22:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153981', 'tblTempVendorCDR_20' ) end [2025-01-01 22:37:20] Production.INFO: ProcessCDR(1,14153981,1,1,2) [2025-01-01 22:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153981', 'tblTempUsageDetail_20' ) start [2025-01-01 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153981', 'tblTempUsageDetail_20' ) end [2025-01-01 22:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:37:23] Production.INFO: ==29787== Releasing lock... [2025-01-01 22:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:37:23] Production.INFO: 34 MB #Memory Used# [2025-01-01 22:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:38:06 [end_date_ymd] => 2025-01-01 22:38:06 [RateCDR] => 1 ) [2025-01-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-01-01 19:38:06' and `end` < '2025-01-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-01-01 22:38:18] Production.INFO: count ==902 [2025-01-01 22:38:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:38:06 - End Time 2025-01-01 22:38:06 [2025-01-01 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153986', 'tblTempUsageDetail_20' ) start [2025-01-01 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153986', 'tblTempUsageDetail_20' ) end [2025-01-01 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153986', 'tblTempVendorCDR_20' ) start [2025-01-01 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153986', 'tblTempVendorCDR_20' ) end [2025-01-01 22:38:18] Production.INFO: ProcessCDR(1,14153986,1,1,2) [2025-01-01 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153986', 'tblTempUsageDetail_20' ) start [2025-01-01 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153986', 'tblTempUsageDetail_20' ) end [2025-01-01 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:38:22] Production.INFO: ==29857== Releasing lock... [2025-01-01 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:38:22] Production.INFO: 34 MB #Memory Used# [2025-01-01 22:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:39:04 [end_date_ymd] => 2025-01-01 22:39:04 [RateCDR] => 1 ) [2025-01-01 22: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-01-01 19:39:04' and `end` < '2025-01-01 22: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-01-01 22:39:18] Production.INFO: count ==903 [2025-01-01 22:39:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:39:04 - End Time 2025-01-01 22:39:04 [2025-01-01 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153991', 'tblTempUsageDetail_20' ) start [2025-01-01 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153991', 'tblTempUsageDetail_20' ) end [2025-01-01 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153991', 'tblTempVendorCDR_20' ) start [2025-01-01 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153991', 'tblTempVendorCDR_20' ) end [2025-01-01 22:39:18] Production.INFO: ProcessCDR(1,14153991,1,1,2) [2025-01-01 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153991', 'tblTempUsageDetail_20' ) start [2025-01-01 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153991', 'tblTempUsageDetail_20' ) end [2025-01-01 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:39:21] Production.INFO: ==29966== Releasing lock... [2025-01-01 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:39:21] Production.INFO: 34 MB #Memory Used# [2025-01-01 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:40:06 [end_date_ymd] => 2025-01-01 22:40:06 [RateCDR] => 1 ) [2025-01-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-01-01 19:40:06' and `end` < '2025-01-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-01-01 22:40:19] Production.INFO: count ==904 [2025-01-01 22:40:19] Production.ERROR: pbx CDR StartTime 2025-01-01 19:40:06 - End Time 2025-01-01 22:40:06 [2025-01-01 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153997', 'tblTempUsageDetail_20' ) start [2025-01-01 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14153997', 'tblTempUsageDetail_20' ) end [2025-01-01 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153997', 'tblTempVendorCDR_20' ) start [2025-01-01 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14153997', 'tblTempVendorCDR_20' ) end [2025-01-01 22:40:19] Production.INFO: ProcessCDR(1,14153997,1,1,2) [2025-01-01 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14153997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14153997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14153997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14153997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153997', 'tblTempUsageDetail_20' ) start [2025-01-01 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14153997', 'tblTempUsageDetail_20' ) end [2025-01-01 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:40:22] Production.INFO: ==30039== Releasing lock... [2025-01-01 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:40:22] Production.INFO: 34 MB #Memory Used# [2025-01-01 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:41:05 [end_date_ymd] => 2025-01-01 22:41:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:41:05' and `end` < '2025-01-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-01-01 22:41:19] Production.INFO: count ==912 [2025-01-01 22:41:19] Production.ERROR: pbx CDR StartTime 2025-01-01 19:41:05 - End Time 2025-01-01 22:41:05 [2025-01-01 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154002', 'tblTempUsageDetail_20' ) start [2025-01-01 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154002', 'tblTempUsageDetail_20' ) end [2025-01-01 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154002', 'tblTempVendorCDR_20' ) start [2025-01-01 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154002', 'tblTempVendorCDR_20' ) end [2025-01-01 22:41:19] Production.INFO: ProcessCDR(1,14154002,1,1,2) [2025-01-01 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154002', 'tblTempUsageDetail_20' ) start [2025-01-01 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154002', 'tblTempUsageDetail_20' ) end [2025-01-01 22:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:41:23] Production.INFO: ==30115== Releasing lock... [2025-01-01 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:41:23] Production.INFO: 34 MB #Memory Used# [2025-01-01 22:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:42:04 [end_date_ymd] => 2025-01-01 22:42:04 [RateCDR] => 1 ) [2025-01-01 22:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 19:42:04' and `end` < '2025-01-01 22:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 22:42:17] Production.INFO: count ==911 [2025-01-01 22:42:17] Production.ERROR: pbx CDR StartTime 2025-01-01 19:42:04 - End Time 2025-01-01 22:42:04 [2025-01-01 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154007', 'tblTempUsageDetail_20' ) start [2025-01-01 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154007', 'tblTempUsageDetail_20' ) end [2025-01-01 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154007', 'tblTempVendorCDR_20' ) start [2025-01-01 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154007', 'tblTempVendorCDR_20' ) end [2025-01-01 22:42:17] Production.INFO: ProcessCDR(1,14154007,1,1,2) [2025-01-01 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154007', 'tblTempUsageDetail_20' ) start [2025-01-01 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154007', 'tblTempUsageDetail_20' ) end [2025-01-01 22:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:42:20] Production.INFO: ==30193== Releasing lock... [2025-01-01 22:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:42:20] Production.INFO: 34 MB #Memory Used# [2025-01-01 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:43:05 [end_date_ymd] => 2025-01-01 22:43:05 [RateCDR] => 1 ) [2025-01-01 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 19:43:05' and `end` < '2025-01-01 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 22:43:20] Production.INFO: count ==911 [2025-01-01 22:43:20] Production.ERROR: pbx CDR StartTime 2025-01-01 19:43:05 - End Time 2025-01-01 22:43:05 [2025-01-01 22:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154012', 'tblTempUsageDetail_20' ) start [2025-01-01 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154012', 'tblTempUsageDetail_20' ) end [2025-01-01 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154012', 'tblTempVendorCDR_20' ) start [2025-01-01 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154012', 'tblTempVendorCDR_20' ) end [2025-01-01 22:43:20] Production.INFO: ProcessCDR(1,14154012,1,1,2) [2025-01-01 22:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154012', 'tblTempUsageDetail_20' ) start [2025-01-01 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154012', 'tblTempUsageDetail_20' ) end [2025-01-01 22:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:43:23] Production.INFO: ==30268== Releasing lock... [2025-01-01 22:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:43:23] Production.INFO: 34 MB #Memory Used# [2025-01-01 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:44:05 [end_date_ymd] => 2025-01-01 22:44:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:44:05' and `end` < '2025-01-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-01-01 22:44:18] Production.INFO: count ==911 [2025-01-01 22:44:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:44:05 - End Time 2025-01-01 22:44:05 [2025-01-01 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154017', 'tblTempUsageDetail_20' ) start [2025-01-01 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154017', 'tblTempUsageDetail_20' ) end [2025-01-01 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154017', 'tblTempVendorCDR_20' ) start [2025-01-01 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154017', 'tblTempVendorCDR_20' ) end [2025-01-01 22:44:18] Production.INFO: ProcessCDR(1,14154017,1,1,2) [2025-01-01 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154017', 'tblTempUsageDetail_20' ) start [2025-01-01 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154017', 'tblTempUsageDetail_20' ) end [2025-01-01 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:44:21] Production.INFO: ==30342== Releasing lock... [2025-01-01 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:44:21] Production.INFO: 34 MB #Memory Used# [2025-01-01 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:45:05 [end_date_ymd] => 2025-01-01 22:45:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:45:05' and `end` < '2025-01-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-01-01 22:45:18] Production.INFO: count ==909 [2025-01-01 22:45:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:45:05 - End Time 2025-01-01 22:45:05 [2025-01-01 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154021', 'tblTempUsageDetail_20' ) start [2025-01-01 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154021', 'tblTempUsageDetail_20' ) end [2025-01-01 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154021', 'tblTempVendorCDR_20' ) start [2025-01-01 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154021', 'tblTempVendorCDR_20' ) end [2025-01-01 22:45:18] Production.INFO: ProcessCDR(1,14154021,1,1,2) [2025-01-01 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154021', 'tblTempUsageDetail_20' ) start [2025-01-01 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154021', 'tblTempUsageDetail_20' ) end [2025-01-01 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:45:21] Production.INFO: ==30413== Releasing lock... [2025-01-01 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:45:21] Production.INFO: 34 MB #Memory Used# [2025-01-01 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:46:05 [end_date_ymd] => 2025-01-01 22:46:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:46:05' and `end` < '2025-01-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-01-01 22:46:17] Production.INFO: count ==908 [2025-01-01 22:46:17] Production.ERROR: pbx CDR StartTime 2025-01-01 19:46:05 - End Time 2025-01-01 22:46:05 [2025-01-01 22:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154027', 'tblTempUsageDetail_20' ) start [2025-01-01 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154027', 'tblTempUsageDetail_20' ) end [2025-01-01 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154027', 'tblTempVendorCDR_20' ) start [2025-01-01 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154027', 'tblTempVendorCDR_20' ) end [2025-01-01 22:46:17] Production.INFO: ProcessCDR(1,14154027,1,1,2) [2025-01-01 22:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154027', 'tblTempUsageDetail_20' ) start [2025-01-01 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154027', 'tblTempUsageDetail_20' ) end [2025-01-01 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:46:21] Production.INFO: ==30493== Releasing lock... [2025-01-01 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:46:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-01 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:47:05 [end_date_ymd] => 2025-01-01 22:47:05 [RateCDR] => 1 ) [2025-01-01 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 19:47:05' and `end` < '2025-01-01 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 22:47:19] Production.INFO: count ==911 [2025-01-01 22:47:19] Production.ERROR: pbx CDR StartTime 2025-01-01 19:47:05 - End Time 2025-01-01 22:47:05 [2025-01-01 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154032', 'tblTempUsageDetail_20' ) start [2025-01-01 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154032', 'tblTempUsageDetail_20' ) end [2025-01-01 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154032', 'tblTempVendorCDR_20' ) start [2025-01-01 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154032', 'tblTempVendorCDR_20' ) end [2025-01-01 22:47:19] Production.INFO: ProcessCDR(1,14154032,1,1,2) [2025-01-01 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154032', 'tblTempUsageDetail_20' ) start [2025-01-01 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154032', 'tblTempUsageDetail_20' ) end [2025-01-01 22:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:47:23] Production.INFO: ==30576== Releasing lock... [2025-01-01 22:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:47:23] Production.INFO: 34 MB #Memory Used# [2025-01-01 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:48:05 [end_date_ymd] => 2025-01-01 22:48:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:48:05' and `end` < '2025-01-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-01-01 22:48:18] Production.INFO: count ==910 [2025-01-01 22:48:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:48:05 - End Time 2025-01-01 22:48:05 [2025-01-01 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154037', 'tblTempUsageDetail_20' ) start [2025-01-01 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154037', 'tblTempUsageDetail_20' ) end [2025-01-01 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154037', 'tblTempVendorCDR_20' ) start [2025-01-01 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154037', 'tblTempVendorCDR_20' ) end [2025-01-01 22:48:18] Production.INFO: ProcessCDR(1,14154037,1,1,2) [2025-01-01 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154037', 'tblTempUsageDetail_20' ) start [2025-01-01 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154037', 'tblTempUsageDetail_20' ) end [2025-01-01 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:48:21] Production.INFO: ==30654== Releasing lock... [2025-01-01 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:48:21] Production.INFO: 34 MB #Memory Used# [2025-01-01 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:49:05 [end_date_ymd] => 2025-01-01 22:49:05 [RateCDR] => 1 ) [2025-01-01 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 19:49:05' and `end` < '2025-01-01 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 22:49:17] Production.INFO: count ==910 [2025-01-01 22:49:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:49:05 - End Time 2025-01-01 22:49:05 [2025-01-01 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154042', 'tblTempUsageDetail_20' ) start [2025-01-01 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154042', 'tblTempUsageDetail_20' ) end [2025-01-01 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154042', 'tblTempVendorCDR_20' ) start [2025-01-01 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154042', 'tblTempVendorCDR_20' ) end [2025-01-01 22:49:18] Production.INFO: ProcessCDR(1,14154042,1,1,2) [2025-01-01 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154042', 'tblTempUsageDetail_20' ) start [2025-01-01 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154042', 'tblTempUsageDetail_20' ) end [2025-01-01 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:49:21] Production.INFO: ==30736== Releasing lock... [2025-01-01 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:49:21] Production.INFO: 34 MB #Memory Used# [2025-01-01 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:50:06 [end_date_ymd] => 2025-01-01 22:50:06 [RateCDR] => 1 ) [2025-01-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-01-01 19:50:06' and `end` < '2025-01-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-01-01 22:50:19] Production.INFO: count ==906 [2025-01-01 22:50:19] Production.ERROR: pbx CDR StartTime 2025-01-01 19:50:06 - End Time 2025-01-01 22:50:06 [2025-01-01 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154048', 'tblTempUsageDetail_20' ) start [2025-01-01 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154048', 'tblTempUsageDetail_20' ) end [2025-01-01 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154048', 'tblTempVendorCDR_20' ) start [2025-01-01 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154048', 'tblTempVendorCDR_20' ) end [2025-01-01 22:50:19] Production.INFO: ProcessCDR(1,14154048,1,1,2) [2025-01-01 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154048', 'tblTempUsageDetail_20' ) start [2025-01-01 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154048', 'tblTempUsageDetail_20' ) end [2025-01-01 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:50:22] Production.INFO: ==30819== Releasing lock... [2025-01-01 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:50:22] Production.INFO: 34 MB #Memory Used# [2025-01-01 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:51:04 [end_date_ymd] => 2025-01-01 22:51:04 [RateCDR] => 1 ) [2025-01-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-01-01 19:51:04' and `end` < '2025-01-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-01-01 22:51:19] Production.INFO: count ==870 [2025-01-01 22:51:19] Production.ERROR: pbx CDR StartTime 2025-01-01 19:51:04 - End Time 2025-01-01 22:51:04 [2025-01-01 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154053', 'tblTempUsageDetail_20' ) start [2025-01-01 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154053', 'tblTempUsageDetail_20' ) end [2025-01-01 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154053', 'tblTempVendorCDR_20' ) start [2025-01-01 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154053', 'tblTempVendorCDR_20' ) end [2025-01-01 22:51:19] Production.INFO: ProcessCDR(1,14154053,1,1,2) [2025-01-01 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154053', 'tblTempUsageDetail_20' ) start [2025-01-01 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154053', 'tblTempUsageDetail_20' ) end [2025-01-01 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:51:22] Production.INFO: ==30901== Releasing lock... [2025-01-01 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:51:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:52:05 [end_date_ymd] => 2025-01-01 22:52:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:52:05' and `end` < '2025-01-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-01-01 22:52:19] Production.INFO: count ==865 [2025-01-01 22:52:19] Production.ERROR: pbx CDR StartTime 2025-01-01 19:52:05 - End Time 2025-01-01 22:52:05 [2025-01-01 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154058', 'tblTempUsageDetail_20' ) start [2025-01-01 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154058', 'tblTempUsageDetail_20' ) end [2025-01-01 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154058', 'tblTempVendorCDR_20' ) start [2025-01-01 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154058', 'tblTempVendorCDR_20' ) end [2025-01-01 22:52:19] Production.INFO: ProcessCDR(1,14154058,1,1,2) [2025-01-01 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154058', 'tblTempUsageDetail_20' ) start [2025-01-01 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154058', 'tblTempUsageDetail_20' ) end [2025-01-01 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:52:22] Production.INFO: ==30985== Releasing lock... [2025-01-01 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:52:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:53:05 [end_date_ymd] => 2025-01-01 22:53:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:53:05' and `end` < '2025-01-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-01-01 22:53:19] Production.INFO: count ==868 [2025-01-01 22:53:19] Production.ERROR: pbx CDR StartTime 2025-01-01 19:53:05 - End Time 2025-01-01 22:53:05 [2025-01-01 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154063', 'tblTempUsageDetail_20' ) start [2025-01-01 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154063', 'tblTempUsageDetail_20' ) end [2025-01-01 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154063', 'tblTempVendorCDR_20' ) start [2025-01-01 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154063', 'tblTempVendorCDR_20' ) end [2025-01-01 22:53:19] Production.INFO: ProcessCDR(1,14154063,1,1,2) [2025-01-01 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154063', 'tblTempUsageDetail_20' ) start [2025-01-01 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154063', 'tblTempUsageDetail_20' ) end [2025-01-01 22:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:53:23] Production.INFO: ==31069== Releasing lock... [2025-01-01 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:53:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:54:05 [end_date_ymd] => 2025-01-01 22:54:05 [RateCDR] => 1 ) [2025-01-01 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 19:54:05' and `end` < '2025-01-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-01-01 22:54:20] Production.INFO: count ==868 [2025-01-01 22:54:20] Production.ERROR: pbx CDR StartTime 2025-01-01 19:54:05 - End Time 2025-01-01 22:54:05 [2025-01-01 22:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154068', 'tblTempUsageDetail_20' ) start [2025-01-01 22:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154068', 'tblTempUsageDetail_20' ) end [2025-01-01 22:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154068', 'tblTempVendorCDR_20' ) start [2025-01-01 22:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154068', 'tblTempVendorCDR_20' ) end [2025-01-01 22:54:20] Production.INFO: ProcessCDR(1,14154068,1,1,2) [2025-01-01 22:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154068', 'tblTempUsageDetail_20' ) start [2025-01-01 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154068', 'tblTempUsageDetail_20' ) end [2025-01-01 22:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:54:23] Production.INFO: ==31165== Releasing lock... [2025-01-01 22:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:54:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 22:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:55:04 [end_date_ymd] => 2025-01-01 22:55:04 [RateCDR] => 1 ) [2025-01-01 22: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-01-01 19:55:04' and `end` < '2025-01-01 22: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-01-01 22:55:17] Production.INFO: count ==864 [2025-01-01 22:55:17] Production.ERROR: pbx CDR StartTime 2025-01-01 19:55:04 - End Time 2025-01-01 22:55:04 [2025-01-01 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154073', 'tblTempUsageDetail_20' ) start [2025-01-01 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154073', 'tblTempUsageDetail_20' ) end [2025-01-01 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154073', 'tblTempVendorCDR_20' ) start [2025-01-01 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154073', 'tblTempVendorCDR_20' ) end [2025-01-01 22:55:17] Production.INFO: ProcessCDR(1,14154073,1,1,2) [2025-01-01 22:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154073', 'tblTempUsageDetail_20' ) start [2025-01-01 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154073', 'tblTempUsageDetail_20' ) end [2025-01-01 22:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:55:20] Production.INFO: ==31294== Releasing lock... [2025-01-01 22:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:55:20] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:56:05 [end_date_ymd] => 2025-01-01 22:56:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:56:05' and `end` < '2025-01-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-01-01 22:56:18] Production.INFO: count ==869 [2025-01-01 22:56:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:56:05 - End Time 2025-01-01 22:56:05 [2025-01-01 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154078', 'tblTempUsageDetail_20' ) start [2025-01-01 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154078', 'tblTempUsageDetail_20' ) end [2025-01-01 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154078', 'tblTempVendorCDR_20' ) start [2025-01-01 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154078', 'tblTempVendorCDR_20' ) end [2025-01-01 22:56:18] Production.INFO: ProcessCDR(1,14154078,1,1,2) [2025-01-01 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154078', 'tblTempUsageDetail_20' ) start [2025-01-01 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154078', 'tblTempUsageDetail_20' ) end [2025-01-01 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:56:21] Production.INFO: ==31386== Releasing lock... [2025-01-01 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:56:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:57:05 [end_date_ymd] => 2025-01-01 22:57:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:57:05' and `end` < '2025-01-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-01-01 22:57:18] Production.INFO: count ==870 [2025-01-01 22:57:19] Production.ERROR: pbx CDR StartTime 2025-01-01 19:57:05 - End Time 2025-01-01 22:57:05 [2025-01-01 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154083', 'tblTempUsageDetail_20' ) start [2025-01-01 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154083', 'tblTempUsageDetail_20' ) end [2025-01-01 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154083', 'tblTempVendorCDR_20' ) start [2025-01-01 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154083', 'tblTempVendorCDR_20' ) end [2025-01-01 22:57:19] Production.INFO: ProcessCDR(1,14154083,1,1,2) [2025-01-01 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154083', 'tblTempUsageDetail_20' ) start [2025-01-01 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154083', 'tblTempUsageDetail_20' ) end [2025-01-01 22:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:57:23] Production.INFO: ==31495== Releasing lock... [2025-01-01 22:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:57:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:58:05 [end_date_ymd] => 2025-01-01 22:58:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:58:05' and `end` < '2025-01-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-01-01 22:58:19] Production.INFO: count ==869 [2025-01-01 22:58:19] Production.ERROR: pbx CDR StartTime 2025-01-01 19:58:05 - End Time 2025-01-01 22:58:05 [2025-01-01 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154088', 'tblTempUsageDetail_20' ) start [2025-01-01 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154088', 'tblTempUsageDetail_20' ) end [2025-01-01 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154088', 'tblTempVendorCDR_20' ) start [2025-01-01 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154088', 'tblTempVendorCDR_20' ) end [2025-01-01 22:58:19] Production.INFO: ProcessCDR(1,14154088,1,1,2) [2025-01-01 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154088', 'tblTempUsageDetail_20' ) start [2025-01-01 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154088', 'tblTempUsageDetail_20' ) end [2025-01-01 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:58:22] Production.INFO: ==31609== Releasing lock... [2025-01-01 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:58:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 19:59:05 [end_date_ymd] => 2025-01-01 22:59:05 [RateCDR] => 1 ) [2025-01-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-01-01 19:59:05' and `end` < '2025-01-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-01-01 22:59:18] Production.INFO: count ==862 [2025-01-01 22:59:18] Production.ERROR: pbx CDR StartTime 2025-01-01 19:59:05 - End Time 2025-01-01 22:59:05 [2025-01-01 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154093', 'tblTempUsageDetail_20' ) start [2025-01-01 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154093', 'tblTempUsageDetail_20' ) end [2025-01-01 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154093', 'tblTempVendorCDR_20' ) start [2025-01-01 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154093', 'tblTempVendorCDR_20' ) end [2025-01-01 22:59:18] Production.INFO: ProcessCDR(1,14154093,1,1,2) [2025-01-01 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154093', 'tblTempUsageDetail_20' ) start [2025-01-01 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154093', 'tblTempUsageDetail_20' ) end [2025-01-01 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 22:59:22] Production.INFO: ==31717== Releasing lock... [2025-01-01 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 22:59:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:00:05 [end_date_ymd] => 2025-01-01 23:00:05 [RateCDR] => 1 ) [2025-01-01 23:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 20:00:05' and `end` < '2025-01-01 23:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 23:00:18] Production.INFO: count ==860 [2025-01-01 23:00:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:00:05 - End Time 2025-01-01 23:00:05 [2025-01-01 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154099', 'tblTempUsageDetail_20' ) start [2025-01-01 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154099', 'tblTempUsageDetail_20' ) end [2025-01-01 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154099', 'tblTempVendorCDR_20' ) start [2025-01-01 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154099', 'tblTempVendorCDR_20' ) end [2025-01-01 23:00:18] Production.INFO: ProcessCDR(1,14154099,1,1,2) [2025-01-01 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154099', 'tblTempUsageDetail_20' ) start [2025-01-01 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154099', 'tblTempUsageDetail_20' ) end [2025-01-01 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:00:22] Production.INFO: ==31835== Releasing lock... [2025-01-01 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:00:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-01 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:01:05 [end_date_ymd] => 2025-01-01 23:01:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:01:05' and `end` < '2025-01-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-01-01 23:01:20] Production.INFO: count ==840 [2025-01-01 23:01:20] Production.ERROR: pbx CDR StartTime 2025-01-01 20:01:05 - End Time 2025-01-01 23:01:05 [2025-01-01 23:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154104', 'tblTempUsageDetail_20' ) start [2025-01-01 23:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154104', 'tblTempUsageDetail_20' ) end [2025-01-01 23:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154104', 'tblTempVendorCDR_20' ) start [2025-01-01 23:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154104', 'tblTempVendorCDR_20' ) end [2025-01-01 23:01:20] Production.INFO: ProcessCDR(1,14154104,1,1,2) [2025-01-01 23:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154104', 'tblTempUsageDetail_20' ) start [2025-01-01 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154104', 'tblTempUsageDetail_20' ) end [2025-01-01 23:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:01:23] Production.INFO: ==31960== Releasing lock... [2025-01-01 23:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:01:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-01 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:02:05 [end_date_ymd] => 2025-01-01 23:02:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:02:05' and `end` < '2025-01-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-01-01 23:02:19] Production.INFO: count ==834 [2025-01-01 23:02:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:02:05 - End Time 2025-01-01 23:02:05 [2025-01-01 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154109', 'tblTempUsageDetail_20' ) start [2025-01-01 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154109', 'tblTempUsageDetail_20' ) end [2025-01-01 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154109', 'tblTempVendorCDR_20' ) start [2025-01-01 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154109', 'tblTempVendorCDR_20' ) end [2025-01-01 23:02:19] Production.INFO: ProcessCDR(1,14154109,1,1,2) [2025-01-01 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154109', 'tblTempUsageDetail_20' ) start [2025-01-01 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154109', 'tblTempUsageDetail_20' ) end [2025-01-01 23:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:02:23] Production.INFO: ==32145== Releasing lock... [2025-01-01 23:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:02:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-01 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:03:05 [end_date_ymd] => 2025-01-01 23:03:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:03:05' and `end` < '2025-01-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-01-01 23:03:19] Production.INFO: count ==828 [2025-01-01 23:03:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:03:05 - End Time 2025-01-01 23:03:05 [2025-01-01 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154114', 'tblTempUsageDetail_20' ) start [2025-01-01 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154114', 'tblTempUsageDetail_20' ) end [2025-01-01 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154114', 'tblTempVendorCDR_20' ) start [2025-01-01 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154114', 'tblTempVendorCDR_20' ) end [2025-01-01 23:03:19] Production.INFO: ProcessCDR(1,14154114,1,1,2) [2025-01-01 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154114', 'tblTempUsageDetail_20' ) start [2025-01-01 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154114', 'tblTempUsageDetail_20' ) end [2025-01-01 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:03:22] Production.INFO: ==32262== Releasing lock... [2025-01-01 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:03:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-01 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:04:05 [end_date_ymd] => 2025-01-01 23:04:05 [RateCDR] => 1 ) [2025-01-01 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 20:04:05' and `end` < '2025-01-01 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 23:04:17] Production.INFO: count ==824 [2025-01-01 23:04:17] Production.ERROR: pbx CDR StartTime 2025-01-01 20:04:05 - End Time 2025-01-01 23:04:05 [2025-01-01 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154119', 'tblTempUsageDetail_20' ) start [2025-01-01 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154119', 'tblTempUsageDetail_20' ) end [2025-01-01 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154119', 'tblTempVendorCDR_20' ) start [2025-01-01 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154119', 'tblTempVendorCDR_20' ) end [2025-01-01 23:04:17] Production.INFO: ProcessCDR(1,14154119,1,1,2) [2025-01-01 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154119', 'tblTempUsageDetail_20' ) start [2025-01-01 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154119', 'tblTempUsageDetail_20' ) end [2025-01-01 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:04:21] Production.INFO: ==32375== Releasing lock... [2025-01-01 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:04:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:05:05 [end_date_ymd] => 2025-01-01 23:05:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:05:05' and `end` < '2025-01-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-01-01 23:05:18] Production.INFO: count ==826 [2025-01-01 23:05:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:05:05 - End Time 2025-01-01 23:05:05 [2025-01-01 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154124', 'tblTempUsageDetail_20' ) start [2025-01-01 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154124', 'tblTempUsageDetail_20' ) end [2025-01-01 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154124', 'tblTempVendorCDR_20' ) start [2025-01-01 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154124', 'tblTempVendorCDR_20' ) end [2025-01-01 23:05:18] Production.INFO: ProcessCDR(1,14154124,1,1,2) [2025-01-01 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154124', 'tblTempUsageDetail_20' ) start [2025-01-01 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154124', 'tblTempUsageDetail_20' ) end [2025-01-01 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:05:22] Production.INFO: ==32561== Releasing lock... [2025-01-01 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:05:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-01 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:06:05 [end_date_ymd] => 2025-01-01 23:06:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:06:05' and `end` < '2025-01-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-01-01 23:06:17] Production.INFO: count ==826 [2025-01-01 23:06:17] Production.ERROR: pbx CDR StartTime 2025-01-01 20:06:05 - End Time 2025-01-01 23:06:05 [2025-01-01 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154129', 'tblTempUsageDetail_20' ) start [2025-01-01 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154129', 'tblTempUsageDetail_20' ) end [2025-01-01 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154129', 'tblTempVendorCDR_20' ) start [2025-01-01 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154129', 'tblTempVendorCDR_20' ) end [2025-01-01 23:06:17] Production.INFO: ProcessCDR(1,14154129,1,1,2) [2025-01-01 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154129', 'tblTempUsageDetail_20' ) start [2025-01-01 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154129', 'tblTempUsageDetail_20' ) end [2025-01-01 23:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:06:21] Production.INFO: ==32666== Releasing lock... [2025-01-01 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:06:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-01 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:07:05 [end_date_ymd] => 2025-01-01 23:07:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:07:05' and `end` < '2025-01-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-01-01 23:07:18] Production.INFO: count ==818 [2025-01-01 23:07:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:07:05 - End Time 2025-01-01 23:07:05 [2025-01-01 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154134', 'tblTempUsageDetail_20' ) start [2025-01-01 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154134', 'tblTempUsageDetail_20' ) end [2025-01-01 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154134', 'tblTempVendorCDR_20' ) start [2025-01-01 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154134', 'tblTempVendorCDR_20' ) end [2025-01-01 23:07:18] Production.INFO: ProcessCDR(1,14154134,1,1,2) [2025-01-01 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154134', 'tblTempUsageDetail_20' ) start [2025-01-01 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154134', 'tblTempUsageDetail_20' ) end [2025-01-01 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:07:21] Production.INFO: ==317== Releasing lock... [2025-01-01 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:07:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:08:05 [end_date_ymd] => 2025-01-01 23:08:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:08:05' and `end` < '2025-01-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-01-01 23:08:18] Production.INFO: count ==824 [2025-01-01 23:08:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:08:05 - End Time 2025-01-01 23:08:05 [2025-01-01 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154139', 'tblTempUsageDetail_20' ) start [2025-01-01 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154139', 'tblTempUsageDetail_20' ) end [2025-01-01 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154139', 'tblTempVendorCDR_20' ) start [2025-01-01 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154139', 'tblTempVendorCDR_20' ) end [2025-01-01 23:08:18] Production.INFO: ProcessCDR(1,14154139,1,1,2) [2025-01-01 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154139', 'tblTempUsageDetail_20' ) start [2025-01-01 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154139', 'tblTempUsageDetail_20' ) end [2025-01-01 23:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:08:23] Production.INFO: ==469== Releasing lock... [2025-01-01 23:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:08:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:09:05 [end_date_ymd] => 2025-01-01 23:09:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:09:05' and `end` < '2025-01-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-01-01 23:09:20] Production.INFO: count ==824 [2025-01-01 23:09:20] Production.ERROR: pbx CDR StartTime 2025-01-01 20:09:05 - End Time 2025-01-01 23:09:05 [2025-01-01 23:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154144', 'tblTempUsageDetail_20' ) start [2025-01-01 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154144', 'tblTempUsageDetail_20' ) end [2025-01-01 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154144', 'tblTempVendorCDR_20' ) start [2025-01-01 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154144', 'tblTempVendorCDR_20' ) end [2025-01-01 23:09:20] Production.INFO: ProcessCDR(1,14154144,1,1,2) [2025-01-01 23:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154144', 'tblTempUsageDetail_20' ) start [2025-01-01 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154144', 'tblTempUsageDetail_20' ) end [2025-01-01 23:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:09:23] Production.INFO: ==624== Releasing lock... [2025-01-01 23:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:09:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:10:06 [end_date_ymd] => 2025-01-01 23:10:06 [RateCDR] => 1 ) [2025-01-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-01-01 20:10:06' and `end` < '2025-01-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-01-01 23:10:19] Production.INFO: count ==824 [2025-01-01 23:10:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:10:06 - End Time 2025-01-01 23:10:06 [2025-01-01 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154150', 'tblTempUsageDetail_20' ) start [2025-01-01 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154150', 'tblTempUsageDetail_20' ) end [2025-01-01 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154150', 'tblTempVendorCDR_20' ) start [2025-01-01 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154150', 'tblTempVendorCDR_20' ) end [2025-01-01 23:10:19] Production.INFO: ProcessCDR(1,14154150,1,1,2) [2025-01-01 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154150', 'tblTempUsageDetail_20' ) start [2025-01-01 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154150', 'tblTempUsageDetail_20' ) end [2025-01-01 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:10:22] Production.INFO: ==803== Releasing lock... [2025-01-01 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:10:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:11:05 [end_date_ymd] => 2025-01-01 23:11:05 [RateCDR] => 1 ) [2025-01-01 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 20:11:05' and `end` < '2025-01-01 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 23:11:20] Production.INFO: count ==800 [2025-01-01 23:11:20] Production.ERROR: pbx CDR StartTime 2025-01-01 20:11:05 - End Time 2025-01-01 23:11:05 [2025-01-01 23:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154155', 'tblTempUsageDetail_20' ) start [2025-01-01 23:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154155', 'tblTempUsageDetail_20' ) end [2025-01-01 23:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154155', 'tblTempVendorCDR_20' ) start [2025-01-01 23:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154155', 'tblTempVendorCDR_20' ) end [2025-01-01 23:11:20] Production.INFO: ProcessCDR(1,14154155,1,1,2) [2025-01-01 23:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154155', 'tblTempUsageDetail_20' ) start [2025-01-01 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154155', 'tblTempUsageDetail_20' ) end [2025-01-01 23:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:11:23] Production.INFO: ==911== Releasing lock... [2025-01-01 23:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:11:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:12:05 [end_date_ymd] => 2025-01-01 23:12:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:12:05' and `end` < '2025-01-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-01-01 23:12:20] Production.INFO: count ==800 [2025-01-01 23:12:20] Production.ERROR: pbx CDR StartTime 2025-01-01 20:12:05 - End Time 2025-01-01 23:12:05 [2025-01-01 23:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154160', 'tblTempUsageDetail_20' ) start [2025-01-01 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154160', 'tblTempUsageDetail_20' ) end [2025-01-01 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154160', 'tblTempVendorCDR_20' ) start [2025-01-01 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154160', 'tblTempVendorCDR_20' ) end [2025-01-01 23:12:20] Production.INFO: ProcessCDR(1,14154160,1,1,2) [2025-01-01 23:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154160', 'tblTempUsageDetail_20' ) start [2025-01-01 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154160', 'tblTempUsageDetail_20' ) end [2025-01-01 23:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:12:23] Production.INFO: ==1090== Releasing lock... [2025-01-01 23:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:12:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:13:04 [end_date_ymd] => 2025-01-01 23:13:04 [RateCDR] => 1 ) [2025-01-01 23:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 20:13:04' and `end` < '2025-01-01 23:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 23:13:17] Production.INFO: count ==800 [2025-01-01 23:13:17] Production.ERROR: pbx CDR StartTime 2025-01-01 20:13:04 - End Time 2025-01-01 23:13:04 [2025-01-01 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154165', 'tblTempUsageDetail_20' ) start [2025-01-01 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154165', 'tblTempUsageDetail_20' ) end [2025-01-01 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154165', 'tblTempVendorCDR_20' ) start [2025-01-01 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154165', 'tblTempVendorCDR_20' ) end [2025-01-01 23:13:17] Production.INFO: ProcessCDR(1,14154165,1,1,2) [2025-01-01 23:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154165', 'tblTempUsageDetail_20' ) start [2025-01-01 23:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154165', 'tblTempUsageDetail_20' ) end [2025-01-01 23:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:13:20] Production.INFO: ==1195== Releasing lock... [2025-01-01 23:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:13:20] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:14:05 [end_date_ymd] => 2025-01-01 23:14:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:14:05' and `end` < '2025-01-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-01-01 23:14:18] Production.INFO: count ==801 [2025-01-01 23:14:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:14:05 - End Time 2025-01-01 23:14:05 [2025-01-01 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154170', 'tblTempUsageDetail_20' ) start [2025-01-01 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154170', 'tblTempUsageDetail_20' ) end [2025-01-01 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154170', 'tblTempVendorCDR_20' ) start [2025-01-01 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154170', 'tblTempVendorCDR_20' ) end [2025-01-01 23:14:18] Production.INFO: ProcessCDR(1,14154170,1,1,2) [2025-01-01 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154170', 'tblTempUsageDetail_20' ) start [2025-01-01 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154170', 'tblTempUsageDetail_20' ) end [2025-01-01 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:14:22] Production.INFO: ==1313== Releasing lock... [2025-01-01 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:14:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:15:05 [end_date_ymd] => 2025-01-01 23:15:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:15:05' and `end` < '2025-01-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-01-01 23:15:17] Production.INFO: count ==802 [2025-01-01 23:15:17] Production.ERROR: pbx CDR StartTime 2025-01-01 20:15:05 - End Time 2025-01-01 23:15:05 [2025-01-01 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154174', 'tblTempUsageDetail_20' ) start [2025-01-01 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154174', 'tblTempUsageDetail_20' ) end [2025-01-01 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154174', 'tblTempVendorCDR_20' ) start [2025-01-01 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154174', 'tblTempVendorCDR_20' ) end [2025-01-01 23:15:18] Production.INFO: ProcessCDR(1,14154174,1,1,2) [2025-01-01 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154174', 'tblTempUsageDetail_20' ) start [2025-01-01 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154174', 'tblTempUsageDetail_20' ) end [2025-01-01 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:15:22] Production.INFO: ==1469== Releasing lock... [2025-01-01 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:15:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:16:05 [end_date_ymd] => 2025-01-01 23:16:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:16:05' and `end` < '2025-01-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-01-01 23:16:18] Production.INFO: count ==799 [2025-01-01 23:16:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:16:05 - End Time 2025-01-01 23:16:05 [2025-01-01 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154180', 'tblTempUsageDetail_20' ) start [2025-01-01 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154180', 'tblTempUsageDetail_20' ) end [2025-01-01 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154180', 'tblTempVendorCDR_20' ) start [2025-01-01 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154180', 'tblTempVendorCDR_20' ) end [2025-01-01 23:16:18] Production.INFO: ProcessCDR(1,14154180,1,1,2) [2025-01-01 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154180', 'tblTempUsageDetail_20' ) start [2025-01-01 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154180', 'tblTempUsageDetail_20' ) end [2025-01-01 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:16:21] Production.INFO: ==1587== Releasing lock... [2025-01-01 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:16:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:17:05 [end_date_ymd] => 2025-01-01 23:17:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:17:05' and `end` < '2025-01-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-01-01 23:17:18] Production.INFO: count ==804 [2025-01-01 23:17:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:17:05 - End Time 2025-01-01 23:17:05 [2025-01-01 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154185', 'tblTempUsageDetail_20' ) start [2025-01-01 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154185', 'tblTempUsageDetail_20' ) end [2025-01-01 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154185', 'tblTempVendorCDR_20' ) start [2025-01-01 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154185', 'tblTempVendorCDR_20' ) end [2025-01-01 23:17:18] Production.INFO: ProcessCDR(1,14154185,1,1,2) [2025-01-01 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154185', 'tblTempUsageDetail_20' ) start [2025-01-01 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154185', 'tblTempUsageDetail_20' ) end [2025-01-01 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:17:21] Production.INFO: ==1667== Releasing lock... [2025-01-01 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:17:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:18:05 [end_date_ymd] => 2025-01-01 23:18:05 [RateCDR] => 1 ) [2025-01-01 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 20:18:05' and `end` < '2025-01-01 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 23:18:19] Production.INFO: count ==804 [2025-01-01 23:18:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:18:05 - End Time 2025-01-01 23:18:05 [2025-01-01 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154190', 'tblTempUsageDetail_20' ) start [2025-01-01 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154190', 'tblTempUsageDetail_20' ) end [2025-01-01 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154190', 'tblTempVendorCDR_20' ) start [2025-01-01 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154190', 'tblTempVendorCDR_20' ) end [2025-01-01 23:18:19] Production.INFO: ProcessCDR(1,14154190,1,1,2) [2025-01-01 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154190', 'tblTempUsageDetail_20' ) start [2025-01-01 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154190', 'tblTempUsageDetail_20' ) end [2025-01-01 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:18:22] Production.INFO: ==1747== Releasing lock... [2025-01-01 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:18:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:19:04 [end_date_ymd] => 2025-01-01 23:19:04 [RateCDR] => 1 ) [2025-01-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-01-01 20:19:04' and `end` < '2025-01-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-01-01 23:19:17] Production.INFO: count ==809 [2025-01-01 23:19:17] Production.ERROR: pbx CDR StartTime 2025-01-01 20:19:04 - End Time 2025-01-01 23:19:04 [2025-01-01 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154195', 'tblTempUsageDetail_20' ) start [2025-01-01 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154195', 'tblTempUsageDetail_20' ) end [2025-01-01 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154195', 'tblTempVendorCDR_20' ) start [2025-01-01 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154195', 'tblTempVendorCDR_20' ) end [2025-01-01 23:19:17] Production.INFO: ProcessCDR(1,14154195,1,1,2) [2025-01-01 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154195', 'tblTempUsageDetail_20' ) start [2025-01-01 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154195', 'tblTempUsageDetail_20' ) end [2025-01-01 23:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:19:20] Production.INFO: ==1822== Releasing lock... [2025-01-01 23:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:19:20] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:20:06 [end_date_ymd] => 2025-01-01 23:20:06 [RateCDR] => 1 ) [2025-01-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-01-01 20:20:06' and `end` < '2025-01-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-01-01 23:20:19] Production.INFO: count ==810 [2025-01-01 23:20:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:20:06 - End Time 2025-01-01 23:20:06 [2025-01-01 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154201', 'tblTempUsageDetail_20' ) start [2025-01-01 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154201', 'tblTempUsageDetail_20' ) end [2025-01-01 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154201', 'tblTempVendorCDR_20' ) start [2025-01-01 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154201', 'tblTempVendorCDR_20' ) end [2025-01-01 23:20:19] Production.INFO: ProcessCDR(1,14154201,1,1,2) [2025-01-01 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154201', 'tblTempUsageDetail_20' ) start [2025-01-01 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154201', 'tblTempUsageDetail_20' ) end [2025-01-01 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:20:24] Production.INFO: ==1904== Releasing lock... [2025-01-01 23:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:20:24] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:21:05 [end_date_ymd] => 2025-01-01 23:21:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:21:05' and `end` < '2025-01-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-01-01 23:21:19] Production.INFO: count ==792 [2025-01-01 23:21:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:21:05 - End Time 2025-01-01 23:21:05 [2025-01-01 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154206', 'tblTempUsageDetail_20' ) start [2025-01-01 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154206', 'tblTempUsageDetail_20' ) end [2025-01-01 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154206', 'tblTempVendorCDR_20' ) start [2025-01-01 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154206', 'tblTempVendorCDR_20' ) end [2025-01-01 23:21:19] Production.INFO: ProcessCDR(1,14154206,1,1,2) [2025-01-01 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154206', 'tblTempUsageDetail_20' ) start [2025-01-01 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154206', 'tblTempUsageDetail_20' ) end [2025-01-01 23:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:21:23] Production.INFO: ==1983== Releasing lock... [2025-01-01 23:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:21:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:22:05 [end_date_ymd] => 2025-01-01 23:22:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:22:05' and `end` < '2025-01-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-01-01 23:22:19] Production.INFO: count ==792 [2025-01-01 23:22:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:22:05 - End Time 2025-01-01 23:22:05 [2025-01-01 23:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154211', 'tblTempUsageDetail_20' ) start [2025-01-01 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154211', 'tblTempUsageDetail_20' ) end [2025-01-01 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154211', 'tblTempVendorCDR_20' ) start [2025-01-01 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154211', 'tblTempVendorCDR_20' ) end [2025-01-01 23:22:19] Production.INFO: ProcessCDR(1,14154211,1,1,2) [2025-01-01 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154211', 'tblTempUsageDetail_20' ) start [2025-01-01 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154211', 'tblTempUsageDetail_20' ) end [2025-01-01 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:22:22] Production.INFO: ==2059== Releasing lock... [2025-01-01 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:22:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:23:05 [end_date_ymd] => 2025-01-01 23:23:05 [RateCDR] => 1 ) [2025-01-01 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 20:23:05' and `end` < '2025-01-01 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 23:23:18] Production.INFO: count ==792 [2025-01-01 23:23:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:23:05 - End Time 2025-01-01 23:23:05 [2025-01-01 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154216', 'tblTempUsageDetail_20' ) start [2025-01-01 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154216', 'tblTempUsageDetail_20' ) end [2025-01-01 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154216', 'tblTempVendorCDR_20' ) start [2025-01-01 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154216', 'tblTempVendorCDR_20' ) end [2025-01-01 23:23:19] Production.INFO: ProcessCDR(1,14154216,1,1,2) [2025-01-01 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154216', 'tblTempUsageDetail_20' ) start [2025-01-01 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154216', 'tblTempUsageDetail_20' ) end [2025-01-01 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:23:22] Production.INFO: ==2134== Releasing lock... [2025-01-01 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:23:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:24:05 [end_date_ymd] => 2025-01-01 23:24:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:24:05' and `end` < '2025-01-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-01-01 23:24:19] Production.INFO: count ==792 [2025-01-01 23:24:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:24:05 - End Time 2025-01-01 23:24:05 [2025-01-01 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154221', 'tblTempUsageDetail_20' ) start [2025-01-01 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154221', 'tblTempUsageDetail_20' ) end [2025-01-01 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154221', 'tblTempVendorCDR_20' ) start [2025-01-01 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154221', 'tblTempVendorCDR_20' ) end [2025-01-01 23:24:19] Production.INFO: ProcessCDR(1,14154221,1,1,2) [2025-01-01 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154221', 'tblTempUsageDetail_20' ) start [2025-01-01 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154221', 'tblTempUsageDetail_20' ) end [2025-01-01 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:24:22] Production.INFO: ==2206== Releasing lock... [2025-01-01 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:24:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:25:05 [end_date_ymd] => 2025-01-01 23:25:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:25:05' and `end` < '2025-01-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-01-01 23:25:19] Production.INFO: count ==792 [2025-01-01 23:25:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:25:05 - End Time 2025-01-01 23:25:05 [2025-01-01 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154226', 'tblTempUsageDetail_20' ) start [2025-01-01 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154226', 'tblTempUsageDetail_20' ) end [2025-01-01 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154226', 'tblTempVendorCDR_20' ) start [2025-01-01 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154226', 'tblTempVendorCDR_20' ) end [2025-01-01 23:25:19] Production.INFO: ProcessCDR(1,14154226,1,1,2) [2025-01-01 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154226', 'tblTempUsageDetail_20' ) start [2025-01-01 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154226', 'tblTempUsageDetail_20' ) end [2025-01-01 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:25:22] Production.INFO: ==2280== Releasing lock... [2025-01-01 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:25:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:26:05 [end_date_ymd] => 2025-01-01 23:26:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:26:05' and `end` < '2025-01-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-01-01 23:26:19] Production.INFO: count ==794 [2025-01-01 23:26:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:26:05 - End Time 2025-01-01 23:26:05 [2025-01-01 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154231', 'tblTempUsageDetail_20' ) start [2025-01-01 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154231', 'tblTempUsageDetail_20' ) end [2025-01-01 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154231', 'tblTempVendorCDR_20' ) start [2025-01-01 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154231', 'tblTempVendorCDR_20' ) end [2025-01-01 23:26:19] Production.INFO: ProcessCDR(1,14154231,1,1,2) [2025-01-01 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154231', 'tblTempUsageDetail_20' ) start [2025-01-01 23:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154231', 'tblTempUsageDetail_20' ) end [2025-01-01 23:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:26:24] Production.INFO: ==2393== Releasing lock... [2025-01-01 23:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:26:24] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:27:05 [end_date_ymd] => 2025-01-01 23:27:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:27:05' and `end` < '2025-01-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-01-01 23:27:19] Production.INFO: count ==794 [2025-01-01 23:27:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:27:05 - End Time 2025-01-01 23:27:05 [2025-01-01 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154236', 'tblTempUsageDetail_20' ) start [2025-01-01 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154236', 'tblTempUsageDetail_20' ) end [2025-01-01 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154236', 'tblTempVendorCDR_20' ) start [2025-01-01 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154236', 'tblTempVendorCDR_20' ) end [2025-01-01 23:27:19] Production.INFO: ProcessCDR(1,14154236,1,1,2) [2025-01-01 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154236', 'tblTempUsageDetail_20' ) start [2025-01-01 23:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154236', 'tblTempUsageDetail_20' ) end [2025-01-01 23:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:27:23] Production.INFO: ==2467== Releasing lock... [2025-01-01 23:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:27:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:28:04 [end_date_ymd] => 2025-01-01 23:28:04 [RateCDR] => 1 ) [2025-01-01 23: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-01-01 20:28:04' and `end` < '2025-01-01 23: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-01-01 23:28:19] Production.INFO: count ==797 [2025-01-01 23:28:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:28:04 - End Time 2025-01-01 23:28:04 [2025-01-01 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154241', 'tblTempUsageDetail_20' ) start [2025-01-01 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154241', 'tblTempUsageDetail_20' ) end [2025-01-01 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154241', 'tblTempVendorCDR_20' ) start [2025-01-01 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154241', 'tblTempVendorCDR_20' ) end [2025-01-01 23:28:19] Production.INFO: ProcessCDR(1,14154241,1,1,2) [2025-01-01 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154241', 'tblTempUsageDetail_20' ) start [2025-01-01 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154241', 'tblTempUsageDetail_20' ) end [2025-01-01 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:28:22] Production.INFO: ==2536== Releasing lock... [2025-01-01 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:28:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:29:05 [end_date_ymd] => 2025-01-01 23:29:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:29:05' and `end` < '2025-01-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-01-01 23:29:19] Production.INFO: count ==797 [2025-01-01 23:29:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:29:05 - End Time 2025-01-01 23:29:05 [2025-01-01 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154246', 'tblTempUsageDetail_20' ) start [2025-01-01 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154246', 'tblTempUsageDetail_20' ) end [2025-01-01 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154246', 'tblTempVendorCDR_20' ) start [2025-01-01 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154246', 'tblTempVendorCDR_20' ) end [2025-01-01 23:29:19] Production.INFO: ProcessCDR(1,14154246,1,1,2) [2025-01-01 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154246', 'tblTempUsageDetail_20' ) start [2025-01-01 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154246', 'tblTempUsageDetail_20' ) end [2025-01-01 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:29:22] Production.INFO: ==2608== Releasing lock... [2025-01-01 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:29:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:30:05 [end_date_ymd] => 2025-01-01 23:30:05 [RateCDR] => 1 ) [2025-01-01 23: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-01-01 20:30:05' and `end` < '2025-01-01 23: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-01-01 23:30:18] Production.INFO: count ==791 [2025-01-01 23:30:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:30:05 - End Time 2025-01-01 23:30:05 [2025-01-01 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154251', 'tblTempUsageDetail_20' ) start [2025-01-01 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154251', 'tblTempUsageDetail_20' ) end [2025-01-01 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154251', 'tblTempVendorCDR_20' ) start [2025-01-01 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154251', 'tblTempVendorCDR_20' ) end [2025-01-01 23:30:18] Production.INFO: ProcessCDR(1,14154251,1,1,2) [2025-01-01 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154251', 'tblTempUsageDetail_20' ) start [2025-01-01 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154251', 'tblTempUsageDetail_20' ) end [2025-01-01 23:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:30:21] Production.INFO: ==2681== Releasing lock... [2025-01-01 23:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:30:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-01 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:31:05 [end_date_ymd] => 2025-01-01 23:31:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:31:05' and `end` < '2025-01-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-01-01 23:31:18] Production.INFO: count ==757 [2025-01-01 23:31:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:31:05 - End Time 2025-01-01 23:31:05 [2025-01-01 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154257', 'tblTempUsageDetail_20' ) start [2025-01-01 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154257', 'tblTempUsageDetail_20' ) end [2025-01-01 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154257', 'tblTempVendorCDR_20' ) start [2025-01-01 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154257', 'tblTempVendorCDR_20' ) end [2025-01-01 23:31:18] Production.INFO: ProcessCDR(1,14154257,1,1,2) [2025-01-01 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154257', 'tblTempUsageDetail_20' ) start [2025-01-01 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154257', 'tblTempUsageDetail_20' ) end [2025-01-01 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:31:21] Production.INFO: ==2755== Releasing lock... [2025-01-01 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:31:21] Production.INFO: 33 MB #Memory Used# [2025-01-01 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:32:05 [end_date_ymd] => 2025-01-01 23:32:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:32:05' and `end` < '2025-01-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-01-01 23:32:20] Production.INFO: count ==757 [2025-01-01 23:32:20] Production.ERROR: pbx CDR StartTime 2025-01-01 20:32:05 - End Time 2025-01-01 23:32:05 [2025-01-01 23:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154262', 'tblTempUsageDetail_20' ) start [2025-01-01 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154262', 'tblTempUsageDetail_20' ) end [2025-01-01 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154262', 'tblTempVendorCDR_20' ) start [2025-01-01 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154262', 'tblTempVendorCDR_20' ) end [2025-01-01 23:32:20] Production.INFO: ProcessCDR(1,14154262,1,1,2) [2025-01-01 23:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154262', 'tblTempUsageDetail_20' ) start [2025-01-01 23:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154262', 'tblTempUsageDetail_20' ) end [2025-01-01 23:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:32:24] Production.INFO: ==2825== Releasing lock... [2025-01-01 23:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:32:24] Production.INFO: 33 MB #Memory Used# [2025-01-01 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:33:05 [end_date_ymd] => 2025-01-01 23:33:05 [RateCDR] => 1 ) [2025-01-01 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 20:33:05' and `end` < '2025-01-01 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 23:33:19] Production.INFO: count ==758 [2025-01-01 23:33:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:33:05 - End Time 2025-01-01 23:33:05 [2025-01-01 23:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154267', 'tblTempUsageDetail_20' ) start [2025-01-01 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154267', 'tblTempUsageDetail_20' ) end [2025-01-01 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154267', 'tblTempVendorCDR_20' ) start [2025-01-01 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154267', 'tblTempVendorCDR_20' ) end [2025-01-01 23:33:19] Production.INFO: ProcessCDR(1,14154267,1,1,2) [2025-01-01 23:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154267', 'tblTempUsageDetail_20' ) start [2025-01-01 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154267', 'tblTempUsageDetail_20' ) end [2025-01-01 23:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:33:23] Production.INFO: ==2897== Releasing lock... [2025-01-01 23:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:33:23] Production.INFO: 33 MB #Memory Used# [2025-01-01 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:34:05 [end_date_ymd] => 2025-01-01 23:34:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:34:05' and `end` < '2025-01-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-01-01 23:34:18] Production.INFO: count ==758 [2025-01-01 23:34:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:34:05 - End Time 2025-01-01 23:34:05 [2025-01-01 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154272', 'tblTempUsageDetail_20' ) start [2025-01-01 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154272', 'tblTempUsageDetail_20' ) end [2025-01-01 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154272', 'tblTempVendorCDR_20' ) start [2025-01-01 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154272', 'tblTempVendorCDR_20' ) end [2025-01-01 23:34:18] Production.INFO: ProcessCDR(1,14154272,1,1,2) [2025-01-01 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154272', 'tblTempUsageDetail_20' ) start [2025-01-01 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154272', 'tblTempUsageDetail_20' ) end [2025-01-01 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:34:21] Production.INFO: ==2966== Releasing lock... [2025-01-01 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:34:21] Production.INFO: 33 MB #Memory Used# [2025-01-01 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:35:05 [end_date_ymd] => 2025-01-01 23:35:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:35:05' and `end` < '2025-01-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-01-01 23:35:18] Production.INFO: count ==757 [2025-01-01 23:35:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:35:05 - End Time 2025-01-01 23:35:05 [2025-01-01 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154277', 'tblTempUsageDetail_20' ) start [2025-01-01 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154277', 'tblTempUsageDetail_20' ) end [2025-01-01 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154277', 'tblTempVendorCDR_20' ) start [2025-01-01 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154277', 'tblTempVendorCDR_20' ) end [2025-01-01 23:35:18] Production.INFO: ProcessCDR(1,14154277,1,1,2) [2025-01-01 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154277', 'tblTempUsageDetail_20' ) start [2025-01-01 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154277', 'tblTempUsageDetail_20' ) end [2025-01-01 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:35:21] Production.INFO: ==3038== Releasing lock... [2025-01-01 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:35:21] Production.INFO: 33 MB #Memory Used# [2025-01-01 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:36:05 [end_date_ymd] => 2025-01-01 23:36:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:36:05' and `end` < '2025-01-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-01-01 23:36:18] Production.INFO: count ==757 [2025-01-01 23:36:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:36:05 - End Time 2025-01-01 23:36:05 [2025-01-01 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154282', 'tblTempUsageDetail_20' ) start [2025-01-01 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154282', 'tblTempUsageDetail_20' ) end [2025-01-01 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154282', 'tblTempVendorCDR_20' ) start [2025-01-01 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154282', 'tblTempVendorCDR_20' ) end [2025-01-01 23:36:18] Production.INFO: ProcessCDR(1,14154282,1,1,2) [2025-01-01 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154282', 'tblTempUsageDetail_20' ) start [2025-01-01 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154282', 'tblTempUsageDetail_20' ) end [2025-01-01 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:36:22] Production.INFO: ==3116== Releasing lock... [2025-01-01 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:36:22] Production.INFO: 33 MB #Memory Used# [2025-01-01 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:37:05 [end_date_ymd] => 2025-01-01 23:37:05 [RateCDR] => 1 ) [2025-01-01 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 20:37:05' and `end` < '2025-01-01 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 23:37:20] Production.INFO: count ==753 [2025-01-01 23:37:20] Production.ERROR: pbx CDR StartTime 2025-01-01 20:37:05 - End Time 2025-01-01 23:37:05 [2025-01-01 23:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154287', 'tblTempUsageDetail_20' ) start [2025-01-01 23:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154287', 'tblTempUsageDetail_20' ) end [2025-01-01 23:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154287', 'tblTempVendorCDR_20' ) start [2025-01-01 23:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154287', 'tblTempVendorCDR_20' ) end [2025-01-01 23:37:20] Production.INFO: ProcessCDR(1,14154287,1,1,2) [2025-01-01 23:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154287', 'tblTempUsageDetail_20' ) start [2025-01-01 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154287', 'tblTempUsageDetail_20' ) end [2025-01-01 23:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:37:23] Production.INFO: ==3189== Releasing lock... [2025-01-01 23:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:37:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:38:06 [end_date_ymd] => 2025-01-01 23:38:06 [RateCDR] => 1 ) [2025-01-01 23:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 20:38:06' and `end` < '2025-01-01 23:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 23:38:20] Production.INFO: count ==750 [2025-01-01 23:38:20] Production.ERROR: pbx CDR StartTime 2025-01-01 20:38:06 - End Time 2025-01-01 23:38:06 [2025-01-01 23:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154292', 'tblTempUsageDetail_20' ) start [2025-01-01 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154292', 'tblTempUsageDetail_20' ) end [2025-01-01 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154292', 'tblTempVendorCDR_20' ) start [2025-01-01 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154292', 'tblTempVendorCDR_20' ) end [2025-01-01 23:38:20] Production.INFO: ProcessCDR(1,14154292,1,1,2) [2025-01-01 23:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154292', 'tblTempUsageDetail_20' ) start [2025-01-01 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154292', 'tblTempUsageDetail_20' ) end [2025-01-01 23:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:38:23] Production.INFO: ==3267== Releasing lock... [2025-01-01 23:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:38:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 23:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:39:04 [end_date_ymd] => 2025-01-01 23:39:04 [RateCDR] => 1 ) [2025-01-01 23: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-01-01 20:39:04' and `end` < '2025-01-01 23: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-01-01 23:39:17] Production.INFO: count ==749 [2025-01-01 23:39:17] Production.ERROR: pbx CDR StartTime 2025-01-01 20:39:04 - End Time 2025-01-01 23:39:04 [2025-01-01 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154297', 'tblTempUsageDetail_20' ) start [2025-01-01 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154297', 'tblTempUsageDetail_20' ) end [2025-01-01 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154297', 'tblTempVendorCDR_20' ) start [2025-01-01 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154297', 'tblTempVendorCDR_20' ) end [2025-01-01 23:39:17] Production.INFO: ProcessCDR(1,14154297,1,1,2) [2025-01-01 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154297', 'tblTempUsageDetail_20' ) start [2025-01-01 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154297', 'tblTempUsageDetail_20' ) end [2025-01-01 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:39:22] Production.INFO: ==3344== Releasing lock... [2025-01-01 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:39:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:40:05 [end_date_ymd] => 2025-01-01 23:40:05 [RateCDR] => 1 ) [2025-01-01 23:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 20:40:05' and `end` < '2025-01-01 23:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 23:40:18] Production.INFO: count ==752 [2025-01-01 23:40:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:40:05 - End Time 2025-01-01 23:40:05 [2025-01-01 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154303', 'tblTempUsageDetail_20' ) start [2025-01-01 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154303', 'tblTempUsageDetail_20' ) end [2025-01-01 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154303', 'tblTempVendorCDR_20' ) start [2025-01-01 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154303', 'tblTempVendorCDR_20' ) end [2025-01-01 23:40:18] Production.INFO: ProcessCDR(1,14154303,1,1,2) [2025-01-01 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154303', 'tblTempUsageDetail_20' ) start [2025-01-01 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154303', 'tblTempUsageDetail_20' ) end [2025-01-01 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:40:22] Production.INFO: ==3427== Releasing lock... [2025-01-01 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:40:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:41:04 [end_date_ymd] => 2025-01-01 23:41:04 [RateCDR] => 1 ) [2025-01-01 23: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-01-01 20:41:04' and `end` < '2025-01-01 23: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-01-01 23:41:19] Production.INFO: count ==722 [2025-01-01 23:41:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:41:04 - End Time 2025-01-01 23:41:04 [2025-01-01 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154308', 'tblTempUsageDetail_20' ) start [2025-01-01 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154308', 'tblTempUsageDetail_20' ) end [2025-01-01 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154308', 'tblTempVendorCDR_20' ) start [2025-01-01 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154308', 'tblTempVendorCDR_20' ) end [2025-01-01 23:41:19] Production.INFO: ProcessCDR(1,14154308,1,1,2) [2025-01-01 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154308', 'tblTempUsageDetail_20' ) start [2025-01-01 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154308', 'tblTempUsageDetail_20' ) end [2025-01-01 23:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:41:23] Production.INFO: ==3515== Releasing lock... [2025-01-01 23:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:41:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:42:05 [end_date_ymd] => 2025-01-01 23:42:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:42:05' and `end` < '2025-01-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-01-01 23:42:19] Production.INFO: count ==723 [2025-01-01 23:42:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:42:05 - End Time 2025-01-01 23:42:05 [2025-01-01 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154313', 'tblTempUsageDetail_20' ) start [2025-01-01 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154313', 'tblTempUsageDetail_20' ) end [2025-01-01 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154313', 'tblTempVendorCDR_20' ) start [2025-01-01 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154313', 'tblTempVendorCDR_20' ) end [2025-01-01 23:42:19] Production.INFO: ProcessCDR(1,14154313,1,1,2) [2025-01-01 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154313', 'tblTempUsageDetail_20' ) start [2025-01-01 23:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154313', 'tblTempUsageDetail_20' ) end [2025-01-01 23:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:42:24] Production.INFO: ==3631== Releasing lock... [2025-01-01 23:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:42:24] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:43:05 [end_date_ymd] => 2025-01-01 23:43:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:43:05' and `end` < '2025-01-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-01-01 23:43:18] Production.INFO: count ==723 [2025-01-01 23:43:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:43:05 - End Time 2025-01-01 23:43:05 [2025-01-01 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154318', 'tblTempUsageDetail_20' ) start [2025-01-01 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154318', 'tblTempUsageDetail_20' ) end [2025-01-01 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154318', 'tblTempVendorCDR_20' ) start [2025-01-01 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154318', 'tblTempVendorCDR_20' ) end [2025-01-01 23:43:18] Production.INFO: ProcessCDR(1,14154318,1,1,2) [2025-01-01 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154318', 'tblTempUsageDetail_20' ) start [2025-01-01 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154318', 'tblTempUsageDetail_20' ) end [2025-01-01 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:43:21] Production.INFO: ==3712== Releasing lock... [2025-01-01 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:43:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:44:05 [end_date_ymd] => 2025-01-01 23:44:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:44:05' and `end` < '2025-01-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-01-01 23:44:19] Production.INFO: count ==723 [2025-01-01 23:44:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:44:05 - End Time 2025-01-01 23:44:05 [2025-01-01 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154323', 'tblTempUsageDetail_20' ) start [2025-01-01 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154323', 'tblTempUsageDetail_20' ) end [2025-01-01 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154323', 'tblTempVendorCDR_20' ) start [2025-01-01 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154323', 'tblTempVendorCDR_20' ) end [2025-01-01 23:44:19] Production.INFO: ProcessCDR(1,14154323,1,1,2) [2025-01-01 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154323', 'tblTempUsageDetail_20' ) start [2025-01-01 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154323', 'tblTempUsageDetail_20' ) end [2025-01-01 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:44:22] Production.INFO: ==3788== Releasing lock... [2025-01-01 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:44:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:45:05 [end_date_ymd] => 2025-01-01 23:45:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:45:05' and `end` < '2025-01-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-01-01 23:45:18] Production.INFO: count ==722 [2025-01-01 23:45:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:45:05 - End Time 2025-01-01 23:45:05 [2025-01-01 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154328', 'tblTempUsageDetail_20' ) start [2025-01-01 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154328', 'tblTempUsageDetail_20' ) end [2025-01-01 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154328', 'tblTempVendorCDR_20' ) start [2025-01-01 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154328', 'tblTempVendorCDR_20' ) end [2025-01-01 23:45:18] Production.INFO: ProcessCDR(1,14154328,1,1,2) [2025-01-01 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154328', 'tblTempUsageDetail_20' ) start [2025-01-01 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154328', 'tblTempUsageDetail_20' ) end [2025-01-01 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:45:21] Production.INFO: ==3867== Releasing lock... [2025-01-01 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:45:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 23:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:46:04 [end_date_ymd] => 2025-01-01 23:46:04 [RateCDR] => 1 ) [2025-01-01 23:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-01 20:46:04' and `end` < '2025-01-01 23:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-01 23:46:18] Production.INFO: count ==720 [2025-01-01 23:46:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:46:04 - End Time 2025-01-01 23:46:04 [2025-01-01 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154333', 'tblTempUsageDetail_20' ) start [2025-01-01 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154333', 'tblTempUsageDetail_20' ) end [2025-01-01 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154333', 'tblTempVendorCDR_20' ) start [2025-01-01 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154333', 'tblTempVendorCDR_20' ) end [2025-01-01 23:46:18] Production.INFO: ProcessCDR(1,14154333,1,1,2) [2025-01-01 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154333', 'tblTempUsageDetail_20' ) start [2025-01-01 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154333', 'tblTempUsageDetail_20' ) end [2025-01-01 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:46:21] Production.INFO: ==3948== Releasing lock... [2025-01-01 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:46:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:47:05 [end_date_ymd] => 2025-01-01 23:47:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:47:05' and `end` < '2025-01-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-01-01 23:47:18] Production.INFO: count ==719 [2025-01-01 23:47:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:47:05 - End Time 2025-01-01 23:47:05 [2025-01-01 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154338', 'tblTempUsageDetail_20' ) start [2025-01-01 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154338', 'tblTempUsageDetail_20' ) end [2025-01-01 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154338', 'tblTempVendorCDR_20' ) start [2025-01-01 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154338', 'tblTempVendorCDR_20' ) end [2025-01-01 23:47:18] Production.INFO: ProcessCDR(1,14154338,1,1,2) [2025-01-01 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154338', 'tblTempUsageDetail_20' ) start [2025-01-01 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154338', 'tblTempUsageDetail_20' ) end [2025-01-01 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:47:21] Production.INFO: ==4029== Releasing lock... [2025-01-01 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:47:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 23:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:48:04 [end_date_ymd] => 2025-01-01 23:48:04 [RateCDR] => 1 ) [2025-01-01 23: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-01-01 20:48:04' and `end` < '2025-01-01 23: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-01-01 23:48:19] Production.INFO: count ==725 [2025-01-01 23:48:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:48:04 - End Time 2025-01-01 23:48:04 [2025-01-01 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154343', 'tblTempUsageDetail_20' ) start [2025-01-01 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154343', 'tblTempUsageDetail_20' ) end [2025-01-01 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154343', 'tblTempVendorCDR_20' ) start [2025-01-01 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154343', 'tblTempVendorCDR_20' ) end [2025-01-01 23:48:19] Production.INFO: ProcessCDR(1,14154343,1,1,2) [2025-01-01 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154343', 'tblTempUsageDetail_20' ) start [2025-01-01 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154343', 'tblTempUsageDetail_20' ) end [2025-01-01 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:48:22] Production.INFO: ==4108== Releasing lock... [2025-01-01 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:48:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:49:05 [end_date_ymd] => 2025-01-01 23:49:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:49:05' and `end` < '2025-01-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-01-01 23:49:17] Production.INFO: count ==722 [2025-01-01 23:49:17] Production.ERROR: pbx CDR StartTime 2025-01-01 20:49:05 - End Time 2025-01-01 23:49:05 [2025-01-01 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154348', 'tblTempUsageDetail_20' ) start [2025-01-01 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154348', 'tblTempUsageDetail_20' ) end [2025-01-01 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154348', 'tblTempVendorCDR_20' ) start [2025-01-01 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154348', 'tblTempVendorCDR_20' ) end [2025-01-01 23:49:17] Production.INFO: ProcessCDR(1,14154348,1,1,2) [2025-01-01 23:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154348', 'tblTempUsageDetail_20' ) start [2025-01-01 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154348', 'tblTempUsageDetail_20' ) end [2025-01-01 23:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:49:20] Production.INFO: ==4187== Releasing lock... [2025-01-01 23:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:49:20] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:50:06 [end_date_ymd] => 2025-01-01 23:50:06 [RateCDR] => 1 ) [2025-01-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-01-01 20:50:06' and `end` < '2025-01-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-01-01 23:50:19] Production.INFO: count ==718 [2025-01-01 23:50:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:50:06 - End Time 2025-01-01 23:50:06 [2025-01-01 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154354', 'tblTempUsageDetail_20' ) start [2025-01-01 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154354', 'tblTempUsageDetail_20' ) end [2025-01-01 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154354', 'tblTempVendorCDR_20' ) start [2025-01-01 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154354', 'tblTempVendorCDR_20' ) end [2025-01-01 23:50:19] Production.INFO: ProcessCDR(1,14154354,1,1,2) [2025-01-01 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154354', 'tblTempUsageDetail_20' ) start [2025-01-01 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154354', 'tblTempUsageDetail_20' ) end [2025-01-01 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:50:22] Production.INFO: ==4271== Releasing lock... [2025-01-01 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:50:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:51:05 [end_date_ymd] => 2025-01-01 23:51:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:51:05' and `end` < '2025-01-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-01-01 23:51:18] Production.INFO: count ==687 [2025-01-01 23:51:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:51:05 - End Time 2025-01-01 23:51:05 [2025-01-01 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154359', 'tblTempUsageDetail_20' ) start [2025-01-01 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154359', 'tblTempUsageDetail_20' ) end [2025-01-01 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154359', 'tblTempVendorCDR_20' ) start [2025-01-01 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154359', 'tblTempVendorCDR_20' ) end [2025-01-01 23:51:18] Production.INFO: ProcessCDR(1,14154359,1,1,2) [2025-01-01 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154359', 'tblTempUsageDetail_20' ) start [2025-01-01 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154359', 'tblTempUsageDetail_20' ) end [2025-01-01 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:51:21] Production.INFO: ==4356== Releasing lock... [2025-01-01 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:51:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:52:05 [end_date_ymd] => 2025-01-01 23:52:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:52:05' and `end` < '2025-01-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-01-01 23:52:19] Production.INFO: count ==688 [2025-01-01 23:52:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:52:05 - End Time 2025-01-01 23:52:05 [2025-01-01 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154364', 'tblTempUsageDetail_20' ) start [2025-01-01 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154364', 'tblTempUsageDetail_20' ) end [2025-01-01 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154364', 'tblTempVendorCDR_20' ) start [2025-01-01 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154364', 'tblTempVendorCDR_20' ) end [2025-01-01 23:52:19] Production.INFO: ProcessCDR(1,14154364,1,1,2) [2025-01-01 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154364', 'tblTempUsageDetail_20' ) start [2025-01-01 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154364', 'tblTempUsageDetail_20' ) end [2025-01-01 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:52:22] Production.INFO: ==4435== Releasing lock... [2025-01-01 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:52:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:53:05 [end_date_ymd] => 2025-01-01 23:53:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:53:05' and `end` < '2025-01-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-01-01 23:53:19] Production.INFO: count ==688 [2025-01-01 23:53:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:53:05 - End Time 2025-01-01 23:53:05 [2025-01-01 23:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154369', 'tblTempUsageDetail_20' ) start [2025-01-01 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154369', 'tblTempUsageDetail_20' ) end [2025-01-01 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154369', 'tblTempVendorCDR_20' ) start [2025-01-01 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154369', 'tblTempVendorCDR_20' ) end [2025-01-01 23:53:19] Production.INFO: ProcessCDR(1,14154369,1,1,2) [2025-01-01 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154369', 'tblTempUsageDetail_20' ) start [2025-01-01 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154369', 'tblTempUsageDetail_20' ) end [2025-01-01 23:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:53:23] Production.INFO: ==4513== Releasing lock... [2025-01-01 23:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:53:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:54:05 [end_date_ymd] => 2025-01-01 23:54:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:54:05' and `end` < '2025-01-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-01-01 23:54:19] Production.INFO: count ==691 [2025-01-01 23:54:19] Production.ERROR: pbx CDR StartTime 2025-01-01 20:54:05 - End Time 2025-01-01 23:54:05 [2025-01-01 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154374', 'tblTempUsageDetail_20' ) start [2025-01-01 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154374', 'tblTempUsageDetail_20' ) end [2025-01-01 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154374', 'tblTempVendorCDR_20' ) start [2025-01-01 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154374', 'tblTempVendorCDR_20' ) end [2025-01-01 23:54:19] Production.INFO: ProcessCDR(1,14154374,1,1,2) [2025-01-01 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154374', 'tblTempUsageDetail_20' ) start [2025-01-01 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154374', 'tblTempUsageDetail_20' ) end [2025-01-01 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:54:22] Production.INFO: ==4602== Releasing lock... [2025-01-01 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:54:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 23:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:55:04 [end_date_ymd] => 2025-01-01 23:55:04 [RateCDR] => 1 ) [2025-01-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-01-01 20:55:04' and `end` < '2025-01-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-01-01 23:55:17] Production.INFO: count ==694 [2025-01-01 23:55:17] Production.ERROR: pbx CDR StartTime 2025-01-01 20:55:04 - End Time 2025-01-01 23:55:04 [2025-01-01 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154379', 'tblTempUsageDetail_20' ) start [2025-01-01 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154379', 'tblTempUsageDetail_20' ) end [2025-01-01 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154379', 'tblTempVendorCDR_20' ) start [2025-01-01 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154379', 'tblTempVendorCDR_20' ) end [2025-01-01 23:55:17] Production.INFO: ProcessCDR(1,14154379,1,1,2) [2025-01-01 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154379', 'tblTempUsageDetail_20' ) start [2025-01-01 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154379', 'tblTempUsageDetail_20' ) end [2025-01-01 23:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:55:20] Production.INFO: ==4683== Releasing lock... [2025-01-01 23:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:55:20] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:56:05 [end_date_ymd] => 2025-01-01 23:56:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:56:05' and `end` < '2025-01-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-01-01 23:56:18] Production.INFO: count ==694 [2025-01-01 23:56:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:56:05 - End Time 2025-01-01 23:56:05 [2025-01-01 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154384', 'tblTempUsageDetail_20' ) start [2025-01-01 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154384', 'tblTempUsageDetail_20' ) end [2025-01-01 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154384', 'tblTempVendorCDR_20' ) start [2025-01-01 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154384', 'tblTempVendorCDR_20' ) end [2025-01-01 23:56:18] Production.INFO: ProcessCDR(1,14154384,1,1,2) [2025-01-01 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154384', 'tblTempUsageDetail_20' ) start [2025-01-01 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154384', 'tblTempUsageDetail_20' ) end [2025-01-01 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:56:21] Production.INFO: ==4765== Releasing lock... [2025-01-01 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:56:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:57:05 [end_date_ymd] => 2025-01-01 23:57:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:57:05' and `end` < '2025-01-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-01-01 23:57:18] Production.INFO: count ==694 [2025-01-01 23:57:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:57:05 - End Time 2025-01-01 23:57:05 [2025-01-01 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154389', 'tblTempUsageDetail_20' ) start [2025-01-01 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154389', 'tblTempUsageDetail_20' ) end [2025-01-01 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154389', 'tblTempVendorCDR_20' ) start [2025-01-01 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154389', 'tblTempVendorCDR_20' ) end [2025-01-01 23:57:18] Production.INFO: ProcessCDR(1,14154389,1,1,2) [2025-01-01 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154389', 'tblTempUsageDetail_20' ) start [2025-01-01 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154389', 'tblTempUsageDetail_20' ) end [2025-01-01 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:57:21] Production.INFO: ==4885== Releasing lock... [2025-01-01 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:57:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-01 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:58:05 [end_date_ymd] => 2025-01-01 23:58:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:58:05' and `end` < '2025-01-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-01-01 23:58:18] Production.INFO: count ==695 [2025-01-01 23:58:18] Production.ERROR: pbx CDR StartTime 2025-01-01 20:58:05 - End Time 2025-01-01 23:58:05 [2025-01-01 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154394', 'tblTempUsageDetail_20' ) start [2025-01-01 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154394', 'tblTempUsageDetail_20' ) end [2025-01-01 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154394', 'tblTempVendorCDR_20' ) start [2025-01-01 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154394', 'tblTempVendorCDR_20' ) end [2025-01-01 23:58:18] Production.INFO: ProcessCDR(1,14154394,1,1,2) [2025-01-01 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154394', 'tblTempUsageDetail_20' ) start [2025-01-01 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154394', 'tblTempUsageDetail_20' ) end [2025-01-01 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:58:22] Production.INFO: ==4962== Releasing lock... [2025-01-01 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:58:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-01 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-01 20:59:05 [end_date_ymd] => 2025-01-01 23:59:05 [RateCDR] => 1 ) [2025-01-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-01-01 20:59:05' and `end` < '2025-01-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-01-01 23:59:17] Production.INFO: count ==696 [2025-01-01 23:59:17] Production.ERROR: pbx CDR StartTime 2025-01-01 20:59:05 - End Time 2025-01-01 23:59:05 [2025-01-01 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-01 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154399', 'tblTempUsageDetail_20' ) start [2025-01-01 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14154399', 'tblTempUsageDetail_20' ) end [2025-01-01 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154399', 'tblTempVendorCDR_20' ) start [2025-01-01 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14154399', 'tblTempVendorCDR_20' ) end [2025-01-01 23:59:17] Production.INFO: ProcessCDR(1,14154399,1,1,2) [2025-01-01 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14154399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14154399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-01 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14154399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14154399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-01 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154399', 'tblTempUsageDetail_20' ) start [2025-01-01 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14154399', 'tblTempUsageDetail_20' ) end [2025-01-01 23:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-01 23:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-01 23:59:20] Production.INFO: ==5040== Releasing lock... [2025-01-01 23:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-01 23:59:20] Production.INFO: 32.5 MB #Memory Used#